/packages/apps/TV/src/com/android/tv/util/ |
D | TvInputManagerHelper.java | 70 TvInputInfo getTvInputInfo(String inputId); in getTvInputInfo() argument 72 Integer getInputState(String inputId); in getInputState() argument 91 public TvInputInfo getTvInputInfo(String inputId) { in getTvInputInfo() argument 92 return delegate.getTvInputInfo(inputId); in getTvInputInfo() 96 public Integer getInputState(String inputId) { in getInputState() argument 97 return delegate.getInputState(inputId); in getInputState() 192 public void onInputStateChanged(String inputId, int state) { 193 if (DEBUG) Log.d(TAG, "onInputStateChanged " + inputId + " state=" + state); 194 TvInputInfo info = mInputMap.get(inputId).getTvInputInfo(); 198 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 …]
|
D | SetupPassthroughActivity.java | 79 String inputId = intent.getStringExtra(InputSetupActionUtils.EXTRA_INPUT_ID); in onCreate() local 80 mTvInputInfo = mInputManager.getTvInputInfo(inputId); in onCreate() 94 if (DEBUG) Log.d(TAG, "TvInputId " + inputId + " / TvInputInfo " + mTvInputInfo); in onCreate() 96 Log.w(TAG, "There is no input with the ID " + inputId + "."); in onCreate() 170 String inputId = data.getStringExtra(TvInputInfo.EXTRA_INPUT_ID); in onActivityResult() local 171 if (mEpgInputWhiteList.isInputWhiteListed(inputId)) { in onActivityResult()
|
/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 | 137 String inputId = input.getId(); in DvrScheduleManager() 138 List<ScheduledRecording> schedules = mInputScheduleMap.get(inputId); in DvrScheduleManager() 141 mInputScheduleMap.put(inputId, schedules); in DvrScheduleManager() 164 String inputId = input.getId(); in DvrScheduleManager() 165 List<ScheduledRecording> schedules = mInputScheduleMap.get(inputId); in DvrScheduleManager() 169 mInputScheduleMap.remove(inputId); in DvrScheduleManager() 173 mInputConflictInfoMap.get(inputId); in DvrScheduleManager() 177 mInputConflictInfoMap.remove(inputId); in DvrScheduleManager() 201 String inputId = input.getId(); in DvrScheduleManager() 202 List<ScheduledRecording> schedules = mInputScheduleMap.get(inputId); in DvrScheduleManager() [all …]
|
D | DvrDataManagerImpl.java | 142 public void onInputAdded(String inputId) { 143 if (DEBUG) Log.d(TAG, "onInputAdded " + inputId); 144 if (!isInputAvailable(inputId)) { 148 unhideInput(inputId); 152 public void onInputRemoved(String inputId) { 153 if (DEBUG) Log.d(TAG, "onInputRemoved " + inputId); 154 hideInput(inputId); 561 public List<SeriesRecording> getSeriesRecordings(String inputId) { in getSeriesRecordings() argument 564 if (TextUtils.equals(r.getInputId(), inputId)) { in getSeriesRecordings() 618 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/tuner/src/com/android/tv/tuner/tvinput/ |
D | BaseTunerTvInputService.java | 87 public ChannelDataManager load(String inputId) { in onCreate() 88 return createChannelDataManager(inputId); in onCreate() 110 private ChannelDataManager createChannelDataManager(String inputId) { in createChannelDataManager() argument 111 return new ChannelDataManager(getApplicationContext(), inputId); in createChannelDataManager() 122 public RecordingSession onCreateRecordingSession(String inputId) { in onCreateRecordingSession() argument 125 inputId, this::onReleased, mChannelDataManagers.getUnchecked(inputId)); in onCreateRecordingSession() 131 public Session onCreateSession(String inputId) { in onCreateSession() argument 142 mChannelDataManagers.getUnchecked(inputId), in onCreateSession() 150 Log.e(TAG, "Creating a session for " + inputId + " failed.", e); in onCreateSession()
|
/packages/apps/TV/common/src/com/android/tv/common/compat/ |
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
|
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
|
/packages/apps/TV/src/com/android/tv/ui/ |
D | TunableTvView.java | 201 public void onConnectionFailed(String inputId) { 203 mTracker.sendInputConnectionFailure(inputId); 220 public void onDisconnected(String inputId) { 222 mTracker.sendInputDisconnected(inputId); 235 public void onChannelRetuned(String inputId, Uri channelUri) { 240 + inputId 251 public void onTracksChanged(String inputId, List<TvTrackInfo> tracks) { 265 public void onTrackSelected(String inputId, int type, String trackId) { 321 public void onVideoAvailable(String inputId) { 322 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/src/com/android/tv/data/epg/ |
D | EpgInputWhiteList.java | 46 public static String getPackageFromInput(@Nullable String inputId) { in getPackageFromInput() argument 47 return inputId == null ? null : inputId.substring(0, inputId.indexOf("/")); in getPackageFromInput() 58 public boolean isInputWhiteListed(String inputId) { in isInputWhiteListed() argument 59 return getWhiteListedInputs().contains(inputId); in isInputWhiteListed()
|
/packages/apps/TV/tuner/SampleNetworkTuner/src/com/android/tv/tuner/sample/network/setup/ |
D | SampleNetworkTunerSetupActivity.java | 428 private final String inputId; field in SampleNetworkTunerSetupActivity.InsertOrModifyEpgInputTask 430 InsertOrModifyEpgInputTask(@Nullable Lineup lineup, String inputId) { in InsertOrModifyEpgInputTask() argument 432 this.inputId = inputId; in InsertOrModifyEpgInputTask() 445 values.put(EpgContract.EpgInputs.COLUMN_INPUT_ID, inputId); in doInBackground() 456 EpgInput epgInput = EpgInputs.queryEpgInput(contentResolver, inputId); in doInBackground() 469 data.putExtra(TvInputInfo.EXTRA_INPUT_ID, inputId); in onPostExecute() 488 private final String inputId; field in SampleNetworkTunerSetupActivity.QueryEpgInputTask 490 QueryEpgInputTask(String inputId) { in QueryEpgInputTask() argument 491 this.inputId = inputId; in QueryEpgInputTask() 497 return EpgInputs.queryEpgInput(contentResolver, inputId); in doInBackground()
|
/packages/apps/TV/tuner/SampleDvbTuner/src/com/android/tv/tuner/sample/dvb/setup/ |
D | SampleDvbTunerSetupActivity.java | 428 private final String inputId; field in SampleDvbTunerSetupActivity.InsertOrModifyEpgInputTask 430 InsertOrModifyEpgInputTask(@Nullable Lineup lineup, String inputId) { in InsertOrModifyEpgInputTask() argument 432 this.inputId = inputId; in InsertOrModifyEpgInputTask() 445 values.put(EpgContract.EpgInputs.COLUMN_INPUT_ID, inputId); in doInBackground() 456 EpgInput epgInput = EpgInputs.queryEpgInput(contentResolver, inputId); in doInBackground() 469 data.putExtra(TvInputInfo.EXTRA_INPUT_ID, inputId); in onPostExecute() 487 private final String inputId; field in SampleDvbTunerSetupActivity.QueryEpgInputTask 489 QueryEpgInputTask(String inputId) { in QueryEpgInputTask() argument 490 this.inputId = inputId; in QueryEpgInputTask() 496 return EpgInputs.queryEpgInput(contentResolver, inputId); in doInBackground()
|
/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/tests/robotests/src/com/android/tv/dvr/recorder/ |
D | RecordingTaskTest.java | 96 String inputId = channel.getInputId(); in testHandle_init() local 98 eq(inputId), anyString(), eq(task), eq(mMockHandler), anyLong())) in testHandle_init() 105 eq(inputId), anyString(), eq(task), eq(mMockHandler), anyLong()); in testHandle_init() 106 verify(mMockRecordingSession).tune(eq(inputId), eq(channel.getUri())); in testHandle_init() 124 String inputId = channel.getInputId(); in testOnConnected() local 126 eq(inputId), anyString(), eq(task), eq(mMockHandler), anyLong())) in testOnConnected()
|
/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 | 65 public static Intent createSetupIntent(Intent originalSetupIntent, String inputId) { in createSetupIntent() argument 73 intentContainer.putExtra(InputSetupActionUtils.EXTRA_INPUT_ID, inputId); in createSetupIntent() 116 public static boolean isBundledInput(String inputId) { in isBundledInput() argument 118 if (inputId.startsWith(prefix + "/")) { in isBundledInput()
|
/packages/apps/TV/src/com/android/tv/recommendation/ |
D | RecommendationDataManager.java | 134 public void onInputStateChanged(String inputId, int state) {} 137 public void onInputAdded(String inputId) { 141 mInputs.add(inputId); 147 if (channelRecord.getChannel().getInputId().equals(inputId)) { 161 public void onInputRemoved(String inputId) { 165 mInputs.remove(inputId); 171 if (channelRecord.getChannel().getInputId().equals(inputId)) { 184 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()
|