/packages/apps/TV/src/com/android/tv/dvr/ |
D | DvrScheduleManager.java | 122 for (ScheduledRecording schedule : scheduledRecordings) { in DvrScheduleManager() 123 if (!schedule.isNotStarted() && !schedule.isInProgress()) { in DvrScheduleManager() 127 Utils.getTvInputInfoForInputId(mContext, schedule.getInputId()); in DvrScheduleManager() 129 input != null, TAG, "Input was removed for : %s", schedule)) { in DvrScheduleManager() 131 mInputScheduleMap.remove(schedule.getInputId()); in DvrScheduleManager() 132 mInputConflictInfoMap.remove(schedule.getInputId()); in DvrScheduleManager() 141 schedules.add(schedule); in DvrScheduleManager() 153 for (ScheduledRecording schedule : scheduledRecordings) { in DvrScheduleManager() 155 Utils.getTvInputInfoForInputId(mContext, schedule.getInputId()); in DvrScheduleManager() 158 mInputScheduleMap.remove(schedule.getInputId()); in DvrScheduleManager() [all …]
|
D | DvrManager.java | 202 ScheduledRecording schedule; in addSchedule() local 204 schedule = in addSchedule() 212 mDataManager.addScheduledRecording(schedule); in addSchedule() 213 return schedule; in addSchedule() 238 public void addSchedule(ScheduledRecording schedule) { in addSchedule() argument 240 mDataManager.addScheduledRecording(schedule); in addSchedule() 374 for (ScheduledRecording schedule : schedules) { in updateSeriesRecording() 375 if (schedule.isNotStarted()) { in updateSeriesRecording() 376 schedulesToRemove.add(schedule); in updateSeriesRecording() 377 } else if (schedule.isInProgress() in updateSeriesRecording() [all …]
|
/packages/apps/TV/src/com/android/tv/dvr/recorder/ |
D | InputTaskScheduler.java | 165 ScheduledRecording schedule, in InputTaskScheduler() 173 schedule, in InputTaskScheduler() 185 public void addSchedule(ScheduledRecording schedule) { in addSchedule() argument 186 mHandler.sendMessage(mHandler.obtainMessage(MSG_ADD_SCHEDULED_RECORDING, schedule)); in addSchedule() 190 void handleAddSchedule(ScheduledRecording schedule) { in handleAddSchedule() argument 191 if (mPendingRecordings.get(schedule.getId()) != null in handleAddSchedule() 192 || mWaitingSchedules.containsKey(schedule.getId())) { in handleAddSchedule() 195 mWaitingSchedules.put(schedule.getId(), schedule); in handleAddSchedule() local 201 public void removeSchedule(ScheduledRecording schedule) { in removeSchedule() argument 202 mHandler.sendMessage(mHandler.obtainMessage(MSG_REMOVE_SCHEDULED_RECORDING, schedule)); in removeSchedule() [all …]
|
D | RecordingScheduler.java | 235 for (ScheduledRecording schedule : schedules) { in onScheduledRecordingRemoved() 236 InputTaskScheduler inputTaskScheduler = mInputSchedulerMap.get(schedule.getInputId()); in onScheduledRecordingRemoved() 238 inputTaskScheduler.removeSchedule(schedule); in onScheduledRecordingRemoved() 254 for (ScheduledRecording schedule : schedules) { in onScheduledRecordingStatusChanged() 255 InputTaskScheduler inputTaskScheduler = mInputSchedulerMap.get(schedule.getInputId()); in onScheduledRecordingStatusChanged() 257 inputTaskScheduler.updateSchedule(schedule); in onScheduledRecordingStatusChanged() 265 for (ScheduledRecording schedule : schedules) { in handleScheduleChange() 266 if (schedule.getState() == ScheduledRecording.STATE_RECORDING_NOT_STARTED) { in handleScheduleChange() 267 if (startsWithin(schedule, SOON_DURATION_IN_MS)) { in handleScheduleChange() 268 scheduleRecordingSoon(schedule); in handleScheduleChange() [all …]
|
D | RecordingTask.java | 394 private void handleUpdateSchedule(ScheduledRecording schedule) { in handleUpdateSchedule() argument 395 mScheduledRecording = schedule; in handleUpdateSchedule() 397 if (schedule.getEndTimeMs() != mScheduledRecording.getEndTimeMs()) { in handleUpdateSchedule() 399 mRecordingSession.setEndTimeMs(schedule.getEndTimeMs()); in handleUpdateSchedule() 403 if (!sendEmptyMessageAtAbsoluteTime(MSG_STOP_RECORDING, schedule.getEndTimeMs())) { in handleUpdateSchedule() 473 ScheduledRecording schedule = in updateRecordingState() 475 if (schedule == null) { in updateRecordingState() 483 ScheduledRecording.buildFrom(schedule).setState(state); in updateRecordingState() 514 ScheduledRecording schedule = in addRecordedProgramId() 516 if (schedule == null) { in addRecordedProgramId() [all …]
|
/packages/apps/TV/src/com/android/tv/dvr/provider/ |
D | DvrDbSync.java | 118 for (ScheduledRecording schedule : schedules) { 119 addProgramIdToCheckIfNeeded(schedule); 126 for (ScheduledRecording schedule : schedules) { 127 mProgramIdQueue.remove(schedule.getProgramId()); 133 for (ScheduledRecording schedule : schedules) { 134 mProgramIdQueue.remove(schedule.getProgramId()); 135 addProgramIdToCheckIfNeeded(schedule); 219 for (ScheduledRecording schedule : mDataManager.getAvailableScheduledRecordings()) { in onProgramsUpdated() 220 addProgramIdToCheckIfNeeded(schedule); in onProgramsUpdated() 230 private void addProgramIdToCheckIfNeeded(ScheduledRecording schedule) { in addProgramIdToCheckIfNeeded() argument [all …]
|
/packages/apps/TV/src/com/android/tv/dvr/ui/list/ |
D | SeriesScheduleRowAdapter.java | 101 ScheduledRecording schedule = in setPrograms() local 103 if (schedule != null && !willBeKept(schedule)) { in setPrograms() 104 schedule = null; in setPrograms() 106 rows.add(new EpisodicProgramRow(mInputId, program, schedule, mHeaderRow)); in setPrograms() 148 public void onScheduledRecordingAdded(ScheduledRecording schedule) { in onScheduledRecordingAdded() argument 149 if (DEBUG) Log.d(TAG, "onScheduledRecordingAdded: " + schedule); in onScheduledRecordingAdded() 150 int index = findRowIndexByProgramId(schedule.getProgramId()); in onScheduledRecordingAdded() 154 setScheduleToRow(row, schedule); in onScheduledRecordingAdded() 161 public void onScheduledRecordingRemoved(ScheduledRecording schedule) { in onScheduledRecordingRemoved() argument 162 if (DEBUG) Log.d(TAG, "onScheduledRecordingRemoved: " + schedule); in onScheduledRecordingRemoved() [all …]
|
D | ScheduleRowAdapter.java | 172 private ScheduleRow findRowWithStartRequest(ScheduledRecording schedule) { in findRowWithStartRequest() argument 181 && row.matchSchedule(schedule)) { in findRowWithStartRequest() 269 public void onScheduledRecordingAdded(ScheduledRecording schedule) { in onScheduledRecordingAdded() argument 270 if (DEBUG) Log.d(TAG, "onScheduledRecordingAdded: " + schedule); in onScheduledRecordingAdded() 271 ScheduleRow row = findRowWithStartRequest(schedule); in onScheduledRecordingAdded() 278 addScheduleRow(schedule); in onScheduledRecordingAdded() 284 public void onScheduledRecordingRemoved(ScheduledRecording schedule) { in onScheduledRecordingRemoved() argument 285 if (DEBUG) Log.d(TAG, "onScheduledRecordingRemoved: " + schedule); in onScheduledRecordingRemoved() 286 ScheduleRow row = findRowByScheduledRecording(schedule); in onScheduledRecordingRemoved() 295 public void onScheduledRecordingUpdated(ScheduledRecording schedule, boolean conflictChange) { in onScheduledRecordingUpdated() argument [all …]
|
D | DvrHistoryRowAdapter.java | 158 public void onScheduledRecordingAdded(ScheduledRecording schedule) { in onScheduledRecordingAdded() argument 160 Log.d(TAG, "onScheduledRecordingAdded: " + schedule); in onScheduledRecordingAdded() 162 if (findRowByScheduledRecording(schedule) == null in onScheduledRecordingAdded() 163 && (schedule.getState() == ScheduledRecording.STATE_RECORDING_FINISHED in onScheduledRecordingAdded() 164 || schedule.getState() == ScheduledRecording.STATE_RECORDING_CLIPPED in onScheduledRecordingAdded() 165 || schedule.getState() == ScheduledRecording.STATE_RECORDING_FAILED)) { in onScheduledRecordingAdded() 166 addScheduleRow(schedule); in onScheduledRecordingAdded() 177 ScheduledRecording schedule = in onScheduledRecordingAdded() local 179 if (schedule == null) { in onScheduledRecordingAdded() 182 addScheduleRow(schedule); in onScheduledRecordingAdded() [all …]
|
D | ScheduleRow.java | 71 public void setSchedule(@Nullable ScheduledRecording schedule) { in setSchedule() argument 72 mSchedule = schedule; in setSchedule() 168 public boolean matchSchedule(ScheduledRecording schedule) { in matchSchedule() argument 173 return mSchedule.getChannelId() == schedule.getChannelId() in matchSchedule() 174 && mSchedule.getStartTimeMs() == schedule.getStartTimeMs() in matchSchedule() 175 && mSchedule.getEndTimeMs() == schedule.getEndTimeMs(); in matchSchedule() 177 return mSchedule.getProgramId() == schedule.getProgramId(); in matchSchedule()
|
D | ScheduleRowPresenter.java | 426 ScheduledRecording schedule = row.getSchedule(); in onBindRowViewHolder() local 428 if (mDvrManager.isConflicting(schedule) || isFailedRecording(schedule)) { in onBindRowViewHolder() 430 if (isFailedRecording(schedule)) { in onBindRowViewHolder() 434 + getErrorMessage(schedule); in onBindRowViewHolder() 451 if (isFailedRecording(schedule)) { in onBindRowViewHolder() 546 ScheduledRecording schedule = row.getSchedule(); in isInfoClickable() local 547 return schedule != null in isInfoClickable() 548 && (schedule.isNotStarted() in isInfoClickable() 549 || schedule.isInProgress() in isInfoClickable() 550 || schedule.isFinished() in isInfoClickable() [all …]
|
D | EpisodicProgramRow.java | 76 public boolean matchSchedule(ScheduledRecording schedule) { in matchSchedule() argument 77 return schedule.getType() == ScheduledRecording.TYPE_PROGRAM in matchSchedule() 78 && mProgram.getId() == schedule.getProgramId(); in matchSchedule()
|
/packages/apps/TV/src/com/android/tv/dialog/ |
D | DvrHistoryDialogFragment.java | 59 for (ScheduledRecording schedule : dataManager.getAllScheduledRecordings()) { in onCreateDialog() 60 if (!schedule.isInProgress() && !schedule.isNotStarted()) { in onCreateDialog() 61 mSchedules.add(schedule); in onCreateDialog() 75 ScheduledRecording schedule = mSchedules.get(position); in onCreateDialog() 76 setText(view, R.id.state, getStateString(schedule.getState())); in onCreateDialog() 77 setText(view, R.id.schedule_time, getRecordingTimeText(schedule)); in onCreateDialog() 82 getContext(), schedule, 0)); in onCreateDialog() 83 setText(view, R.id.channel_name, getChannelNameText(schedule)); in onCreateDialog() 110 private String getChannelNameText(ScheduledRecording schedule) { in onCreateDialog() 111 Channel channel = channelDataManager.getChannel(schedule.getChannelId()); in onCreateDialog() [all …]
|
/packages/apps/TV/src/com/android/tv/dvr/ui/ |
D | DvrConflictFragment.java | 107 for (ScheduledRecording schedule : getConflicts()) { in getConflictDescription() 108 String scheduleTitle = getScheduleTitle(schedule); in getConflictDescription() 149 private String getScheduleTitle(ScheduledRecording schedule) { in getScheduleTitle() argument 150 if (schedule.getType() == ScheduledRecording.TYPE_TIMED) { in getScheduleTitle() 154 .getChannel(schedule.getChannelId()); in getScheduleTitle() 161 return schedule.getProgramTitle(); in getScheduleTitle() 350 for (ScheduledRecording schedule : mConflicts) { in onTrackedGuidedActionClicked() 351 if (schedule.getState() == ScheduledRecording.STATE_RECORDING_IN_PROGRESS) { in onTrackedGuidedActionClicked() 352 getDvrManager().stopRecording(schedule); in onTrackedGuidedActionClicked() 354 getDvrManager().removeScheduledRecording(schedule); in onTrackedGuidedActionClicked()
|
D | DvrUiHelper.java | 581 ScheduledRecording schedule = (ScheduledRecording) dvrItem; in startDetailsActivity() local 582 recordingId = schedule.getId(); in startDetailsActivity() 583 if (schedule.getState() == ScheduledRecording.STATE_RECORDING_NOT_STARTED) { in startDetailsActivity() 585 } else if (schedule.getState() == ScheduledRecording.STATE_RECORDING_IN_PROGRESS) { in startDetailsActivity() 587 } else if (schedule.getState() == ScheduledRecording.STATE_RECORDING_FINISHED in startDetailsActivity() 588 && schedule.getRecordedProgramId() != null) { in startDetailsActivity() 589 recordingId = schedule.getRecordedProgramId(); in startDetailsActivity() 591 } else if (schedule.getState() == ScheduledRecording.STATE_RECORDING_FAILED) { in startDetailsActivity() 653 Context context, ScheduledRecording schedule, int episodeNumberStyleResId) { in getStyledTitleWithEpisodeNumber() argument 656 schedule.getProgramTitle(), in getStyledTitleWithEpisodeNumber() [all …]
|
D | DvrStopRecordingFragment.java | 72 for (ScheduledRecording schedule : schedules) { 73 if (schedule.getId() == mSchedule.getId()) { 82 for (ScheduledRecording schedule : schedules) { 83 if (schedule.getId() == mSchedule.getId() 84 && schedule.getState()
|
/packages/apps/TV/src/com/android/tv/guide/ |
D | ProgramManager.java | 145 for (ScheduledRecording schedule : scheduledRecordings) { 146 TableEntry oldEntry = getTableEntry(schedule); 152 schedule, 163 for (ScheduledRecording schedule : scheduledRecordings) { 164 TableEntry oldEntry = getTableEntry(schedule); 182 for (ScheduledRecording schedule : scheduledRecordings) { 183 TableEntry oldEntry = getTableEntry(schedule); 189 schedule, 204 for (ScheduledRecording schedule : schedules) { 205 TableEntry entry = getTableEntry(schedule);
|
/packages/apps/TV/src/com/android/tv/dvr/ui/browse/ |
D | CurrentRecordingDetailsFragment.java | 56 for (ScheduledRecording schedule : schedules) { 57 if (schedule.getId() == getRecording().getId()) { 66 for (ScheduledRecording schedule : schedules) { 67 if (schedule.getId() == getRecording().getId() 68 && schedule.getState()
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/ |
D | TestTimer.java | 88 public void schedule(TimerTask task, Date time) { in schedule() method in TestTimer 94 public void schedule(TimerTask task, Date firstTime, long period) { in schedule() method in TestTimer 99 public void schedule(TimerTask task, long delay) { in schedule() method in TestTimer 105 public void schedule(TimerTask task, long delay, long period) { in schedule() method in TestTimer
|
D | TestScheduledExecutorService.java | 87 return schedule(task, 0, TimeUnit.MILLISECONDS); in submit() 116 schedule(command, 0, TimeUnit.MILLISECONDS); in execute() 120 public ScheduledFuture<?> schedule(Runnable command, long delay, TimeUnit unit) { in schedule() method in TestScheduledExecutorService 127 public <V> ScheduledFuture<V> schedule(Callable<V> callable, long delay, TimeUnit unit) { in schedule() method in TestScheduledExecutorService
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/ |
D | AbstractZenModePreferenceController.java | 202 ScheduleCalendar schedule = ZenModeConfig.toScheduleCalendar(id); in parseAutomaticRuleEndTime() local 203 long endTimeMs = schedule.getNextChangeTime(System.currentTimeMillis()); in parseAutomaticRuleEndTime() 206 if (schedule.exitAtAlarm()) { in parseAutomaticRuleEndTime() 208 schedule.maybeSetNextAlarm(System.currentTimeMillis(), nextAlarm); in parseAutomaticRuleEndTime() 209 if (schedule.shouldExitForAlarm(endTimeMs)) { in parseAutomaticRuleEndTime()
|
D | ZenRuleSelectionDialog.java | 156 final ZenModeConfig.ScheduleInfo schedule = new ZenModeConfig.ScheduleInfo(); in defaultNewSchedule() local 157 schedule.days = ZenModeConfig.ALL_DAYS; in defaultNewSchedule() 158 schedule.startHour = 22; in defaultNewSchedule() 159 schedule.endHour = 7; in defaultNewSchedule() 164 rt.defaultConditionId = ZenModeConfig.toScheduleConditionId(schedule); in defaultNewSchedule()
|
/packages/apps/Settings/src/com/android/settings/notification/ |
D | AbstractZenModePreferenceController.java | 202 ScheduleCalendar schedule = ZenModeConfig.toScheduleCalendar(id); in parseAutomaticRuleEndTime() local 203 long endTimeMs = schedule.getNextChangeTime(System.currentTimeMillis()); in parseAutomaticRuleEndTime() 206 if (schedule.exitAtAlarm()) { in parseAutomaticRuleEndTime() 208 schedule.maybeSetNextAlarm(System.currentTimeMillis(), nextAlarm); in parseAutomaticRuleEndTime() 209 if (schedule.shouldExitForAlarm(endTimeMs)) { in parseAutomaticRuleEndTime()
|
D | ZenRuleSelectionDialog.java | 156 final ZenModeConfig.ScheduleInfo schedule = new ZenModeConfig.ScheduleInfo(); in defaultNewSchedule() local 157 schedule.days = ZenModeConfig.ALL_DAYS; in defaultNewSchedule() 158 schedule.startHour = 22; in defaultNewSchedule() 159 schedule.endHour = 7; in defaultNewSchedule() 164 rt.defaultConditionId = ZenModeConfig.toScheduleConditionId(schedule); in defaultNewSchedule()
|
/packages/apps/DeskClock/src/com/android/deskclock/uidata/ |
D | PeriodicCallbackModel.java | 112 periodicRunnable.schedule(); in addPeriodicCallback() 199 schedule(); in run() 206 schedule(); in runAndReschedule() 209 private void schedule() { in schedule() method in PeriodicCallbackModel.PeriodicRunnable
|