/frameworks/base/media/java/android/media/tv/ |
ITvInputManagerCallback.aidl | 26 void onInputAdded(in String inputId); 27 void onInputRemoved(in String inputId); 28 void onInputUpdated(in String inputId); 29 void onInputStateChanged(in String inputId, int state);
|
ITvInputService.aidl | 33 in String inputId); 34 void createRecordingSession(in ITvInputSessionCallback callback, in String inputId);
|
ITvInputManager.aidl | 44 TvInputInfo getTvInputInfo(in String inputId, int userId); 46 int getTvInputState(in String inputId, int userId); 60 void createSession(in ITvInputClient client, in String inputId, boolean isRecordingSession, 101 List<TvStreamConfig> getAvailableTvStreamConfigList(in String inputId, int userId); 102 boolean captureFrame(in String inputId, in Surface surface, in TvStreamConfig config,
|
TvView.java | 291 * @param inputId The ID of the TV input for the given channel. 294 public void tune(@NonNull String inputId, Uri channelUri) { 295 tune(inputId, channelUri, null); 302 * @param inputId The ID of TV input for the given channel. 308 public void tune(String inputId, Uri channelUri, Bundle params) { 310 if (TextUtils.isEmpty(inputId)) { 311 throw new IllegalArgumentException("inputId cannot be null or an empty string"); 318 if (mSessionCallback != null && TextUtils.equals(mSessionCallback.mInputId, inputId)) { 322 // createSession() was called but the actual session for the given inputId has not 325 // a new callback because this tuning request was made on the same inputId [all...] |
TvRecordingClient.java | 82 * @param inputId The ID of the TV input for the given channel. 86 public void tune(String inputId, Uri channelUri) { 87 tune(inputId, channelUri, null); 104 * @param inputId The ID of the TV input for the given channel. 111 public void tune(String inputId, Uri channelUri, Bundle params) { 113 if (TextUtils.isEmpty(inputId)) { 114 throw new IllegalArgumentException("inputId cannot be null or an empty string"); 119 if (mSessionCallback != null && TextUtils.equals(mSessionCallback.mInputId, inputId)) { 128 mSessionCallback = new MySessionCallback(inputId, channelUri, params); 130 mTvInputManager.createRecordingSession(inputId, mSessionCallback, mHandler) [all...] |
ITvInputServiceCallback.aidl | 29 void removeHardwareInput(in String inputId);
|
/packages/apps/TV/src/com/android/tv/util/ |
SetupUtils.java | 102 public void onTvInputSetupFinished(final String inputId, 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, 139 if (channel.getInputId().equals(inputId)) { 173 String inputId = input.getId(); 174 if (!isSetupDone(inputId) && channelDataManager.getChannelCountForInput(inputId) > 0) [all...] |
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, info) [all...] |
/packages/apps/TV/common/src/com/android/tv/common/recording/ |
RecordingCapability.java | 29 * The inputId this capability represents. 31 public final String inputId; 60 private RecordingCapability(String inputId, int maxConcurrentTunedSessions, 63 this.inputId = inputId; 71 inputId = in.readString(); 80 parcel.writeString(inputId); 101 Objects.equals(inputId, that.inputId); 106 return Objects.hash(inputId); [all...] |
/packages/apps/TV/src/com/android/tv/ |
InputSessionManager.java | 112 public RecordingSession createRecordingSession(String inputId, String tag, 114 RecordingSession session = new RecordingSession(inputId, tag, callback, handler, endTimeMs); 183 public Long getEarliestRecordingSessionEndTimeMs(String inputId) { 187 if (session.mTuned && TextUtils.equals(inputId, session.mInputId)) { 198 int getTunedTvViewSessionCount(String inputId) { 201 if (session.mTuned && Objects.equals(inputId, session.mInputId)) { 218 int getTunedRecordingSessionCount(String inputId) { 222 if (session.mTuned && Objects.equals(inputId, session.mInputId)) { 266 public void onConnectionFailed(String inputId) { 270 super.onConnectionFailed(inputId); [all...] |
/developers/build/prebuilts/androidtv/sample-inputs/app/src/main/java/com/example/android/sampletvinput/syncadapter/ |
SyncUtils.java | 35 public static void setUpPeriodicSync(Context context, String inputId) { 45 bundle.putString(SyncAdapter.BUNDLE_KEY_INPUT_ID, inputId); 50 public static void requestSync(String inputId) { 54 bundle.putString(SyncAdapter.BUNDLE_KEY_INPUT_ID, inputId);
|
/packages/apps/TV/src/com/android/tv/dvr/ui/list/ |
EpisodicProgramRow.java | 33 public EpisodicProgramRow(String inputId, Program program, ScheduledRecording recording, 36 mInputId = inputId; 86 + "(inputId=" + mInputId
|
/cts/tests/tests/tv/src/android/media/tv/cts/ |
TvInputManagerTest.java | 254 public synchronized void onInputAdded(String inputId) { 255 mAddedInputs.add(inputId); 259 public synchronized void onInputRemoved(String inputId) { 260 mRemovedInputs.add(inputId); 274 public synchronized boolean isInputAdded(String inputId) { 276 inputId); 279 public synchronized boolean isInputRemoved(String inputId) { 281 inputId); 291 public Session onCreateSession(String inputId) {
|
TvViewTest.java | 70 public boolean isVideoAvailable(String inputId) { 72 Boolean available = mVideoAvailableMap.get(inputId); 77 public int getSelectedTrackGeneration(String inputId, int type) { 80 mSelectedTrackGenerationMap.get(inputId); 102 public void onConnectionFailed(String inputId) { 107 public void onDisconnected(String inputId) { 112 public void onVideoAvailable(String inputId) { 114 mVideoAvailableMap.put(inputId, true); 119 public void onVideoUnavailable(String inputId, int reason) { 121 mVideoAvailableMap.put(inputId, false) [all...] |
FaultyTvInputService.java | 29 public Session onCreateSession(String inputId) { 34 public RecordingSession onCreateRecordingSession(String inputId) {
|
BundledTvInputServiceTest.java | 57 public Integer getVideoUnavailableReason(String inputId) { 58 return mVideoUnavailableReasonMap.get(inputId); 62 public void onVideoAvailable(String inputId) { 64 mVideoUnavailableReasonMap.put(inputId, VIDEO_AVAILABLE); 69 public void onVideoUnavailable(String inputId, int reason) { 71 mVideoUnavailableReasonMap.put(inputId, reason);
|
/packages/apps/TV/tests/common/src/com/android/tv/testing/dvr/ |
RecordingTestUtils.java | 30 public static ScheduledRecording createTestRecordingWithIdAndPeriod(long id, String inputId, 32 return ScheduledRecording.builder(inputId, channelId, startTime, endTime) 38 public static ScheduledRecording createTestRecordingWithPeriod(String inputId, 40 return createTestRecordingWithIdAndPeriod(ScheduledRecording.ID_NOT_SET, inputId, channelId,
|
/packages/apps/TV/src/com/android/tv/dvr/ |
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) { 482 if (TextUtils.equals(r.getInputId(), inputId)) { 534 public List<ScheduledRecording> getScheduledRecordings(String inputId) { [all...] |
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); [all...] |
/frameworks/base/services/core/java/com/android/server/tv/ |
TvInputHardwareManager.java | 215 String inputId = mHardwareInputIdMap.get(deviceId); 216 if (inputId != null 219 connection.getInputStateLocked(), 0, inputId).sendToTarget(); 289 String inputId = mHardwareInputIdMap.get(hardwareInfo.getDeviceId()); 290 if (inputId != null && inputId.equals(info.getId())) { 298 ListenerHandler.STATE_CHANGED, state, 0, inputId).sendToTarget(); 348 public void removeHardwareInput(String inputId) { 350 mInputMap.remove(inputId); 351 int hardwareIndex = indexOfEqualValue(mHardwareInputIdMap, inputId); [all...] |
TvInputManagerService.java | 319 for (String inputId : inputMap.keySet()) { 320 if (!userState.inputMap.containsKey(inputId)) { 321 notifyInputAddedLocked(userState, inputId); 324 ComponentName component = inputMap.get(inputId).info.getComponent(); 328 notifyInputUpdatedLocked(userState, inputId); 335 for (String inputId : userState.inputMap.keySet()) { 336 if (!inputMap.containsKey(inputId)) { 337 TvInputInfo info = userState.inputMap.get(inputId).info; 340 abortPendingCreateSessionRequestsLocked(serviceState, inputId, userId); 342 notifyInputRemovedLocked(userState, inputId); [all...] |
/packages/apps/TV/src/com/android/tv/tuner/tvinput/ |
TunerTvInputService.java | 90 public RecordingSession onCreateRecordingSession(String inputId) { 91 return new TunerRecordingSession(this, inputId, mChannelDataManager); 95 public Session onCreateSession(String inputId) { 105 Log.e(TAG, "Creating a session for " + inputId + " failed.", e);
|
/packages/apps/TV/tests/unit/src/com/android/tv/data/ |
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/ |
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); 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);
|
/packages/apps/TV/tests/unit/src/com/android/tv/dvr/recorder/ |
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),
|