summaryrefslogtreecommitdiff
path: root/core/java/android/util/SparseDoubleArray.java
Commit message (Collapse)AuthorAgeFilesLines
* Exempt certain app behaviors for their background battery usageJing Ji2022-01-251-0/+14
| | | | | | | | | | | If the app is hosting media playback or location foreground services, or has active media session, the background battery usage during that will be excluded from the abusive background battery usage monitoring. Bug: 200326767 Bug: 203105544 Test: atest FrameworksMockingServicesTests:BackgroundRestrictionTest Change-Id: I7ddeffe3490608ee3f005af6f4722270756085a3
* Add a tracker on background current drains for each uidJing Ji2022-01-251-0/+23
| | | | | | | | | | On detecting excessive battery usage of a background uid, we may move the background restriction of the apps running in this uid to more restrictive levels. Bug: 200326767 Test: atest FrameworksMockingServicesTests:BackgroundRestrictionTest Change-Id: I6c2d41e44367a283d8aa9491be683018a80a810c
* Merge "Introduce modem element to power_profile.xml"Michael Wachenschwanz2022-01-211-1/+16
|\
| * Introduce modem element to power_profile.xmlMichael Wachenschwanz2022-01-111-1/+16
| | | | | | | | | | | | | | | | | | | | Also, introduce ModemPowerProfile to handle the data in the modem element. Bug: 207697945 Test: atest PowerProfileTest Change-Id: I6f692106309644a1b9a6d4ad2adc9eb08a598b26
* | Add SparseLongArray.incrementValue()Dmitri Plotnikov2022-01-191-1/+1
|/ | | | | | | | | | | | | This method is used for accumulation of long values: if the key does not exist, one is created. If one already exists, the passed value is added to the previous value. This method is similar to the existing SparseDoubleArray.incrementValue() method Bug: 215427055 Test: atest FrameworksCoreTests:SparseLongArrayTest Change-Id: I771d9bc2bdd12ca4260b20186ced70f5862b6f56
* SparseDoubleArrayAdam Bookatz2021-03-191-0/+166
Introduces a SparseDoubleArray class. It is based on a SparseLongArray, storing the double values in the bits of the long in the SparseLongArray. This is a hidden class. Not all long-term desired features of SparseDoubleArray have necessarily been implemented here; only the ones needed right now have been written. Bug: 182845832 Test: atest BatteryStatsTests Test: atest FrameworksCoreTests:android.util.SparseDoubleArrayTest Change-Id: Id68b22328f2660839e2005990766d99140b00c16