Home
last modified time | relevance | path

Searched refs:alarmReason (Results 1 – 2 of 2) sorted by relevance

/packages/modules/DeviceLock/DeviceLockController/src/com/android/devicelockcontroller/
DWorkManagerExceptionHandler.java108 final @AlarmReason int alarmReason = bundle.getInt(ALARM_REASON, -1 /* undefined */); in onReceive() local
109 if (alarmReason < 0) { in onReceive()
114 + alarmReason); in onReceive()
125 return getCheckInFuture(context, alarmReason); in onReceive()
145 @AlarmReason int alarmReason) { in getCheckInFuture() argument
153 switch (alarmReason) { in getCheckInFuture()
213 public static void scheduleAlarm(Context context, @AlarmReason int alarmReason) { in scheduleAlarm() argument
217 bundle.putInt(ALARM_REASON, alarmReason); in scheduleAlarm()
225 LogUtil.i(TAG, "Alarm scheduled, reason: " + alarmReason); in scheduleAlarm()
232 public void scheduleAlarmAndTerminate(Context context, @AlarmReason int alarmReason) { in scheduleAlarmAndTerminate() argument
[all …]
/packages/modules/DeviceLock/DeviceLockController/tests/robolectric/src/com/android/devicelockcontroller/receivers/
DWorkFailureAlarmReceiverTest.java163 private Intent getIntentForAlarmReason(@AlarmReason int alarmReason) { in getIntentForAlarmReason() argument
167 bundle.putInt(ALARM_REASON, alarmReason); in getIntentForAlarmReason()
173 @AlarmReason int alarmReason) { in sendBroadcastToWorkFailureAlarmReceiver()
177 getIntentForAlarmReason(alarmReason), in sendBroadcastToWorkFailureAlarmReceiver()