HomeSort by relevance Sort by last modified time
    Searched full:inputid (Results 1 - 25 of 41) sorted by null

1 2

  /frameworks/base/media/java/android/media/tv/
ITvInputManagerCallback.aidl 24 void onInputStateChanged(in String inputId, int state);
25 void onInputAdded(in String inputId);
26 void onInputRemoved(in String inputId);
27 void onInputUpdated(in String inputId);
TvView.java 275 * @param inputId The ID of the TV input for the given channel.
278 public void tune(@NonNull String inputId, Uri channelUri) {
279 tune(inputId, channelUri, null);
285 * @param inputId The ID of TV input for the given channel.
291 public void tune(String inputId, Uri channelUri, Bundle params) {
293 if (TextUtils.isEmpty(inputId)) {
294 throw new IllegalArgumentException("inputId cannot be null or an empty string");
301 if (mSessionCallback != null && TextUtils.equals(mSessionCallback.mInputId, inputId)) {
305 // createSession() was called but the actual session for the given inputId has not
308 // a new callback because this tuning request was made on the same inputId
    [all...]
ITvInputManager.aidl 43 TvInputInfo getTvInputInfo(in String inputId, int userId);
44 int getTvInputState(in String inputId, int userId);
58 void createSession(in ITvInputClient client, in String inputId, int seq, int userId);
93 List<TvStreamConfig> getAvailableTvStreamConfigList(in String inputId, int userId);
94 boolean captureFrame(in String inputId, in Surface surface, in TvStreamConfig config,
ITvInputServiceCallback.aidl 29 void removeTvInput(in String inputId);
TvInputManager.java 577 * @param inputId The id of the TV input.
585 public void onInputStateChanged(String inputId, int state) {
594 * @param inputId The id of the TV input.
596 public void onInputAdded(String inputId) {
605 * @param inputId The id of the TV input.
607 public void onInputRemoved(String inputId) {
616 * @param inputId The id of the TV input.
620 public void onInputUpdated(String inputId) {
637 public void postInputStateChanged(final String inputId, final int state) {
641 mCallback.onInputStateChanged(inputId, state)
    [all...]
ITvInputService.aidl 33 in String inputId);
ITvInputClient.aidl 32 void onSessionCreated(in String inputId, IBinder token, in InputChannel channel, int seq);
TvInputInfo.java 673 private static boolean isHidden(Context context, String inputId, int userId) {
674 return getHiddenTvInputIds(context, userId).contains(inputId);
677 private static String getCustomLabel(Context context, String inputId, int userId) {
678 return getCustomLabels(context, userId).get(inputId);
740 for (String inputId : hiddenInputIds) {
741 ensureValidField(inputId);
747 builder.append(Uri.encode(inputId));
  /developers/build/prebuilts/androidtv/sample-inputs/app/src/main/java/com/example/android/sampletvinput/syncadapter/
SyncUtils.java 35 public static void setUpPeriodicSync(Context context, String inputId) {
45 bundle.putString(SyncAdapter.BUNDLE_KEY_INPUT_ID, inputId);
50 public static void requestSync(String inputId) {
54 bundle.putString(SyncAdapter.BUNDLE_KEY_INPUT_ID, inputId);
SyncAdapter.java 74 String inputId = extras.getString(SyncAdapter.BUNDLE_KEY_INPUT_ID);
75 if (inputId == null) {
80 mContext.getContentResolver(), inputId, channels);
  /cts/tests/tests/tv/src/android/media/tv/cts/
TvInputManagerTest.java 199 public synchronized void onInputAdded(String inputId) {
200 mAddedInputs.add(inputId);
204 public synchronized void onInputRemoved(String inputId) {
205 mRemovedInputs.add(inputId);
213 public synchronized boolean isInputAdded(String inputId) {
215 inputId);
218 public synchronized boolean isInputRemoved(String inputId) {
220 inputId);
226 public Session onCreateSession(String inputId) {
TvViewTest.java 66 public boolean isVideoAvailable(String inputId) {
68 Boolean available = mVideoAvailableMap.get(inputId);
73 public int getSelectedTrackGeneration(String inputId, int type) {
76 mSelectedTrackGenerationMap.get(inputId);
93 public void onConnectionFailed(String inputId) {
98 public void onVideoAvailable(String inputId) {
100 mVideoAvailableMap.put(inputId, true);
105 public void onVideoUnavailable(String inputId, int reason) {
107 mVideoAvailableMap.put(inputId, false);
112 public void onTrackSelected(String inputId, int type, String trackId)
    [all...]
TvInputInfoTest.java 108 String inputId = intent.getStringExtra(TvInputInfo.EXTRA_INPUT_ID);
109 assertEquals(mStubInfo.getId(), inputId);
120 String inputId = intent.getStringExtra(TvInputInfo.EXTRA_INPUT_ID);
121 assertEquals(mStubInfo.getId(), inputId);
BundledTvInputServiceTest.java 57 public Integer getVideoUnavailableReason(String inputId) {
58 return mVideoUnavailableReasonMap.get(inputId);
62 public void onVideoAvailable(String inputId) {
64 mVideoUnavailableReasonMap.put(inputId, VIDEO_AVAILABLE);
69 public void onVideoUnavailable(String inputId, int reason) {
71 mVideoUnavailableReasonMap.put(inputId, reason);
TvInputServiceTest.java 80 public void onChannelRetuned(String inputId, Uri channelUri) {
85 public void onVideoAvailable(String inputId) {
90 public void onVideoUnavailable(String inputId, int reason) {
95 public void onTrackSelected(String inputId, int type, String trackId) {
100 public void onTracksChanged(String inputId, List<TvTrackInfo> trackList) {
105 public void onVideoSizeChanged(String inputId, int width, int height) {
110 public void onContentAllowed(String inputId) {
115 public void onContentBlocked(String inputId, TvContentRating rating) {
120 public void onTimeShiftStatusChanged(String inputId, int status) {
141 public void onTimeShiftStartPositionChanged(String inputId, long timeMs)
    [all...]
StubTvInputService.java 29 public Session onCreateSession(String inputId) {
  /frameworks/base/services/core/java/com/android/server/tv/
TvInputManagerService.java 339 for (String inputId : inputMap.keySet()) {
340 if (!userState.inputMap.containsKey(inputId)) {
341 notifyInputAddedLocked(userState, inputId);
344 ComponentName component = inputMap.get(inputId).info.getComponent();
348 notifyInputUpdatedLocked(userState, inputId);
355 for (String inputId : userState.inputMap.keySet()) {
356 if (!inputMap.containsKey(inputId)) {
357 TvInputInfo info = userState.inputMap.get(inputId).info;
360 abortPendingCreateSessionRequestsLocked(serviceState, inputId, userId);
362 notifyInputRemovedLocked(userState, inputId);
    [all...]
TvInputHardwareManager.java 206 String inputId = mHardwareInputIdMap.get(deviceId);
207 if (inputId != null) {
209 convertConnectedToState(configs.length > 0), 0, inputId).sendToTarget();
287 String inputId = mHardwareInputIdMap.get(hardwareInfo.getDeviceId());
288 if (inputId != null && inputId.equals(info.getId())) {
291 inputId).sendToTarget();
342 public void removeTvInput(String inputId) {
344 mInputMap.remove(inputId);
345 int hardwareIndex = indexOfEqualValue(mHardwareInputIdMap, inputId);
    [all...]
  /packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
InputsActivity.java 370 private void handleHide(String inputId, boolean hide) {
371 if (DEBUG) Log.d(TAG, "Hide " + inputId + ": " + hide);
375 if (!mHiddenIds.contains(inputId)) {
376 mHiddenIds.add(inputId);
380 if (mHiddenIds.contains(inputId)) {
381 mHiddenIds.remove(inputId);
396 private void saveCustomLabel(String inputId, String label) {
397 if (DEBUG) Log.d(TAG, "Setting " + inputId + " => " + label);
400 mCustomLabels.put(inputId, label);
402 mCustomLabels.remove(inputId);
    [all...]
  /developers/build/prebuilts/androidtv/sample-inputs/app/src/main/java/com/example/android/sampletvinput/
TvContractUtils.java 70 Context context, String inputId, List<ChannelInfo> channels) {
73 Uri channelsUri = TvContract.buildChannelsUriForInput(inputId);
92 values.put(Channels.COLUMN_INPUT_ID, inputId);
131 public static int getChannelCount(ContentResolver resolver, String inputId) {
132 Uri uri = TvContract.buildChannelsUriForInput(inputId);
154 String inputId, List<ChannelInfo> channels) {
155 Uri uri = TvContract.buildChannelsUriForInput(inputId);
293 public static String getServiceNameFromInputId(Context context, String inputId) {
296 if (info.getId().equals(inputId)) {
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/tv/
MockTvInputSetupActivity.java 57 final String inputId = getIntent().getStringExtra(TvInputInfo.EXTRA_INPUT_ID);
58 final Uri uri = TvContract.buildChannelsUriForInput(inputId);
69 values.put(TvContract.Channels.COLUMN_INPUT_ID, inputId);
  /developers/build/prebuilts/androidtv/sample-inputs/app/src/main/java/com/example/android/sampletvinput/rich/
RichSetupFragment.java 207 private void setupChannels(String inputId) {
211 TvContractUtils.updateChannels(getActivity(), inputId, mChannels);
212 SyncUtils.setUpPeriodicSync(getActivity(), inputId);
213 SyncUtils.requestSync(inputId);
RichSettingsFragment.java 76 String inputId = getActivity().getIntent().getStringExtra(TvInputInfo.EXTRA_INPUT_ID);
77 String serviceName = TvContractUtils.getServiceNameFromInputId(getActivity(), inputId);
  /external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
RegionTest.java 391 String inputID = data[0];
394 Region r = Region.getInstance(inputID);
396 errln("Unexpected region ID for Region.getInstance(\"" + inputID + "\"); Expected: " + expectedID + " Got: " + r.toString());
399 errln("Unexpected region type for Region.getInstance(\"" + inputID + "\"); Expected: " + expectedType + " Got: " + r.getType());
421 String inputID = data[0];
424 Region r = Region.getInstance(Integer.valueOf(inputID));
426 errln("Unexpected region ID for Region.getInstance(" + inputID + "); Expected: " + expectedID + " Got: " + r.toString());
429 errln("Unexpected region type for Region.getInstance(" + inputID + "); Expected: " + expectedType + " Got: " + r.getType());
529 String inputID = data[0];
531 Region r = Region.getInstance(inputID);
    [all...]
  /external/icu/icu4c/source/test/intltest/
regiontst.cpp 395 const char *inputID;
429 r = Region::getInstance(data.inputID,status);
440 dataerrln("Unexpected region ID for Region::getInstance(\"%s\"); Expected: %s Got: %s",data.inputID,data.expectedID,id);
443 dataerrln("Unexpected region type for Region::getInstance(\"%s\"); Expected: %d Got: %d",data.inputID,data.expectedType,type);
450 int32_t inputID;
473 const Region *r = Region::getInstance(data.inputID,status);
484 dataerrln("Unexpected region ID for Region.getInstance(%d)); Expected: %s Got: %s",data.inputID,data.expectedID,id);
487 dataerrln("Unexpected region type for Region.getInstance(%d)); Expected: %d Got: %d",data.inputID,data.expectedType,type);
    [all...]

Completed in 266 milliseconds

1 2