Home
last modified time | relevance | path

Searched refs:CommandHandler (Results 1 – 9 of 9) sorted by relevance

/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/impl/background/systemalarm/
DSystemAlarmDispatcherTest.java166 final Intent intent = CommandHandler.createScheduleWorkIntent(mContext, workSpecId); in testSchedule()
180 final Intent intent = CommandHandler.createDelayMetIntent(mContext, workSpecId); in testDelayMet_success()
199 final Intent delayMet = CommandHandler.createDelayMetIntent(mContext, workSpecId); in testDelayMet_withStop()
200 final Intent stopWork = CommandHandler.createStopWorkIntent(mContext, workSpecId); in testDelayMet_withStop()
224 final Intent scheduleWork = CommandHandler.createDelayMetIntent(mContext, workSpecId); in testDelayMet_withStopWhenCancelled()
225 final Intent stopWork = CommandHandler.createStopWorkIntent(mContext, workSpecId); in testDelayMet_withStopWhenCancelled()
255 final Intent scheduleWork = CommandHandler.createScheduleWorkIntent(mContext, workSpecId); in testSchedule_withConstraints()
274 final Intent constraintChanged = CommandHandler.createConstraintsChangedIntent(mContext); in testConstraintsChanged_withNoConstraints()
292 final Intent constraintChanged = CommandHandler.createConstraintsChangedIntent(mContext); in testConstraintsChangedMarkedNotScheduled_withNoConstraints()
312 final Intent constraintChanged = CommandHandler.createConstraintsChangedIntent(mContext); in testConstraintsChanged_withConstraint()
[all …]
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/background/systemalarm/
DSystemAlarmDispatcher.java60 private final CommandHandler mCommandHandler;
79 mCommandHandler = new CommandHandler(mContext); in SystemAlarmDispatcher()
110 CommandHandler.createExecutionCompletedIntent( in onExecuted()
137 if (CommandHandler.ACTION_CONSTRAINTS_CHANGED.equals(action) in add()
138 && hasIntentWithAction(CommandHandler.ACTION_CONSTRAINTS_CHANGED)) { in add()
DDelayMetCommandHandler.java93 .startTimer(mWorkSpecId, CommandHandler.WORK_PROCESSING_TIME_IN_MS, this); in onAllConstraintsMet()
116 Intent intent = CommandHandler.createConstraintsChangedIntent(mContext); in onExecuted()
169 Intent stopWork = CommandHandler.createStopWorkIntent(mContext, mWorkSpecId); in stopWork()
178 Intent reschedule = CommandHandler.createScheduleWorkIntent(mContext, in stopWork()
DSystemAlarmScheduler.java53 Intent cancelIntent = CommandHandler.createStopWorkIntent(mContext, workSpecId); in cancel()
63 Intent scheduleIntent = CommandHandler.createScheduleWorkIntent(mContext, workSpec.id); in scheduleWorkSpec()
DAlarms.java103 Intent delayMet = CommandHandler.createDelayMetIntent(context, workSpecId); in cancelExactAlarm()
122 Intent delayMet = CommandHandler.createDelayMetIntent(context, workSpecId); in setExactAlarm()
DCommandHandler.java43 public class CommandHandler implements ExecutionListener { class
116 CommandHandler(@NonNull Context context) { in CommandHandler() method in CommandHandler
218 Intent constraintsUpdate = CommandHandler.createConstraintsChangedIntent(mContext); in handleScheduleWorkIntent()
DRescheduleReceiver.java60 Intent reschedule = CommandHandler.createRescheduleIntent(context); in onReceive()
DConstraintProxy.java36 Intent constraintChangedIntent = CommandHandler.createConstraintsChangedIntent(context); in onReceive()
DConstraintsCommandHandler.java97 Intent intent = CommandHandler.createDelayMetIntent(mContext, workSpecId); in handleConstraintsChanged()