/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/ |
D | BluetoothMediaBrowserService.java | 57 private MediaSessionCompat mSession; field in BluetoothMediaBrowserService 88 mSession = new MediaSessionCompat(this, TAG); in onCreate() 89 setSessionToken(mSession.getSessionToken()); in onCreate() 90 mSession.setFlags(MediaSessionCompat.FLAG_HANDLES_MEDIA_BUTTONS in onCreate() 92 mSession.setQueueTitle(getString(R.string.bluetooth_a2dp_sink_queue_name)); in onCreate() 93 mSession.setQueue(mMediaQueue); in onCreate() 123 mSession.setPlaybackState(errorState); in setErrorPlaybackState() 163 mSession.setQueue(mMediaQueue); in updateNowPlayingQueue() 168 mSession.setQueue(mMediaQueue); in clearNowPlayingQueue() 187 sBluetoothMediaBrowserService.mSession.setCallback(callback); in addressedPlayerChanged() [all …]
|
D | AvrcpBipClient.java | 85 private ClientSession mSession; field in AvrcpBipClient 261 mSession = new ClientSession(mTransport); in connect() 266 headerSet = mSession.connect(headerSet); in connect() 285 if (mSession == null) return; in refreshObexSession() 289 mSession.disconnect(null); in refreshObexSession() 303 headerSet = mSession.connect(headerSet); in refreshObexSession() 324 if (mSession != null) { in disconnect() 328 mSession.disconnect(null); in disconnect() 335 mSession.close(); in disconnect() 343 mSession = null; in disconnect() [all …]
|
/packages/apps/Car/tests/TestMediaApp/src/com/android/car/media/testmediaapp/ |
D | TmaPlayer.java | 68 private final MediaSessionCompat mSession; field in TmaPlayer 88 mSession = session; in TmaPlayer() 115 mSession.setPlaybackState(state.build()); in setPlaybackState() 135 mSession.setQueue(item.getParent().buildQueue()); in playItem() 157 if (!mSession.isActive()) { in onPrepare() 158 mSession.setActive(true); in onPrepare() 175 mActiveItem.updateSessionMetadata(mSession); in prepareMediaItem() 176 mSession.setQueue(item.getParent().buildQueue()); in prepareMediaItem() 182 mSession.setPlaybackState(state.build()); in prepareMediaItem() 275 mSession.setMetadata(mSession.getController().getMetadata()); in onProcessMediaEvent() [all …]
|
D | TmaBrowser.java | 69 private MediaSessionCompat mSession; field in TmaBrowser 80 mSession = new MediaSessionCompat(this, MEDIA_SESSION_TAG); in onCreate() 81 setSessionToken(mSession.getSessionToken()); in onCreate() 85 mPlayer = new TmaPlayer(this, mLibrary, audioManager, mHandler, mSession); in onCreate() 87 mSession.setCallback(mPlayer); in onCreate() 88 mSession.setFlags(MediaSessionCompat.FLAG_HANDLES_MEDIA_BUTTONS in onCreate() 92 mSession.setExtras(mediaSessionExtras); in onCreate() 112 mSession.release(); in onDestroy() 132 mSession.setMetadata(null); in updatePlaybackState() 146 mSession.setPlaybackState(playbackState.build()); in updatePlaybackState() [all …]
|
/packages/apps/Camera2/src/com/android/camera/one/v2/camera2proxy/ |
D | AndroidCameraCaptureSessionProxy.java | 80 private final CameraCaptureSession mSession; field in AndroidCameraCaptureSessionProxy 83 mSession = session; in AndroidCameraCaptureSessionProxy() 89 mSession.abortCaptures(); in abortCaptures() 99 return mSession.capture(request, new AndroidCaptureCallback(listener), handler); in capture() 109 return mSession.captureBurst(requests, new AndroidCaptureCallback(listener), handler); in captureBurst() 117 mSession.close(); in close() 122 return new AndroidCameraDeviceProxy(mSession.getDevice()); in getDevice() 129 … return mSession.setRepeatingBurst(requests, new AndroidCaptureCallback(listener), handler); in setRepeatingBurst() 139 return mSession.setRepeatingRequest(request, new AndroidCaptureCallback(listener), in setRepeatingRequest() 149 mSession.stopRepeating(); in stopRepeating()
|
/packages/apps/Car/Radio/src/com/android/car/radio/media/ |
D | TunerSession.java | 52 private final MediaSession mSession; field in TunerSession 67 mSession = new MediaSession(context, TAG); in TunerSession() 85 mSession.setRatingType(Rating.RATING_HEART); in TunerSession() 87 mSession.setCallback(new TunerSessionCallback()); in TunerSession() 95 mSession.setActive(true); in TunerSession() 102 mSession.setActive(false); in onSelfStateChanged() 110 mSession.setMetadata(ProgramInfoExt.toMediaMetadata(info, fav, mImageResolver)); in updateMetadata() 118 mSession.setPlaybackState(mPlaybackStateBuilder.build()); in onPlaybackStateChanged() 131 return mSession.getSessionToken(); in getSessionToken() 136 return mSession.getController(); in getController() [all …]
|
/packages/apps/Camera2/src/com/android/camera/one/v2/imagesaver/ |
D | YuvImageBackendImageSaver.java | 61 private final CaptureSession mSession; field in YuvImageBackendImageSaver.ImageSaverImpl 68 mSession = session; in ImageSaverImpl() 90 mCrop), mExecutor, taskFlagsSet, mSession, in saveAndCloseImage() 100 private final CaptureSession mSession; field in YuvImageBackendImageSaver.YuvImageProcessorListener 107 mSession = session; in YuvImageProcessorListener() 128 mSession.setProgress(PERCENTAGE_COMPRESSION_DONE); in onResultCompressed() 142 mSession.updateCaptureIndicatorThumbnail(bitmap, mImageRotation.getDegrees()); in onResultUncompressed() 153 mSession.updateThumbnail(bitmapIntermediateRotated); in onResultUncompressed() 154 mSession.setProgressMessage(R.string.session_saving_image); in onResultUncompressed() 155 mSession.setProgress(PERCENTAGE_INTERMEDIATE_THUMBNAIL_DONE); in onResultUncompressed()
|
/packages/apps/Car/LocalMediaPlayer/src/com/android/car/media/localmediaplayer/ |
D | Player.java | 81 private final MediaSession mSession; field in Player 102 mSession = session; in Player() 302 mSession.setQueueTitle(mContext.getString(R.string.playlist)); in updateSessionQueueState() 303 mSession.setQueue(mQueue); in updateSessionQueueState() 323 mSession.setPlaybackState(mErrorState); in startPlayback() 338 mSession.setPlaybackState(mErrorState); in startPlayback() 361 .setStyle(new Notification.MediaStyle().setMediaSession(mSession.getSessionToken())) in postMediaNotification() 371 if (!mSession.isActive()) { in updatePlaybackStatePlaying() 372 mSession.setActive(true); in updatePlaybackStatePlaying() 383 mSession.setPlaybackState(state); in updatePlaybackStatePlaying() [all …]
|
D | LocalMediaBrowserService.java | 53 private MediaSession mSession; field in LocalMediaBrowserService 122 mSession = new MediaSession(this, MEDIA_SESSION_TAG); in onCreate() 123 setSessionToken(mSession.getSessionToken()); in onCreate() 124 mPlayer = new Player(this, mSession, mDataModel); in onCreate() 125 mSession.setCallback(mPlayer); in onCreate() 126 mSession.setFlags(MediaSession.FLAG_HANDLES_MEDIA_BUTTONS in onCreate() 142 mSession.release(); in onDestroy()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
D | BluetoothOppTransfer.java | 92 private BluetoothOppObexSession mSession; field in BluetoothOppTransfer 180 mSession = session; in BluetoothOppTransfer() 264 mSession.stop(); in handleMessage() 293 if (mSession != null) { in handleMessage() 294 mSession.stop(); in handleMessage() 507 if (mSession != null) { in stop() 511 mSession.stop(); in stop() 559 mSession = new BluetoothOppObexClientSession(mContext, mTransport); in startObexSession() 566 if (mSession == null) { in startObexSession() 574 Log.v(TAG, "Transfer has Server session" + mSession.toString()); in startObexSession() [all …]
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/tvinput/ |
D | TunerRecordingSessionWorker.java | 166 private final TunerRecordingSession mSession; field in TunerRecordingSessionWorker 213 mSession = session; in TunerRecordingSessionWorker() 292 mSession.onTuned(channelUri); in handleMessage() 301 mSession.onError(TvInputManager.RECORDING_ERROR_RESOURCE_BUSY); in handleMessage() 329 mSession.onError(TvInputManager.RECORDING_ERROR_UNKNOWN); in handleMessage() 338 mSession.onError(TvInputManager.RECORDING_ERROR_UNKNOWN); in handleMessage() 357 mSession.onError(TvInputManager.RECORDING_ERROR_INSUFFICIENT_SPACE); in handleMessage() 428 mSession.onError(TvInputManager.RECORDING_ERROR_UNKNOWN); in doTune() 434 mSession.onError(TvInputManager.RECORDING_ERROR_UNKNOWN); in doTune() 438 mSession.onError(TvInputManager.RECORDING_ERROR_UNKNOWN); in doTune() [all …]
|
D | TunerRecordingSessionWorkerExoV2.java | 167 private final TunerRecordingSessionExoV2 mSession; field in TunerRecordingSessionWorkerExoV2 214 mSession = session; in TunerRecordingSessionWorkerExoV2() 293 mSession.onTuned(channelUri); in handleMessage() 302 mSession.onError(TvInputManager.RECORDING_ERROR_RESOURCE_BUSY); in handleMessage() 327 mSession.onError(TvInputManager.RECORDING_ERROR_UNKNOWN); in handleMessage() 336 mSession.onError(TvInputManager.RECORDING_ERROR_UNKNOWN); in handleMessage() 355 mSession.onError(TvInputManager.RECORDING_ERROR_INSUFFICIENT_SPACE); in handleMessage() 431 mSession.onError(TvInputManager.RECORDING_ERROR_UNKNOWN); in doTune() 437 mSession.onError(TvInputManager.RECORDING_ERROR_UNKNOWN); in doTune() 441 mSession.onError(TvInputManager.RECORDING_ERROR_UNKNOWN); in doTune() [all …]
|
D | TunerSessionWorkerExoV2.java | 228 private final TunerSessionExoV2 mSession; field in TunerSessionWorkerExoV2 304 mSession = tunerSession; in TunerSessionWorkerExoV2() 519 mSession.notifyChannelRetuned(mChannelUri); in onStateChanged() 860 mRecordingUri = mSession.getRecordingUri(channelUri); in handleMessageTune() 885 mSession.notifyContentAllowed(); in handleMessageTune() 1201 mSession.notifyTimeShiftStatusChanged( in handleMessageBufferStateChanged() 1253 mSession.notifySignalStrength(0); in handleMessageCheckSignal() 1335 mSession.notifySignalStrength(signal); in notifySignal() 1355 mSession.notifyTrackSelected(type, trackId); in doSelectTrack() 1358 mSession.notifyTrackSelected(type, null); in doSelectTrack() [all …]
|
D | TunerSessionWorker.java | 229 private final TunerSession mSession; field in TunerSessionWorker 302 mSession = tunerSession; in TunerSessionWorker() 518 mSession.notifyChannelRetuned(mChannelUri); in onStateChanged() 873 mRecordingUri = mSession.getRecordingUri(channelUri); in handleMessageTune() 900 mSession.notifyContentAllowed(); in handleMessageTune() 1261 mSession.notifyTimeShiftStatusChanged( in handleMessageBufferStateChanged() 1318 mSession.notifySignalStrength(0); in handleMessageCheckSignal() 1402 mSession.notifySignalStrength(signal); in notifySignal() 1422 mSession.notifyTrackSelected(type, trackId); in doSelectTrack() 1425 mSession.notifyTrackSelected(type, null); in doSelectTrack() [all …]
|
/packages/apps/Car/Settings/src/com/android/car/settings/applications/specialaccess/ |
D | AppEntryListManager.java | 128 private ApplicationsState.Session mSession; field in AppEntryListManager 153 if (mSession != null) { in init() 159 mSession = mApplicationsState.newSession(mSessionCallbacks); in init() 167 mSession.onResume(); in start() 174 mSession.onPause(); in stop() 182 mSession.onDestroy(); in destroy() 211 mSession.rebuild((mFilterProvider != null) ? mFilterProvider.getAppFilter() in rebuild() 250 outer.loadInfo(outer.mSession.getAllApps()); in handleMessage()
|
/packages/services/BuiltInPrintService/src/com/android/bips/ |
D | LocalPrinter.java | 45 private final LocalDiscoverySession mSession; field in LocalPrinter 57 mSession = session; in LocalPrinter() 128 if (mSession.isDestroyed() || !mSession.isKnown(mPrinterId)) { in onCapabilities() 134 mSession.removePrinters(Collections.singletonList(mPrinterId)); in onCapabilities() 137 mSession.handlePrinter(this); in onCapabilities() 167 mSession.handlePrinter(this); in found() 170 mSession.isPriority(mPrinterId), this); in found()
|
/packages/apps/Music/kotlin/src/com/android/music/ |
D | MediaPlaybackService.kt | 34 private lateinit var mSession: MediaSession variable in com.android.music.MediaPlaybackService 40 mSession = MediaSession(this, "MediaPlaybackService") in onCreate() 42 mSession.setFlags(MediaSession.FLAG_HANDLES_MEDIA_BUTTONS in onCreate() 47 mSession.setPlaybackState(stateBuilder.build()) in onCreate() 48 setSessionToken(mSession.getSessionToken()) in onCreate() 53 mSession.setSessionActivity(pi) in onCreate()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/specialaccess/ |
D | AppEntryListManagerTest.java | 56 private ApplicationsState.Session mSession; field in AppEntryListManagerTest 74 when(mApplicationsState.newSession(mSessionCallbacksCaptor.capture())).thenReturn(mSession); in setUp() 90 verify(mSession).onResume(); in start_resumesSession() 111 verify(mSession).onPause(); in stop_pausesSession() 118 verify(mSession).onDestroy(); in destroy_destroysSession() 125 when(mSession.getAllApps()).thenReturn(entries); in forceUpdate_loadsExtraInfo() 149 verify(mSession).rebuild(eq(appFilter), in loadingFinished_rebuildsSession()
|
/packages/apps/Music/src/com/android/music/ |
D | MediaPlaybackService.java | 36 private MediaSession mSession; field in MediaPlaybackService 45 mSession = new MediaSession(this, "MediaPlaybackService"); in onCreate() 47 mSession.setFlags(MediaSession.FLAG_HANDLES_MEDIA_BUTTONS in onCreate() 52 mSession.setPlaybackState(stateBuilder.build()); in onCreate() 53 setSessionToken(mSession.getSessionToken()); in onCreate() 59 mSession.setSessionActivity(pi); in onCreate()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/ |
D | MasClient.java | 83 private ClientSession mSession; field in MasClient 126 mSession = new ClientSession(mTransport); in connect() 135 headerset = mSession.connect(headerset); in connect() 155 if (mSession != null) { in disconnect() 157 mSession.disconnect(null); in disconnect() 163 mSession.close(); in disconnect() 175 request.execute(mSession); in executeRequest()
|
/packages/apps/Camera2/src/com/android/camera/processing/imagebackend/ |
D | TaskCompressImageToJpeg.java | 110 mSession.getCollector().markProcessingTimeStart(); in run() 138 mSession.finishWithFailure(-1, true); in run() 276 mSession.finishWithFailure(-1, true); in run() 296 mSession.finishWithFailure(-1, true); in run() 343 mSession.getCollector().decorateAtTimeWriteToDisk(exif); in run() 344 ListenableFuture<Optional<Uri>> futureUri = mSession.saveAndFinish(writeOut, in run() 365 mSession.getCollector() in run() 374 mSession.getCollector().photoCaptureDoneEvent(); in run() 378 mSession.getCollector().photoCaptureDoneEvent(); in run() 406 Optional<Location> location = Optional.fromNullable(mSession.getLocation()); in createExif()
|
/packages/apps/Car/Settings/src/com/android/car/settings/applications/managedomainurls/ |
D | DomainAppPreferenceController.java | 80 mSession.rebuild(ApplicationsState.FILTER_WITH_DOMAIN_URLS, 85 private ApplicationsState.Session mSession; field in DomainAppPreferenceController 104 if (mSession == null) { in checkInitialized() 111 mSession = mApplicationsState.newSession(mApplicationStateCallbacks, lifecycle); in setLifecycle() 118 mSession.onResume(); in onStartInternal() 124 mSession.onPause(); in onStopInternal()
|
/packages/apps/Car/Settings/src/com/android/car/settings/applications/ |
D | ApplicationListItemManager.java | 61 private ApplicationsState.Session mSession; field in ApplicationListItemManager 108 mSession.onResume(); in onFragmentStart() 116 mSession.onPause(); in onFragmentStop() 130 if (mSession != null) { in startLoading() 136 mSession = mAppState.newSession(this, mLifecycle); in startLoading() 264 mSession.rebuild(finalFilterObj, mAppEntryComparator, /* foreground= */ false); in rebuild()
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | InCallTonePlayer.java | 206 private Session mSession; field in InCallTonePlayer 241 if (mSession != null) { in run() 242 Log.continueSession(mSession, "ICTP.r"); in run() 243 mSession = null; in run() 464 if (mSession != null) { in startTone() 465 Log.cancelSubsession(mSession); in startTone() 467 mSession = Log.createSubsession(); in startTone()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/storage/ |
D | BackupAppsStepFragment.java | 50 private ApplicationsState.Session mSession; field in BackupAppsStepFragment 97 mSession = mApplicationsState.newSession(this); in onCreate() 105 mSession.onResume(); in onResume() 112 mSession.onPause(); in onPause() 118 mSession.onDestroy(); in onDestroy() 142 final List<ApplicationsState.AppEntry> entries = mSession.rebuild(mAppFilter, in onCreateActions() 209 final List<ApplicationsState.AppEntry> entries = mSession.rebuild(mAppFilter, in updateActions()
|