Home
last modified time | relevance | path

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

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/alarm/
DAlarmManagerServiceTest.java3463 assertTrue(quotaReserve.hasQuota(package1, user1, time));
3464 assertFalse(quotaReserve.hasQuota("some.other.package", 21, time));
3465 assertFalse(quotaReserve.hasQuota(package1, 321, time));
3468 assertFalse(quotaReserve.hasQuota(package1, user1, startTime + quotaDuration + 1));
3469 assertFalse(quotaReserve.hasQuota(package1, user1, startTime + quotaDuration + 435421));
3480 assertTrue(quotaReserve.hasQuota(package1, user1, startTime + i));
3486 assertFalse(quotaReserve.hasQuota(package1, user1, time));
3503 assertTrue(quotaReserve.hasQuota(packages[0], userId, startTime + 1));
3504 assertTrue(quotaReserve.hasQuota(packages[1], userId, startTime + 1));
3508 assertFalse(quotaReserve.hasQuota(packages[0], userId, startTime + 1));
[all …]
/frameworks/base/apex/jobscheduler/service/java/com/android/server/alarm/
DAlarmManagerService.java425 boolean hasQuota(String packageName, int userId, long triggerElapsed) { in hasQuota() method in AlarmManagerService.TemporaryQuotaReserve
2520 if (mTemporaryQuotaReserve.hasQuota(sourcePackage, sourceUserId, nowElapsed)) { in adjustDeliveryTimeBasedOnBucketLocked()