Searched refs:inputId (Results 1 - 15 of 15) sorted by relevance

/frameworks/base/media/java/android/media/tv/
H A DITvInputManagerCallback.aidl26 void onInputAdded(in String inputId);
27 void onInputRemoved(in String inputId);
28 void onInputUpdated(in String inputId);
29 void onInputStateChanged(in String inputId, int state);
H A DITvInputServiceCallback.aidl29 void removeHardwareInput(in String inputId);
H A DITvInputService.aidl33 in String inputId);
34 void createRecordingSession(in ITvInputSessionCallback callback, in String inputId);
H A DTvRecordingClient.java82 * @param inputId The ID of the TV input for the given channel.
86 public void tune(String inputId, Uri channelUri) { argument
87 tune(inputId, channelUri, null);
104 * @param inputId The ID of the TV input for the given channel.
111 public void tune(String inputId, Uri channelUri, Bundle params) { argument
113 if (TextUtils.isEmpty(inputId)) {
114 throw new IllegalArgumentException("inputId cannot be null or an empty string");
119 if (mSessionCallback != null && TextUtils.equals(mSessionCallback.mInputId, inputId)) {
128 mSessionCallback = new MySessionCallback(inputId, channelUri, params);
130 mTvInputManager.createRecordingSession(inputId, mSessionCallbac
236 onConnectionFailed(String inputId) argument
244 onDisconnected(String inputId) argument
289 onEvent(String inputId, String eventType, Bundle eventArgs) argument
298 MySessionCallback(String inputId, Uri channelUri, Bundle connectionParams) argument
[all...]
H A DTvInputManager.java726 * @param inputId The ID of the TV input.
734 public void onInputStateChanged(String inputId, @InputState int state) { argument
743 * @param inputId The ID of the TV input.
745 public void onInputAdded(String inputId) { argument
754 * @param inputId The ID of the TV input.
756 public void onInputRemoved(String inputId) { argument
765 * @param inputId The ID of the TV input.
767 public void onInputUpdated(String inputId) { argument
796 public void postInputAdded(final String inputId) { argument
800 mCallback.onInputAdded(inputId);
805 postInputRemoved(final String inputId) argument
814 postInputUpdated(final String inputId) argument
823 postInputStateChanged(final String inputId, final int state) argument
1179 getTvInputInfo(@onNull String inputId) argument
1228 getInputState(@onNull String inputId) argument
1400 createSession(@onNull String inputId, @NonNull final SessionCallback callback, @NonNull Handler handler) argument
1416 createRecordingSession(@onNull String inputId, @NonNull final SessionCallback callback, @NonNull Handler handler) argument
1421 createSessionInternal(String inputId, boolean isRecordingSession, SessionCallback callback, Handler handler) argument
1453 getAvailableTvStreamConfigList(String inputId) argument
1471 captureFrame(String inputId, Surface surface, TvStreamConfig config) argument
[all...]
H A DITvInputManager.aidl43 TvInputInfo getTvInputInfo(in String inputId, int userId);
45 int getTvInputState(in String inputId, int userId);
59 void createSession(in ITvInputClient client, in String inputId, boolean isRecordingSession,
100 List<TvStreamConfig> getAvailableTvStreamConfigList(in String inputId, int userId);
101 boolean captureFrame(in String inputId, in Surface surface, in TvStreamConfig config,
H A DTvView.java288 * @param inputId The ID of the TV input for the given channel.
291 public void tune(@NonNull String inputId, Uri channelUri) { argument
292 tune(inputId, channelUri, null);
299 * @param inputId The ID of TV input for the given channel.
305 public void tune(String inputId, Uri channelUri, Bundle params) { argument
307 if (TextUtils.isEmpty(inputId)) {
308 throw new IllegalArgumentException("inputId cannot be null or an empty string");
315 if (mSessionCallback != null && TextUtils.equals(mSessionCallback.mInputId, inputId)) {
319 // createSession() was called but the actual session for the given inputId has not
322 // a new callback because this tuning request was made on the same inputId
468 timeShiftPlay(String inputId, Uri recordedProgramUri) argument
867 onTimeShiftStartPositionChanged(String inputId, long timeMs) argument
882 onTimeShiftCurrentPositionChanged(String inputId, long timeMs) argument
897 onConnectionFailed(String inputId) argument
905 onDisconnected(String inputId) argument
915 onChannelRetuned(String inputId, Uri channelUri) argument
924 onTracksChanged(String inputId, List<TvTrackInfo> tracks) argument
936 onTrackSelected(String inputId, int type, String trackId) argument
948 onVideoSizeChanged(String inputId, int width, int height) argument
956 onVideoAvailable(String inputId) argument
972 onVideoUnavailable( String inputId, @TvInputManager.VideoUnavailableReason int reason) argument
982 onContentAllowed(String inputId) argument
992 onContentBlocked(String inputId, TvContentRating rating) argument
1004 onEvent(String inputId, String eventType, Bundle eventArgs) argument
1018 onTimeShiftStatusChanged( String inputId, @TvInputManager.TimeShiftStatus int status) argument
1046 MySessionCallback(String inputId, Uri channelUri, Bundle tuneParams) argument
1052 MySessionCallback(String inputId, Uri recordedProgramUri) argument
[all...]
H A DITvInputClient.aidl32 void onSessionCreated(in String inputId, IBinder token, in InputChannel channel, int seq);
H A DTvContract.java135 * @param inputId The ID of the pass-through input to build a channels URI for.
138 public static final Uri buildChannelUriForPassthroughInput(String inputId) { argument
140 .appendPath(PATH_PASSTHROUGH).appendPath(inputId).build();
167 * @param inputId The ID of the TV input to build a channels URI for. If {@code null}, builds a
170 public static final Uri buildChannelsUriForInput(@Nullable String inputId) { argument
171 return buildChannelsUriForInput(inputId, false);
177 * @param inputId The ID of the TV input to build a channels URI for. If {@code null}, builds a
185 public static final Uri buildChannelsUriForInput(@Nullable String inputId, argument
188 if (inputId != null) {
189 builder.appendQueryParameter(PARAM_INPUT, inputId);
208 buildChannelsUriForInput(@ullable String inputId, @Nullable String genre, boolean browsableOnly) argument
[all...]
H A DTvInputService.java128 String inputId) {
138 args.arg3 = inputId;
143 public void createRecordingSession(ITvInputSessionCallback cb, String inputId) {
149 args.arg2 = inputId;
187 * @param inputId The ID of the TV input associated with the session.
190 public abstract Session onCreateSession(String inputId); argument
198 * @param inputId The ID of the TV input associated with the recording session.
201 public RecordingSession onCreateRecordingSession(String inputId) { argument
261 private boolean isPassthroughInput(String inputId) { argument
265 TvInputInfo info = mTvInputManager.getTvInputInfo(inputId);
1985 broadcastRemoveHardwareInput(String inputId) argument
[all...]
H A DTvInputInfo.java989 private static boolean isHidden(Context context, String inputId, int userId) { argument
990 return getHiddenTvInputIds(context, userId).contains(inputId);
993 private static String getCustomLabel(Context context, String inputId, int userId) { argument
994 return getCustomLabels(context, userId).get(inputId);
1056 for (String inputId : hiddenInputIds) {
1057 ensureValidField(inputId);
1063 builder.append(Uri.encode(inputId));
1070 for (String inputId : hiddenInputIds) {
1071 TvInputInfo info = tm.getTvInputInfo(inputId);
1109 for (String inputId
[all...]
/frameworks/base/services/core/java/com/android/server/tv/
H A DTvInputHardwareManager.java213 String inputId = mHardwareInputIdMap.get(deviceId);
214 if (inputId != null) {
216 convertConnectedToState(configs.length > 0), 0, inputId).sendToTarget();
294 String inputId = mHardwareInputIdMap.get(hardwareInfo.getDeviceId());
295 if (inputId != null && inputId.equals(info.getId())) {
298 inputId).sendToTarget();
349 public void removeHardwareInput(String inputId) { argument
351 mInputMap.remove(inputId);
352 int hardwareIndex = indexOfEqualValue(mHardwareInputIdMap, inputId);
424 findDeviceIdForInputIdLocked(String inputId) argument
437 getAvailableTvStreamConfigList(String inputId, int callingUid, int resolvedUserId) argument
459 captureFrame(String inputId, Surface surface, final TvStreamConfig config, int callingUid, int resolvedUserId) argument
1119 onStateChanged(String inputId, int state) argument
1124 onHdmiDeviceUpdated(String inputId, HdmiDeviceInfo device) argument
[all...]
H A DTvInputManagerService.java355 for (String inputId : inputMap.keySet()) {
356 if (!userState.inputMap.containsKey(inputId)) {
357 notifyInputAddedLocked(userState, inputId);
360 ComponentName component = inputMap.get(inputId).info.getComponent();
364 notifyInputUpdatedLocked(userState, inputId);
371 for (String inputId : userState.inputMap.keySet()) {
372 if (!inputMap.containsKey(inputId)) {
373 TvInputInfo info = userState.inputMap.get(inputId).info;
376 abortPendingCreateSessionRequestsLocked(serviceState, inputId, userId);
378 notifyInputRemovedLocked(userState, inputId);
645 abortPendingCreateSessionRequestsLocked(ServiceState serviceState, String inputId, int userId) argument
693 sendSessionTokenToClientLocked(ITvInputClient client, String inputId, IBinder sessionToken, InputChannel channel, int seq) argument
780 notifyInputAddedLocked(UserState userState, String inputId) argument
793 notifyInputRemovedLocked(UserState userState, String inputId) argument
806 notifyInputUpdatedLocked(UserState userState, String inputId) argument
819 notifyInputStateChangedLocked(UserState userState, String inputId, int state, ITvInputManagerCallback targetCallback) argument
863 setStateLocked(String inputId, int state, int userId) argument
900 getTvInputInfo(String inputId, int userId) argument
946 getTvInputState(String inputId, int userId) argument
1131 createSession(final ITvInputClient client, final String inputId, boolean isRecordingSession, int seq, int userId) argument
1798 getAvailableTvStreamConfigList(String inputId, int userId) argument
1819 captureFrame(String inputId, Surface surface, TvStreamConfig config, int userId) argument
2109 private final String inputId; field in class:TvInputManagerService.SessionState
2122 SessionState(IBinder sessionToken, String inputId, ComponentName componentName, boolean isRecordingSession, ITvInputClient client, int seq, int callingUid, int userId) argument
2281 removeHardwareInput(String inputId) argument
2736 onStateChanged(String inputId, int state) argument
2807 onHdmiDeviceUpdated(String inputId, HdmiDeviceInfo deviceInfo) argument
[all...]
/frameworks/base/services/core/java/com/android/server/hdmi/
H A DHdmiCecLocalDeviceTv.java139 public void onInputAdded(String inputId) {
140 TvInputInfo tvInfo = mService.getTvInputManager().getTvInputInfo(inputId);
144 addTvInput(inputId, info.getId());
151 public void onInputRemoved(String inputId) {
152 removeTvInput(inputId);
163 private void addTvInput(String inputId, int deviceId) { argument
165 mTvInputs.put(inputId, deviceId);
169 private void removeTvInput(String inputId) { argument
171 mTvInputs.remove(inputId);
/frameworks/native/services/inputflinger/
H A DEventHub.cpp1108 struct input_id inputId; local
1109 if(ioctl(fd, EVIOCGID, &inputId)) {
1114 identifier.bus = inputId.bustype;
1115 identifier.product = inputId.product;
1116 identifier.vendor = inputId.vendor;
1117 identifier.version = inputId.version;

Completed in 2020 milliseconds