/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);
|
ITvInputServiceCallback.aidl | 29 void removeHardwareInput(in String inputId);
|
ITvInputService.aidl | 33 in String inputId); 34 void createRecordingSession(in ITvInputSessionCallback callback, in String inputId);
|
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...] |
TvInputManager.java | 726 * @param inputId The ID of the TV input. 734 public void onInputStateChanged(String inputId, @InputState int state) { 743 * @param inputId The ID of the TV input. 745 public void onInputAdded(String inputId) { 754 * @param inputId The ID of the TV input. 756 public void onInputRemoved(String inputId) { 765 * @param inputId The ID of the TV input. 767 public void onInputUpdated(String inputId) { 796 public void postInputAdded(final String inputId) { 800 mCallback.onInputAdded(inputId); [all...] |
ITvInputManager.aidl | 43 TvInputInfo getTvInputInfo(in String inputId, int userId); 45 int getTvInputState(in String inputId, int userId); 59 void createSession(in ITvInputClient client, in String inputId, boolean isRecordingSession, 100 List<TvStreamConfig> getAvailableTvStreamConfigList(in String inputId, int userId); 101 boolean captureFrame(in String inputId, in Surface surface, in TvStreamConfig config,
|
/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/util/ |
TvInputManagerHelper.java | 63 public void onInputStateChanged(String inputId, int state) { 64 if (DEBUG) Log.d(TAG, "onInputStateChanged " + inputId + " state=" + state); 65 mInputStateMap.put(inputId, state); 67 callback.onInputStateChanged(inputId, state); 72 public void onInputAdded(String inputId) { 73 if (DEBUG) Log.d(TAG, "onInputAdded " + inputId); 74 TvInputInfo info = mTvInputManager.getTvInputInfo(inputId); 76 mInputMap.put(inputId, info); 77 mInputStateMap.put(inputId, mTvInputManager.getInputState(inputId)); [all...] |
SetupUtils.java | 100 public void onTvInputSetupFinished(final String inputId, 105 // list again and make all channels of {@code inputId} browsable. 106 onSetupDone(inputId); 113 updateChannelBrowsable(mTvApplication, inputId, postRunnable); 123 updateChannelBrowsable(mTvApplication, inputId, postRunnable); 127 private static void updateChannelBrowsable(Context context, final String inputId, 136 if (channel.getInputId().equals(inputId)) { 164 String inputId = input.getId(); 165 if (!isSetupDone(inputId) && channelDataManager.getChannelCountForInput(inputId) > 0) [all...] |
PipInputManager.java | 53 private final Map<String, PipInput> mPipInputMap = new HashMap<>(); // inputId -> PipInput 58 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); [all...] |
/packages/apps/TV/src/com/android/tv/dvr/ |
DvrSessionManager.java | 81 public boolean canAcquireDvrSession(String inputId, Channel channel) { 83 TvInputInfo info = mRecordingTvInputs.get(inputId); 92 public void onInputAdded(String inputId) { 93 super.onInputAdded(inputId); 94 TvInputInfo info = mTvInputManager.getTvInputInfo(inputId); 100 mRecordingTvInputs.put(inputId, info); 105 public void onInputRemoved(String inputId) { 106 super.onInputRemoved(inputId); 107 if (DEBUG) Log.d(TAG, "onInputRemoved " + inputId); 108 mRecordingTvInputs.remove(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);
|
/cts/tests/tests/tv/src/android/media/tv/cts/ |
FaultyTvInputService.java | 29 public Session onCreateSession(String inputId) { 34 public RecordingSession onCreateRecordingSession(String inputId) {
|
BundledTvInputServiceTest.java | 56 public Integer getVideoUnavailableReason(String inputId) { 57 return mVideoUnavailableReasonMap.get(inputId); 61 public void onVideoAvailable(String inputId) { 63 mVideoUnavailableReasonMap.put(inputId, VIDEO_AVAILABLE); 68 public void onVideoUnavailable(String inputId, int reason) { 70 mVideoUnavailableReasonMap.put(inputId, reason);
|
StubTvInputService.java | 29 public Session onCreateSession(String inputId) {
|
TvInputManagerTest.java | 253 public synchronized void onInputAdded(String inputId) { 254 mAddedInputs.add(inputId); 258 public synchronized void onInputRemoved(String inputId) { 259 mRemovedInputs.add(inputId); 273 public synchronized boolean isInputAdded(String inputId) { 275 inputId); 278 public synchronized boolean isInputRemoved(String inputId) { 280 inputId); 290 public Session onCreateSession(String inputId) {
|
/packages/apps/TV/common/src/com/android/tv/common/ |
TvCommonUtils.java | 32 public static Intent createSetupIntent(Intent originalSetupIntent, String inputId) { 40 intentContainer.putExtra(TvCommonConstants.EXTRA_INPUT_ID, inputId);
|
/packages/apps/TV/tests/input/src/com/android/tv/testinput/ |
TestTvInputSetupActivity.java | 64 public static void registerChannels(Context context, String inputId, boolean updateBrowsable, 71 ChannelUtils.updateChannels(context, inputId, channels); 73 updateChannelsBrowsable(context.getContentResolver(), inputId); 78 ChannelUtils.queryChannelInfoMapForTvInput(context, inputId); 87 private static void updateChannelsBrowsable(ContentResolver contentResolver, String inputId) { 88 Uri uri = TvContract.buildChannelsUriForInput(inputId);
|
/packages/apps/TV/tests/unit/src/com/android/tv/util/ |
TvInputManagerHelperTest.java | 67 for (String inputId : INPUT_ID_TO_PARTNER_INPUT.keySet()) { 68 TvInputInfo info1 = TestUtils.createTvInputInfo(resolveInfo1, inputId, null, 0, false); 69 TvInputInfo info2 = TestUtils.createTvInputInfo(resolveInfo2, inputId, null, 0, false);
|
/packages/apps/TV/usbtuner/src/com/android/usbtuner/tvinput/ |
BaseTunerTvInputService.java | 77 public RecordingSession onCreateRecordingSession(String inputId) { 78 return new TunerRecordingSession(this, inputId, mChannelDataManager); 82 public Session onCreateSession(String inputId) {
|
TunerRecordingSession.java | 38 public TunerRecordingSession(Context context, String inputId, 41 mInputId = inputId; 42 mSessionWorker = new TunerRecordingSessionWorker(context, inputId, channelDataManager,
|
/cts/hostsidetests/tv/app/src/com/android/cts/tv/hostside/ |
StubTvInputService.java | 29 public Session onCreateSession(String inputId) {
|
/packages/apps/TV/src/com/android/tv/ |
SetupPassthroughActivity.java | 53 String inputId = intent.getStringExtra(TvCommonConstants.EXTRA_INPUT_ID); 54 mTvInputInfo = inputManager.getTvInputInfo(inputId); 55 if (DEBUG) Log.d(TAG, "TvInputId " + inputId + " / TvInputInfo " + mTvInputInfo); 57 Log.w(TAG, "There is no input with the ID " + inputId + ".");
|
/packages/apps/TV/src/com/android/tv/analytics/ |
StubTracker.java | 105 public void sendInputConnectionFailure(String inputId) { } 108 public void sendInputDisconnected(String inputId) { }
|
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);
|