commit | afbccb7d37647f6da61ebcc52a598c7a9f54bc3f | [log] [tgz] |
---|---|---|
author | Amith Yamasani <yamasani@google.com> | Mon Nov 27 10:44:24 2017 -0800 |
committer | Amith Yamasani <yamasani@google.com> | Fri Dec 01 14:00:37 2017 -0800 |
tree | 845f2eb7b6a7be5a61e85d7cdc0b65af9bcfe54c | |
parent | 577e40090282638cb2df5ba4738f4ba1030a2c53 [diff] |
Expose App Standby APIs for apps and system Allow apps to query their own standby bucket. Allow privileged apps with PACKAGE_USAGE_STATS permission to query apps. Allow privileged apps with CHANGE_APP_IDLE_STATE to set the standby state for apps, but not for themselves. Removed AppStandby class and moved constants into UsageStatsManager. Bug: 63527785 Test: cts-tradefed run cts-dev -m CtsAppUsageHostTestCases Change-Id: I3c1c20f6ecb6d54e248233696039286b243d663c