/packages/apps/TV/tests/unit/src/com/android/tv/dvr/ |
H A D | ScheduledProgramReaperTest.java | 57 ScheduledRecording recording = addNewScheduledRecordingForTomorrow(); 59 .assertContentsInAnyOrder(mDvrDataManager.getAllScheduledRecordings(), recording); 62 .assertContentsInAnyOrder(mDvrDataManager.getAllScheduledRecordings(), recording); 66 ScheduledRecording recording = addNewScheduledRecordingForTomorrow(); 68 .assertContentsInAnyOrder(mDvrDataManager.getAllScheduledRecordings(), recording); 72 .assertContentsInAnyOrder(mDvrDataManager.getAllScheduledRecordings(), recording); 76 ScheduledRecording recording = addNewScheduledRecordingForTomorrow(); 78 .assertContentsInAnyOrder(mDvrDataManager.getAllScheduledRecordings(), recording); 83 .assertContentsInAnyOrder(mDvrDataManager.getAllScheduledRecordings(), recording); 87 ScheduledRecording recording [all...] |
H A D | BaseDvrDataManagerTest.java | 48 ScheduledRecording recording = mDvrDataManager 51 MoreAsserts.assertContentsInAnyOrder(result, recording);
|
/packages/apps/TV/src/com/android/tv/dvr/ui/ |
H A D | RecordedProgramPresenter.java | 36 import com.android.tv.common.recording.RecordedProgram; 62 final RecordedProgram recording = (RecordedProgram) o; 67 Channel channel = mChannelDataManager.getChannel(recording.getChannelId()); 69 if (!TextUtils.isEmpty(recording.getTitle())) { 70 cardView.setTitle(recording.getTitle()); 74 if (recording.getPosterArt() != null) { 75 cardView.setImageUri(recording.getPosterArt()); 76 } else if (recording.getThumbnail() != null) { 77 cardView.setImageUri(recording.getThumbnail()); 83 cardView.setContent(Utils.getDurationString(context, recording [all...] |
H A D | ScheduledRecordingPresenter.java | 69 final ScheduledRecording recording = (ScheduledRecording) o; 73 long programId = recording.getProgramId(); 75 setTitleAndImage(cardView, recording, null); 82 setTitleAndImage(cardView, recording, program); 88 cardView.setContent(Utils.getDurationString(context, recording.getStartTimeMs(), 89 recording.getEndTimeMs(), true)); 94 switch (recording.getState()) { 96 showScheduledRecordingDialog(v.getContext(), recording); 100 showCurrentlyRecordingDialog(v.getContext(), recording); 109 private void setTitleAndImage(RecordingCardView cardView, ScheduledRecording recording, argument 135 showScheduledRecordingDialog(final Context context, final ScheduledRecording recording) argument 154 showCurrentlyRecordingDialog(final Context context, final ScheduledRecording recording) argument [all...] |
H A D | RecordedProgramsAdapter.java | 21 import com.android.tv.common.recording.RecordedProgram;
|
H A D | EmptyItemPresenter.java | 59 public void onBindViewHolder(ViewHolder viewHolder, Object recording) { argument
|
H A D | DvrBrowseFragment.java | 32 import com.android.tv.common.recording.RecordedProgram;
|
/packages/apps/TV/tests/common/src/com/android/tv/testing/dvr/ |
H A D | RecordingTestUtils.java | 45 ScheduledRecording recording = createTestRecordingWithPeriod(channelId, startTime, endTime); 46 recording = dvrDataManager.addScheduledRecordingInternal(recording); 47 return recording; 62 Assert.assertEquals("parent season recording", expected.getParentSeasonRecording(),
|
/packages/apps/TV/src/com/android/tv/menu/ |
H A D | RecordCardView.java | 78 for (ScheduledRecording recording : mDvrDataManager.getStartedRecordings()) { 79 if (recording.getChannelId() == channel.getId()) { 81 mCurrentRecording = recording; 157 public void onScheduledRecordingAdded(ScheduledRecording recording) { argument 161 public void onScheduledRecordingRemoved(ScheduledRecording recording) { argument 162 if (recording.getChannelId() != mCurrentChannel.getId()) { 173 public void onScheduledRecordingStatusChanged(ScheduledRecording recording) { argument 174 if (recording.getChannelId() != mCurrentChannel.getId()) { 177 int state = recording.getState(); 185 mCurrentRecording = recording; [all...] |
/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.
|
H A D | RecordedProgram.java | 17 package com.android.tv.common.recording;
|
/packages/apps/TV/src/com/android/tv/dvr/ |
H A D | DvrDataManager.java | 23 import com.android.tv.common.recording.RecordedProgram; 72 * <p> A recording overlaps with a period when 73 * {@code recording.getStartTime() <= period.getUpper() && 74 * recording.getEndTime() >= period.getLower()}. 101 * Returns the scheduled recording program with the given recordingId or null if is not found. 108 * Returns the scheduled recording program with the given programId or null if is not found.
|
H A D | DvrManager.java | 34 import com.android.tv.common.recording.RecordedProgram; 48 * DVR manager class to add and remove recordings. UI can modify recording list through this class, 71 * Schedules a recording for {@code program} instead of the list of recording that conflict. 77 "Adding scheduled recording of " + program + " instead of " + recordingsToOverride); 90 * Adds a recording schedule with a time range. 93 Log.i(TAG, "Adding scheduled recording of channel" + channel + " starting at " + 103 * Adds a season recording schedule based on {@code program}. 106 Log.i(TAG, "Adding season recording of " + program); 113 public void stopRecording(final ScheduledRecording recording) { argument [all...] |
H A D | BaseDvrDataManager.java | 28 import com.android.tv.common.recording.RecordedProgram;
|
H A D | RecordingTask.java | 37 * A Handler that actually starts and stop a recording at the right time. 94 if (DEBUG) Log.d(TAG, "created recording task " + mScheduledRecording); 175 //TODO check recording preconditions 178 Log.w(TAG, "End time already past, not recording " + mScheduledRecording); 189 Log.w(TAG, "Channel" + mChannel + " does not match scheduled recording " 292 public void onStopRecordingRequested(ScheduledRecording recording) { argument 293 if (recording.getId() != mScheduledRecording.getId()) {
|
H A D | DvrDataManagerInMemoryImpl.java | 27 import com.android.tv.common.recording.RecordedProgram; 102 * Add a new scheduled recording.
|
H A D | DvrDataManagerImpl.java | 39 import com.android.tv.common.recording.RecordedProgram;
|
/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/usbtuner/src/com/android/usbtuner/tvinput/ |
H A D | TunerSessionWorker.java | 268 Log.e(TAG, "meta file for recording was not found: " + recordingId); 428 RecordedProgram recording = null; 430 recording = new RecordedProgram(c); 432 return recording; 463 RecordedProgram recording = getRecordedProgram(uri); 464 if (recording != null) { 465 return recording.getDataUri(); 482 String recording = null; 487 recording = parseRecording(channelUri); 489 if (channel == null && recording 1252 prepareTune(TunerChannel channel, String recording) argument [all...] |
H A D | TunerRecordingSessionWorker.java | 38 import com.android.tv.common.recording.RecordedProgram; 39 import com.android.tv.common.recording.RecordingCapability; 259 return new File(mContext.getCacheDir().getAbsolutePath() + "/recording/" + storageKey); 267 return new File(mContext.getCacheDir().getAbsolutePath() + "/recording" + 318 Log.w(TAG, "Failed to start recording. Couldn't find the channel for " + mChannel); 326 Log.w(TAG, "Failed to start recording. Couldn't open a DVB device"); 341 Log.w(TAG, "Failed to start recording. Couldn't tune to the channel for " + 354 Log.w(TAG, "Failed to start recording. Couldn't prepare a extractor"); 544 // Current recording will be canceled. 547 // TODO: Remove failed recording file [all...] |
/packages/apps/TV/usbtuner/src/com/android/usbtuner/ |
H A D | DvbDeviceAccessor.java | 34 import com.android.tv.common.recording.RecordingCapability; 126 * 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/TV/src/com/android/tv/ |
H A D | TimeShiftManager.java | 33 import com.android.tv.common.recording.RecordedProgram; 124 * If the current position enters within this range from the recording start time, rewind action 132 * If the current position goes out of this range from the recording start time, rewind action 145 * The same goes for the recording start time. 215 * Returns the start time of the recording in milliseconds. 224 * Returns the end time of the recording in milliseconds. 634 // recording buffer fills up while paused, which means that the current time 635 // position is the same as or before the recording start time. 637 // situation if the current time position is before the recording start time. 639 // equal to the recording star [all...] |
/packages/apps/TV/src/com/android/tv/ui/ |
H A D | ChannelBannerView.java | 53 import com.android.tv.common.recording.RecordedProgram;
|
H A D | TunableTvView.java | 61 import com.android.tv.common.recording.RecordedProgram; 478 * Returns {@code true}, if this view is the recording playback mode. 485 * Returns the recording which is being played right now. 492 * Plays a recording. 516 // For recording playback, input event should not be sent.
|