Lines Matching refs:inputId

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);
572 String inputId, int userId) {
578 if (sessionState.session == null && (inputId == null
579 || sessionState.info.getId().equals(inputId))) {
596 Slog.d(TAG, "createSessionInternalLocked(inputId=" + sessionState.info.getId() + ")");
615 private void sendSessionTokenToClientLocked(ITvInputClient client, String inputId,
618 client.onSessionCreated(inputId, sessionToken, channel, seq);
705 private void notifyInputAddedLocked(UserState userState, String inputId) {
707 Slog.d(TAG, "notifyInputAddedLocked(inputId=" + inputId + ")");
711 callback.onInputAdded(inputId);
718 private void notifyInputRemovedLocked(UserState userState, String inputId) {
720 Slog.d(TAG, "notifyInputRemovedLocked(inputId=" + inputId + ")");
724 callback.onInputRemoved(inputId);
731 private void notifyInputUpdatedLocked(UserState userState, String inputId) {
733 Slog.d(TAG, "notifyInputUpdatedLocked(inputId=" + inputId + ")");
737 callback.onInputUpdated(inputId);
744 private void notifyInputStateChangedLocked(UserState userState, String inputId,
747 Slog.d(TAG, "notifyInputStateChangedLocked(inputId=" + inputId
753 callback.onInputStateChanged(inputId, state);
760 targetCallback.onInputStateChanged(inputId, state);
767 private void setStateLocked(String inputId, int state, int userId) {
769 TvInputState inputState = userState.inputMap.get(inputId);
779 notifyInputStateChangedLocked(userState, inputId, state, null);
804 public TvInputInfo getTvInputInfo(String inputId, int userId) {
811 TvInputState state = userState.inputMap.get(inputId);
820 public int getTvInputState(String inputId, int userId) {
827 TvInputState state = userState.inputMap.get(inputId);
1005 public void createSession(final ITvInputClient client, final String inputId,
1014 TvInputState inputState = userState.inputMap.get(inputId);
1016 Slog.w(TAG, "Failed to find input state for inputId=" + inputId);
1017 sendSessionTokenToClientLocked(client, inputId, null, null, seq);
1028 sendSessionTokenToClientLocked(client, inputId, null, null, seq);
1602 public List<TvStreamConfig> getAvailableTvStreamConfigList(String inputId, int userId)
1616 inputId, callingUid, resolvedUserId);
1623 public boolean captureFrame(String inputId, Surface surface, TvStreamConfig config,
1640 if (userState.inputMap.get(inputId) == null) {
1641 Slog.e(TAG, "input not found for " + inputId);
1645 if (sessionState.info.getId().equals(inputId)
1654 (hardwareInputId != null) ? hardwareInputId : inputId,
1714 pw.println("inputMap: inputId -> TvInputState");
2101 public void removeTvInput(String inputId) {
2108 if (it.next().getId().equals(inputId)) {
2116 mTvInputHardwareManager.removeTvInput(inputId);
2118 Slog.e(TAG, "failed to remove input " + inputId);
2136 Slog.d(TAG, "onSessionCreated(inputId=" + mSessionState.info.getId() + ")");
2500 public void onStateChanged(String inputId, int state) {
2502 setStateLocked(inputId, state, mCurrentUserId);
2571 public void onHdmiDeviceUpdated(String inputId, HdmiDeviceInfo deviceInfo) {
2589 setStateLocked(inputId, state, mCurrentUserId);