/frameworks/base/services/usage/java/com/android/server/usage/ |
D | AppTimeLimitController.java | 230 public void onLimitReached(int observerId, @UserIdInt int userId, long timeLimit, in onLimitReached() argument 736 long timeLimit, PendingIntent callbackIntent, @UserIdInt int userId) { in addAppUsageObserver() argument 737 if (timeLimit < getMinTimeLimit()) { in addAppUsageObserver() 754 group = new AppUsageGroup(user, observerApp, observerId, observed, timeLimit, in addAppUsageObserver() 759 Slog.d(TAG, "addObserver " + observed + " for " + timeLimit); in addAppUsageObserver() 791 long timeLimit, long sessionThresholdTime, in addUsageSessionObserver() argument 794 if (timeLimit < getMinTimeLimit()) { in addUsageSessionObserver() 811 group = new SessionUsageGroup(user, observerApp, observerId, observed, timeLimit, in addUsageSessionObserver() 844 long timeLimit, long timeUsed, PendingIntent callbackIntent, in addAppUsageLimitObserver() argument 846 if (timeLimit < getMinTimeLimit()) { in addAppUsageLimitObserver() [all …]
|
D | UsageStatsService.java | 194 public void onLimitReached(int observerId, int userId, long timeLimit, in onStart() 199 intent.putExtra(UsageStatsManager.EXTRA_TIME_LIMIT, timeLimit); in onStart()
|
/frameworks/base/core/java/android/app/usage/ |
D | UsageStatsManager.java | 648 long timeLimit, @NonNull TimeUnit timeUnit, @NonNull PendingIntent callbackIntent) { in registerAppUsageObserver() argument 651 timeUnit.toMillis(timeLimit), callbackIntent, mContext.getOpPackageName()); in registerAppUsageObserver() 716 @NonNull String[] observedEntities, @NonNull Duration timeLimit, in registerUsageSessionObserver() argument 722 timeLimit.toMillis(), sessionThresholdTime.toMillis(), in registerUsageSessionObserver() 797 @NonNull Duration timeLimit, @NonNull Duration timeUsed, in registerAppUsageLimitObserver() argument 801 timeLimit.toMillis(), timeUsed.toMillis(), callbackIntent, in registerAppUsageLimitObserver()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/usage/ |
D | AppTimeLimitControllerTests.java | 99 public void onLimitReached(int observerId, int userId, long timeLimit, 1070 private void addAppUsageObserver(int observerId, String[] packages, long timeLimit) { in addAppUsageObserver() argument 1071 mController.addAppUsageObserver(UID, observerId, packages, timeLimit, null, USER_ID); in addAppUsageObserver() 1074 private void addUsageSessionObserver(int observerId, String[] packages, long timeLimit, in addUsageSessionObserver() argument 1076 mController.addUsageSessionObserver(UID, observerId, packages, timeLimit, sessionThreshold, in addUsageSessionObserver() 1080 private void addAppUsageLimitObserver(int observerId, String[] packages, long timeLimit, in addAppUsageLimitObserver() argument 1082 mController.addAppUsageLimitObserver(UID, observerId, packages, timeLimit, timeUsed, in addAppUsageLimitObserver()
|
/frameworks/base/tests/net/java/com/android/server/ |
D | ConnectivityServiceTest.java | 3580 private void assertTimeLimit(String descr, long timeLimit, Runnable fn) { in assertTimeLimit() argument 3582 String msg = String.format("%s: took %dms, limit was %dms", descr, timeTaken, timeLimit); in assertTimeLimit() 3584 assertTrue(msg, timeTaken <= timeLimit); in assertTimeLimit()
|