diff options
author | Ruchir Rastogi <ruchirr@google.com> | 2020-01-13 16:42:12 -0800 |
---|---|---|
committer | Ruchir Rastogi <ruchirr@google.com> | 2020-01-15 15:39:56 -0800 |
commit | 5ea3163325927188a342f581f119654fa3ed0deb (patch) | |
tree | 0885f42e302224b1f4c0627dcae17526c772a4d9 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | 69ab6eeddb8d07e2ca88233212cf24211eab6dc3 (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/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions