/frameworks/base/media/java/android/media/tv/ |
H A D | ITvInputClient.aidl | 32 void onSessionCreated(in String inputId, IBinder token, in InputChannel channel, int seq);
|
H A D | ITvInputManager.aidl | 40 TvInputInfo getTvInputInfo(in String inputId, int userId); 41 int getTvInputState(in String inputId, int userId); 55 void createSession(in ITvInputClient client, in String inputId, int seq, int userId); 84 List<TvStreamConfig> getAvailableTvStreamConfigList(in String inputId, int userId); 85 boolean captureFrame(in String inputId, in Surface surface, in TvStreamConfig config,
|
H A D | 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);
|
H A D | ITvInputService.aidl | 33 in String inputId);
|
H A D | ITvInputServiceCallback.aidl | 29 void removeTvInput(in String inputId);
|
H A D | TvContract.java | 124 * @param inputId The ID of the pass-through input to build a channels URI for. 127 public static final Uri buildChannelUriForPassthroughInput(String inputId) { argument 129 .appendPath(PATH_PASSTHROUGH).appendPath(inputId).build(); 156 * @param inputId The ID of the TV input to build a channels URI for. If {@code null}, builds a 159 public static final Uri buildChannelsUriForInput(String inputId) { argument 160 return buildChannelsUriForInput(inputId, false); 166 * @param inputId The ID of the TV input to build a channels URI for. If {@code null}, builds a 174 public static final Uri buildChannelsUriForInput(String inputId, boolean browsableOnly) { argument 176 if (inputId != null) { 177 builder.appendQueryParameter(PARAM_INPUT, inputId); 196 buildChannelsUriForInput(String inputId, String genre, boolean browsableOnly) argument [all...] |
H A D | TvInputInfo.java | 593 private static boolean isHidden(Context context, String inputId, int userId) { argument 594 return getHiddenTvInputIds(context, userId).contains(inputId); 597 private static String getCustomLabel(Context context, String inputId, int userId) { argument 598 return getCustomLabels(context, userId).get(inputId); 660 for (String inputId : hiddenInputIds) { 661 ensureValidField(inputId); 667 builder.append(Uri.encode(inputId));
|
H A D | TvInputManager.java | 462 * @param inputId The id of the TV input. 470 public void onInputStateChanged(String inputId, int state) { argument 476 * @param inputId The id of the TV input. 478 public void onInputAdded(String inputId) { argument 484 * @param inputId The id of the TV input. 486 public void onInputRemoved(String inputId) { argument 494 * @param inputId The id of the TV input. 498 public void onInputUpdated(String inputId) { argument 515 public void postInputStateChanged(final String inputId, final int state) { argument 519 mCallback.onInputStateChanged(inputId, stat 524 postInputAdded(final String inputId) argument 533 postInputRemoved(final String inputId) argument 542 postInputUpdated(final String inputId) argument 800 getTvInputInfo(String inputId) argument 823 getInputState(String inputId) argument 1010 createSession(String inputId, final SessionCallback callback, Handler handler) argument 1048 getAvailableTvStreamConfigList(String inputId) argument 1066 captureFrame(String inputId, Surface surface, TvStreamConfig config) argument [all...] |
H A D | TvInputService.java | 121 String inputId) { 131 args.arg3 = inputId; 168 * @param inputId The ID of the TV input associated with the session. 170 public abstract Session onCreateSession(String inputId); argument 224 private boolean isPassthroughInput(String inputId) { argument 228 TvInputInfo info = mTvInputManager.getTvInputInfo(inputId); 1334 private void broadcastRemoveTvInput(String inputId) { argument 1338 mCallbacks.getBroadcastItem(i).removeTvInput(inputId); 1353 String inputId = (String) args.arg3; 1355 Session sessionImpl = onCreateSession(inputId); [all...] |
H A D | TvView.java | 273 * @param inputId The ID of TV input which will play the given channel. 276 public void tune(String inputId, Uri channelUri) { argument 277 tune(inputId, channelUri, null); 283 * @param inputId The ID of TV input which will play the given channel. 289 public void tune(String inputId, Uri channelUri, Bundle params) { argument 291 if (TextUtils.isEmpty(inputId)) { 292 throw new IllegalArgumentException("inputId cannot be null or an empty string"); 299 if (mSessionCallback != null && mSessionCallback.mInputId.equals(inputId)) { 315 mSessionCallback = new MySessionCallback(inputId, channelUri, params); 317 mTvInputManager.createSession(inputId, mSessionCallbac 742 onConnectionFailed(String inputId) argument 750 onDisconnected(String inputId) argument 760 onChannelRetuned(String inputId, Uri channelUri) argument 769 onTracksChanged(String inputId, List<TvTrackInfo> tracks) argument 781 onTrackSelected(String inputId, int type, String trackId) argument 793 onVideoSizeChanged(String inputId, int width, int height) argument 801 onVideoAvailable(String inputId) argument 816 onVideoUnavailable(String inputId, int reason) argument 825 onContentAllowed(String inputId) argument 835 onContentBlocked(String inputId, TvContentRating rating) argument 846 onEvent(String inputId, String eventType, Bundle eventArgs) argument 872 MySessionCallback(String inputId, Uri channelUri, Bundle tuneParams) argument [all...] |
/frameworks/base/services/core/java/com/android/server/hdmi/ |
H A D | HdmiCecLocalDeviceTv.java | 145 public void onInputAdded(String inputId) { 146 TvInputInfo tvInfo = mService.getTvInputManager().getTvInputInfo(inputId); 149 addTvInput(inputId, info.getId()); 156 public void onInputRemoved(String inputId) { 157 removeTvInput(inputId); 168 private void addTvInput(String inputId, int deviceId) { argument 170 mTvInputs.put(inputId, deviceId); 174 private void removeTvInput(String inputId) { argument 176 mTvInputs.remove(inputId);
|
/frameworks/base/services/core/java/com/android/server/tv/ |
H A D | TvInputHardwareManager.java | 214 String inputId = mHardwareInputIdMap.get(deviceId); 215 if (inputId != null) { 217 convertConnectedToState(configs.length > 0), 0, inputId).sendToTarget(); 300 String inputId = mHardwareInputIdMap.get(hardwareInfo.getDeviceId()); 301 if (inputId != null && inputId.equals(info.getId())) { 304 inputId).sendToTarget(); 356 public void removeTvInput(String inputId) { argument 358 mInputMap.remove(inputId); 359 int hardwareIndex = indexOfEqualValue(mHardwareInputIdMap, inputId); 431 findDeviceIdForInputIdLocked(String inputId) argument 444 getAvailableTvStreamConfigList(String inputId, int callingUid, int resolvedUserId) argument 466 captureFrame(String inputId, Surface surface, final TvStreamConfig config, int callingUid, int resolvedUserId) argument 1040 onStateChanged(String inputId, int state) argument 1045 onHdmiDeviceUpdated(String inputId, HdmiDeviceInfo device) argument [all...] |
H A D | TvInputManagerService.java | 322 for (String inputId : inputMap.keySet()) { 323 if (!userState.inputMap.containsKey(inputId)) { 324 notifyInputAddedLocked(userState, inputId); 327 ComponentName component = inputMap.get(inputId).info.getComponent(); 331 notifyInputUpdatedLocked(userState, inputId); 338 for (String inputId : userState.inputMap.keySet()) { 339 if (!inputMap.containsKey(inputId)) { 340 TvInputInfo info = userState.inputMap.get(inputId).info; 343 abortPendingCreateSessionRequestsLocked(serviceState, inputId, userId); 345 notifyInputRemovedLocked(userState, inputId); 538 abortPendingCreateSessionRequestsLocked(ServiceState serviceState, String inputId, int userId) argument 582 sendSessionTokenToClientLocked(ITvInputClient client, String inputId, IBinder sessionToken, InputChannel channel, int seq) argument 672 notifyInputAddedLocked(UserState userState, String inputId) argument 685 notifyInputRemovedLocked(UserState userState, String inputId) argument 698 notifyInputUpdatedLocked(UserState userState, String inputId) argument 711 notifyInputStateChangedLocked(UserState userState, String inputId, int state, ITvInputManagerCallback targetCallback) argument 734 setStateLocked(String inputId, int state, int userId) argument 771 getTvInputInfo(String inputId, int userId) argument 787 getTvInputState(String inputId, int userId) argument 972 createSession(final ITvInputClient client, final String inputId, int seq, int userId) argument 1400 getAvailableTvStreamConfigList(String inputId, int userId) argument 1421 captureFrame(String inputId, Surface surface, TvStreamConfig config, int userId) argument 1911 removeTvInput(String inputId) argument 2253 onStateChanged(String inputId, int state) argument 2324 onHdmiDeviceUpdated(String inputId, HdmiDeviceInfo deviceInfo) argument [all...] |
/frameworks/native/services/inputflinger/ |
H A D | EventHub.cpp | 1091 struct input_id inputId; local 1092 if(ioctl(fd, EVIOCGID, &inputId)) { 1097 identifier.bus = inputId.bustype; 1098 identifier.product = inputId.product; 1099 identifier.vendor = inputId.vendor; 1100 identifier.version = inputId.version;
|