summaryrefslogtreecommitdiff
path: root/tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp
diff options
context:
space:
mode:
authorVarun Shah <varunshah@google.com>2019-01-11 15:50:54 -0800
committerVarun Shah <varunshah@google.com>2019-01-23 20:30:25 -0800
commit2546cef56cdf8767c4bb600251aed8c15dd6a7ae (patch)
treee7e029bf221c31709f9f24791a4565c527051dda /tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp
parent203445c85380a750a10cbbd2a57a0d87f382922e (diff)
Added APIs for App Usage Limits.
Added a new AppUsageLimit group observer which follows the same pattern as other UsageGroups. This specific observer allows the launcher to query for the AppUsageLimit, available via the new LauncherApps API below. The observer can be registered and unregistered via the respective new APIs in UsageStats. LauncherApps has a new API which allows it to get the AppUsageLimit for a specified package and user, initally set via the API in UsageStats. This new API allows the launcher to query specifics about the limit such as how much usage time the limit has, and how much total usage time is remaining. Bug: 117409586 Test: atest FrameworksServicesTests:AppTimeLimitControllerTests Test: atest android.app.usage.cts.UsageStatsTest#testObserveUsagePermissionForRegisterObserver Test: atest android.app.usage.cts.UsageStatsTest#testObserveUsagePermissionForUnregisterObserver Test: manual (mmma frameworks/base/tests/UsageStatsTest/) Change-Id: Ifaffab629409e9191e40404a949c8df70bd3f7cb
Diffstat (limited to 'tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp')
0 files changed, 0 insertions, 0 deletions