Searched refs:sessionToken (Results 1 - 15 of 15) sorted by relevance

/frameworks/support/browser/src/androidTest/java/androidx/browser/customtabs/
H A DTestCustomTabsService.java39 protected boolean newSession(CustomTabsSessionToken sessionToken) { argument
40 mSession = sessionToken;
45 protected boolean mayLaunchUrl(CustomTabsSessionToken sessionToken, argument
56 protected boolean updateVisuals(CustomTabsSessionToken sessionToken, Bundle bundle) { argument
62 CustomTabsSessionToken sessionToken, Uri postMessageOrigin) {
70 protected int postMessage(CustomTabsSessionToken sessionToken, String message, Bundle extras) { argument
76 protected boolean validateRelationship(CustomTabsSessionToken sessionToken, argument
61 requestPostMessageChannel( CustomTabsSessionToken sessionToken, Uri postMessageOrigin) argument
/frameworks/base/media/java/android/media/tv/
H A DITvInputManager.aidl62 void releaseSession(in IBinder sessionToken, int userId);
64 void setMainSession(in IBinder sessionToken, int userId);
65 void setSurface(in IBinder sessionToken, in Surface surface, int userId);
66 void dispatchSurfaceChanged(in IBinder sessionToken, int format, int width, int height,
68 void setVolume(in IBinder sessionToken, float volume, int userId);
69 void tune(in IBinder sessionToken, in Uri channelUri, in Bundle params, int userId);
70 void setCaptionEnabled(in IBinder sessionToken, boolean enabled, int userId);
71 void selectTrack(in IBinder sessionToken, int type, in String trackId, int userId);
73 void sendAppPrivateCommand(in IBinder sessionToken, in String action, in Bundle data,
76 void createOverlayView(in IBinder sessionToken, i
[all...]
/frameworks/support/browser/src/main/java/androidx/browser/customtabs/
H A DCustomTabsService.java112 final CustomTabsSessionToken sessionToken = new CustomTabsSessionToken(callback);
117 cleanUpSession(sessionToken);
124 return CustomTabsService.this.newSession(sessionToken);
178 * @param sessionToken The session token for which the {@link DeathRecipient} call has been
183 protected boolean cleanUpSession(CustomTabsSessionToken sessionToken) { argument
186 IBinder binder = sessionToken.getCallbackBinder();
213 * @param sessionToken Session token to be used as a unique identifier. This also has access
218 protected abstract boolean newSession(CustomTabsSessionToken sessionToken); argument
230 * @param sessionToken The unique identifier for the session. Can not be null.
237 protected abstract boolean mayLaunchUrl(CustomTabsSessionToken sessionToken, Ur argument
265 updateVisuals(CustomTabsSessionToken sessionToken, Bundle bundle) argument
279 requestPostMessageChannel(CustomTabsSessionToken sessionToken, Uri postMessageOrigin) argument
296 postMessage( CustomTabsSessionToken sessionToken, String message, Bundle extras) argument
314 validateRelationship( CustomTabsSessionToken sessionToken, @Relation int relation, Uri origin, Bundle extras) argument
[all...]
/frameworks/base/media/java/android/media/session/
H A DICallback.aidl28 in MediaSession.Token sessionToken);
32 void onAddressedPlayerChangedToMediaSession(in MediaSession.Token sessionToken);
H A DISessionManager.aidl58 boolean createSession2(in Bundle sessionToken);
59 void destroySession2(in Bundle sessionToken);
H A DMediaSessionManager.java784 * @param sessionToken The media session's token.
787 MediaSession.Token sessionToken);
806 * @param sessionToken The media session's token.
808 public abstract void onAddressedPlayerChanged(MediaSession.Token sessionToken); argument
1050 MediaSession.Token sessionToken) {
1054 mCallback.onMediaKeyEventDispatched(event, sessionToken);
1071 public void onAddressedPlayerChangedToMediaSession(MediaSession.Token sessionToken) { argument
1075 mCallback.onAddressedPlayerChanged(sessionToken);
786 onMediaKeyEventDispatched(KeyEvent event, MediaSession.Token sessionToken) argument
1049 onMediaKeyEventDispatchedToMediaSession(KeyEvent event, MediaSession.Token sessionToken) argument
/frameworks/base/services/core/java/com/android/server/tv/
H A DTvInputManagerService.java435 if (state.sessionToken == sessionState.hardwareSessionToken) {
436 releaseSessionLocked(sessionState.sessionToken, Process.SYSTEM_UID, state.userId);
444 removeSessionStateLocked(state.sessionToken, state.userId);
523 private SessionState getSessionStateLocked(IBinder sessionToken, int callingUid, int userId) { argument
525 SessionState sessionState = userState.sessionStateMap.get(sessionToken);
527 throw new SessionNotFoundException("Session state not found for token " + sessionToken);
531 throw new SecurityException("Illegal access to the session with token " + sessionToken
537 private ITvInputSession getSessionLocked(IBinder sessionToken, int callingUid, int userId) { argument
538 return getSessionLocked(getSessionStateLocked(sessionToken, callingUid, userId));
545 + sessionState.sessionToken);
629 createSessionInternalLocked(ITvInputService service, IBinder sessionToken, int userId) argument
657 sendSessionTokenToClientLocked(ITvInputClient client, String inputId, IBinder sessionToken, InputChannel channel, int seq) argument
666 releaseSessionLocked(IBinder sessionToken, int callingUid, int userId) argument
687 removeSessionStateLocked(IBinder sessionToken, int userId) argument
726 setMainLocked(IBinder sessionToken, boolean isMain, int callingUid, int userId) argument
1208 releaseSession(IBinder sessionToken, int userId) argument
1226 setMainSession(IBinder sessionToken, int userId) argument
1267 setSurface(IBinder sessionToken, Surface surface, int userId) argument
1297 dispatchSurfaceChanged(IBinder sessionToken, int format, int width, int height, int userId) argument
1324 setVolume(IBinder sessionToken, float volume, int userId) argument
1354 tune(IBinder sessionToken, final Uri channelUri, Bundle params, int userId) argument
1394 unblockContent( IBinder sessionToken, String unblockedRating, int userId) argument
1416 setCaptionEnabled(IBinder sessionToken, boolean enabled, int userId) argument
1436 selectTrack(IBinder sessionToken, int type, String trackId, int userId) argument
1456 sendAppPrivateCommand(IBinder sessionToken, String command, Bundle data, int userId) argument
1477 createOverlayView(IBinder sessionToken, IBinder windowToken, Rect frame, int userId) argument
1498 relayoutOverlayView(IBinder sessionToken, Rect frame, int userId) argument
1518 removeOverlayView(IBinder sessionToken, int userId) argument
1538 timeShiftPlay(IBinder sessionToken, final Uri recordedProgramUri, int userId) argument
1558 timeShiftPause(IBinder sessionToken, int userId) argument
1577 timeShiftResume(IBinder sessionToken, int userId) argument
1597 timeShiftSeekTo(IBinder sessionToken, long timeMs, int userId) argument
1617 timeShiftSetPlaybackParams(IBinder sessionToken, PlaybackParams params, int userId) argument
1638 timeShiftEnablePositionTracking(IBinder sessionToken, boolean enable, int userId) argument
1659 startRecording(IBinder sessionToken, @Nullable Uri programUri, int userId) argument
1679 stopRecording(IBinder sessionToken, int userId) argument
2223 private final IBinder sessionToken; field in class:TvInputManagerService.SessionState
2229 SessionState(IBinder sessionToken, String inputId, ComponentName componentName, boolean isRecordingSession, ITvInputClient client, int seq, int callingUid, int userId) argument
[all...]
/frameworks/support/media/src/main/java/android/support/v4/media/session/
H A DMediaControllerCompat.java259 * @param sessionToken The token of the session to be controlled.
262 public MediaControllerCompat(Context context, @NonNull MediaSessionCompat.Token sessionToken) argument
264 if (sessionToken == null) {
265 throw new IllegalArgumentException("sessionToken must not be null");
267 mToken = sessionToken;
270 mImpl = new MediaControllerImplApi24(context, sessionToken);
272 mImpl = new MediaControllerImplApi23(context, sessionToken);
274 mImpl = new MediaControllerImplApi21(context, sessionToken);
1938 public MediaControllerImplApi21(Context context, MediaSessionCompat.Token sessionToken) argument
1941 sessionToken
2424 MediaControllerImplApi23(Context context, MediaSessionCompat.Token sessionToken) argument
2457 MediaControllerImplApi24(Context context, MediaSessionCompat.Token sessionToken) argument
[all...]
/frameworks/support/media/api21/android/support/v4/media/session/
H A DMediaControllerCompatApi21.java41 public static Object fromToken(Context context, Object sessionToken) { argument
42 return new MediaController(context, (MediaSession.Token) sessionToken);
/frameworks/support/media/version-compat-tests/current/service/src/androidTest/java/android/support/mediacompat/service/
H A DMediaSessionCompatCallbackTest.java226 MediaSessionCompat.Token sessionToken = mSession.getSessionToken();
228 assertNotNull(sessionToken);
229 assertEquals(0, sessionToken.describeContents());
233 sessionToken.writeToParcel(p, 0);
236 assertEquals(token, sessionToken);
/frameworks/support/media/version-compat-tests/previous/service/src/androidTest/java/android/support/mediacompat/service/
H A DMediaSessionCompatCallbackTest.java224 MediaSessionCompat.Token sessionToken = mSession.getSessionToken();
226 assertNotNull(sessionToken);
227 assertEquals(0, sessionToken.describeContents());
231 sessionToken.writeToParcel(p, 0);
234 assertEquals(token, sessionToken);
/frameworks/av/packages/MediaComponents/src/com/android/support/mediarouter/app/
H A DMediaRouteControllerDialog.java292 * @param sessionToken The token for the session to use.
294 private void setMediaSession(MediaSessionCompat.Token sessionToken) { argument
299 if (sessionToken == null) {
306 mMediaController = new MediaControllerCompat(mContext, sessionToken);
/frameworks/support/media/src/main/java/android/support/v4/media/
H A DMediaBrowserCompat.java1899 IMediaSession sessionToken = IMediaSession.Stub.asInterface(
1901 if (sessionToken != null) {
1903 MediaBrowserCompatApi21.getSessionToken(mBrowserObj), sessionToken);
/frameworks/support/mediarouter/src/main/java/androidx/mediarouter/app/
H A DMediaRouteControllerDialog.java290 * @param sessionToken The token for the session to use.
292 private void setMediaSession(MediaSessionCompat.Token sessionToken) { argument
297 if (sessionToken == null) {
304 mMediaController = new MediaControllerCompat(mContext, sessionToken);
/frameworks/base/services/core/java/com/android/server/media/
H A DMediaSessionService.java1581 * @param sessionToken SessionToken2 object in bundled form
1586 public boolean createSession2(Bundle sessionToken) { argument
1591 final SessionToken2 token = SessionToken2.fromBundle(sessionToken);
1625 * @param sessionToken SessionToken2 object in bundled form
1628 public void destroySession2(Bundle sessionToken) { argument
1633 final SessionToken2 token = SessionToken2.fromBundle(sessionToken);

Completed in 192 milliseconds