/packages/apps/TV/src/com/android/tv/dvr/ui/browse/ |
H A D | ScheduledRecordingPresenter.java | 56 protected void onBound(ScheduledRecording recording) { argument 57 mScheduledRecording = recording; 110 ScheduledRecording recording) { 113 DetailsContent details = DetailsContent.createFromScheduledRecording(mContext, recording); 116 cardView.setAffiliatedIcon(mDvrManager.isConflicting(recording) ? 118 cardView.setContent(generateMajorContent(recording), null); 122 private String generateMajorContent(ScheduledRecording recording) { argument 124 recording.getStartTimeMs()); 127 Utils.getDurationString(mContext, recording.getStartTimeMs(), 128 recording 109 onBindDvrItemViewHolder(DvrItemViewHolder baseHolder, ScheduledRecording recording) argument [all...] |
H A D | DvrBrowseFragment.java | 502 // Remove series recording from all genre rows if it has no recorded program 590 private boolean needToShowScheduledRecording(ScheduledRecording recording) { argument 591 int state = recording.getState();
|
/packages/apps/TV/tests/unit/src/com/android/tv/dvr/recorder/ |
H A D | ScheduledProgramReaperTest.java | 82 ScheduledRecording recording = addNewScheduledRecordingForTomorrow(); 84 .assertContentsInAnyOrder(mDvrDataManager.getAllScheduledRecordings(), recording); 87 .assertContentsInAnyOrder(mDvrDataManager.getAllScheduledRecordings(), recording); 92 ScheduledRecording recording = addNewScheduledRecordingForTomorrow(); 94 .assertContentsInAnyOrder(mDvrDataManager.getAllScheduledRecordings(), recording); 98 .assertContentsInAnyOrder(mDvrDataManager.getAllScheduledRecordings(), recording); 103 ScheduledRecording recording = addNewScheduledRecordingForTomorrow(); 105 .assertContentsInAnyOrder(mDvrDataManager.getAllScheduledRecordings(), recording); 110 .assertContentsInAnyOrder(mDvrDataManager.getAllScheduledRecordings(), recording); 115 ScheduledRecording recording [all...] |
/packages/apps/TV/tests/common/src/com/android/tv/input/ |
H A D | TunerHelper.java | 28 * A class to manage fake tuners for the tune and the recording. 42 * Checks whether there are available tuners for the recording. 49 if (!tuner.recording) { 65 // Find available tuner which is used only for the recording. 70 } else if (forRecording && !tuner.recording) { 71 tuner.recording = true; 97 if (tuner.recording) { 98 // A tuner which is used both for the tune and recording is the candidate. 114 * Releases the tuner which was being used for the recording. 125 if (tuner.recording) { 147 public boolean recording; field in class:TunerHelper.Tuner [all...] |
/packages/apps/TV/src/com/android/tv/dvr/ui/list/ |
H A D | BaseDvrSchedulesFragment.java | 41 * The key for scheduled recording which has be selected in the list. 147 for (ScheduledRecording recording : scheduledRecordings) { 148 mRowsAdapter.onScheduledRecordingAdded(recording); 156 for (ScheduledRecording recording : scheduledRecordings) { 157 mRowsAdapter.onScheduledRecordingRemoved(recording); 165 for (ScheduledRecording recording : scheduledRecordings) { 166 mRowsAdapter.onScheduledRecordingUpdated(recording, false); 174 for (ScheduledRecording recording : schedules) { 175 mRowsAdapter.onScheduledRecordingUpdated(recording, true);
|
H A D | DvrSchedulesFragment.java | 72 ScheduledRecording recording = null; 74 recording = args.getParcelable(SCHEDULES_KEY_SCHEDULED_RECORDING); 77 getRowsAdapter().findRowByScheduledRecording(recording));
|
H A D | EpisodicProgramRow.java | 33 public EpisodicProgramRow(String inputId, Program program, ScheduledRecording recording, argument 35 super(recording, headerRow);
|
H A D | ScheduleRowAdapter.java | 106 for(ScheduledRecording recording : section){ 107 add(new ScheduleRow(recording, headerRow)); 148 public ScheduleRow findRowByScheduledRecording(ScheduledRecording recording) { argument 149 if (recording == null) { 155 if (((ScheduleRow) item).getSchedule().getId() == recording.getId()) { 178 private void addScheduleRow(ScheduledRecording recording) { argument 181 if (recording != null) { 188 scheduleRow.getSchedule(), recording) > 0) { 194 long deadLine = Utils.getLastMillisecondOfDay(recording.getStartTimeMs()); 198 ScheduleRow addedRow = new ScheduleRow(recording, headerRo [all...] |
H A D | ScheduleRow.java | 27 * A class for schedule recording row. 35 public ScheduleRow(@Nullable ScheduledRecording recording, SchedulesHeaderRow headerRow) { argument 36 mSchedule = recording; 48 * Returns the recording schedule. 56 * Checks if the stop recording has been requested or not. 63 * Sets the flag of stop recording request. 71 * Checks if the start recording has been requested or not. 78 * Sets the flag of start recording request. 86 * Sets the recording schedule.
|
/packages/apps/Dialer/java/com/android/dialer/performancereport/ |
H A D | PerformanceReport.java | 49 private static boolean recording = false; field in class:PerformanceReport 69 recording = true; 74 recording = false; 78 if (!recording) { 120 return recording;
|
/packages/apps/TV/src/com/android/tv/dvr/ui/ |
H A D | DvrSeriesDeletionFragment.java | 49 * Fragment for DVR series recording settings. 111 for (RecordedProgram recording : mRecordings) { 113 mDvrWatchedPositionManager.getWatchedPosition(recording.getId()); 114 String title = recording.getEpisodeDisplayTitle(getContext()); 116 title = TextUtils.isEmpty(recording.getTitle()) ? 117 getString(R.string.channel_banner_no_title) : recording.getTitle(); 121 description = getWatchedString(watchedPositionMs, recording.getDurationMillis()); 122 mWatchedRecordings.add(recording.getId()); 127 .id(recording.getId())
|
H A D | DvrSeriesScheduledFragment.java | 83 for (ScheduledRecording recording : conflictingRecordings) { 84 if (recording.getSeriesRecordingId() == mSeriesRecording.getId()) { 86 } else if (recording.getPriority() < mSeriesRecording.getPriority()) {
|
/packages/apps/TV/tests/unit/src/com/android/tv/dvr/ |
H A D | BaseDvrDataManagerTest.java | 65 ScheduledRecording recording = mDvrDataManager 68 MoreAsserts.assertContentsInAnyOrder(result, recording);
|
/packages/apps/TV/common/src/com/android/tv/common/recording/ |
H A D | RecordingCapability.java | 17 package com.android.tv.common.recording; 25 * Static representation of the recording capability of a TvInputService. 36 * <p>Both recording and playing live TV requires a Tuner. 56 * True if a tuned session can support recording and playback from the same resource.
|
/packages/apps/TV/src/com/android/tv/ui/ |
H A D | ChannelBannerView.java | 689 @Nullable ScheduledRecording recording) { 693 updateRecordingIndicator(recording); 694 if (recording != null) { 695 // Recording now. Use recording-style progress bar. 696 mRemainingTimeView.setProgress(getProgressPercent(recording.getStartTimeMs(), 701 // No recording is going now. Recover progress bar. 708 private void updateRecordingIndicator(@Nullable ScheduledRecording recording) { argument 709 if (recording != null) { 713 recording.getEndTimeMs(), DateUtils.FORMAT_SHOW_TIME))); 725 private boolean isCurrentProgram(ScheduledRecording recording, Progra argument 688 updateProgressBarAndRecIcon(Program program, @Nullable ScheduledRecording recording) argument [all...] |
/packages/apps/Camera2/src/com/android/camera/ |
H A D | VideoUI.java | 50 // recording is stopped in capture intent. 170 public void showRecordingUI(boolean recording) { argument 171 mRecordingStarted = recording; 172 if (recording) {
|
/packages/apps/TV/src/com/android/tv/tuner/tvinput/ |
H A D | TunerSessionWorker.java | 356 Log.e(TAG, "meta file for recording was not found: " + recordingId); 615 RecordedProgram recording = null; 617 recording = new RecordedProgram(c); 619 return recording; 648 RecordedProgram recording = getRecordedProgram(uri); 649 if (recording != null) { 650 return recording.getDataUri(); 690 String recording = null; 695 recording = parseRecording(channelUri); 697 if (channel == null && recording 1481 prepareTune(TunerChannel channel, String recording) argument [all...] |
H A D | TunerRecordingSessionWorker.java | 40 import com.android.tv.common.recording.RecordingCapability; 197 * Starts recording. 205 * Stops recording. 246 if (DEBUG) Log.d(TAG, "Start recording"); 263 Log.w(TAG, "Failed to start recording. Couldn't prepare an extractor"); 270 if (DEBUG) Log.d(TAG, "Stop recording"); 299 // Since release was requested, current recording will be cancelled 360 Log.w(TAG, "Failed to start recording. Couldn't find the channel for " + mChannel); 364 Log.w(TAG, "Failed to start recording. Not a recordable channel: " + mChannel); 393 Log.w(TAG, "Failed to start recording du [all...] |
/packages/apps/TV/src/com/android/tv/dvr/ |
H A D | DvrManager.java | 65 * DVR manager class to add and remove recordings. UI can modify recording list through this class, 134 // Removing series recording is handled in the SeriesRecordingDetailsFragment. 157 * Schedules a recording for {@code program}. 170 * Schedules a recording for {@code program} with the highest priority so that the schedule 203 * Adds a recording schedule with a time range. 206 Log.i(TAG, "Adding scheduled recording of channel " + channel + " starting at " + 236 * Adds a new series recording and schedules for the programs with the initial state. 240 Log.i(TAG, "Adding series recording for program " + selectedProgram + ", and schedules: " 293 * Adds {@link ScheduledRecording}s for the series recording. 295 * This method doesn't add the series recording 417 stopRecording(final ScheduledRecording recording) argument 562 updateScheduledRecording(ScheduledRecording recording) argument [all...] |
H A D | DvrScheduleManager.java | 62 * The default priority of scheduled recording. 66 * The default priority of series recording. 91 // The inner map is a hash map from scheduled recording to its conflicting status, i.e., 305 // TODO: notify conflict state change when some conflicting recording becomes partially 438 * The recording will have the higher priority than the existing ones. 499 * Returns the priority for a series recording. 501 * The recording will have the higher priority than the existing series. 511 * Returns the priority for a series recording by order of series recording priority. 534 * the first recording i [all...] |
/packages/apps/TV/src/com/android/tv/dvr/recorder/ |
H A D | RecordingTask.java | 51 * A Handler that actually starts and stop a recording at the right time. 108 * The time when the start command will be sent before the recording starts. 112 * If the recording starts later than the scheduled start time or ends before the scheduled end 156 if (DEBUG) Log.d(TAG, "created recording task " + mScheduledRecording); 289 Log.w(TAG, "End time already past, not recording " + mScheduledRecording); 299 Log.w(TAG, "Channel" + mChannel + " does not match scheduled recording " 388 * Returns the start time of the recording. 395 * Returns the end time of the recording. 443 public void onStopRecordingRequested(ScheduledRecording recording) { argument 444 if (recording [all...] |
/packages/apps/TV/src/com/android/tv/tuner/ |
H A D | DvbDeviceAccessor.java | 26 import com.android.tv.common.recording.RecordingCapability; 127 * Returns the current recording capability for USB tuner.
|
/packages/apps/SoundRecorder/src/com/android/soundrecorder/ |
H A D | SoundRecorder.java | 55 * Calculates remaining recording time based on available disk space and 56 * optionally a maximum recording file size. 72 // State for tracking file size of recording. 117 * Returns how long (in seconds) we can continue recording. 147 // If we have a recording file set, we calculate a second estimate 177 * Is there any point of trying to start recording? 216 // not a dialog. This happens when a recording 354 * Make sure we're not recording music playing in the background, ask 670 * Called when we're in recording state. Find out how much longer we can 671 * go on recording [all...] |
/packages/apps/LegacyCamera/src/com/android/camera/ |
H A D | VideoCamera.java | 132 * An unpublished intent flag requesting to start recording straight away 133 * and return as soon as recording is stopped. 159 // recording is stopped in capture intent. 204 // (or is recording into.) 255 // The orientation compenstaion when we start recording. 442 // want to allow recording before that happens. The shutter button 564 // Do not rotate the icons during recording because the video 565 // orientation is fixed after recording. 670 // mode and recording is stopped. It'll be re-enabled when 771 // Read time lapse recording interva 1604 showRecordingUI(boolean recording) argument [all...] |