Home
last modified time | relevance | path

Searched refs:mSession (Results 1 – 25 of 60) sorted by relevance

123

/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/
DBluetoothMediaBrowserService.java53 private MediaSession mSession; field in BluetoothMediaBrowserService
68 mSession = new MediaSession(this, TAG); in onCreate()
69 setSessionToken(mSession.getSessionToken()); in onCreate()
70 mSession.setFlags(MediaSession.FLAG_HANDLES_MEDIA_BUTTONS in onCreate()
72 mSession.setQueueTitle(getString(R.string.bluetooth_a2dp_sink_queue_name)); in onCreate()
73 mSession.setQueue(mMediaQueue); in onCreate()
78 mSession.setPlaybackState(playbackStateBuilder.build()); in onCreate()
119 mSession.setQueue(mMediaQueue); in updateNowPlayingQueue()
134 sBluetoothMediaBrowserService.mSession.setCallback(callback); in addressedPlayerChanged()
142 sBluetoothMediaBrowserService.mSession.setMetadata(mediaMetadata); in trackChanged()
[all …]
/packages/apps/Camera2/src/com/android/camera/one/v2/camera2proxy/
DAndroidCameraCaptureSessionProxy.java80 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/
DTunerSession.java52 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/Car/LocalMediaPlayer/src/com/android/car/media/localmediaplayer/
DPlayer.java81 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 …]
DLocalMediaBrowserService.java53 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/Camera2/src/com/android/camera/one/v2/imagesaver/
DYuvImageBackendImageSaver.java61 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()
DJpegImageBackendImageSaver.java60 private final CaptureSession mSession; field in JpegImageBackendImageSaver.ImageSaverImpl
68 mSession = session; in ImageSaverImpl()
89 mCrop), mExecutor, taskFlagsSet, mSession, in saveAndCloseImage()
100 private final CaptureSession mSession; field in JpegImageBackendImageSaver.JpegImageProcessorListener
109 mSession = session; in JpegImageProcessorListener()
135 mSession.updateCaptureIndicatorThumbnail(bitmap, rotation); in onResultCompressed()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppTransfer.java93 private BluetoothOppObexSession mSession; field in BluetoothOppTransfer
181 mSession = session; in BluetoothOppTransfer()
265 mSession.stop(); in handleMessage()
294 if (mSession != null) { in handleMessage()
295 mSession.stop(); in handleMessage()
508 if (mSession != null) { in stop()
512 mSession.stop(); in stop()
560 mSession = new BluetoothOppObexClientSession(mContext, mTransport); in startObexSession()
567 if (mSession == null) { in startObexSession()
575 Log.v(TAG, "Transfer has Server session" + mSession.toString()); in startObexSession()
[all …]
/packages/apps/TV/tuner/src/com/android/tv/tuner/tvinput/
DTunerRecordingSessionWorker.java162 private final TunerRecordingSession mSession; field in TunerRecordingSessionWorker
193 mSession = session; in TunerRecordingSessionWorker()
272 mSession.onTuned(channelUri); in handleMessage()
281 mSession.onError(TvInputManager.RECORDING_ERROR_RESOURCE_BUSY); in handleMessage()
309 mSession.onError(TvInputManager.RECORDING_ERROR_UNKNOWN); in handleMessage()
318 mSession.onError(TvInputManager.RECORDING_ERROR_UNKNOWN); in handleMessage()
337 mSession.onError(TvInputManager.RECORDING_ERROR_INSUFFICIENT_SPACE); in handleMessage()
408 mSession.onError(TvInputManager.RECORDING_ERROR_UNKNOWN); in doTune()
414 mSession.onError(TvInputManager.RECORDING_ERROR_UNKNOWN); in doTune()
418 mSession.onError(TvInputManager.RECORDING_ERROR_UNKNOWN); in doTune()
[all …]
DTunerSessionWorkerExoV2.java223 private final TunerSessionExoV2 mSession; field in TunerSessionWorkerExoV2
278 mSession = tunerSession; in TunerSessionWorkerExoV2()
859 mSession.notifyContentAllowed(); in handleMessageTune()
1213 mSession.notifyTimeShiftStatusChanged( in handleMessageBufferStateChanged()
1270 mSession.notifySignalStrength(0); in handleMessageCheckSignal()
1354 mSession.notifySignalStrength(signal); in notifySignal()
1374 mSession.notifyTrackSelected(type, trackId); in doSelectTrack()
1377 mSession.notifyTrackSelected(type, null); in doSelectTrack()
1386 mSession.notifyTrackSelected(type, trackId); in doSelectTrack()
1486 mSession.notifyTracksChanged(mTvTracks); in resetTvTracks()
[all …]
DTunerSessionWorker.java224 private final TunerSession mSession; field in TunerSessionWorker
277 mSession = tunerSession; in TunerSessionWorker()
849 mSession.notifyContentAllowed(); in handleMessageTune()
1203 mSession.notifyTimeShiftStatusChanged( in handleMessageBufferStateChanged()
1260 mSession.notifySignalStrength(0); in handleMessageCheckSignal()
1344 mSession.notifySignalStrength(signal); in notifySignal()
1364 mSession.notifyTrackSelected(type, trackId); in doSelectTrack()
1367 mSession.notifyTrackSelected(type, null); in doSelectTrack()
1376 mSession.notifyTrackSelected(type, trackId); in doSelectTrack()
1474 mSession.notifyTracksChanged(mTvTracks); in resetTvTracks()
[all …]
/packages/services/BuiltInPrintService/src/com/android/bips/
DLocalPrinter.java45 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/Car/Settings/src/com/android/car/settings/applications/specialaccess/
DAppEntryListManager.java128 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/apps/Car/tests/TestMediaApp/src/com/android/car/media/testmediaapp/
DTmaBrowser.java56 private MediaSessionCompat mSession; field in TmaBrowser
68 mSession = new MediaSessionCompat(this, MEDIA_SESSION_TAG); in onCreate()
69 setSessionToken(mSession.getSessionToken()); in onCreate()
73 mPlayer = new TmaPlayer(this, mLibrary, audioManager, mHandler, mSession); in onCreate()
75 mSession.setCallback(mPlayer); in onCreate()
76 mSession.setFlags(MediaSessionCompat.FLAG_HANDLES_MEDIA_BUTTONS in onCreate()
95 mSession.release(); in onDestroy()
113 mSession.setPlaybackState(playbackState.build()); in onAccountChanged()
DTmaPlayer.java69 private final MediaSessionCompat mSession; field in TmaPlayer
89 mSession = session; in TmaPlayer()
116 mSession.setPlaybackState(state.build()); in setPlaybackState()
136 mSession.setQueue(item.getParent().buildQueue()); in playItem()
239 if (!mSession.isActive()) { in onProcessMediaEvent()
240 mSession.setActive(true); in onProcessMediaEvent()
269 mSession.setPlaybackState(state); in startPlayBack()
273 mActiveItem.updateSessionMetadata(mSession); in startPlayBack()
287 mSession.setPlaybackState(state.build()); in pausePlayback()
303 mSession.setPlaybackState(state.build()); in sendStopPlaybackState()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/specialaccess/
DAppEntryListManagerTest.java56 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/
DMediaPlaybackService.java36 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/Camera2/src/com/android/camera/processing/imagebackend/
DTaskCompressImageToJpeg.java110 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/Bluetooth/src/com/android/bluetooth/mapclient/
DMasClient.java77 private ClientSession mSession; field in MasClient
111 mSession = new ClientSession(mTransport); in connect()
120 headerset = mSession.connect(headerset); in connect()
140 if (mSession != null) { in disconnect()
142 mSession.disconnect(null); in disconnect()
148 mSession.close(); in disconnect()
160 request.execute(mSession); in executeRequest()
/packages/apps/Car/Settings/src/com/android/car/settings/applications/managedomainurls/
DDomainAppPreferenceController.java79 mSession.rebuild(ApplicationsState.FILTER_WITH_DOMAIN_URLS,
84 private ApplicationsState.Session mSession; field in DomainAppPreferenceController
103 if (mSession == null) { in checkInitialized()
110 mSession = mApplicationsState.newSession(mApplicationStateCallbacks, lifecycle); in setLifecycle()
117 mSession.onResume(); in onStartInternal()
123 mSession.onPause(); in onStopInternal()
/packages/apps/Car/Settings/src/com/android/car/settings/applications/
DApplicationListItemManager.java53 private ApplicationsState.Session mSession; field in ApplicationListItemManager
84 mSession.onResume(); in onFragmentStart()
91 mSession.onPause(); in onFragmentStop()
105 if (mSession != null) { in startLoading()
111 mSession = mAppState.newSession(this, mLifecycle); in startLoading()
199 mSession.rebuild(finalFilterObj, mAppEntryComparator, /* foreground= */ false); in rebuild()
/packages/services/Telecomm/src/com/android/server/telecom/
DInCallTonePlayer.java206 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()
DHeadsetMediaButton.java84 mSession = session;
88 if (mSession != null) {
90 if (activate != mSession.isActive()) {
91 mSession.setActive(activate);
105 private MediaSession mSession; field in HeadsetMediaButton
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/storage/
DBackupAppsStepFragment.java50 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()
/packages/apps/TV/src/com/android/tv/dvr/
DDvrTvView.java45 private TvViewSession mSession; field in DvrTvView
84 mSession.timeShiftPlay(inputId, recordedProgramUri); in timeShiftPlay()
125 mSession.reset(); in reset()
150 mSession = mInputSessionManager.createTvViewSession(mTvView, this, mTvInputCallbackCompat); in init()
154 mInputSessionManager.releaseTvViewSession(mSession); in release()

123