Home
last modified time | relevance | path

Searched refs:sessionToken (Results 1 – 25 of 36) sorted by relevance

12

/frameworks/base/media/java/android/media/tv/interactive/
DITvInteractiveAppManager.aidl44 void startInteractiveApp(in IBinder sessionToken, int userId); in startInteractiveApp() argument
45 void stopInteractiveApp(in IBinder sessionToken, int userId); in stopInteractiveApp() argument
46 void resetInteractiveApp(in IBinder sessionToken, int userId); in resetInteractiveApp() argument
48 in IBinder sessionToken, in Uri biIAppUri, in Bundle params, int userId); in createBiInteractiveApp() argument
49 void destroyBiInteractiveApp(in IBinder sessionToken, in String biIAppId, int userId); in destroyBiInteractiveApp() argument
50 void setTeletextAppEnabled(in IBinder sessionToken, boolean enable, int userId); in setTeletextAppEnabled() argument
51 void sendCurrentVideoBounds(in IBinder sessionToken, in Rect bounds, int userId); in sendCurrentVideoBounds() argument
52 void sendCurrentChannelUri(in IBinder sessionToken, in Uri channelUri, int userId); in sendCurrentChannelUri() argument
53 void sendCurrentChannelLcn(in IBinder sessionToken, int lcn, int userId); in sendCurrentChannelLcn() argument
54 void sendStreamVolume(in IBinder sessionToken, float volume, int userId); in sendStreamVolume() argument
[all …]
/frameworks/base/media/java/android/media/tv/
DITvInputManager.aidl70 void releaseSession(in IBinder sessionToken, int userId); in releaseSession() argument
74 void setMainSession(in IBinder sessionToken, int userId); in setMainSession() argument
75 void setSurface(in IBinder sessionToken, in Surface surface, int userId); in setSurface() argument
76 void dispatchSurfaceChanged(in IBinder sessionToken, int format, int width, int height, in dispatchSurfaceChanged() argument
78 void setVolume(in IBinder sessionToken, float volume, int userId); in setVolume() argument
79 void tune(in IBinder sessionToken, in Uri channelUri, in Bundle params, int userId); in tune() argument
80 void setCaptionEnabled(in IBinder sessionToken, boolean enabled, int userId); in setCaptionEnabled() argument
81 void selectTrack(in IBinder sessionToken, int type, in String trackId, int userId); in selectTrack() argument
82 void selectAudioPresentation(in IBinder sessionToken, int presentationId, int programId, in selectAudioPresentation() argument
85 void setInteractiveAppNotificationEnabled(in IBinder sessionToken, boolean enabled, int userId); in setInteractiveAppNotificationEnabled() argument
[all …]
/frameworks/base/media/java/android/media/tv/ad/
DITvAdManager.aidl37 void releaseSession(in IBinder sessionToken, int userId); in releaseSession() argument
38 void startAdService(in IBinder sessionToken, int userId); in startAdService() argument
39 void stopAdService(in IBinder sessionToken, int userId); in stopAdService() argument
40 void resetAdService(in IBinder sessionToken, int userId); in resetAdService() argument
41 void setSurface(in IBinder sessionToken, in Surface surface, int userId); in setSurface() argument
42 void dispatchSurfaceChanged(in IBinder sessionToken, int format, int width, int height, in dispatchSurfaceChanged() argument
45 void sendCurrentVideoBounds(in IBinder sessionToken, in Rect bounds, int userId); in sendCurrentVideoBounds() argument
46 void sendCurrentChannelUri(in IBinder sessionToken, in Uri channelUri, int userId); in sendCurrentChannelUri() argument
47 void sendTrackInfoList(in IBinder sessionToken, in List<TvTrackInfo> tracks, int userId); in sendTrackInfoList() argument
48 void sendCurrentTvInputId(in IBinder sessionToken, in String inputId, int userId); in sendCurrentTvInputId() argument
[all …]
/frameworks/base/services/core/java/com/android/server/tv/interactive/
DTvInteractiveAppManagerService.java842 IBinder sessionToken, int callingUid, int userId) { in getAdSessionStateLocked() argument
844 return getAdSessionStateLocked(sessionToken, callingUid, userState); in getAdSessionStateLocked()
848 private AdSessionState getAdSessionStateLocked(IBinder sessionToken, int callingUid, in getAdSessionStateLocked() argument
850 AdSessionState sessionState = userState.mAdSessionStateMap.get(sessionToken); in getAdSessionStateLocked()
852 throw new SessionNotFoundException("Session state not found for token " + sessionToken); in getAdSessionStateLocked()
856 throw new SecurityException("Illegal access to the session with token " + sessionToken in getAdSessionStateLocked()
864 IBinder sessionToken, int callingUid, int userId) { in getAdSessionLocked() argument
865 return getAdSessionLocked(getAdSessionStateLocked(sessionToken, callingUid, userId)); in getAdSessionLocked()
879 private SessionState getSessionStateLocked(IBinder sessionToken, int callingUid, int userId) { in getSessionStateLocked() argument
881 return getSessionStateLocked(sessionToken, callingUid, userState); in getSessionStateLocked()
[all …]
/frameworks/base/services/core/java/com/android/server/tv/
DTvInputManagerService.java618 if (state.sessionToken == sessionState.hardwareSessionToken) { in clearSessionAndNotifyClientLocked()
619 releaseSessionLocked(sessionState.sessionToken, Process.SYSTEM_UID, state.userId); in clearSessionAndNotifyClientLocked()
627 removeSessionStateLocked(state.sessionToken, state.userId); in clearSessionAndNotifyClientLocked()
723 private SessionState getSessionStateLocked(IBinder sessionToken, int callingUid, int userId) { in getSessionStateLocked() argument
725 return getSessionStateLocked(sessionToken, callingUid, userState); in getSessionStateLocked()
729 private SessionState getSessionStateLocked(IBinder sessionToken, in getSessionStateLocked() argument
731 SessionState sessionState = userState.sessionStateMap.get(sessionToken); in getSessionStateLocked()
733 throw new SessionNotFoundException("Session state not found for token " + sessionToken); in getSessionStateLocked()
737 throw new SecurityException("Illegal access to the session with token " + sessionToken in getSessionStateLocked()
744 private ITvInputSession getSessionLocked(IBinder sessionToken, int callingUid, int userId) { in getSessionLocked() argument
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/panel/component/mediaoutput/shared/model/
DMediaDeviceSession.kt25 val sessionToken: MediaSession.Token, constant in com.android.systemui.volume.panel.component.mediaoutput.shared.model.MediaDeviceSession
31 sessionToken == other?.sessionToken
/frameworks/base/core/java/android/hardware/lights/
DILightsManager.aidl33 void openSession(in IBinder sessionToken, in int priority); in openSession() argument
35 void closeSession(in IBinder sessionToken); in closeSession() argument
37 void setLightStates(in IBinder sessionToken, in int[] lightIds, in LightState[] states); in setLightStates() argument
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/session/
DMediaSessionManagerExt.kt53 override fun onVolumeChanged(sessionToken: MediaSession.Token, flags: Int) = in <lambda>()
57 sessionToken: MediaSession.Token? in <lambda>()
59 launch { send(sessionToken) } in <lambda>()
/frameworks/base/media/java/android/media/
DIRemoteSessionCallback.aidl29 void onVolumeChanged(in MediaSession.Token sessionToken, int flags); in onVolumeChanged() argument
32 void onSessionChanged(in MediaSession.Token sessionToken); in onSessionChanged() argument
/frameworks/base/media/java/android/media/session/
DMediaSessionManager.java637 @NonNull MediaSession.Token sessionToken) { in dispatchMediaKeyEventToSessionAsSystemService() argument
638 Objects.requireNonNull(sessionToken, "sessionToken shouldn't be null"); in dispatchMediaKeyEventToSessionAsSystemService()
645 mContext.getPackageName(), keyEvent, sessionToken); in dispatchMediaKeyEventToSessionAsSystemService()
711 @NonNull MediaSession.Token sessionToken) { in dispatchVolumeKeyEventToSessionAsSystemService() argument
712 Objects.requireNonNull(sessionToken, "sessionToken shouldn't be null"); in dispatchVolumeKeyEventToSessionAsSystemService()
716 mContext.getOpPackageName(), keyEvent, sessionToken); in dispatchVolumeKeyEventToSessionAsSystemService() local
1128 @Nullable MediaSession.Token sessionToken); in onMediaKeyEventDispatched() argument
1150 @Nullable MediaSession.Token sessionToken); in onMediaKeyEventSessionChanged() argument
1171 void onVolumeChanged(@NonNull MediaSession.Token sessionToken, in onVolumeChanged() argument
1182 void onDefaultRemoteSessionChanged(@Nullable MediaSession.Token sessionToken); in onDefaultRemoteSessionChanged() argument
[all …]
DIOnMediaKeyEventDispatchedListener.aidl27 in MediaSession.Token sessionToken); in onMediaKeyEventDispatched() argument
DISessionManager.aidl47 in KeyEvent keyEvent, in MediaSession.Token sessionToken); in dispatchMediaKeyEventToSessionAsSystemService() argument
51 in KeyEvent keyEvent, in MediaSession.Token sessionToken); in dispatchVolumeKeyEventToSessionAsSystemService() argument
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/volume/
DMediaSessions.java136 private void onRemoteVolumeChangedH(Token sessionToken, int flags) { in onRemoteVolumeChangedH() argument
137 final MediaController controller = new MediaController(mContext, sessionToken); in onRemoteVolumeChangedH()
146 private void onUpdateRemoteSessionListH(Token sessionToken) { in onUpdateRemoteSessionListH() argument
148 sessionToken != null ? new MediaController(mContext, sessionToken) : null; in onUpdateRemoteSessionListH()
343 public void onVolumeChanged(@NonNull MediaSession.Token sessionToken,
346 sessionToken).sendToTarget();
351 @Nullable MediaSession.Token sessionToken) {
353 sessionToken).sendToTarget();
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/domain/pipeline/
DMediaSessionBasedFilter.kt127 remote.sessionToken == data.token || in <lambda>()
128 !tokensWithNotifications.contains(TokenId(remote.sessionToken)) in <lambda>()
139 if (!keyedTokens.get(key)!!.contains(TokenId(remote.sessionToken))) { in <lambda>()
204 controllers?.map { TokenId(it.sessionToken) }?.let { tokensWithNotifications.retainAll(it) } in <lambda>()
DMediaTimeoutListener.kt212 var sessionToken: MediaSession.Token? = null in <lambda>() variable
233 sessionToken = data.token in <lambda>()
/frameworks/base/services/core/java/com/android/server/media/
DMediaSession2Record.java62 Session2Token sessionToken, in MediaSession2Record() argument
70 mSessionToken = sessionToken; in MediaSession2Record()
73 mController = new MediaController2.Builder(service.getContext(), sessionToken) in MediaSession2Record()
DMediaSessionStack.java132 public MediaSessionRecord getMediaSessionRecord(MediaSession.Token sessionToken) { in getMediaSessionRecord() argument
136 if (Objects.equals(session1.getSessionToken(), sessionToken)) { in getMediaSessionRecord()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/volume/
DMediaControllerKosmos.kt58 whenever(sessionToken).thenReturn(localSessionToken) in <lambda>()
88 whenever(sessionToken).thenReturn(remoteSessionToken) in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/panel/component/mediaoutput/domain/interactor/
DMediaDeviceSessionInteractor.kt106 controllers.firstOrNull { it.sessionToken == mediaDeviceSession.sessionToken } in <lambda>()
DMediaOutputInteractor.kt181 sessionToken = sessionToken, in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/viewmodel/
DSeekBarViewModel.kt110 if (field?.sessionToken != value?.sessionToken) {
314 val traceCookie = controller?.sessionToken.hashCode() in checkIfPollingNeeded()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/domain/pipeline/
DMediaDataProcessorTest.kt264 it.setStyle(MediaStyle().apply { setMediaSession(session.sessionToken) }) in setup()
275 setMediaSession(session.sessionToken) in setup()
288 whenever(mediaControllerFactory.create(eq(session.sessionToken))).thenReturn(controller) in setup()
361 session.sessionToken, in testsetInactive_resume_dismissesMedia()
496 it.setStyle(MediaStyle().apply { setMediaSession(session.sessionToken) }) in testOnNotificationAdded_hasSubstituteName_isUsed()
552 setMediaSession(session.sessionToken) in testLoadMediaDataInBg_invalidMediaRemoteIntentNoCrash()
655 it.setStyle(MediaStyle().apply { setMediaSession(session.sessionToken) }) in testOnNotificationAdded_emptyMetadata_usesNotificationTitle()
1117 session.sessionToken, in testAddResumptionControls_hasEmptyTitle()
1151 session.sessionToken, in testAddResumptionControls_hasBlankTitle()
1218 it.setStyle(MediaStyle().apply { setMediaSession(session.sessionToken) }) in testBadArtwork_doesNotUse()
[all …]
DMediaSessionBasedFilterTest.kt110 token1 = session1.sessionToken in setUp()
111 token2 = session2.sessionToken in setUp()
112 token3 = session3.sessionToken in setUp()
113 token4 = session4.sessionToken in setUp()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/domain/resume/
DResumeMediaBrowserTest.kt87 whenever(mediaController.sessionToken).thenReturn(token) in capture()
344 whenever(browser.sessionToken).thenReturn(token) in capture()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/volume/panel/component/mediaoutput/ui/viewmodel/
DMediaOutputViewModelTest.kt80 whenever(localMediaController.sessionToken).thenReturn(MediaSession.Token(0, mock {})) in setup()

12