/packages/apps/TV/src/com/android/tv/dvr/ |
D | DvrScheduleManager.java | 124 for (ScheduledRecording schedule : scheduledRecordings) { in DvrScheduleManager() 125 if (!schedule.isNotStarted() && !schedule.isInProgress()) { in DvrScheduleManager() 129 Utils.getTvInputInfoForInputId(mContext, schedule.getInputId()); in DvrScheduleManager() 131 input != null, TAG, "Input was removed for : %s", schedule)) { in DvrScheduleManager() 133 mInputScheduleMap.remove(schedule.getInputId()); in DvrScheduleManager() 134 mInputConflictInfoMap.remove(schedule.getInputId()); in DvrScheduleManager() 143 schedules.add(schedule); in DvrScheduleManager() 155 for (ScheduledRecording schedule : scheduledRecordings) { in DvrScheduleManager() 157 Utils.getTvInputInfoForInputId(mContext, schedule.getInputId()); in DvrScheduleManager() 160 mInputScheduleMap.remove(schedule.getInputId()); in DvrScheduleManager() [all …]
|
D | DvrManager.java | 221 ScheduledRecording schedule; in addSchedule() local 223 schedule = in addSchedule() 233 mDataManager.addScheduledRecording(schedule); in addSchedule() 234 return schedule; in addSchedule() 259 public void addSchedule(ScheduledRecording schedule) { in addSchedule() argument 261 mDataManager.addScheduledRecording(schedule); in addSchedule() 395 for (ScheduledRecording schedule : schedules) { in updateSeriesRecording() 396 if (schedule.isNotStarted()) { in updateSeriesRecording() 397 schedulesToRemove.add(schedule); in updateSeriesRecording() 398 } 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 | 127 for (ScheduledRecording schedule : schedules) { 128 addProgramIdToCheckIfNeeded(schedule); 135 for (ScheduledRecording schedule : schedules) { 136 mProgramIdQueue.remove(schedule.getProgramId()); 142 for (ScheduledRecording schedule : schedules) { 143 mProgramIdQueue.remove(schedule.getProgramId()); 144 addProgramIdToCheckIfNeeded(schedule); 248 for (ScheduledRecording schedule : mDataManager.getAvailableScheduledRecordings()) { in onProgramsUpdated() 249 addProgramIdToCheckIfNeeded(schedule); in onProgramsUpdated() 259 private void addProgramIdToCheckIfNeeded(ScheduledRecording schedule) { in addProgramIdToCheckIfNeeded() argument [all …]
|
/packages/apps/TV/src/com/android/tv/dvr/ui/list/ |
D | SeriesScheduleRowAdapter.java | 104 ScheduledRecording schedule = in setPrograms() local 106 if (schedule != null && !willBeKept(schedule)) { in setPrograms() 107 schedule = null; in setPrograms() 109 rows.add(new EpisodicProgramRow(mInputId, program, schedule, mHeaderRow)); in setPrograms() 151 public void onScheduledRecordingAdded(ScheduledRecording schedule) { in onScheduledRecordingAdded() argument 152 if (DEBUG) Log.d(TAG, "onScheduledRecordingAdded: " + schedule); in onScheduledRecordingAdded() 153 int index = findRowIndexByProgramId(schedule.getProgramId()); in onScheduledRecordingAdded() 157 setScheduleToRow(row, schedule); in onScheduledRecordingAdded() 164 public void onScheduledRecordingRemoved(ScheduledRecording schedule) { in onScheduledRecordingRemoved() argument 165 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 | 162 public void onScheduledRecordingAdded(ScheduledRecording schedule) { in onScheduledRecordingAdded() argument 164 Log.d(TAG, "onScheduledRecordingAdded: " + schedule); in onScheduledRecordingAdded() 166 if (findRowByScheduledRecording(schedule) == null in onScheduledRecordingAdded() 167 && (schedule.getState() == ScheduledRecording.STATE_RECORDING_FINISHED in onScheduledRecordingAdded() 168 || schedule.getState() == ScheduledRecording.STATE_RECORDING_CLIPPED in onScheduledRecordingAdded() 169 || schedule.getState() == ScheduledRecording.STATE_RECORDING_FAILED)) { in onScheduledRecordingAdded() 170 addScheduleRow(schedule); in onScheduledRecordingAdded() 181 ScheduledRecording schedule = in onScheduledRecordingAdded() local 183 if (schedule == null) { in onScheduledRecordingAdded() 186 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 …]
|
/packages/apps/TV/tests/robotests/src/com/android/tv/dvr/provider/ |
D | DvrDbSyncTest.java | 189 ScheduledRecording schedule = ScheduledRecording.buildFrom(baseSchedule) in testHandleUpdateProgram_addOffsetNotStarted() local 193 addSchedule(BASE_PROGRAM_ID, schedule); in testHandleUpdateProgram_addOffsetNotStarted() 196 ScheduledRecording.buildFrom(schedule) in testHandleUpdateProgram_addOffsetNotStarted() 206 ScheduledRecording schedule = in testHandleUpdateProgram_addOffsetInProgress() local 212 addSchedule(BASE_PROGRAM_ID, schedule); in testHandleUpdateProgram_addOffsetInProgress() 215 ScheduledRecording.buildFrom(schedule) in testHandleUpdateProgram_addOffsetInProgress() 224 ScheduledRecording schedule = in testHandleUpdateProgram_changeTimeNotStartedWithScheduleOffsets() local 231 addSchedule(BASE_PROGRAM_ID, schedule); in testHandleUpdateProgram_changeTimeNotStartedWithScheduleOffsets() 241 ScheduledRecording.buildFrom(schedule) in testHandleUpdateProgram_changeTimeNotStartedWithScheduleOffsets() 251 ScheduledRecording schedule = in testHandleUpdateProgram_changeTimeInProgressWithScheduleOffsets() local [all …]
|
/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 | 114 for (ScheduledRecording schedule : getConflicts()) { in getConflictDescription() 115 String scheduleTitle = getScheduleTitle(schedule); in getConflictDescription() 156 private String getScheduleTitle(ScheduledRecording schedule) { in getScheduleTitle() argument 157 if (schedule.getType() == ScheduledRecording.TYPE_TIMED) { in getScheduleTitle() 161 .getChannel(schedule.getChannelId()); in getScheduleTitle() 168 return schedule.getProgramTitle(); in getScheduleTitle() 357 for (ScheduledRecording schedule : mConflicts) { in onTrackedGuidedActionClicked() 358 if (schedule.getState() == ScheduledRecording.STATE_RECORDING_IN_PROGRESS) { in onTrackedGuidedActionClicked() 359 getDvrManager().stopRecording(schedule); in onTrackedGuidedActionClicked() 361 getDvrManager().removeScheduledRecording(schedule); in onTrackedGuidedActionClicked()
|
D | DvrUiHelper.java | 607 ScheduledRecording schedule = (ScheduledRecording) dvrItem; in startDetailsActivity() local 608 recordingId = schedule.getId(); in startDetailsActivity() 609 if (schedule.getState() == ScheduledRecording.STATE_RECORDING_NOT_STARTED) { in startDetailsActivity() 611 } else if (schedule.getState() == ScheduledRecording.STATE_RECORDING_IN_PROGRESS) { in startDetailsActivity() 613 } else if (schedule.getState() == ScheduledRecording.STATE_RECORDING_FINISHED in startDetailsActivity() 614 && schedule.getRecordedProgramId() != null) { in startDetailsActivity() 615 recordingId = schedule.getRecordedProgramId(); in startDetailsActivity() 617 } else if (schedule.getState() == ScheduledRecording.STATE_RECORDING_FAILED) { in startDetailsActivity() 679 Context context, ScheduledRecording schedule, int episodeNumberStyleResId) { in getStyledTitleWithEpisodeNumber() argument 682 schedule.getProgramTitle(), in getStyledTitleWithEpisodeNumber() [all …]
|
D | DvrStopRecordingFragment.java | 76 for (ScheduledRecording schedule : schedules) { 77 if (schedule.getId() == mSchedule.getId()) { 86 for (ScheduledRecording schedule : schedules) { 87 if (schedule.getId() == mSchedule.getId() 88 && schedule.getState()
|
/packages/apps/TV/tests/robotests/src/com/android/tv/ui/hideable/ |
D | AutoHideSchedulerTest.java | 59 public void schedule() { in schedule() method in AutoHideSchedulerTest 60 mAutoHideScheduler.schedule(10); in schedule() 68 mAutoHideScheduler.schedule(10); in setA11yEnabledThenSchedule() 75 mAutoHideScheduler.schedule(10); in scheduleThenCancel() 84 mAutoHideScheduler.schedule(10); in scheduleThenLoop() 97 mAutoHideScheduler.schedule(10); in scheduleSetA11yEnabledThenLoop()
|
/packages/apps/TV/tests/robotests/src/com/android/tv/dvr/ |
D | DvrScheduleManagerTest.java | 850 private void assertNotInList(ScheduledRecording schedule, List<ConflictInfo> conflicts) { in assertNotInList() argument 852 if (conflictInfo.schedule.equals(schedule)) { in assertNotInList() 853 fail(schedule + " conflicts with others."); in assertNotInList() 858 private void assertPartialConflict(ScheduledRecording schedule, List<ConflictInfo> conflicts) { in assertPartialConflict() argument 860 if (conflictInfo.schedule.equals(schedule)) { in assertPartialConflict() 864 fail(schedule + " fully conflicts with others."); in assertPartialConflict() 868 fail(schedule + " doesn't conflict"); in assertPartialConflict() 871 private void assertFullConflict(ScheduledRecording schedule, List<ConflictInfo> conflicts) { in assertFullConflict() argument 873 if (conflictInfo.schedule.equals(schedule)) { in assertFullConflict() 877 fail(schedule + " partially conflicts with others."); in assertFullConflict() [all …]
|
/packages/apps/TV/src/com/android/tv/guide/ |
D | ProgramManager.java | 138 for (ScheduledRecording schedule : scheduledRecordings) { 139 TableEntry oldEntry = getTableEntry(schedule); 145 schedule, 156 for (ScheduledRecording schedule : scheduledRecordings) { 157 TableEntry oldEntry = getTableEntry(schedule); 175 for (ScheduledRecording schedule : scheduledRecordings) { 176 TableEntry oldEntry = getTableEntry(schedule); 182 schedule, 197 for (ScheduledRecording schedule : schedules) { 198 TableEntry entry = getTableEntry(schedule);
|
/packages/apps/TV/src/com/android/tv/dvr/ui/browse/ |
D | CurrentRecordingDetailsFragment.java | 59 for (ScheduledRecording schedule : schedules) { 60 if (schedule.getId() == getRecording().getId()) { 69 for (ScheduledRecording schedule : schedules) { 70 if (schedule.getId() == getRecording().getId() 71 && 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
|
/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()
|
/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.kt | 99 periodicRunnable.schedule() in addPeriodicCallback() 126 schedule() in run() 133 schedule() in runAndReschedule() 136 fun schedule() { in schedule() method in com.android.deskclock.uidata.PeriodicRunnable
|