Home
last modified time | relevance | path

Searched refs:observerId (Results 1 – 3 of 3) sorted by relevance

/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DAppUsageObserverTest.java103 for (int observerId = 0; observerId < OBSERVER_LIMIT; observerId++) { in registerAppUsageObserver_exceedsObserversLimit_throwsException()
105 observerId, sPackages, 60, TimeUnit.SECONDS, sPendingIntent); in registerAppUsageObserver_exceedsObserversLimit_throwsException()
113 for (int observerId = 0; observerId < OBSERVER_LIMIT; observerId++) { in registerAppUsageObserver_exceedsObserversLimit_throwsException()
114 sUsageStatsManager.unregisterAppUsageObserver(observerId); in registerAppUsageObserver_exceedsObserversLimit_throwsException()
125 for (int observerId = 0; observerId < OBSERVER_LIMIT; observerId++) { in registerUsageSessionObserver_exceedsObserversLimit_throwsException()
127 observerId, sPackages, DURATION_SIXTY_SECS, DURATION_TEN_SECS, in registerUsageSessionObserver_exceedsObserversLimit_throwsException()
136 for (int observerId = 0; observerId < OBSERVER_LIMIT; observerId++) { in registerUsageSessionObserver_exceedsObserversLimit_throwsException()
/cts/tests/tests/content/src/android/content/pm/cts/
DLauncherAppsTest.java687 private void registerObserver(int observerId, Duration timeLimit, Duration timeUsed) { in registerObserver() argument
690 observerId, SETTINGS_PACKAGE_GROUP, timeLimit, timeUsed, in registerObserver()
696 private void unregisterObserver(int observerId) { in unregisterObserver() argument
698 mUsageStatsManager.unregisterAppUsageLimitObserver(observerId)); in unregisterObserver()
/cts/tests/tests/app.usage/src/android/app/usage/cts/
DUsageStatsTest.java1799 final int observerId = 0; in testObserveUsagePermissionForRegisterObserver() local
1803 mUsageStatsManager.registerAppUsageObserver(observerId, packages, in testObserveUsagePermissionForRegisterObserver()
1811 mUsageStatsManager.registerUsageSessionObserver(observerId, packages, in testObserveUsagePermissionForRegisterObserver()
1819 mUsageStatsManager.registerAppUsageLimitObserver(observerId, packages, in testObserveUsagePermissionForRegisterObserver()
1829 final int observerId = 0; in testObserveUsagePermissionForUnregisterObserver() local
1832 mUsageStatsManager.unregisterAppUsageObserver(observerId); in testObserveUsagePermissionForUnregisterObserver()
1839 mUsageStatsManager.unregisterUsageSessionObserver(observerId); in testObserveUsagePermissionForUnregisterObserver()
1846 mUsageStatsManager.unregisterAppUsageLimitObserver(observerId); in testObserveUsagePermissionForUnregisterObserver()