Home
last modified time | relevance | path

Searched refs:channelUri (Results 1 – 25 of 31) sorted by relevance

12

/packages/apps/TV/tests/common/src/com/android/tv/input/
DTunerHelper.java55 public boolean tune(@Nullable Uri channelUri, boolean forRecording) { in tune() argument
56 if (channelUri == null) { in tune()
61 if (tuner.channelUri.equals(channelUri)) { in tune()
73 mTuners.add(new Tuner(channelUri, forRecording)); in tune()
81 public void stopTune(@Nullable Uri channelUri) { in stopTune() argument
82 if (channelUri == null) { in stopTune()
89 if (tuner.channelUri.equals(channelUri) && tuner.tuning) { in stopTune()
107 public void stopRecording(@Nullable Uri channelUri) { in stopRecording() argument
108 if (channelUri == null) { in stopRecording()
115 if (tuner.channelUri.equals(channelUri)) { in stopRecording()
[all …]
/packages/apps/TV/src/com/android/tv/
DInputSessionManager.java150 void notifyTvViewChannelChange(Uri channelUri) { in notifyTvViewChannelChange() argument
152 l.onTvViewChannelChange(channelUri); in notifyTvViewChannelChange()
205 boolean isTunedForTvView(Uri channelUri) { in isTunedForTvView() argument
207 if (session.mTuned && Objects.equals(channelUri, session.mChannelUri)) { in isTunedForTvView()
226 boolean isTunedForRecording(Uri channelUri) { in isTunedForRecording() argument
229 if (session.mTuned && Objects.equals(channelUri, session.mChannelUri)) { in isTunedForRecording()
292 public void tune(String inputId, Uri channelUri) { in tune() argument
294 Log.d(TAG, "warm-up tune: {input=" + inputId + ", channelUri=" + channelUri + "}"); in tune()
297 mChannelUri = channelUri; in tune()
300 mTvView.tune(inputId, channelUri); in tune()
[all …]
DSelectInputActivity.java54 private void startTvWithChannel(Uri channelUri) { in onCreate()
58 channelUri, in onCreate()
68 Uri channelUri = Uri.parse(channelUriString); in onCreate() local
69 if (TvContract.isChannelUriForPassthroughInput(channelUri)) { in onCreate()
71 ChannelImpl.createPassthroughChannel(channelUri)); in onCreate()
DMainActivity.java1027 private void startTv(Uri channelUri) { in startTv() argument
1028 if (DEBUG) Log.d(TAG, "startTv Uri=" + channelUri); in startTv()
1029 if ((channelUri == null || !TvContract.isChannelUriForPassthroughInput(channelUri)) in startTv()
1037 TvContract.isChannelUriForPassthroughInput(channelUri) in startTv()
1043 if (channelUri == null || channelUri.equals(mChannelTuner.getCurrentChannelUri())) { in startTv()
1054 if (channelUri == null) { in startTv()
1058 channelUri = TvContract.buildChannelUri(channelId); in startTv()
1062 if (channelUri == null) { in startTv()
1065 if (TvContract.isChannelUriForPassthroughInput(channelUri)) { in startTv()
1066 ChannelImpl channel = ChannelImpl.createPassthroughChannel(channelUri); in startTv()
[all …]
/packages/apps/TV/tests/common/src/com/android/tv/testing/data/
DProgramUtils.java49 Context context, Uri channelUri, ProgramInfo program, Clock clock) { in populatePrograms() argument
50 populatePrograms(context, channelUri, program, clock, PROGRAM_INSERT_DURATION_MS); in populatePrograms()
55 Uri channelUri, in populatePrograms() argument
61 populatePrograms(context, channelUri, program, currentTimeMs, targetEndTimeMs); in populatePrograms()
66 Uri channelUri, in populatePrograms() argument
71 long channelId = ContentUris.parseId(channelUri); in populatePrograms()
79 long timeMs = getLastProgramEndTimeMs(context, channelUri, currentTimeMs, targetEndTimeMs); in populatePrograms()
115 if (DEBUG) Log.d(TAG, "Inserted " + list.size() + " programs for " + channelUri); in populatePrograms()
122 Context context, Uri channelUri, long startTimeMs, long endTimeMs) { in getLastProgramEndTimeMs() argument
123 Uri uri = TvContract.buildProgramsUriForChannel(channelUri, startTimeMs, endTimeMs); in getLastProgramEndTimeMs()
/packages/apps/TV/tuner/src/com/android/tv/tuner/tvinput/
DTunerRecordingSessionExoV2.java64 public void onTune(Uri channelUri) { in onTune() argument
67 Log.d(TAG, "Requesting recording session tune: " + channelUri); in onTune()
69 mSessionWorker.tune(channelUri); in onTune()
102 public void onTuned(Uri channelUri) { in onTuned() argument
106 mChannelUri = channelUri; in onTuned()
107 notifyTuned(channelUri); in onTuned()
DTunerRecordingSession.java64 public void onTune(Uri channelUri) { in onTune() argument
67 Log.d(TAG, "Requesting recording session tune: " + channelUri); in onTune()
69 mSessionWorker.tune(channelUri); in onTune()
102 public void onTuned(Uri channelUri) { in onTuned() argument
106 mChannelUri = channelUri; in onTuned()
107 notifyTuned(channelUri); in onTuned()
DTunerSessionExoV2.java141 public boolean onTune(Uri channelUri) { in onTune() argument
143 Log.d(TAG, "onTune to " + channelUri != null ? channelUri.toString() : ""); in onTune()
145 if (channelUri == null) { in onTune()
151 mSessionWorker.tune(channelUri); in onTune()
214 public Uri getRecordingUri(Uri channelUri) { in getRecordingUri() argument
215 return mRecordingCallback.getRecordingUri(channelUri); in getRecordingUri()
DTunerSession.java142 public boolean onTune(Uri channelUri) { in onTune() argument
144 Log.d(TAG, "onTune to " + channelUri != null ? channelUri.toString() : ""); in onTune()
146 if (channelUri == null) { in onTune()
152 mSessionWorker.tune(channelUri); in onTune()
215 public Uri getRecordingUri(Uri channelUri) { in getRecordingUri() argument
216 return mRecordingCallback.getRecordingUri(channelUri); in getRecordingUri()
DTunerRecordingSessionWorker.java258 public void tune(Uri channelUri) { in tune() argument
260 mHandler.obtainMessage(MSG_TUNE, 0, 0, channelUri).sendToTarget(); in tune()
287 Uri channelUri = (Uri) msg.obj; in handleMessage() local
289 if (DEBUG) Log.d(TAG, "Tune to " + channelUri); in handleMessage()
290 if (doTune(channelUri)) { in handleMessage()
292 mSession.onTuned(channelUri); in handleMessage()
298 MSG_TUNE, retryCount + 1, 0, channelUri); in handleMessage()
393 private TunerChannel getChannel(Uri channelUri) { in getChannel() argument
394 if (channelUri == null) { in getChannel()
399 channelId = ContentUris.parseId(channelUri); in getChannel()
[all …]
DTunerRecordingSessionWorkerExoV2.java259 public void tune(Uri channelUri) { in tune() argument
261 mHandler.obtainMessage(MSG_TUNE, 0, 0, channelUri).sendToTarget(); in tune()
288 Uri channelUri = (Uri) msg.obj; in handleMessage() local
290 if (DEBUG) Log.d(TAG, "Tune to " + channelUri); in handleMessage()
291 if (doTune(channelUri)) { in handleMessage()
293 mSession.onTuned(channelUri); in handleMessage()
299 MSG_TUNE, retryCount + 1, 0, channelUri); in handleMessage()
396 private TunerChannel getChannel(Uri channelUri) { in getChannel() argument
397 if (channelUri == null) { in getChannel()
402 channelId = ContentUris.parseId(channelUri); in getChannel()
[all …]
DBaseTunerTvInputService.java155 private Uri getRecordingUri(Uri channelUri) { in getRecordingUri() argument
159 if (tunerSession.getChannelUri().equals(channelUri)) { in getRecordingUri()
164 if (tunerSession.getChannelUri().equals(channelUri)) { in getRecordingUri()
DTunerSessionWorkerExoV2.java360 public void tune(Uri channelUri) { in tune() argument
363 sendMessage(MSG_TUNE, channelUri); in tune()
824 private boolean handleMessageTune(Uri channelUri) { in handleMessageTune() argument
858 long channelId = parseChannel(channelUri); in handleMessageTune()
860 mRecordingUri = mSession.getRecordingUri(channelUri); in handleMessageTune()
862 recording = parseRecording(channelUri, channelId); in handleMessageTune()
864 mChannelUri = channelUri; in handleMessageTune()
872 Log.w(TAG, "onTune() is failed. Can't find channel for " + channelUri); in handleMessageTune()
DTunerSessionWorker.java360 public void tune(Uri channelUri) { in tune() argument
363 sendMessage(MSG_TUNE, channelUri); in tune()
835 private boolean handleMessageTune(Uri channelUri) { in handleMessageTune() argument
871 long channelId = parseChannel(channelUri); in handleMessageTune()
873 mRecordingUri = mSession.getRecordingUri(channelUri); in handleMessageTune()
875 recording = parseRecording(channelUri, channelId); in handleMessageTune()
878 mChannelUri = channelUri; in handleMessageTune()
886 Log.w(TAG, "onTune() is failed. Can't find channel for " + channelUri); in handleMessageTune()
/packages/apps/TV/common/tests/robotests/src/com/android/tv/common/support/tis/
DTisSessionTest.java47 assertThat(testCallback.channelUri).isEqualTo(uri); in notifyChannelReturned()
121 private Uri channelUri; field in TisSessionTest.TestCallback
132 public void notifyChannelRetuned(Uri channelUri) { in notifyChannelRetuned() argument
133 this.channelUri = channelUri; in notifyChannelRetuned()
195 public boolean onTune(Uri channelUri) { in onTune() argument
DSimpleSessionManagerTest.java114 public boolean onTune(Uri channelUri) { in onTune() argument
/packages/apps/TV/tests/input/src/com/android/tv/testinput/
DTestTvInputService.java212 public boolean onTune(Uri channelUri) { in onTune() argument
213 Log.i(TAG, "Tune to " + channelUri); in onTune()
215 mChannelUri = channelUri; in onTune()
216 ChannelInfo info = mBackend.getChannelInfo(channelUri); in onTune()
228 Log.i(TAG, "Channel not found for " + channelUri); in onTune()
230 } else if (!mTunerHelper.tune(channelUri, false)) { in onTune()
231 Log.i(TAG, "No available tuner for " + channelUri); in onTune()
443 final Uri channelUri = mChannelUri; in onStopRecording() local
471 channelUri, in onStopRecording()
494 values.put(RecordedPrograms.COLUMN_CHANNEL_ID, ContentUris.parseId(channelUri)); in onStopRecording()
DTestInputControl.java82 public ChannelInfo getChannelInfo(Uri channelUri) { in getChannelInfo() argument
83 return mId2ChannelInfoMap.get(ContentUris.parseId(channelUri)); in getChannelInfo()
/packages/apps/TV/common/src/com/android/tv/common/support/tis/
DTifSession.java75 public abstract boolean onTune(Uri channelUri); in onTune() argument
114 public final void notifyChannelRetuned(final Uri channelUri) { in notifyChannelRetuned() argument
115 callback.notifyChannelRetuned(channelUri); in notifyChannelRetuned()
174 void notifyChannelRetuned(final Uri channelUri); in notifyChannelRetuned() argument
DWrappedSession.java73 public boolean onTune(Uri channelUri) { in onTune() argument
74 return delegate.onTune(channelUri); in onTune()
/packages/providers/TvProvider/tests/src/com/android/providers/tv/
DParametersTest.java86 Uri channelUri = Channels.CONTENT_URI.buildUpon() in verifyChannelCountWithPreview() local
88 verifyChannelCount(channelUri, expectedCount); in verifyChannelCountWithPreview()
91 private void verifyChannelCount(Uri channelUri, int expectedCount) { in verifyChannelCount() argument
93 channelUri, new String[] {Channels.COLUMN_TYPE}, null, null, null)) { in verifyChannelCount()
95 assertEquals("Query:{Uri=" + channelUri + "}", expectedCount, cursor.getCount()); in verifyChannelCount()
/packages/apps/TV/src/com/android/tv/dvr/recorder/
DConflictChecker.java127 public void onTvViewChannelChange(@Nullable Uri channelUri) {
206 Uri channelUri = mSessionManager.getCurrentTvViewChannelUri(); in onCheckConflict() local
207 if (TvContract.isChannelUriForPassthroughInput(channelUri)) { in onCheckConflict()
211 long channelId = ContentUris.parseId(channelUri); in onCheckConflict()
/packages/apps/TV/src/com/android/tv/ui/
DTunableTvView.java235 public void onChannelRetuned(String inputId, Uri channelUri) {
242 + channelUri
246 mOnTuneListener.onChannelRetuned(channelUri);
503 public void warmUpInput(String inputId, Uri channelUri) { in warmUpInput() argument
504 if (!mStarted && inputId != null && channelUri != null) { in warmUpInput()
506 mTvViewSession.tune(inputId, channelUri); in warmUpInput()
508 mTvView.tune(inputId, channelUri); in warmUpInput()
/packages/apps/TV/src/com/android/tv/data/
DPreviewDataManager.java329 Uri channelUri = in doInBackground() local
334 if (channelUri != null) { in doInBackground()
335 previewChannelId = ContentUris.parseId(channelUri); in doInBackground()
/packages/apps/TV/tuner/src/com/android/tv/tuner/tvinput/factory/
DTunerSessionFactory.java46 Uri getRecordingUri(Uri channelUri); in getRecordingUri() argument

12