Home
last modified time | relevance | path

Searched refs:windowLength (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/apex/jobscheduler/service/java/com/android/server/alarm/
DAlarm.java104 public final long windowLength; field in Alarm
117 Alarm(int type, long when, long requestedWhenElapsed, long windowLength, long interval, in Alarm() argument
128 this.windowLength = windowLength; in Alarm()
129 mMaxWhenElapsed = clampPositive(requestedWhenElapsed + windowLength); in Alarm()
224 mPolicyWhenElapsed[REQUESTER_POLICY_INDEX] + windowLength); in updateWhenElapsed()
306 TimeUtils.formatDuration(windowLength, ipw); in dump()
360 proto.write(AlarmProto.WINDOW_LENGTH_MS, windowLength); in dumpDebug()
DMetricsHelper.java60 alarmStore.getCount(a -> a.windowLength == 0), in registerPuller()
101 a.windowLength == 0, in pushAlarmScheduled()
DAlarmManagerService.java1739 if (UserHandle.getAppId(a.uid) != removedAppId || a.windowLength != 0) { in refreshExactAlarmCandidates()
1942 void setImpl(int type, long triggerAtTime, long windowLength, long interval, in setImpl() argument
1997 if (windowLength == 0) { in setImpl()
1999 } else if (windowLength < 0) { in setImpl()
2002 windowLength = maxElapsed - triggerElapsed; in setImpl()
2006 if (windowLength > INTERVAL_DAY) { in setImpl()
2007 Slog.w(TAG, "Window length " + windowLength + "ms too long; limiting to 1 day"); in setImpl()
2008 windowLength = INTERVAL_DAY; in setImpl()
2009 } else if ((flags & FLAG_PRIORITIZE) == 0 && windowLength < minAllowedWindow) { in setImpl()
2014 Slog.w(TAG, "Window length " + windowLength + "ms too short; expanding to " in setImpl()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/alarm/
DAlarmStoreTest.java63 private static Alarm createAlarm(long whenElapsed, long windowLength) { in createAlarm() argument
64 return createAlarm(ELAPSED_REALTIME, whenElapsed, windowLength, 0); in createAlarm()
67 private static Alarm createWakeupAlarm(long whenElapsed, long windowLength, int flags) { in createWakeupAlarm() argument
68 return createAlarm(ELAPSED_REALTIME_WAKEUP, whenElapsed, windowLength, flags); in createWakeupAlarm()
79 private static Alarm createAlarm(int type, long whenElapsed, long windowLength, int flags) { in createAlarm() argument
80 return new Alarm(type, whenElapsed, whenElapsed, windowLength, 0, mock(PendingIntent.class), in createAlarm()
260 assertEquals(10, mAlarmStore.getCount(a -> a.windowLength == 4)); in getCount()
DAlarmTest.java55 private Alarm createDefaultAlarm(long requestedElapsed, long windowLength, int flags) { in createDefaultAlarm() argument
56 return new Alarm(ELAPSED_REALTIME, 0, requestedElapsed, windowLength, 0, in createDefaultAlarm()
DAlarmManagerServiceTest.java509 private void setPrioritizedAlarm(int type, long triggerTime, long windowLength, in setPrioritizedAlarm() argument
511 mService.setImpl(type, triggerTime, windowLength, 0, null, listener, "test", in setPrioritizedAlarm()
535 private void setTestAlarm(int type, long triggerTime, long windowLength, in setTestAlarm() argument
537 setTestAlarm(type, triggerTime, windowLength, operation, interval, flags, callingUid, in setTestAlarm()
541 private void setTestAlarm(int type, long triggerTime, long windowLength, in setTestAlarm() argument
544 mService.setImpl(type, triggerTime, windowLength, interval, operation, null, "test", flags, in setTestAlarm()
2460 assertEquals(Math.max(minAllowed, window), a.windowLength); in minWindowChangeEnabled()
2472 assertEquals(minWindow, a.windowLength); in minWindowChangeEnabled()
2482 assertEquals(window, a.windowLength); in minWindowChangeEnabled()
2501 assertEquals(window, a.windowLength); in minWindowChangeDisabled()
[all …]
/frameworks/base/apex/jobscheduler/framework/java/android/app/
DIAlarmManager.aidl33 void set(String callingPackage, int type, long triggerAtTime, long windowLength, in set() argument