Home
last modified time | relevance | path

Searched refs:AlarmReason (Results 1 – 3 of 3) sorted by relevance

/packages/modules/DeviceLock/DeviceLockController/src/com/android/devicelockcontroller/
DWorkManagerExceptionHandler.java76 AlarmReason.INITIAL_CHECK_IN,
77 AlarmReason.RETRY_CHECK_IN,
78 AlarmReason.RESCHEDULE_CHECK_IN,
79 AlarmReason.INITIALIZATION,
81 public @interface AlarmReason { annotation in WorkManagerExceptionHandler
108 final @AlarmReason int alarmReason = bundle.getInt(ALARM_REASON, -1 /* undefined */); in onReceive()
145 @AlarmReason int alarmReason) { in getCheckInFuture()
154 case AlarmReason.INITIAL_CHECK_IN: in getCheckInFuture()
155 case AlarmReason.INITIALIZATION: in getCheckInFuture()
158 case AlarmReason.RETRY_CHECK_IN: in getCheckInFuture()
[all …]
/packages/modules/DeviceLock/DeviceLockController/tests/robolectric/src/com/android/devicelockcontroller/receivers/
DWorkFailureAlarmReceiverTest.java41 import com.android.devicelockcontroller.WorkManagerExceptionHandler.AlarmReason;
83 sendBroadcastToWorkFailureAlarmReceiver(AlarmReason.INITIALIZATION); in onReceive_reasonInitialization_shouldCallMaybeScheduleInitialCheckIn()
101 sendBroadcastToWorkFailureAlarmReceiver(AlarmReason.INITIAL_CHECK_IN); in onReceive_reasonInitialCheckIn_shouldCallMaybeScheduleInitialCheckIn()
119 sendBroadcastToWorkFailureAlarmReceiver(AlarmReason.RETRY_CHECK_IN); in onReceive_reasonRetryCheckIn_shouldCallScheduleRetryCheckInWork()
137 sendBroadcastToWorkFailureAlarmReceiver(AlarmReason.RESCHEDULE_CHECK_IN); in onReceive_reasonRescheduleCheckIn_shouldCallNotifyNeedRescheduleCheckIn()
154 sendBroadcastToWorkFailureAlarmReceiver(AlarmReason.INITIALIZATION); in onReceive_whenProvisionReady_doesNotSchedule()
163 private Intent getIntentForAlarmReason(@AlarmReason int alarmReason) { in getIntentForAlarmReason()
173 @AlarmReason int alarmReason) { in sendBroadcastToWorkFailureAlarmReceiver()
/packages/modules/DeviceLock/DeviceLockController/src/com/android/devicelockcontroller/schedule/
DDeviceLockControllerSchedulerImpl.java24 import static com.android.devicelockcontroller.WorkManagerExceptionHandler.AlarmReason;
280 AlarmReason.INITIAL_CHECK_IN); in scheduleInitialCheckInWork()
302 AlarmReason.RETRY_CHECK_IN); in scheduleRetryCheckInWork()
346 AlarmReason.RESCHEDULE_CHECK_IN);