History log of /frameworks/base/services/tests/servicestests/src/com/android/server/usage/AppTimeLimitControllerTests.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
c870309921dab30893f26409625058f0eddf5a18 02-May-2018 Michael Wachenschwanz <mwachens@google.com> Add limits to App Usage Observer Api

Added a minimum time limit for App Time Limit Observers and a maximum
number of observers an app can register to AppTimeLimitController

Also fix small bug with mDpmInternal initialization

Change-Id: I8c0861d79711149f3ecd92ba4660f7b207e9b921
Fixes: 78890515
Fixes: 79230583
Test: atest AppTimeLimitController
Test: atest cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/ProfileOwnerTest.java#testAppUsageObserver
/frameworks/base/services/tests/servicestests/src/com/android/server/usage/AppTimeLimitControllerTests.java
62ec27e97f68513c5637383fb72de469c5e903c1 11-Mar-2018 Amith Yamasani <yamasani@google.com> App Time Limits API in UsageStats

Allow setting groups of apps to control usage time limits on.
Applies only to activity time in the foreground.

Updated UsageStatsTest app to be able to add an observer for
a 30 second timeout across multiple comma separated package
names.

Bug: 74335821
Test: atest FrameworksServicesTests:AppTimeLimitControllerTests
Install and run frameworks/base/tests/UsageStatsTest

Change-Id: I677c30b4f211f7acf72c9766df3d8c1ac56a4b4e
/frameworks/base/services/tests/servicestests/src/com/android/server/usage/AppTimeLimitControllerTests.java