/packages/apps/TV/tests/common/src/com/android/tv/input/ |
TunerHelper.java | 60 public boolean tune(@Nullable Uri channelUri, boolean forRecording) { 61 if (channelUri == null) { 66 if (tuner.channelUri.equals(channelUri)) { 78 mTuners.add(new Tuner(channelUri, forRecording)); 88 public void stopTune(@Nullable Uri channelUri) { 89 if (channelUri == null) { 96 if (tuner.channelUri.equals(channelUri) && tuner.tuning) { 116 public void stopRecording(@Nullable Uri channelUri) { [all...] |
/packages/apps/TV/src/com/android/tv/tuner/tvinput/ |
TunerRecordingSession.java | 47 public void onTune(Uri channelUri) { 50 Log.d(TAG, "Requesting recording session tune: " + channelUri); 52 mSessionWorker.tune(channelUri); 84 public void onTuned(Uri channelUri) { 88 notifyTuned(channelUri);
|
TunerSession.java | 174 public boolean onTune(Uri channelUri) { 176 Log.d(TAG, "onTune to " + channelUri != null ? channelUri.toString() : ""); 178 if (channelUri == null) { 179 Log.w(TAG, "onTune() is failed due to null channelUri."); 184 mSessionWorker.tune(channelUri); 193 Log.w(TAG, "onTimeShiftPlay() is failed due to null channelUri.");
|
/packages/apps/TV/src/com/android/tv/ |
SelectInputActivity.java | 55 private void startTvWithChannel(Uri channelUri) { 56 Intent intent = new Intent(Intent.ACTION_VIEW, channelUri, 65 Uri channelUri = Uri.parse(channelUriString); 66 if (TvContract.isChannelUriForPassthroughInput(channelUri)) { 67 mSelectInputView.setCurrentChannel(Channel.createPassthroughChannel(channelUri));
|
InputSessionManager.java | 152 void notifyTvViewChannelChange(Uri channelUri) { 154 l.onTvViewChannelChange(channelUri); 209 boolean isTunedForTvView(Uri channelUri) { 211 if (session.mTuned && Objects.equals(channelUri, session.mChannelUri)) { 230 boolean isTunedForRecording(Uri channelUri) { 233 if (session.mTuned && Objects.equals(channelUri, session.mChannelUri)) { 290 public void tune(String inputId, Uri channelUri) { 292 Log.d(TAG, "warm-up tune: {input=" + inputId + ", channelUri=" + channelUri + "}"); 295 mChannelUri = channelUri; [all...] |
/frameworks/base/media/java/android/media/tv/ |
ITvInputSessionCallback.aidl | 32 void onChannelRetuned(in Uri channelUri); 45 void onTuned(in Uri channelUri);
|
TvRecordingClient.java | 83 * @param channelUri The URI of a channel. 86 public void tune(String inputId, Uri channelUri) { 87 tune(inputId, channelUri, null); 105 * @param channelUri The URI of a channel. 111 public void tune(String inputId, Uri channelUri, Bundle params) { 112 if (DEBUG) Log.d(TAG, "tune(" + channelUri + ")"); 121 mSession.tune(channelUri, params); 123 mSessionCallback.mChannelUri = channelUri; 128 mSessionCallback = new MySessionCallback(inputId, channelUri, params); 251 * @param channelUri The URI of a channel [all...] |
ITvInputClient.aidl | 35 void onChannelRetuned(in Uri channelUri, int seq); 48 void onTuned(int seq, in Uri channelUri);
|
ITvInputSession.aidl | 39 void tune(in Uri channelUri, in Bundle params);
|
TvContract.java | 503 * @param channelUri The URI of the channel whose logo is pointed to. 505 public static Uri buildChannelLogoUri(Uri channelUri) { 506 if (!isChannelUriForTunerInput(channelUri)) { 507 throw new IllegalArgumentException("Not a channel: " + channelUri); 509 return Uri.withAppendedPath(channelUri, Channels.Logo.CONTENT_DIRECTORY); 590 * @param channelUri The URI of the channel to return programs for. 592 public static Uri buildProgramsUriForChannel(Uri channelUri) { 593 if (!isChannelUriForTunerInput(channelUri)) { 594 throw new IllegalArgumentException("Not a channel: " + channelUri); 596 return buildProgramsUriForChannel(ContentUris.parseId(channelUri)); [all...] |
/frameworks/support/tv-provider/tests/src/android/support/media/tv/ |
ChannelTest.java | 101 Uri channelUri = resolver.insert(Channels.CONTENT_URI, contentValues); 102 assertNotNull(channelUri); 104 Channel channelFromSystemDb = loadChannelFromContentProvider(resolver, channelUri); 117 Uri channelUri = resolver.insert(Channels.CONTENT_URI, contentValues); 118 assertNotNull(channelUri); 120 Channel channelFromSystemDb = loadChannelFromContentProvider(resolver, channelUri); 126 assertEquals(1, resolver.update(channelUri, updatedChannel.toContentValues(), null, null)); 127 channelFromSystemDb = loadChannelFromContentProvider(resolver, channelUri); 134 channelUri, updatedChannel.toContentValues(), null, null)); 135 channelFromSystemDb = loadChannelFromContentProvider(resolver, channelUri); [all...] |
ProgramTest.java | 107 Uri channelUri = resolver.insert(Channels.CONTENT_URI, channel.toContentValues()); 108 assertNotNull(channelUri); 111 createFullyPopulatedProgram(ContentUris.parseId(channelUri)); 129 Uri channelUri = resolver.insert(Channels.CONTENT_URI, channel.toContentValues()); 130 assertNotNull(channelUri); 133 createFullyPopulatedProgram(ContentUris.parseId(channelUri));
|
/packages/apps/TV/tests/common/src/com/android/tv/testing/ |
ProgramUtils.java | 47 public static void populatePrograms(Context context, Uri channelUri, ProgramInfo program) { 49 long channelId = ContentUris.parseId(channelUri); 58 long timeMs = getLastProgramEndTimeMs(context, channelUri, currentTimeMs, targetEndTimeMs); 93 if (DEBUG) Log.d(TAG, "Inserted " + list.size() + " programs for " + channelUri); 100 Context context, Uri channelUri, long startTimeMs, long endTimeMs) { 101 Uri uri = TvContract.buildProgramsUriForChannel(channelUri, startTimeMs, endTimeMs);
|
/cts/hostsidetests/tv/app/src/com/android/cts/tv/hostside/ |
StubTvInputService.java | 52 public boolean onTune(Uri channelUri) {
|
/cts/tests/tests/tv/src/android/media/tv/cts/ |
StubTvInputService.java | 52 public boolean onTune(Uri channelUri) {
|
TvContractTest.java | 305 private void verifyChannel(Uri channelUri, ContentValues expectedValues, long channelId) { 306 verifyChannel(channelUri, expectedValues, channelId, true); 309 private void verifyChannel(Uri channelUri, ContentValues expectedValues, long channelId, 312 channelUri, CHANNELS_PROJECTION, null, null, null)) { 336 private void verifyNonExistingColumn(Uri channelUri, long channelId) { 341 try (Cursor cursor = mContentResolver.query(channelUri, projection, null, null, null)) { 360 Uri channelUri = TvContract.buildChannelUri(channelId); 361 verifyChannel(channelUri, values, channelId); 368 mContentResolver.update(channelUri, values, null, null); 369 verifyChannel(channelUri, values, channelId) [all...] |
FaultyTvInputService.java | 47 public boolean onTune(Uri ChannelUri) { 70 public void onTune(Uri channelUri) {
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/tv/ |
MockTvInputSetupActivity.java | 93 Uri channelUri = getContentResolver().insert(uri, values); 95 if (ContentUris.parseId(channelUri) == 0) { 96 getContentResolver().delete(channelUri, null, null); 97 channelUri = getContentResolver().insert(uri, values); 102 values.put(Programs.COLUMN_CHANNEL_ID, ContentUris.parseId(channelUri));
|
/cts/tests/tvprovider/src/android/tvprovider/cts/ |
TvProviderPerfTest.java | 123 Uri channelUri = TvContract.buildChannelUri(cursor.getLong(0)); 126 ContentProviderOperation.newUpdate(channelUri) 230 Uri channelUri = channelUris.get(i); 231 long channelId = ContentUris.parseId(channelUri); 258 Uri channelUri = channelUris.get(i); 261 TvContract.buildProgramsUriForChannel(channelUri), 307 Uri channelUri = channelUris.get(i); 310 channelUri, 0, 347 Uri channelUri = channelUris.get(i); 350 channelUri, [all...] |
/packages/apps/TV/tests/input/src/com/android/tv/testinput/ |
TestInputControl.java | 80 public ChannelInfo getChannelInfo(Uri channelUri) { 81 return mId2ChannelInfoMap.get(ContentUris.parseId(channelUri));
|
TestTvInputService.java | 210 public boolean onTune(Uri channelUri) { 211 Log.i(TAG, "Tune to " + channelUri); 213 mChannelUri = channelUri; 214 ChannelInfo info = mBackend.getChannelInfo(channelUri); 225 Log.i(TAG, "Channel not found for " + channelUri); 227 } else if (!mTunerHelper.tune(channelUri, false)) { 228 Log.i(TAG, "No available tuner for " + channelUri); 438 final Uri channelUri = mChannelUri; 457 TvContract.buildProgramsUriForChannel(channelUri, startTime, 476 ContentUris.parseId(channelUri)); [all...] |
/developers/build/prebuilts/androidtv/sample-inputs/app/src/main/java/com/example/android/sampletvinput/syncadapter/ |
SyncAdapter.java | 82 Uri channelUri = TvContract.buildChannelUri(channelMap.keyAt(i)); 83 insertPrograms(channelUri, channelMap.valueAt(i)); 90 * @param channelUri The channel where the program info will be added. 93 private void insertPrograms(Uri channelUri, ChannelInfo channelInfo) { 100 values.put(TvContract.Programs.COLUMN_CHANNEL_ID, ContentUris.parseId(channelUri)); 120 mContext.getContentResolver(), channelUri) / 1000;
|
/packages/providers/TvProvider/tests/src/com/android/providers/tv/ |
ParametersTest.java | 86 Uri channelUri = Channels.CONTENT_URI.buildUpon() 88 verifyChannelCount(channelUri, expectedCount); 91 private void verifyChannelCount(Uri channelUri, int expectedCount) { 93 channelUri, new String[] {Channels.COLUMN_TYPE}, null, null, null)) { 95 assertEquals("Query:{Uri=" + channelUri + "}", expectedCount, cursor.getCount());
|
/developers/build/prebuilts/androidtv/sample-inputs/app/src/main/java/com/example/android/sampletvinput/simple/ |
SimpleTvInputService.java | 88 public boolean onTune(Uri channelUri) { 93 cursor = getContentResolver().query(channelUri, projection, null, null, null);
|
/packages/apps/TV/src/com/android/tv/dvr/recorder/ |
ConflictChecker.java | 112 public void onTvViewChannelChange(@Nullable Uri channelUri) { 204 Uri channelUri = mSessionManager.getCurrentTvViewChannelUri(); 205 if (TvContract.isChannelUriForPassthroughInput(channelUri)) { 209 long channelId = ContentUris.parseId(channelUri);
|