summaryrefslogtreecommitdiff
path: root/core/java/android/util/SparseArrayMap.java
Commit message (Collapse)AuthorAgeFilesLines
* Add background restriction levels definition and its controllerJing Ji2022-01-241-0/+17
| | | | | | | | | | | | | | | This CL adds the definition of background app restriction levels. The existing various system background app restriction features will be mapped into the levels here, including app standby buckets, background restrictions (forced-app-standby) etc. Future CLs may apply restrictions to background apps accordingly. BYPASS_INCLUSIVE_LANGUAGE_REASON=Legacy API name Bug: 200326767 Test: atest FrameworksMockingServicesTests:BackgroundRestrictionTest Change-Id: Icf82031c572e7b8e82e6528402e9df4de5b7a675
* Fix indexing issue.Kweku Adams2021-08-231-1/+1
| | | | | | Bug: 158300259 Test: Check TARE dumpsys Change-Id: I241033cfd7718e4e546a8940686ea8ca82347bad
* Track ongoing events and record them to the Ledger.Kweku Adams2021-06-291-0/+24
| | | | | | Bug: 158300259 Test: Android builds Change-Id: I9fd4c17d526618ac284ac2336da9bd2e28ccc820
* Generalize SparseArrayMap.Kweku Adams2020-09-161-24/+25
| | | | | | | | | | | | SparseArrayMap required Strings as keys, which restricted its uses. Now it can take any object as a key, which better reflects the underlying ArrayMap generalization. Bug: 138469672 Test: atest com.android.server.job.controllers.QuotaControllerTest Test: atest QuotaTrackerTest Test: atest SparseArrayMapTest Change-Id: If6da7dfdf3cdd9be0fe9006484c78c574ef2028b
* Extract SparseArrayMap from QuotaController.Kweku Adams2019-11-181-0/+159
This structure can be useful in other parts of the system, so extracting it and making it more generic makes sense. Bug: 135764360 Bug: 141645789 Test: atest QuotaControllerTest Test: atest SparseArrayMapTest Change-Id: I2aeb3ea53e3dc2ec00667a0a2ccdb112cf562377