Home
last modified time | relevance | path

Searched refs:timeLimit (Results 1 – 9 of 9) sorted by relevance

/frameworks/libs/net/common/testutils/hostdevice/com/android/testutils/
DMiscAsserts.kt90 fun assertRunsInAtMost(descr: String, timeLimit: Long, fn: Runnable) { in assertRunsInAtMost()
91 assertRunsInAtMost(descr, timeLimit) { fn.run() } in assertRunsInAtMost()
94 fun assertRunsInAtMost(descr: String, timeLimit: Long, fn: () -> Unit) { in assertRunsInAtMost()
96 val msg = String.format("%s: took %dms, limit was %dms", descr, timeTaken, timeLimit) in assertRunsInAtMost()
97 assertTrue(timeTaken <= timeLimit, msg) in assertRunsInAtMost()
/frameworks/base/services/usage/java/com/android/server/usage/
DAppTimeLimitController.java236 public void onLimitReached(int observerId, @UserIdInt int userId, long timeLimit, in onLimitReached() argument
752 long timeLimit, PendingIntent callbackIntent, @UserIdInt int userId) { in addAppUsageObserver() argument
753 if (timeLimit < getMinTimeLimit()) { in addAppUsageObserver()
770 group = new AppUsageGroup(user, observerApp, observerId, observed, timeLimit, in addAppUsageObserver()
775 Slog.d(TAG, "addObserver " + observed + " for " + timeLimit); in addAppUsageObserver()
807 long timeLimit, long sessionThresholdTime, in addUsageSessionObserver() argument
810 if (timeLimit < getMinTimeLimit()) { in addUsageSessionObserver()
827 group = new SessionUsageGroup(user, observerApp, observerId, observed, timeLimit, in addUsageSessionObserver()
860 long timeLimit, long timeUsed, PendingIntent callbackIntent, in addAppUsageLimitObserver() argument
862 if (timeLimit < getMinTimeLimit()) { in addAppUsageLimitObserver()
[all …]
DUsageStatsService.java258 public void onLimitReached(int observerId, int userId, long timeLimit, in onStart()
263 intent.putExtra(UsageStatsManager.EXTRA_TIME_LIMIT, timeLimit); in onStart()
/frameworks/av/media/libstagefright/rtsp/
DQualManager.cpp28 QualManager::Watcher::Watcher(int32_t timeLimit) in Watcher() argument
30 mTimeLimit(timeLimit * 1000000LL) // timeLimit ms in Watcher()
DQualManager.h40 Watcher(int32_t timeLimit);
/frameworks/base/core/java/android/app/usage/
DUsageStatsManager.java802 long timeLimit, @NonNull TimeUnit timeUnit, @NonNull PendingIntent callbackIntent) { in registerAppUsageObserver() argument
805 timeUnit.toMillis(timeLimit), callbackIntent, mContext.getOpPackageName()); in registerAppUsageObserver()
870 @NonNull String[] observedEntities, @NonNull Duration timeLimit, in registerUsageSessionObserver() argument
876 timeLimit.toMillis(), sessionThresholdTime.toMillis(), in registerUsageSessionObserver()
951 @NonNull Duration timeLimit, @NonNull Duration timeUsed, in registerAppUsageLimitObserver() argument
955 timeLimit.toMillis(), timeUsed.toMillis(), callbackIntent, in registerAppUsageLimitObserver()
/frameworks/base/services/tests/servicestests/src/com/android/server/usage/
DAppTimeLimitControllerTests.java112 public void onLimitReached(int observerId, int userId, long timeLimit,
1118 private void addAppUsageObserver(int observerId, String[] packages, long timeLimit) { in addAppUsageObserver() argument
1119 mController.addAppUsageObserver(UID, observerId, packages, timeLimit, null, USER_ID); in addAppUsageObserver()
1122 private void addUsageSessionObserver(int observerId, String[] packages, long timeLimit, in addUsageSessionObserver() argument
1124 mController.addUsageSessionObserver(UID, observerId, packages, timeLimit, sessionThreshold, in addUsageSessionObserver()
1128 private void addAppUsageLimitObserver(int observerId, String[] packages, long timeLimit, in addAppUsageLimitObserver() argument
1130 mController.addAppUsageLimitObserver(UID, observerId, packages, timeLimit, timeUsed, in addAppUsageLimitObserver()
/frameworks/base/services/incremental/
DIncrementalService.h408 bool checkUidReadTimeouts(StorageId storage, IfsState state, Clock::time_point timeLimit);
DIncrementalService.cpp1408 Clock::time_point timeLimit) { in checkUidReadTimeouts() argument
1409 if (Clock::now() >= timeLimit) { in checkUidReadTimeouts()
1423 const auto timeLeft = timeLimit - Clock::now(); in checkUidReadTimeouts()