Home
last modified time | relevance | path

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

/frameworks/base/services/usage/java/com/android/server/usage/
DAppTimeLimitController.java105 public void onLimitReached(int observerId, @UserIdInt int userId, long timeLimit, in onLimitReached() argument
113 long timeLimit; field in AppTimeLimitController.TimeLimitGroup
192 public void addObserver(int requestingUid, int observerId, String[] packages, long timeLimit, in addObserver() argument
195 if (timeLimit < getMinTimeLimit()) { in addObserver()
213 group.timeLimit = timeLimit; in addObserver()
214 group.timeRemaining = group.timeLimit; in addObserver()
225 Slog.d(TAG, "addObserver " + packages + " for " + timeLimit); in addObserver()
355 mListener.onLimitReached(group.observerId, group.userId, group.timeLimit, in informListener()
356 group.timeLimit - group.timeRemaining, group.callbackIntent); in informListener()
474 pw.print(" timeLimit="); pw.print(group.timeLimit); in dump()
DUsageStatsService.java168 (observerId, userId, timeLimit, timeElapsed, callbackIntent) -> { in onStart()
171 intent.putExtra(UsageStatsManager.EXTRA_TIME_LIMIT, timeLimit); in onStart()
/frameworks/base/services/tests/servicestests/src/com/android/server/usage/
DAppTimeLimitControllerTests.java92 public void onLimitReached(int observerId, int userId, long timeLimit, long timeElapsed,
158 mController.getObserverGroup(OBS_ID1, USER_ID).timeLimit == TIME_10_MIN); in testObserverReAdd()
307 private void addObserver(int observerId, String[] packages, long timeLimit) { in addObserver() argument
308 mController.addObserver(UID, observerId, packages, timeLimit, null, USER_ID); in addObserver()
/frameworks/base/core/java/android/app/usage/
DUsageStatsManager.java598 public void registerAppUsageObserver(int observerId, @NonNull String[] packages, long timeLimit, in registerAppUsageObserver() argument
601 mService.registerAppUsageObserver(observerId, packages, timeUnit.toMillis(timeLimit), in registerAppUsageObserver()
/frameworks/base/tests/net/java/com/android/server/
DConnectivityServiceTest.java2929 private void assertTimeLimit(String descr, long timeLimit, Runnable fn) { in assertTimeLimit() argument
2931 String msg = String.format("%s: took %dms, limit was %dms", descr, timeTaken, timeLimit); in assertTimeLimit()
2933 assertTrue(msg, timeTaken <= timeLimit); in assertTimeLimit()