Home | History | Annotate | Download | only in tv

Lines Matching refs:inputId

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);
539 String inputId, int userId) {
545 if (sessionState.session == null && (inputId == null
546 || sessionState.info.getId().equals(inputId))) {
563 Slog.d(TAG, "createSessionInternalLocked(inputId=" + sessionState.info.getId() + ")");
582 private void sendSessionTokenToClientLocked(ITvInputClient client, String inputId,
585 client.onSessionCreated(inputId, sessionToken, channel, seq);
672 private void notifyInputAddedLocked(UserState userState, String inputId) {
674 Slog.d(TAG, "notifyInputAddedLocked(inputId=" + inputId + ")");
678 callback.onInputAdded(inputId);
685 private void notifyInputRemovedLocked(UserState userState, String inputId) {
687 Slog.d(TAG, "notifyInputRemovedLocked(inputId=" + inputId + ")");
691 callback.onInputRemoved(inputId);
698 private void notifyInputUpdatedLocked(UserState userState, String inputId) {
700 Slog.d(TAG, "notifyInputUpdatedLocked(inputId=" + inputId + ")");
704 callback.onInputUpdated(inputId);
711 private void notifyInputStateChangedLocked(UserState userState, String inputId,
714 Slog.d(TAG, "notifyInputStateChangedLocked(inputId=" + inputId
720 callback.onInputStateChanged(inputId, state);
727 targetCallback.onInputStateChanged(inputId, state);
734 private void setStateLocked(String inputId, int state, int userId) {
736 TvInputState inputState = userState.inputMap.get(inputId);
746 notifyInputStateChangedLocked(userState, inputId, state, null);
771 inputId, int userId) {
778 TvInputState state = userState.inputMap.get(inputId);
787 public int getTvInputState(String inputId, int userId) {
794 TvInputState state = userState.inputMap.get(inputId);
972 public void createSession(final ITvInputClient client, final String inputId,
981 TvInputState inputState = userState.inputMap.get(inputId);
983 Slog.w(TAG, "Failed to find input state for inputId=" + inputId);
984 sendSessionTokenToClientLocked(client, inputId, null, null, seq);
995 sendSessionTokenToClientLocked(client, inputId, null, null, seq);
1400 public List<TvStreamConfig> getAvailableTvStreamConfigList(String inputId, int userId)
1414 inputId, callingUid, resolvedUserId);
1421 public boolean captureFrame(String inputId, Surface surface, TvStreamConfig config,
1438 if (userState.inputMap.get(inputId) == null) {
1439 Slog.e(TAG, "input not found for " + inputId);
1443 if (sessionState.info.getId().equals(inputId)
1452 (hardwareInputId != null) ? hardwareInputId : inputId,
1513 pw.println("inputMap: inputId -> TvInputState");
1911 public void removeTvInput(String inputId) {
1918 if (it.next().getId().equals(inputId)) {
1926 mTvInputHardwareManager.removeTvInput(inputId);
1928 Slog.e(TAG, "failed to remove input " + inputId);
1946 Slog.d(TAG, "onSessionCreated(inputId=" + mSessionState.info.getId() + ")");
2253 public void onStateChanged(String inputId, int state) {
2255 setStateLocked(inputId, state, mCurrentUserId);
2324 public void onHdmiDeviceUpdated(String inputId, HdmiDeviceInfo deviceInfo) {
2342 setStateLocked(inputId, state.intValue(), mCurrentUserId);