/packages/apps/TV/src/com/android/tv/util/ |
D | TvInputManagerHelper.java | 68 TvInputInfo getTvInputInfo(String inputId); in getTvInputInfo() argument 70 Integer getInputState(String inputId); in getInputState() argument 89 public TvInputInfo getTvInputInfo(String inputId) { in getTvInputInfo() argument 90 return delegate.getTvInputInfo(inputId); in getTvInputInfo() 94 public Integer getInputState(String inputId) { in getInputState() argument 95 return delegate.getInputState(inputId); in getInputState() 185 public void onInputStateChanged(String inputId, int state) { 186 if (DEBUG) Log.d(TAG, "onInputStateChanged " + inputId + " state=" + state); 187 TvInputInfo info = mInputMap.get(inputId).getTvInputInfo(); 191 mInputStateMap.put(inputId, state); [all …]
|
D | SetupUtils.java | 93 final String inputId, @Nullable final Runnable postRunnable) { in onTvInputSetupFinished() argument 98 onSetupDone(inputId); in onTvInputSetupFinished() 107 updateChannelsAfterSetup(mContext, inputId, postRunnable); in onTvInputSetupFinished() 117 updateChannelsAfterSetup(mContext, inputId, postRunnable); in onTvInputSetupFinished() 122 Context context, final String inputId, final Runnable postRunnable) { in updateChannelsAfterSetup() argument 130 if (channel.getInputId().equals(inputId)) { in updateChannelsAfterSetup() 162 String inputId = input.getId(); in markNewChannelsBrowsable() local 163 if (!isSetupDone(inputId) && channelDataManager.getChannelCountForInput(inputId) > 0) { in markNewChannelsBrowsable() 164 onSetupDone(inputId); in markNewChannelsBrowsable() 165 newInputsWithChannels.add(inputId); in markNewChannelsBrowsable() [all …]
|
/packages/apps/TV/src/com/android/tv/ |
D | InputSessionManager.java | 113 String inputId, in createRecordingSession() argument 118 RecordingSession session = new RecordingSession(inputId, tag, callback, handler, endTimeMs); in createRecordingSession() 179 public Long getEarliestRecordingSessionEndTimeMs(String inputId) { in getEarliestRecordingSessionEndTimeMs() argument 183 if (session.mTuned && TextUtils.equals(inputId, session.mInputId)) { in getEarliestRecordingSessionEndTimeMs() 194 int getTunedTvViewSessionCount(String inputId) { in getTunedTvViewSessionCount() argument 197 if (session.mTuned && Objects.equals(inputId, session.mInputId)) { in getTunedTvViewSessionCount() 214 int getTunedRecordingSessionCount(String inputId) { in getTunedRecordingSessionCount() argument 218 if (session.mTuned && Objects.equals(inputId, session.mInputId)) { in getTunedRecordingSessionCount() 268 public void onConnectionFailed(String inputId) { in TvViewSession() 272 super.onConnectionFailed(inputId); in TvViewSession() [all …]
|
/packages/apps/TV/tests/common/src/com/android/tv/testing/ |
D | FakeTvInputManager.java | 37 final String inputId = inputInfo.getId(); in add() local 38 if (mInputStateMap.containsKey(inputId)) { in add() 39 throw new IllegalArgumentException("inputId " + inputId); in add() 41 mInputMap.put(inputId, inputInfo); in add() 42 mInputStateMap.put(inputId, state); in add() 49 e.getKey().onInputAdded(inputId); in add() 55 public void setInputState(final String inputId, final int state) { in setInputState() argument 56 if (!mInputStateMap.containsKey(inputId)) { in setInputState() 57 throw new IllegalArgumentException("inputId " + inputId); in setInputState() 59 mInputStateMap.put(inputId, state); in setInputState() [all …]
|
/packages/apps/TV/common/src/com/android/tv/common/recording/ |
D | RecordingCapability.java | 26 public final String inputId; field in RecordingCapability 54 String inputId, in RecordingCapability() argument 59 this.inputId = inputId; in RecordingCapability() 67 inputId = in.readString(); in RecordingCapability() 76 parcel.writeString(inputId); in writeToParcel() 97 && Objects.equals(inputId, that.inputId); in equals() 102 return Objects.hash(inputId); in hashCode() 109 + inputId in toString() 151 public Builder setInputId(String inputId) { in setInputId() argument 152 mInputId = inputId; in setInputId()
|
/packages/apps/TV/src/com/android/tv/dvr/ |
D | DvrScheduleManager.java | 135 String inputId = input.getId(); in DvrScheduleManager() 136 List<ScheduledRecording> schedules = mInputScheduleMap.get(inputId); in DvrScheduleManager() 139 mInputScheduleMap.put(inputId, schedules); in DvrScheduleManager() 162 String inputId = input.getId(); in DvrScheduleManager() 163 List<ScheduledRecording> schedules = mInputScheduleMap.get(inputId); in DvrScheduleManager() 167 mInputScheduleMap.remove(inputId); in DvrScheduleManager() 171 mInputConflictInfoMap.get(inputId); in DvrScheduleManager() 175 mInputConflictInfoMap.remove(inputId); in DvrScheduleManager() 199 String inputId = input.getId(); in DvrScheduleManager() 200 List<ScheduledRecording> schedules = mInputScheduleMap.get(inputId); in DvrScheduleManager() [all …]
|
D | DvrDataManagerImpl.java | 129 public void onInputAdded(String inputId) { 130 if (DEBUG) Log.d(TAG, "onInputAdded " + inputId); 131 if (!isInputAvailable(inputId)) { 135 unhideInput(inputId); 139 public void onInputRemoved(String inputId) { 140 if (DEBUG) Log.d(TAG, "onInputRemoved " + inputId); 141 hideInput(inputId); 532 public List<SeriesRecording> getSeriesRecordings(String inputId) { in getSeriesRecordings() argument 535 if (TextUtils.equals(r.getInputId(), inputId)) { in getSeriesRecordings() 589 public List<ScheduledRecording> getScheduledRecordings(String inputId) { in getScheduledRecordings() argument [all …]
|
/packages/apps/TV/common/src/com/android/tv/common/compat/internal/ |
D | TvViewCompatProcessor.java | 57 public void onDevToast(String inputId, String message) {} in onDevToast() argument 59 public void onSignalStrength(String inputId, int value) {} in onSignalStrength() argument 62 protected final void handleSessionEvent(String inputId, Events.SessionEvent sessionEvent) { in handleSessionEvent() argument 65 handle(inputId, sessionEvent.getNotifyDevMessage()); in handleSessionEvent() 68 handle(inputId, sessionEvent.getNotifySignalStrength()); in handleSessionEvent() 75 private void handle(String inputId, NotifyDevToast devToast) { in handle() argument 77 mCallback.onDevToast(inputId, devToast.getMessage()); in handle() 81 private void handle(String inputId, NotifySignalStrength signalStrength) { in handle() argument 83 mCallback.onSignalStrength(inputId, signalStrength.getSignalStrength()); in handle()
|
D | RecordingClientCompatProcessor.java | 60 protected final void handleSessionEvent(String inputId, RecordingSessionEvent sessionEvent) { in handleSessionEvent() argument 63 handle(inputId, sessionEvent.getNotifyDevMessage()); in handleSessionEvent() 66 handle(inputId, sessionEvent.getRecordingStarted()); in handleSessionEvent() 74 private void handle(String inputId, NotifyDevToast devToast) { in handle() argument 76 mCallback.onDevToast(inputId, devToast.getMessage()); in handle() 80 private void handle(String inputId, RecordingEvents.RecordingStarted recStart) { in handle() argument 82 mCallback.onRecordingStarted(inputId, recStart.getUri()); in handle()
|
D | ViewCompatProcessor.java | 62 public boolean handleEvent(String inputId, String eventType, Bundle eventArgs) { in handleEvent() argument 66 inputCompatVersionMap.put(inputId, version); in handleEvent() 72 handleSessionEvent(inputId, sessionEvent); in handleEvent() 80 Log.w(TAG, "Error parsing in compat notify for " + inputId); in handleEvent() 89 protected abstract void handleSessionEvent(String inputId, E sessionEvent); in handleSessionEvent() argument
|
/packages/apps/TV/common/src/com/android/tv/common/compat/ |
D | TvViewCompat.java | 80 public void onEvent(String inputId, String eventType, Bundle eventArgs) { in onEvent() argument 82 && !mTvViewCompatProcessor.handleEvent(inputId, eventType, eventArgs)) { in onEvent() 83 super.onEvent(inputId, eventType, eventArgs); in onEvent() 87 public int getTifCompatVersionForInput(String inputId) { in getTifCompatVersionForInput() argument 88 return inputCompatVersionMap.containsKey(inputId) in getTifCompatVersionForInput() 89 ? inputCompatVersionMap.get(inputId) in getTifCompatVersionForInput() 94 public void onDevToast(String inputId, String message) {} in onDevToast() argument 109 public void onSignalStrength(String inputId, int value) {} in onSignalStrength() argument
|
D | TvRecordingClientCompat.java | 80 public void onEvent(String inputId, String eventType, Bundle eventArgs) { in onEvent() argument 82 && !mClientCompatProcessor.handleEvent(inputId, eventType, eventArgs)) { in onEvent() 83 super.onEvent(inputId, eventType, eventArgs); in onEvent() 87 public int getTifCompatVersionForInput(String inputId) { in getTifCompatVersionForInput() argument 88 return inputCompatVersionMap.containsKey(inputId) in getTifCompatVersionForInput() 89 ? inputCompatVersionMap.get(inputId) in getTifCompatVersionForInput() 95 public void onDevToast(String inputId, String message) {} in onDevToast() argument 99 public void onRecordingStarted(String inputId, String recUri) {} in onRecordingStarted() argument
|
/packages/apps/TV/src/com/android/tv/ui/ |
D | TunableTvView.java | 196 public void onConnectionFailed(String inputId) { 198 mTracker.sendInputConnectionFailure(inputId); 215 public void onDisconnected(String inputId) { 217 mTracker.sendInputDisconnected(inputId); 230 public void onChannelRetuned(String inputId, Uri channelUri) { 235 + inputId 246 public void onTracksChanged(String inputId, List<TvTrackInfo> tracks) { 260 public void onTrackSelected(String inputId, int type, String trackId) { 316 public void onVideoAvailable(String inputId) { 317 if (DEBUG) Log.d(TAG, "onVideoAvailable: {inputId=" + inputId + "}"); [all …]
|
D | SelectInputView.java | 62 public void onInputAdded(String inputId) { 68 public void onInputRemoved(String inputId) { 74 public void onInputUpdated(String inputId) { 80 public void onInputStateChanged(String inputId, int state) { 216 private int getInputPosition(String inputId) { in getInputPosition() argument 217 if (inputId != null) { in getInputPosition() 219 if (TextUtils.equals(mInputList.get(i).getId(), inputId)) { in getInputPosition()
|
/packages/apps/TV/tuner/SampleNetworkTuner/src/com/android/tv/tuner/sample/network/setup/ |
D | SampleNetworkTunerSetupActivity.java | 423 private final String inputId; field in SampleNetworkTunerSetupActivity.InsertOrModifyEpgInputTask 425 InsertOrModifyEpgInputTask(@Nullable Lineup lineup, String inputId) { in InsertOrModifyEpgInputTask() argument 427 this.inputId = inputId; in InsertOrModifyEpgInputTask() 440 values.put(EpgContract.EpgInputs.COLUMN_INPUT_ID, inputId); in doInBackground() 451 EpgInput epgInput = EpgInputs.queryEpgInput(contentResolver, inputId); in doInBackground() 464 data.putExtra(TvInputInfo.EXTRA_INPUT_ID, inputId); in onPostExecute() 483 private final String inputId; field in SampleNetworkTunerSetupActivity.QueryEpgInputTask 485 QueryEpgInputTask(String inputId) { in QueryEpgInputTask() argument 486 this.inputId = inputId; in QueryEpgInputTask() 492 return EpgInputs.queryEpgInput(contentResolver, inputId); in doInBackground()
|
/packages/apps/TV/tuner/SampleDvbTuner/src/com/android/tv/tuner/sample/dvb/setup/ |
D | SampleDvbTunerSetupActivity.java | 422 private final String inputId; field in SampleDvbTunerSetupActivity.InsertOrModifyEpgInputTask 424 InsertOrModifyEpgInputTask(@Nullable Lineup lineup, String inputId) { in InsertOrModifyEpgInputTask() argument 426 this.inputId = inputId; in InsertOrModifyEpgInputTask() 439 values.put(EpgContract.EpgInputs.COLUMN_INPUT_ID, inputId); in doInBackground() 450 EpgInput epgInput = EpgInputs.queryEpgInput(contentResolver, inputId); in doInBackground() 463 data.putExtra(TvInputInfo.EXTRA_INPUT_ID, inputId); in onPostExecute() 481 private final String inputId; field in SampleDvbTunerSetupActivity.QueryEpgInputTask 483 QueryEpgInputTask(String inputId) { in QueryEpgInputTask() argument 484 this.inputId = inputId; in QueryEpgInputTask() 490 return EpgInputs.queryEpgInput(contentResolver, inputId); in doInBackground()
|
/packages/apps/TV/src/com/android/tv/data/epg/ |
D | EpgInputWhiteList.java | 42 public static String getPackageFromInput(@Nullable String inputId) { in getPackageFromInput() argument 43 return inputId == null ? null : inputId.substring(0, inputId.indexOf("/")); in getPackageFromInput() 52 public boolean isInputWhiteListed(String inputId) { in isInputWhiteListed() argument 53 return getWhiteListedInputs().contains(inputId); in isInputWhiteListed()
|
/packages/apps/TV/partner_support/src/com/google/android/tv/partner/support/ |
D | EpgInput.java | 30 public static EpgInput createEpgChannel(long id, String inputId, String lineupId) { in createEpgChannel() argument 31 return new AutoValue_EpgInput(id, inputId, lineupId); in createEpgChannel() 36 String inputId = contentValues.getAsString(EpgContract.EpgInputs.COLUMN_INPUT_ID); in createEpgChannel() local 38 return createEpgChannel(id, inputId, lineupId); in createEpgChannel()
|
/packages/apps/TV/src/com/android/tv/recommendation/ |
D | RecommendationDataManager.java | 131 public void onInputStateChanged(String inputId, int state) {} 134 public void onInputAdded(String inputId) { 138 mInputs.add(inputId); 144 if (channelRecord.getChannel().getInputId().equals(inputId)) { 158 public void onInputRemoved(String inputId) { 162 mInputs.remove(inputId); 168 if (channelRecord.getChannel().getInputId().equals(inputId)) { 181 public void onInputUpdated(String inputId) {}
|
/packages/apps/TV/src/com/android/tv/dvr/recorder/ |
D | RecordingTask.java | 197 public void onDisconnected(String inputId) { in onDisconnected() argument 198 if (DEBUG) Log.d(TAG, "onDisconnected(" + inputId + ")"); in onDisconnected() 205 public void onConnectionFailed(String inputId) { in onConnectionFailed() argument 206 if (DEBUG) Log.d(TAG, "onConnectionFailed(" + inputId + ")"); in onConnectionFailed() 228 public void onRecordingStarted(String inputId, String recUri) { in onRecordingStarted() argument 334 String inputId = mChannel.getInputId(); in handleInit() local 337 inputId, in handleInit() 344 mRecordingSession.tune(inputId, mChannel.getUri()); in handleInit()
|
/packages/apps/TV/tests/common/src/com/android/tv/testing/dvr/ |
D | RecordingTestUtils.java | 28 long id, String inputId, long channelId, long startTime, long endTime) { in createTestRecordingWithIdAndPeriod() argument 29 return ScheduledRecording.builder(inputId, channelId, startTime, endTime) in createTestRecordingWithIdAndPeriod() 36 String inputId, long channelId, long startTime, long endTime) { in createTestRecordingWithPeriod() argument 38 ScheduledRecording.ID_NOT_SET, inputId, channelId, startTime, endTime); in createTestRecordingWithPeriod()
|
/packages/apps/TV/common/src/com/android/tv/common/util/ |
D | CommonUtils.java | 66 public static Intent createSetupIntent(Intent originalSetupIntent, String inputId) { in createSetupIntent() argument 74 intentContainer.putExtra(InputSetupActionUtils.EXTRA_INPUT_ID, inputId); in createSetupIntent() 117 public static boolean isBundledInput(String inputId) { in isBundledInput() argument 119 if (inputId.startsWith(prefix + "/")) { in isBundledInput()
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/tvinput/ |
D | BaseTunerTvInputService.java | 88 public RecordingSession onCreateRecordingSession(String inputId) { in onCreateRecordingSession() argument 91 inputId, in onCreateRecordingSession() 98 public Session onCreateSession(String inputId) { in onCreateSession() argument 113 Log.e(TAG, "Creating a session for " + inputId + " failed.", e); in onCreateSession()
|
/packages/apps/TV/src/com/android/tv/data/ |
D | ChannelDataManager.java | 99 public void onInputAdded(String inputId) { 103 if (channel.mChannel.getInputId().equals(inputId)) { 117 public void onInputRemoved(String inputId) { 121 if (channel.mChannel.getInputId().equals(inputId)) { 302 public int getChannelCountForInput(String inputId) { in getChannelCountForInput() argument 303 MutableInt count = mData.channelCountMap.get(inputId); in getChannelCountForInput() 498 String inputId = channel.getInputId(); in addChannel() local 499 MutableInt count = data.channelCountMap.get(inputId); in addChannel() 501 data.channelCountMap.put(inputId, new MutableInt(1)); in addChannel()
|
/packages/apps/TV/tests/common/src/com/android/tv/testing/data/ |
D | ChannelUtils.java | 49 Context context, String inputId) { in queryChannelInfoMapForTvInput() argument 50 Uri uri = TvContract.buildChannelsUriForInput(inputId); in queryChannelInfoMapForTvInput() 68 public static void updateChannels(Context context, String inputId, List<ChannelInfo> channels) { in updateChannels() argument 71 Uri channelsUri = TvContract.buildChannelsUriForInput(inputId); in updateChannels() 86 values.put(Channels.COLUMN_INPUT_ID, inputId); in updateChannels()
|