/frameworks/base/media/java/android/media/tv/ |
D | ITvInputManager.aidl | 62 void releaseSession(in IBinder sessionToken, int userId); in releaseSession() argument 64 void setMainSession(in IBinder sessionToken, int userId); in setMainSession() argument 65 void setSurface(in IBinder sessionToken, in Surface surface, int userId); in setSurface() argument 66 void dispatchSurfaceChanged(in IBinder sessionToken, int format, int width, int height, in dispatchSurfaceChanged() argument 68 void setVolume(in IBinder sessionToken, float volume, int userId); in setVolume() argument 69 void tune(in IBinder sessionToken, in Uri channelUri, in Bundle params, int userId); in tune() argument 70 void setCaptionEnabled(in IBinder sessionToken, boolean enabled, int userId); in setCaptionEnabled() argument 71 void selectTrack(in IBinder sessionToken, int type, in String trackId, int userId); in selectTrack() argument 73 void sendAppPrivateCommand(in IBinder sessionToken, in String action, in Bundle data, in sendAppPrivateCommand() argument 76 void createOverlayView(in IBinder sessionToken, in IBinder windowToken, in Rect frame, in createOverlayView() argument [all …]
|
/frameworks/base/services/core/java/com/android/server/tv/ |
D | TvInputManagerService.java | 436 if (state.sessionToken == sessionState.hardwareSessionToken) { in clearSessionAndNotifyClientLocked() 437 releaseSessionLocked(sessionState.sessionToken, Process.SYSTEM_UID, state.userId); in clearSessionAndNotifyClientLocked() 445 removeSessionStateLocked(state.sessionToken, state.userId); in clearSessionAndNotifyClientLocked() 524 private SessionState getSessionStateLocked(IBinder sessionToken, int callingUid, int userId) { in getSessionStateLocked() argument 526 SessionState sessionState = userState.sessionStateMap.get(sessionToken); in getSessionStateLocked() 528 throw new SessionNotFoundException("Session state not found for token " + sessionToken); in getSessionStateLocked() 532 throw new SecurityException("Illegal access to the session with token " + sessionToken in getSessionStateLocked() 538 private ITvInputSession getSessionLocked(IBinder sessionToken, int callingUid, int userId) { in getSessionLocked() argument 539 return getSessionLocked(getSessionStateLocked(sessionToken, callingUid, userId)); in getSessionLocked() 546 + sessionState.sessionToken); in getSessionLocked() [all …]
|
/frameworks/base/core/java/android/hardware/lights/ |
D | ILightsManager.aidl | 30 void openSession(in IBinder sessionToken); in openSession() argument 31 void closeSession(in IBinder sessionToken); in closeSession() argument 32 void setLightStates(in IBinder sessionToken, in int[] lightIds, in LightState[] states); in setLightStates() argument
|
/frameworks/base/media/java/android/media/session/ |
D | MediaSessionManager.java | 547 public boolean dispatchMediaKeyEventAsSystemService(@NonNull MediaSession.Token sessionToken, in dispatchMediaKeyEventAsSystemService() argument 549 if (sessionToken == null) { in dispatchMediaKeyEventAsSystemService() 560 sessionToken, keyEvent); in dispatchMediaKeyEventAsSystemService() 613 public void dispatchVolumeKeyEventAsSystemService(@NonNull MediaSession.Token sessionToken, in dispatchVolumeKeyEventAsSystemService() argument 615 if (sessionToken == null) { in dispatchVolumeKeyEventAsSystemService() 623 mContext.getOpPackageName(), sessionToken, keyEvent); in dispatchVolumeKeyEventAsSystemService() local 952 @NonNull MediaSession.Token sessionToken) { } in onMediaKeyEventDispatched() argument 974 @Nullable MediaSession.Token sessionToken) { } in onMediaKeyEventSessionChanged() argument 1181 MediaSession.Token sessionToken) { in onMediaKeyEventDispatched() argument 1187 sessionToken)); in onMediaKeyEventDispatched() [all …]
|
D | ISessionManager.aidl | 41 void notifySession2Created(in Session2Token sessionToken); in notifySession2Created() argument 47 in MediaSession.Token sessionToken, in KeyEvent keyEvent); in dispatchMediaKeyEventToSessionAsSystemService() argument 51 in MediaSession.Token sessionToken, in KeyEvent keyEvent); in dispatchVolumeKeyEventToSessionAsSystemService() argument
|
D | IOnMediaKeyEventDispatchedListener.aidl | 27 in MediaSession.Token sessionToken); in onMediaKeyEventDispatched() argument
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/volume/ |
D | MediaSessions.java | 129 private void onRemoteVolumeChangedH(Token sessionToken, int flags) { in onRemoteVolumeChangedH() argument 130 final MediaController controller = new MediaController(mContext, sessionToken); in onRemoteVolumeChangedH() 139 private void onUpdateRemoteControllerH(Token sessionToken) { in onUpdateRemoteControllerH() argument 141 sessionToken != null ? new MediaController(mContext, sessionToken) : null; in onUpdateRemoteControllerH() 335 public void remoteVolumeChanged(Token sessionToken, int flags) 338 sessionToken).sendToTarget(); 342 public void updateRemoteController(final Token sessionToken) 344 mHandler.obtainMessage(H.UPDATE_REMOTE_CONTROLLER, sessionToken).sendToTarget();
|
/frameworks/base/media/java/android/media/ |
D | IRemoteVolumeController.aidl | 29 void remoteVolumeChanged(in MediaSession.Token sessionToken, int flags); in remoteVolumeChanged() argument 32 void updateRemoteController(in MediaSession.Token sessionToken); in updateRemoteController() argument
|
/frameworks/base/services/core/java/com/android/server/media/ |
D | MediaSessionService.java | 728 private MediaSessionRecord getMediaSessionRecordLocked(MediaSession.Token sessionToken) { in getMediaSessionRecordLocked() argument 729 FullUserRecord user = getFullUserRecordLocked(UserHandle.getUserId(sessionToken.getUid())); in getMediaSessionRecordLocked() 731 return user.mPriorityStack.getMediaSessionRecord(sessionToken); in getMediaSessionRecordLocked() 1126 public void notifySession2Created(Session2Token sessionToken) throws RemoteException { in notifySession2Created() argument 1132 Log.d(TAG, "Session2 is created " + sessionToken); in notifySession2Created() 1134 if (uid != sessionToken.getUid()) { in notifySession2Created() 1136 + " but actually=" + sessionToken.getUid()); in notifySession2Created() 1138 Controller2Callback callback = new Controller2Callback(sessionToken); in notifySession2Created() 1143 MediaController2 controller = new MediaController2.Builder(mContext, sessionToken) in notifySession2Created() 1387 MediaSession.Token sessionToken, KeyEvent keyEvent) { in dispatchMediaKeyEventToSessionAsSystemService() argument [all …]
|
D | MediaSessionStack.java | 145 public MediaSessionRecord getMediaSessionRecord(MediaSession.Token sessionToken) { in getMediaSessionRecord() argument 147 if (Objects.equals(record.getControllerBinder(), sessionToken.getBinder())) { in getMediaSessionRecord()
|