Home
last modified time | relevance | path

Searched refs:inputId (Results 1 – 25 of 57) sorted by relevance

123

/packages/apps/TV/src/com/android/tv/util/
DTvInputManagerHelper.java55 public void onInputStateChanged(String inputId, int state) {
56 if (DEBUG) Log.d(TAG, "onInputStateChanged " + inputId + " state=" + state);
57 if (isInBlackList(inputId)) {
60 mInputStateMap.put(inputId, state);
62 callback.onInputStateChanged(inputId, state);
67 public void onInputAdded(String inputId) {
68 if (DEBUG) Log.d(TAG, "onInputAdded " + inputId);
69 if (isInBlackList(inputId)) {
72 TvInputInfo info = mTvInputManager.getTvInputInfo(inputId);
74 mInputMap.put(inputId, info);
[all …]
DSetupUtils.java104 public void onTvInputSetupFinished(final String inputId, in onTvInputSetupFinished() argument
110 onSetupDone(inputId); in onTvInputSetupFinished()
117 updateChannelBrowsable(mTvApplication, inputId, postRunnable); in onTvInputSetupFinished()
127 updateChannelBrowsable(mTvApplication, inputId, postRunnable); in onTvInputSetupFinished()
131 private static void updateChannelBrowsable(Context context, final String inputId, in updateChannelBrowsable() argument
140 if (channel.getInputId().equals(inputId)) { in updateChannelBrowsable()
168 String inputId = input.getId(); in markNewChannelsBrowsable() local
169 if (!isSetupDone(inputId) && channelDataManager.getChannelCountForInput(inputId) > 0) { in markNewChannelsBrowsable()
170 onSetupDone(inputId); in markNewChannelsBrowsable()
171 newInputsWithChannels.add(inputId); in markNewChannelsBrowsable()
[all …]
DPipInputManager.java58 public void onInputAdded(String inputId) {
59 TvInputInfo input = mInputManager.getTvInputInfo(inputId);
63 mPipInputMap.put(inputId, new PipInput(inputId, available));
76 public void onInputRemoved(String inputId) {
77 PipInput pipInput = mPipInputMap.remove(inputId);
80 Log.w(TAG, "A TV input (" + inputId + ") isn't tracked in PipInputManager");
94 public void onInputStateChanged(String inputId, int state) {
95 PipInput pipInput = mPipInputMap.get(inputId);
325 private PipInput(String inputId, boolean available) { in PipInput() argument
326 mInputId = inputId; in PipInput()
DUtils.java224 public static long getLastWatchedChannelIdForInput(Context context, String inputId) { in getLastWatchedChannelIdForInput() argument
226 .getLong(PREF_KEY_LAST_WATCHED_CHANNEL_ID_FOR_INPUT + inputId, Channel.INVALID_ID); in getLastWatchedChannelIdForInput()
748 public static boolean isInternalTvInput(Context context, String inputId) { in isInternalTvInput() argument
749 return context.getPackageName().equals(ComponentName.unflattenFromString(inputId) in isInternalTvInput()
781 public static TvInputInfo getTvInputInfoForInputId(Context context, String inputId) { in getTvInputInfoForInputId() argument
783 .getTvInputInfo(inputId); in getTvInputInfoForInputId()
808 public static boolean isBundledInput(String inputId) { in isBundledInput() argument
810 if (inputId.startsWith(prefix + "/")) { in isBundledInput()
/packages/apps/TV/src/com/android/tv/
DInputSessionManager.java111 public RecordingSession createRecordingSession(String inputId, String tag, in createRecordingSession() argument
113 RecordingSession session = new RecordingSession(inputId, tag, callback, handler, endTimeMs); in createRecordingSession()
168 public Long getEarliestRecordingSessionEndTimeMs(String inputId) { in getEarliestRecordingSessionEndTimeMs() argument
172 if (session.mTuned && TextUtils.equals(inputId, session.mInputId)) { in getEarliestRecordingSessionEndTimeMs()
183 int getTunedTvViewSessionCount(String inputId) { in getTunedTvViewSessionCount() argument
186 if (session.mTuned && Objects.equals(inputId, session.mInputId)) { in getTunedTvViewSessionCount()
203 int getTunedRecordingSessionCount(String inputId) { in getTunedRecordingSessionCount() argument
207 if (session.mTuned && Objects.equals(inputId, session.mInputId)) { in getTunedRecordingSessionCount()
251 public void onConnectionFailed(String inputId) { in TvViewSession()
255 super.onConnectionFailed(inputId); in TvViewSession()
[all …]
DSetupPassthroughActivity.java56 String inputId = intent.getStringExtra(TvCommonConstants.EXTRA_INPUT_ID); in onCreate() local
57 mTvInputInfo = inputManager.getTvInputInfo(inputId); in onCreate()
58 if (DEBUG) Log.d(TAG, "TvInputId " + inputId + " / TvInputInfo " + mTvInputInfo); in onCreate()
60 Log.w(TAG, "There is no input with the ID " + inputId + "."); in onCreate()
/packages/apps/TV/src/com/android/tv/dvr/
DDvrScheduleManager.java140 String inputId = input.getId(); in DvrScheduleManager()
141 List<ScheduledRecording> schedules = mInputScheduleMap.get(inputId); in DvrScheduleManager()
144 mInputScheduleMap.put(inputId, schedules); in DvrScheduleManager()
166 String inputId = input.getId(); in DvrScheduleManager()
167 List<ScheduledRecording> schedules = mInputScheduleMap.get(inputId); in DvrScheduleManager()
171 mInputScheduleMap.remove(inputId); in DvrScheduleManager()
175 mInputConflictInfoMap.get(inputId); in DvrScheduleManager()
179 mInputConflictInfoMap.remove(inputId); in DvrScheduleManager()
203 String inputId = input.getId(); in DvrScheduleManager()
204 List<ScheduledRecording> schedules = mInputScheduleMap.get(inputId); in DvrScheduleManager()
[all …]
DDvrDataManagerImpl.java119 public void onInputAdded(String inputId) {
120 if (DEBUG) Log.d(TAG, "onInputAdded " + inputId);
121 if (!isInputAvailable(inputId)) {
125 unhideInput(inputId);
129 public void onInputRemoved(String inputId) {
130 if (DEBUG) Log.d(TAG, "onInputRemoved " + inputId);
131 hideInput(inputId);
458 public List<SeriesRecording> getSeriesRecordings(String inputId) { in getSeriesRecordings() argument
461 if (TextUtils.equals(r.getInputId(), inputId)) { in getSeriesRecordings()
513 public List<ScheduledRecording> getScheduledRecordings(String inputId) { in getScheduledRecordings() argument
[all …]
DRecordingTask.java198 public void onDisconnected(String inputId) { in onDisconnected() argument
199 if (DEBUG) Log.d(TAG, "onDisconnected(" + inputId + ")"); in onDisconnected()
206 public void onConnectionFailed(String inputId) { in onConnectionFailed() argument
207 if (DEBUG) Log.d(TAG, "onConnectionFailed(" + inputId + ")"); in onConnectionFailed()
295 String inputId = mChannel.getInputId(); in handleInit() local
296 mRecordingSession = mSessionManager.createRecordingSession(inputId, in handleInit()
301 mRecordingSession.tune(inputId, mChannel.getUri()); in handleInit()
DScheduledRecording.java115 public static Builder builder(String inputId, Program p) { in builder() argument
117 .setInputId(inputId) in builder()
132 public static Builder builder(String inputId, long channelId, long startTime, long endTime) { in builder() argument
134 .setInputId(inputId) in builder()
196 public Builder setInputId(String inputId) { in setInputId() argument
197 mInputId = inputId; in setInputId()
485 … private ScheduledRecording(long id, long priority, String inputId, long channelId, long programId, in ScheduledRecording() argument
492 mInputId = inputId; in ScheduledRecording()
DDvrPlayer.java328 public void onTimeShiftStartPositionChanged(String inputId, long timeMs) { in setTvViewCallbacks()
337 public void onTimeShiftCurrentPositionChanged(String inputId, long timeMs) { in setTvViewCallbacks()
367 public void onTimeShiftStatusChanged(String inputId, int status) { in setTvViewCallbacks()
376 public void onTrackSelected(String inputId, int type, String trackId) { in setTvViewCallbacks()
401 public void onContentBlocked(String inputId, TvContentRating rating) { in setTvViewCallbacks()
DDvrUiHelper.java123 public static boolean checkStorageStatusAndShowErrorMessage(Activity activity, String inputId) { in checkStorageStatusAndShowErrorMessage() argument
124 if (!Utils.isBundledInput(inputId)) { in checkStorageStatusAndShowErrorMessage()
134 showDvrMissingStorageErrorDialog(activity, inputId); in checkStorageStatusAndShowErrorMessage()
204 private static void showDvrMissingStorageErrorDialog(Activity activity, String inputId) { in showDvrMissingStorageErrorDialog() argument
205 SoftPreconditions.checkArgument(!TextUtils.isEmpty(inputId)); in showDvrMissingStorageErrorDialog()
207 args.putString(DvrHalfSizedDialogFragment.KEY_INPUT_ID, inputId); in showDvrMissingStorageErrorDialog()
/packages/apps/TV/common/src/com/android/tv/common/recording/
DRecordingCapability.java31 public final String inputId; field in RecordingCapability
60 private RecordingCapability(String inputId, int maxConcurrentTunedSessions, in RecordingCapability() argument
63 this.inputId = inputId; in RecordingCapability()
71 inputId = in.readString(); in RecordingCapability()
80 parcel.writeString(inputId); in writeToParcel()
101 Objects.equals(inputId, that.inputId); in equals()
106 return Objects.hash(inputId); in hashCode()
112 "inputId='" + inputId + '\'' + in toString()
148 public Builder setInputId(String inputId) { in setInputId() argument
149 mInputId = inputId; in setInputId()
/packages/apps/TV/src/com/android/tv/ui/
DTunableTvView.java179 public void onConnectionFailed(String inputId) {
181 mTracker.sendInputConnectionFailure(inputId);
198 public void onDisconnected(String inputId) {
200 mTracker.sendInputDisconnected(inputId);
213 public void onChannelRetuned(String inputId, Uri channelUri) {
215 Log.d(TAG, "onChannelRetuned(inputId=" + inputId + ", channelUri="
224 public void onTracksChanged(String inputId, List<TvTrackInfo> tracks) {
238 public void onTrackSelected(String inputId, int type, String trackId) {
288 public void onVideoAvailable(String inputId) {
296 public void onVideoUnavailable(String inputId, int reason) {
[all …]
DSelectInputView.java66 public void onInputAdded(String inputId) {
72 public void onInputRemoved(String inputId) {
78 public void onInputUpdated(String inputId) {
84 public void onInputStateChanged(String inputId, int state) {
215 private int getInputPosition(String inputId) { in getInputPosition() argument
216 if (inputId != null) { in getInputPosition()
218 if (TextUtils.equals(mInputList.get(i).getId(), inputId)) { in getInputPosition()
/packages/apps/TV/tests/input/src/com/android/tv/testinput/
DTestTvInputSetupActivity.java64 public static void registerChannels(Context context, String inputId, boolean updateBrowsable, in registerChannels() argument
71 ChannelUtils.updateChannels(context, inputId, channels); in registerChannels()
73 updateChannelsBrowsable(context.getContentResolver(), inputId); in registerChannels() local
78 ChannelUtils.queryChannelInfoMapForTvInput(context, inputId); in registerChannels()
87 private static void updateChannelsBrowsable(ContentResolver contentResolver, String inputId) { in updateChannelsBrowsable() argument
88 Uri uri = TvContract.buildChannelsUriForInput(inputId); in updateChannelsBrowsable()
DTestTvInputService.java79 public Session onCreateSession(String inputId) { in onCreateSession() argument
80 Log.v(TAG, "Creating session for " + inputId); in onCreateSession()
88 public RecordingSession onCreateRecordingSession(String inputId) { in onCreateRecordingSession() argument
89 Log.v(TAG, "Creating recording session for " + inputId); in onCreateRecordingSession()
93 return new SimpleRecordingSessionImpl(this, inputId); in onCreateRecordingSession()
399 public SimpleRecordingSessionImpl(Context context, String inputId) { in SimpleRecordingSessionImpl() argument
401 mInputId = inputId; in SimpleRecordingSessionImpl()
/packages/apps/TV/src/com/android/tv/data/
DChannelDataManager.java93 public void onInputAdded(String inputId) {
96 if (channel.mChannel.getInputId().equals(inputId)) {
109 public void onInputRemoved(String inputId) {
113 if (channel.mChannel.getInputId().equals(inputId)) {
294 public int getChannelCountForInput(String inputId) { in getChannelCountForInput() argument
295 MutableInt count = mChannelCountMap.get(inputId); in getChannelCountForInput()
497 String inputId = channel.getInputId(); in addChannel() local
498 MutableInt count = mChannelCountMap.get(inputId); in addChannel()
500 mChannelCountMap.put(inputId, new MutableInt(1)); in addChannel()
/packages/apps/TV/tests/unit/src/com/android/tv/dvr/
DRecordingTaskTest.java85 String inputId = channel.getInputId(); in testHandle_init() local
86 when(mMockSessionManager.createRecordingSession(eq(inputId), anyString(), eq(task), in testHandle_init()
91 verify(mMockSessionManager).createRecordingSession(eq(inputId), anyString(), eq(task), in testHandle_init()
93 verify(mMockRecordingSession).tune(eq(inputId), eq(channel.getUri())); in testHandle_init()
107 String inputId = channel.getInputId(); in testOnConnected() local
108 when(mMockSessionManager.createRecordingSession(eq(inputId), anyString(), eq(task), in testOnConnected()
/packages/apps/TV/src/com/android/tv/recommendation/
DRecommendationDataManager.java132 public void onInputStateChanged(String inputId, int state) { }
135 public void onInputAdded(String inputId) {
139 mInputs.add(inputId);
145 if (channelRecord.getChannel().getInputId().equals(inputId)) {
159 public void onInputRemoved(String inputId) {
163 mInputs.remove(inputId);
169 if (channelRecord.getChannel().getInputId().equals(inputId)) {
182 public void onInputUpdated(String inputId) { }
/packages/apps/TV/src/com/android/tv/onboarding/
DSetupSourcesFragment.java134 public void onInputAdded(String inputId) {
139 public void onInputRemoved(String inputId) {
144 public void onInputUpdated(String inputId) {
295 String inputId = input.getId(); in createActionsInternal() local
297 int channelCount = mChannelDataManager.getChannelCountForInput(inputId); in createActionsInternal()
298 if (mSetupUtils.isSetupDone(inputId) || channelCount > 0) { in createActionsInternal()
/packages/apps/TV/tests/common/src/com/android/tv/testing/
DChannelUtils.java51 Context context, String inputId) { in queryChannelInfoMapForTvInput() argument
52 Uri uri = TvContract.buildChannelsUriForInput(inputId); in queryChannelInfoMapForTvInput()
70 public static void updateChannels(Context context, String inputId, List<ChannelInfo> channels) { in updateChannels() argument
73 Uri channelsUri = TvContract.buildChannelsUriForInput(inputId); in updateChannels()
88 values.put(Channels.COLUMN_INPUT_ID, inputId); in updateChannels()
/packages/apps/TV/tests/common/src/com/android/tv/testing/dvr/
DRecordingTestUtils.java30 public static ScheduledRecording createTestRecordingWithIdAndPeriod(long id, String inputId, in createTestRecordingWithIdAndPeriod() argument
32 return ScheduledRecording.builder(inputId, channelId, startTime, endTime) in createTestRecordingWithIdAndPeriod()
38 public static ScheduledRecording createTestRecordingWithPeriod(String inputId, in createTestRecordingWithPeriod() argument
40 return createTestRecordingWithIdAndPeriod(ScheduledRecording.ID_NOT_SET, inputId, channelId, in createTestRecordingWithPeriod()
/packages/apps/TV/tests/unit/src/com/android/tv/data/
DTvInputNewComparatorTest.java59 String inputId = (String) invocation.getArguments()[0]; in testComparator()
60 return INPUT_ID_TO_NEW_INPUT.get(inputId).first; in testComparator()
68 String inputId = (String) invocation.getArguments()[0]; in testComparator()
69 return INPUT_ID_TO_NEW_INPUT.get(inputId).second; in testComparator()
/packages/apps/TV/src/com/android/tv/tuner/tvinput/
DTunerTvInputService.java101 public RecordingSession onCreateRecordingSession(String inputId) { in onCreateRecordingSession() argument
102 return new TunerRecordingSession(this, inputId, mChannelDataManager); in onCreateRecordingSession()
106 public Session onCreateSession(String inputId) { in onCreateSession() argument
117 Log.e(TAG, "Creating a session for " + inputId + " failed.", e); in onCreateSession()

123