Home
last modified time | relevance | path

Searched refs:recording (Results 1 – 25 of 60) sorted by relevance

123

/packages/apps/TV/src/com/android/tv/dvr/ui/browse/
DScheduledRecordingPresenter.java53 protected void onBound(ScheduledRecording recording) { in onBound() argument
54 mScheduledRecording = recording; in onBound()
116 DvrItemViewHolder baseHolder, ScheduledRecording recording) { in onBindDvrItemViewHolder() argument
119 DetailsContent details = DetailsContent.createFromScheduledRecording(mContext, recording); in onBindDvrItemViewHolder()
122 if (recording.getState() == ScheduledRecording.STATE_RECORDING_FAILED) { in onBindDvrItemViewHolder()
124 } else if (mDvrManager.isConflicting(recording)) { in onBindDvrItemViewHolder()
127 cardView.setContent(generateMajorContent(recording), null); in onBindDvrItemViewHolder()
132 private String generateMajorContent(ScheduledRecording recording) { in generateMajorContent() argument
134 Utils.computeDateDifference(System.currentTimeMillis(), recording.getStartTimeMs()); in generateMajorContent()
140 recording.getStartTimeMs(), in generateMajorContent()
[all …]
DDetailsContent.java129 private static String getErrorMessage(Context context, ScheduledRecording recording) { in getErrorMessage() argument
131 recording.getFailedReason() == null in getErrorMessage()
133 : recording.getFailedReason(); in getErrorMessage()
141 R.string.dvr_recording_failed_input_unavailable, recording.getInputId()); in getErrorMessage()
/packages/apps/TV/tests/robotests/src/com/android/tv/dvr/recorder/
DScheduledProgramReaperTest.java85 ScheduledRecording recording = addNewScheduledRecordingForTomorrow(); in testRun_oneRecordingsTomorrow() local
86 assertThat(mDvrDataManager.getAllScheduledRecordings()).containsExactly(recording); in testRun_oneRecordingsTomorrow()
88 assertThat(mDvrDataManager.getAllScheduledRecordings()).containsExactly(recording); in testRun_oneRecordingsTomorrow()
93 ScheduledRecording recording = addNewScheduledRecordingForTomorrow(); in testRun_oneRecordingsStarted() local
94 assertThat(mDvrDataManager.getAllScheduledRecordings()).containsExactly(recording); in testRun_oneRecordingsStarted()
97 assertThat(mDvrDataManager.getAllScheduledRecordings()).containsExactly(recording); in testRun_oneRecordingsStarted()
102 ScheduledRecording recording = addNewScheduledRecordingForTomorrow(); in testRun_oneRecordingsFinished() local
103 assertThat(mDvrDataManager.getAllScheduledRecordings()).containsExactly(recording); in testRun_oneRecordingsFinished()
107 assertThat(mDvrDataManager.getAllScheduledRecordings()).containsExactly(recording); in testRun_oneRecordingsFinished()
112 ScheduledRecording recording = addNewScheduledRecordingForTomorrow(); in testRun_oneRecordingsExpired() local
[all …]
/packages/apps/TV/tests/common/src/com/android/tv/input/
DTunerHelper.java44 if (!tuner.recording) { in tunerAvailableForRecording()
65 } else if (forRecording && !tuner.recording) { in tune()
66 tuner.recording = true; in tune()
90 if (tuner.recording) { in stopTune()
116 if (tuner.recording) { in stopRecording()
131 candidate.recording = false; in stopRecording()
138 public boolean recording; field in TunerHelper.Tuner
143 this.recording = forRecording; in Tuner()
/packages/apps/TV/src/com/android/tv/dvr/ui/list/
DBaseDvrSchedulesFragment.java128 for (ScheduledRecording recording : scheduledRecordings) { in onScheduledRecordingAdded()
129 mRowsAdapter.onScheduledRecordingAdded(recording); in onScheduledRecordingAdded()
137 for (ScheduledRecording recording : scheduledRecordings) { in onScheduledRecordingRemoved()
138 mRowsAdapter.onScheduledRecordingRemoved(recording); in onScheduledRecordingRemoved()
146 for (ScheduledRecording recording : scheduledRecordings) { in onScheduledRecordingStatusChanged()
147 mRowsAdapter.onScheduledRecordingUpdated(recording, false); in onScheduledRecordingStatusChanged()
155 for (ScheduledRecording recording : schedules) { in onConflictStateChange()
156 mRowsAdapter.onScheduledRecordingUpdated(recording, true); in onConflictStateChange()
DDvrHistoryRowAdapter.java106 for (ScheduledRecording recording : section) { in start()
107 add(new ScheduleRow(recording, headerRow)); in start()
246 private void addScheduleRow(ScheduledRecording recording) { in addScheduleRow() argument
249 if (recording != null) { in addScheduleRow()
257 .compare(scheduleRow.getSchedule(), recording) in addScheduleRow()
264 long deadLine = Utils.getFirstMillisecondOfDay(recording.getStartTimeMs()); in addScheduleRow()
268 ScheduleRow addedRow = new ScheduleRow(recording, headerRow); in addScheduleRow()
274 ScheduleRow addedRow = new ScheduleRow(recording, headerRow); in addScheduleRow()
287 ScheduleRow addedRow = new ScheduleRow(recording, headerRow); in addScheduleRow()
298 private ScheduleRow findRowByScheduledRecording(ScheduledRecording recording) { in findRowByScheduledRecording() argument
[all …]
DScheduleRowAdapter.java113 for (ScheduledRecording recording : section) { in start()
114 add(new ScheduleRow(recording, headerRow)); in start()
157 public ScheduleRow findRowByScheduledRecording(ScheduledRecording recording) { in findRowByScheduledRecording() argument
158 if (recording == null) { in findRowByScheduledRecording()
164 if (((ScheduleRow) item).getSchedule().getId() == recording.getId()) { in findRowByScheduledRecording()
188 private void addScheduleRow(ScheduledRecording recording) { in addScheduleRow() argument
191 if (recording != null) { in addScheduleRow()
198 scheduleRow.getSchedule(), recording) in addScheduleRow()
205 long deadLine = Utils.getLastMillisecondOfDay(recording.getStartTimeMs()); in addScheduleRow()
209 ScheduleRow addedRow = new ScheduleRow(recording, headerRow); in addScheduleRow()
[all …]
DDvrHistoryFragment.java100 for (ScheduledRecording recording : scheduledRecordings) { in onScheduledRecordingAdded()
101 mRowsAdapter.onScheduledRecordingAdded(recording); in onScheduledRecordingAdded()
112 for (ScheduledRecording recording : scheduledRecordings) { in onScheduledRecordingRemoved()
113 mRowsAdapter.onScheduledRecordingRemoved(recording); in onScheduledRecordingRemoved()
124 for (ScheduledRecording recording : scheduledRecordings) { in onScheduledRecordingStatusChanged()
125 mRowsAdapter.onScheduledRecordingUpdated(recording); in onScheduledRecordingStatusChanged()
DDvrSchedulesFragment.java69 ScheduledRecording recording = null; in getFirstItemPosition() local
71 recording = args.getParcelable(SCHEDULES_KEY_SCHEDULED_RECORDING); in getFirstItemPosition()
74 getRowsAdapter().indexOf(getRowsAdapter().findRowByScheduledRecording(recording)); in getFirstItemPosition()
DEpisodicProgramRow.java34 ScheduledRecording recording, in EpisodicProgramRow() argument
36 super(recording, headerRow); in EpisodicProgramRow()
DScheduleRow.java32 public ScheduleRow(@Nullable ScheduledRecording recording, SchedulesHeaderRow headerRow) { in ScheduleRow() argument
33 mSchedule = recording; in ScheduleRow()
/packages/apps/TV/src/com/android/tv/dvr/ui/
DDvrSeriesDeletionFragment.java121 for (RecordedProgram recording : mRecordings) { in onCreateActions()
123 mDvrWatchedPositionManager.getWatchedPosition(recording.getId()); in onCreateActions()
124 String title = recording.getEpisodeDisplayTitle(getContext()); in onCreateActions()
127 TextUtils.isEmpty(recording.getTitle()) in onCreateActions()
129 : recording.getTitle(); in onCreateActions()
133 description = getWatchedString(watchedPositionMs, recording.getDurationMillis()); in onCreateActions()
134 mWatchedRecordings.add(recording.getId()); in onCreateActions()
140 .id(recording.getId()) in onCreateActions()
DDvrSeriesScheduledFragment.java96 for (ScheduledRecording recording : conflictingRecordings) { in onAttach()
97 if (recording.getSeriesRecordingId() == mSeriesRecording.getId()) { in onAttach()
99 } else if (recording.getPriority() < mSeriesRecording.getPriority()) { in onAttach()
/packages/apps/Dialer/java/com/android/dialer/performancereport/
DPerformanceReport.java49 private static boolean recording = false; field in PerformanceReport
69 recording = true; in startRecording()
74 recording = false; in stopRecording()
78 if (!recording) { in recordClick()
120 return recording; in isRecording()
/packages/apps/TV/src/com/android/tv/ui/
DProgramDetailsFragment.java295 for (ScheduledRecording recording : scheduledRecordings) {
296 if (recording.getProgramId() == mProgram.getId()) {
297 mScheduledRecording = recording;
309 for (ScheduledRecording recording : scheduledRecordings) {
310 if (recording.getId() == mScheduledRecording.getId()) {
323 for (ScheduledRecording recording : scheduledRecordings) {
324 if (recording.getId() == mScheduledRecording.getId()) {
325 mScheduledRecording = recording;
DChannelBannerView.java818 Program program, @Nullable ScheduledRecording recording) {
822 updateRecordingIndicator(recording);
823 if (recording != null) {
827 recording.getStartTimeMs(), programStartTime, programEndTime));
838 private void updateRecordingIndicator(@Nullable ScheduledRecording recording) {
839 if (recording != null) {
848 recording.getEndTimeMs(),
861 private boolean isCurrentProgram(ScheduledRecording recording, Program program) {
863 return (recording.getType() == ScheduledRecording.TYPE_PROGRAM
864 && recording.getProgramId() == program.getId())
[all …]
/packages/apps/TV/tuner/src/com/android/tv/tuner/tvinput/
DTunerSessionWorkerExoV2.java706 RecordedProgram recording = null; in onQuery() local
708 recording = new RecordedProgram(c); in onQuery()
710 return recording; in onQuery()
743 RecordedProgram recording = getRecordedProgram(uri); in parseRecording() local
744 if (recording != null) { in parseRecording()
745 if (channelId != -1 && channelId != recording.getChannelId()) { in parseRecording()
749 mRecordedProgramStartTimeMs = recording.getStartTime(); in parseRecording()
750 return recording.getDataUri(); in parseRecording()
856 String recording = null; in handleMessageTune() local
862 recording = parseRecording(channelUri, channelId); in handleMessageTune()
[all …]
DTunerSessionWorker.java711 RecordedProgram recording = null; in onQuery() local
713 recording = new RecordedProgram(c); in onQuery()
715 return recording; in onQuery()
752 RecordedProgram recording = getRecordedProgram(uri); in parseRecording() local
753 if (recording != null) { in parseRecording()
754 if (channelId != -1 && channelId != recording.getChannelId()) { in parseRecording()
758 mRecordedProgramStartTimeMs = recording.getStartTime(); in parseRecording()
759 return recording.getDataUri(); in parseRecording()
869 String recording = null; in handleMessageTune() local
875 recording = parseRecording(channelUri, channelId); in handleMessageTune()
[all …]
/packages/apps/TV/src/com/android/tv/dvr/
DDvrManager.java460 public void stopRecording(final ScheduledRecording recording) { in stopRecording() argument
466 entry.getValue().post(() -> entry.getKey().onStopRecordingRequested(recording)); in stopRecording()
588 public void updateScheduledRecording(ScheduledRecording recording) { in updateScheduledRecording() argument
590 mDataManager.updateScheduledRecording(recording); in updateScheduledRecording()
727 for (ScheduledRecording recording : mDataManager.getStartedRecordings()) { in getCurrentRecording()
728 if (recording.getChannelId() == channelId) { in getCurrentRecording()
729 return recording; in getCurrentRecording()
DDvrScheduleManager.java950 for (ScheduledRecording recording : recordings) { in findReplaceableRecording()
951 if (schedule.getPriority() > recording.getPriority()) { in findReplaceableRecording()
952 if (candidate == null || CANDIDATE_COMPARATOR.compare(candidate, recording) > 0) { in findReplaceableRecording()
953 candidate = recording; in findReplaceableRecording()
962 for (ScheduledRecording recording : recordings) { in getEarliestEndTime()
963 if (earliest > recording.getEndTimeMs()) { in getEarliestEndTime()
964 earliest = recording.getEndTimeMs(); in getEarliestEndTime()
/packages/apps/Camera2/src/com/android/camera/
DVideoUI.java170 public void showRecordingUI(boolean recording) { in showRecordingUI() argument
171 mRecordingStarted = recording; in showRecordingUI()
172 if (recording) { in showRecordingUI()
/packages/apps/TV/tests/robotests/src/com/android/tv/dvr/
DBaseDvrDataManagerTest.java69 ScheduledRecording recording = in testGetNonStartedScheduledRecordings() local
73 Truth.assertThat(result).containsExactly(recording); in testGetNonStartedScheduledRecordings()
/packages/apps/LegacyCamera/res/raw/
Dbackdropper.graph78 recording = false;
81 // will be set when recording starts
/packages/apps/Camera2/res/raw/
Dbackdropper.graph78 recording = false;
83 // will be set when recording starts
/packages/apps/Gallery2/res/raw/
Dbackdropper.graph78 recording = false;
83 // will be set when recording starts

123