/frameworks/libs/net/common/testutils/hostdevice/com/android/testutils/ |
D | MiscAsserts.kt | 90 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/ |
D | AppTimeLimitController.java | 236 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 …]
|
D | UsageStatsService.java | 258 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/ |
D | QualManager.cpp | 28 QualManager::Watcher::Watcher(int32_t timeLimit) in Watcher() argument 30 mTimeLimit(timeLimit * 1000000LL) // timeLimit ms in Watcher()
|
D | QualManager.h | 40 Watcher(int32_t timeLimit);
|
/frameworks/base/core/java/android/app/usage/ |
D | UsageStatsManager.java | 802 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/ |
D | AppTimeLimitControllerTests.java | 112 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/ |
D | IncrementalService.h | 408 bool checkUidReadTimeouts(StorageId storage, IfsState state, Clock::time_point timeLimit);
|
D | IncrementalService.cpp | 1408 Clock::time_point timeLimit) { in checkUidReadTimeouts() argument 1409 if (Clock::now() >= timeLimit) { in checkUidReadTimeouts() 1423 const auto timeLeft = timeLimit - Clock::now(); in checkUidReadTimeouts()
|