summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramStore.java
diff options
context:
space:
mode:
authorRuchir Rastogi <ruchirr@google.com>2020-01-13 16:42:12 -0800
committerRuchir Rastogi <ruchirr@google.com>2020-01-15 15:39:56 -0800
commit5ea3163325927188a342f581f119654fa3ed0deb (patch)
tree0885f42e302224b1f4c0627dcae17526c772a4d9 /rs/java/android/renderscript/ProgramStore.java
parent69ab6eeddb8d07e2ca88233212cf24211eab6dc3 (diff)
Migrate DeviceCalculcatedPower pullers to new API
As part of migrating the pullers to the new API, we modify permission checks within BatteryStatsService. Previously, a Binder thread within StatsCompanionService (with statsd's calling identity) called BatteryStatsService functions, which was why statsd was assigned the BATTERY_STATS permission. Now, that call is being made from the system process Background thread. Because enforceCallingPermission outside of Binder threads, we switched to enforceCallingOrSelfPermission. Test: m -j Test: adb shell cmd stats pull-source 10039 Test: adb shell cmd stats pull-source 10040 Test: adb shell cmd stats pull-source 10041 Test: atest CtsStatsdHostTestCases:UidAtomTests#testDeviceCalculatedPowerUse Test: atest CtsStatsdHostTestCases:UidAtomTests#testDeviceCalculatedPowerBlameUid Test: atest CtsStatsdHostTestCases:BatteryStatsValidationTests#testPowerUse Bug: 145565211 Change-Id: Ie009e6eead3e48ecee6b40d9a38c9d571d4d4117
Diffstat (limited to 'rs/java/android/renderscript/ProgramStore.java')
0 files changed, 0 insertions, 0 deletions