Home
last modified time | relevance | path

Searched refs:getTimeLimitMs (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/usage/
DAppTimeLimitControllerTests.java273 mController.getAppUsageGroup(UID, OBS_ID1).getTimeLimitMs() == TIME_10_MIN); in testAppUsageObserver_ObserverReAdd()
285 mController.getSessionUsageGroup(UID, OBS_ID1).getTimeLimitMs() == TIME_10_MIN); in testUsageSessionObserver_ObserverReAdd()
297 getAppUsageLimitObserver(UID, OBS_ID1).getTimeLimitMs() == TIME_10_MIN); in testAppUsageLimitObserver_ObserverReAdd()
320 assertEquals(TIME_10_MIN, appUsageGroup.getTimeLimitMs()); in testAllObservers_ExclusiveObserverIds()
321 assertEquals(TIME_30_MIN, sessionUsageGroup.getTimeLimitMs()); in testAllObservers_ExclusiveObserverIds()
322 assertEquals(TIME_10_MIN, appUsageLimitGroup.getTimeLimitMs()); in testAllObservers_ExclusiveObserverIds()
337 long timeRemaining = group.getTimeLimitMs() - group.getUsageTimeMs(); in testAppUsageObserver_Accumulation()
344 timeRemaining = group.getTimeLimitMs() - group.getUsageTimeMs(); in testAppUsageObserver_Accumulation()
356 assertEquals(0, group.getTimeLimitMs() - group.getUsageTimeMs()); in testAppUsageObserver_Accumulation()
372 long timeRemaining = group.getTimeLimitMs() - group.getUsageTimeMs(); in testUsageSessionObserver_Accumulation()
[all …]
/frameworks/base/services/usage/java/com/android/server/usage/
DAppTimeLimitController.java269 public long getTimeLimitMs() { return mTimeLimitMs; } in getTimeLimitMs() method in AppTimeLimitController.UsageGroup