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.java293 mController.getAppUsageGroup(UID, OBS_ID1).getTimeLimitMs() == TIME_10_MIN); in testAppUsageObserver_ObserverReAdd()
305 mController.getSessionUsageGroup(UID, OBS_ID1).getTimeLimitMs() == TIME_10_MIN); in testUsageSessionObserver_ObserverReAdd()
317 getAppUsageLimitObserver(UID, OBS_ID1).getTimeLimitMs() == TIME_10_MIN); in testAppUsageLimitObserver_ObserverReAdd()
340 assertEquals(TIME_10_MIN, appUsageGroup.getTimeLimitMs()); in testAllObservers_ExclusiveObserverIds()
341 assertEquals(TIME_30_MIN, sessionUsageGroup.getTimeLimitMs()); in testAllObservers_ExclusiveObserverIds()
342 assertEquals(TIME_10_MIN, appUsageLimitGroup.getTimeLimitMs()); in testAllObservers_ExclusiveObserverIds()
357 long timeRemaining = group.getTimeLimitMs() - group.getUsageTimeMs(); in testAppUsageObserver_Accumulation()
364 timeRemaining = group.getTimeLimitMs() - group.getUsageTimeMs(); in testAppUsageObserver_Accumulation()
376 assertEquals(0, group.getTimeLimitMs() - group.getUsageTimeMs()); in testAppUsageObserver_Accumulation()
392 long timeRemaining = group.getTimeLimitMs() - group.getUsageTimeMs(); in testUsageSessionObserver_Accumulation()
[all …]
/frameworks/base/services/usage/java/com/android/server/usage/
DAppTimeLimitController.java275 public long getTimeLimitMs() { return mTimeLimitMs; } in getTimeLimitMs() method in AppTimeLimitController.UsageGroup