/packages/apps/TV/common/src/com/android/tv/common/recording/ |
H A D | RecordingCapability.java | 29 * The inputId this capability represents. 31 public final String inputId; field in class:RecordingCapability 60 private RecordingCapability(String inputId, int maxConcurrentTunedSessions, argument 63 this.inputId = inputId; 71 inputId = in.readString(); 80 parcel.writeString(inputId); 101 Objects.equals(inputId, that.inputId); 106 return Objects.hash(inputId); 148 setInputId(String inputId) argument [all...] |
/packages/apps/TV/src/com/android/tv/util/ |
H A D | TvInputManagerHelper.java | 111 public void onInputStateChanged(String inputId, int state) { 112 if (DEBUG) Log.d(TAG, "onInputStateChanged " + inputId + " state=" + state); 113 if (isInBlackList(inputId)) { 116 mInputStateMap.put(inputId, state); 118 callback.onInputStateChanged(inputId, state); 123 public void onInputAdded(String inputId) { 124 if (DEBUG) Log.d(TAG, "onInputAdded " + inputId); 125 if (isInBlackList(inputId)) { 128 TvInputInfo info = mTvInputManager.getTvInputInfo(inputId); 130 mInputMap.put(inputId, inf 337 isPartnerInput(String inputId) argument 381 getTvInputApplicationLabel(CharSequence inputId) argument 388 setTvInputApplicationLabel(String inputId, CharSequence label) argument 395 getTvInputApplicationIcon(String inputId) argument 402 setTvInputApplicationIcon(String inputId, Drawable icon) argument 409 getTvInputApplicationBanner(String inputId) argument 416 setTvInputApplicationBanner(String inputId, Drawable banner) argument 423 hasTvInputInfo(String inputId) argument 429 getTvInputInfo(String inputId) argument 441 getTvInputAppInfo(String inputId) argument 460 getInputState(String inputId) argument 526 isInBlackList(String inputId) argument [all...] |
H A D | SetupUtils.java | 102 public void onTvInputSetupFinished(final String inputId, argument 107 // list again and make all channels of {@code inputId} browsable. 108 onSetupDone(inputId); 115 updateChannelsAfterSetup(mTvApplication, inputId, postRunnable); 125 updateChannelsAfterSetup(mTvApplication, inputId, postRunnable); 129 private static void updateChannelsAfterSetup(Context context, final String inputId, argument 139 if (channel.getInputId().equals(inputId)) { 173 String inputId = input.getId(); 174 if (!isSetupDone(inputId) && channelDataManager.getChannelCountForInput(inputId) > 201 isNewInput(String inputId) argument 209 markAsKnownInput(String inputId) argument 219 isSetupDone(String inputId) argument 242 isRecognizedInput(String inputId) argument 372 onSetupDone(String inputId) argument [all...] |
/packages/apps/TV/src/com/android/tv/ |
H A D | InputSessionManager.java | 112 public RecordingSession createRecordingSession(String inputId, String tag, argument 114 RecordingSession session = new RecordingSession(inputId, tag, callback, handler, endTimeMs); 183 public Long getEarliestRecordingSessionEndTimeMs(String inputId) { argument 187 if (session.mTuned && TextUtils.equals(inputId, session.mInputId)) { 198 int getTunedTvViewSessionCount(String inputId) { argument 201 if (session.mTuned && Objects.equals(inputId, session.mInputId)) { 218 int getTunedRecordingSessionCount(String inputId) { argument 222 if (session.mTuned && Objects.equals(inputId, session.mInputId)) { 266 public void onConnectionFailed(String inputId) { 270 super.onConnectionFailed(inputId); 290 tune(String inputId, Uri channelUri) argument 350 timeShiftPlay(String inputId, Uri recordedProgramUri) argument 394 RecordingSession(String inputId, String tag, RecordingCallback callback, Handler handler, long endTimeMs) argument 430 tune(String inputId, Uri channelUri) argument 503 onConnectionFailed(String inputId) argument 508 onDisconnected(String inputId) argument 513 onChannelRetuned(String inputId, Uri channelUri) argument 518 onTracksChanged(String inputId, List<TvTrackInfo> tracks) argument 523 onTrackSelected(String inputId, int type, String trackId) argument 528 onVideoSizeChanged(String inputId, int width, int height) argument 533 onVideoAvailable(String inputId) argument 538 onVideoUnavailable(String inputId, int reason) argument 543 onContentAllowed(String inputId) argument 548 onContentBlocked(String inputId, TvContentRating rating) argument 553 onTimeShiftStatusChanged(String inputId, int status) argument [all...] |
H A D | SetupPassthroughActivity.java | 66 String inputId = intent.getStringExtra(TvCommonConstants.EXTRA_INPUT_ID); 67 mTvInputInfo = inputManager.getTvInputInfo(inputId); 79 if (DEBUG) Log.d(TAG, "TvInputId " + inputId + " / TvInputInfo " + mTvInputInfo); 81 Log.w(TAG, "There is no input with the ID " + inputId + ".");
|
/packages/apps/TV/common/src/com/android/tv/common/ |
H A D | TvCommonUtils.java | 34 public static Intent createSetupIntent(Intent originalSetupIntent, String inputId) { argument 42 intentContainer.putExtra(TvCommonConstants.EXTRA_INPUT_ID, inputId);
|
/packages/apps/TV/tests/common/src/com/android/tv/testing/dvr/ |
H A D | RecordingTestUtils.java | 30 public static ScheduledRecording createTestRecordingWithIdAndPeriod(long id, String inputId, argument 32 return ScheduledRecording.builder(inputId, channelId, startTime, endTime) 38 public static ScheduledRecording createTestRecordingWithPeriod(String inputId, argument 40 return createTestRecordingWithIdAndPeriod(ScheduledRecording.ID_NOT_SET, inputId, channelId,
|
/packages/apps/TV/src/com/android/tv/tuner/tvinput/ |
H A D | TunerTvInputService.java | 90 public RecordingSession onCreateRecordingSession(String inputId) { argument 91 return new TunerRecordingSession(this, inputId, mChannelDataManager); 95 public Session onCreateSession(String inputId) { argument 105 Log.e(TAG, "Creating a session for " + inputId + " failed.", e);
|
H A D | TunerRecordingSession.java | 37 public TunerRecordingSession(Context context, String inputId, argument 40 mSessionWorker = new TunerRecordingSessionWorker(context, inputId, channelDataManager,
|
/packages/apps/TV/tests/unit/src/com/android/tv/data/ |
H A D | TvInputNewComparatorTest.java | 58 String inputId = (String) invocation.getArguments()[0]; 59 return inputIdToNewInput.get(inputId).first; 67 String inputId = (String) invocation.getArguments()[0]; 68 return inputIdToNewInput.get(inputId).second;
|
/packages/apps/TV/src/com/android/tv/analytics/ |
H A D | StubTracker.java | 105 public void sendInputConnectionFailure(String inputId) { } argument 108 public void sendInputDisconnected(String inputId) { } argument
|
H A D | Tracker.java | 194 * <p><strong>WARNING</strong> callers must ensure no PII is included in the inputId. 196 * @param inputId the input the failure happened on 198 void sendInputConnectionFailure(String inputId); argument 202 * <p><strong>WARNING</strong> callers must ensure no PII is included in the inputId. 204 * @param inputId the input the failure happened on 206 void sendInputDisconnected(String inputId); argument
|
/packages/apps/TV/src/com/android/tv/dvr/ |
H A D | DvrScheduleManager.java | 141 String inputId = input.getId(); 142 List<ScheduledRecording> schedules = mInputScheduleMap.get(inputId); 145 mInputScheduleMap.put(inputId, schedules); 167 String inputId = input.getId(); 168 List<ScheduledRecording> schedules = mInputScheduleMap.get(inputId); 172 mInputScheduleMap.remove(inputId); 175 Map<Long, ConflictInfo> conflictInfo = mInputConflictInfoMap.get(inputId); 179 mInputConflictInfoMap.remove(inputId); 203 String inputId = input.getId(); 204 List<ScheduledRecording> schedules = mInputScheduleMap.get(inputId); 262 getStartedRecordings(String inputId) argument 481 suggestHighestPriority(String inputId, Range<Long> peroid, long basePriority) argument 619 getConflictingSchedulesInfo(String inputId) argument 693 getConflictingSchedulesForTune(String inputId, long channelId, long currentTimeMs, long newPriority, List<ScheduledRecording> startedRecordings, int tunerCount) argument 754 getConflictingSchedulesForWatching(String inputId, long channelId, long currentTimeMs, long newPriority, @NonNull List<ScheduledRecording> schedules, int tunerCount) argument [all...] |
H A D | WritableDvrDataManager.java | 79 void forgetStorage(String inputId); argument
|
H A D | DvrDataManagerImpl.java | 125 public void onInputAdded(String inputId) { 126 if (DEBUG) Log.d(TAG, "onInputAdded " + inputId); 127 if (!isInputAvailable(inputId)) { 131 unhideInput(inputId); 135 public void onInputRemoved(String inputId) { 136 if (DEBUG) Log.d(TAG, "onInputRemoved " + inputId); 137 hideInput(inputId); 479 public List<SeriesRecording> getSeriesRecordings(String inputId) { argument 482 if (TextUtils.equals(r.getInputId(), inputId)) { 534 public List<ScheduledRecording> getScheduledRecordings(String inputId) { argument 773 isInputAvailable(String inputId) argument 813 unhideInput(String inputId) argument 873 hideInput(String inputId) argument 931 forgetStorage(String inputId) argument [all...] |
H A D | DvrDataManager.java | 92 List<SeriesRecording> getSeriesRecordings(String inputId); argument 123 List<ScheduledRecording> getScheduledRecordings(String inputId); argument
|
/packages/apps/TV/src/com/android/tv/dvr/ui/list/ |
H A D | EpisodicProgramRow.java | 33 public EpisodicProgramRow(String inputId, Program program, ScheduledRecording recording, argument 36 mInputId = inputId; 86 + "(inputId=" + mInputId
|
/packages/apps/TV/tests/input/src/com/android/tv/testinput/ |
H A D | TestTvInputSetupActivity.java | 61 public static void registerChannels(Context context, String inputId, int channelCount) { argument 67 ChannelUtils.updateChannels(context, inputId, channels); 71 ChannelUtils.queryChannelInfoMapForTvInput(context, inputId);
|
H A D | TestInputControl.java | 60 public synchronized void init(Context context, String inputId) { argument 63 mInputId = inputId;
|
/packages/apps/TV/tests/unit/src/com/android/tv/dvr/recorder/ |
H A D | RecordingTaskTest.java | 97 String inputId = channel.getInputId(); 98 when(mMockSessionManager.createRecordingSession(eq(inputId), anyString(), eq(task), 103 verify(mMockSessionManager).createRecordingSession(eq(inputId), anyString(), eq(task), 105 verify(mMockRecordingSession).tune(eq(inputId), eq(channel.getUri())); 120 String inputId = channel.getInputId(); 121 when(mMockSessionManager.createRecordingSession(eq(inputId), anyString(), eq(task),
|
/packages/apps/TV/tests/common/src/com/android/tv/testing/ |
H A D | ChannelUtils.java | 51 Context context, String inputId) { 52 Uri uri = TvContract.buildChannelsUriForInput(inputId); 70 public static void updateChannels(Context context, String inputId, List<ChannelInfo> channels) { argument 73 Uri channelsUri = TvContract.buildChannelsUriForInput(inputId); 88 values.put(Channels.COLUMN_INPUT_ID, inputId); 50 queryChannelInfoMapForTvInput( Context context, String inputId) argument
|
H A D | Utils.java | 72 public static String getServiceNameFromInputId(Context context, String inputId) { argument 75 if (info.getId().equals(inputId)) {
|
/packages/apps/TV/src/com/android/tv/setup/ |
H A D | SystemSetupActivity.java | 88 String inputId = params.getString( 90 TvInputInfo input = mInputManager.getTvInputInfo(inputId);
|
/packages/apps/TV/src/com/android/tv/ui/ |
H A D | TunableTvView.java | 187 public void onConnectionFailed(String inputId) { 189 mTracker.sendInputConnectionFailure(inputId); 206 public void onDisconnected(String inputId) { 208 mTracker.sendInputDisconnected(inputId); 221 public void onChannelRetuned(String inputId, Uri channelUri) { 223 Log.d(TAG, "onChannelRetuned(inputId=" + inputId + ", channelUri=" 232 public void onTracksChanged(String inputId, List<TvTrackInfo> tracks) { 246 public void onTrackSelected(String inputId, int type, String trackId) { 296 public void onVideoAvailable(String inputId) { 488 warmUpInput(String inputId, Uri channelUri) argument [all...] |
/packages/apps/TV/src/com/android/tv/dvr/recorder/ |
H A D | RecordingTask.java | 200 public void onDisconnected(String inputId) { argument 201 if (DEBUG) Log.d(TAG, "onDisconnected(" + inputId + ")"); 208 public void onConnectionFailed(String inputId) { argument 209 if (DEBUG) Log.d(TAG, "onConnectionFailed(" + inputId + ")"); 305 String inputId = mChannel.getInputId(); 306 mRecordingSession = mSessionManager.createRecordingSession(inputId, 311 mRecordingSession.tune(inputId, mChannel.getUri());
|