Home
last modified time | relevance | path

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

12

/cts/tests/tests/media/src/android/media/cts/
DMediaSessionTest.java71 private MediaSession mSession; field in MediaSessionTest
78 mSession = new MediaSession(getContext(), TEST_SESSION_TAG); in setUp()
86 mSession.release(); in tearDown()
95 assertNotNull(mSession.getSessionToken()); in testCreateSession()
96 assertFalse("New session should not be active", mSession.isActive()); in testCreateSession()
99 MediaController controller = mSession.getController(); in testCreateSession()
108 MediaSession.Token sessionToken = mSession.getSessionToken(); in testSessionToken()
127 MediaController controller = mSession.getController(); in testConfigureSession()
136 mSession.setExtras(extras); in testConfigureSession()
151 mSession.setFlags(5); in testConfigureSession()
[all …]
DMediaSession2Test.java80 private MediaSession2 mSession; field in MediaSession2Test
90 mSession = new MediaSession2.Builder(mContext) in setUp()
109 mSession.close(); in cleanUp()
135 mSession.close(); in testPlayerStateChange()
136 mSession = new MediaSession2.Builder(mContext).setPlayer(mPlayer) in testPlayerStateChange()
149 createController(mSession.getToken(), true, new ControllerCallback() { in testPlayerStateChange()
269 mSession.close(); in testUpdatePlayer()
270 mSession = new MediaSession2.Builder(mContext).setPlayer(mPlayer) in testUpdatePlayer()
284 mSession.updatePlayer(mPlayer, null, null); in testUpdatePlayer()
285 assertEquals(mPlayer, mSession.getPlayer()); in testUpdatePlayer()
[all …]
DMediaSession2_PermissionTest.java83 private MediaSession2 mSession; field in MediaSession2_PermissionTest
96 if (mSession != null) { in cleanUp()
97 mSession.close(); in cleanUp()
98 mSession = null; in cleanUp()
116 if (mSession != null) { in createSessionWithAllowedActions()
117 mSession.close(); in createSessionWithAllowedActions()
119 mSession = new MediaSession2.Builder(mContext).setPlayer(mPlayer).setId(SESSION_ID) in createSessionWithAllowedActions()
121 return mSession; in createSessionWithAllowedActions()
140 runnable.run(createController(mSession.getToken())); in testOnCommandRequest()
147 runnable.run(createController(mSession.getToken())); in testOnCommandRequest()
[all …]
DMediaControllerTest.java49 private MediaSession mSession; field in MediaControllerTest
57 mSession = new MediaSession(getContext(), SESSION_TAG); in setUp()
58 mSession.setCallback(mCallback, mHandler); in setUp()
59 mController = mSession.getController(); in setUp()
72 mSession.setRatingType(Rating.RATING_5_STARS); in testGetRatingType()
77 assertEquals(mSession.getSessionToken(), mController.getSessionToken()); in testGetSessionToken()
126 mSession.setPlaybackToRemote(vp); in testVolumeControl()
431 mCallerInfo = mSession.getCurrentControllerInfo(); in onPlay()
440 mCallerInfo = mSession.getCurrentControllerInfo(); in onPause()
449 mCallerInfo = mSession.getCurrentControllerInfo(); in onStop()
[all …]
DMediaController2Test.java85 MediaSession2 mSession; field in MediaController2Test
100 mSession = new MediaSession2.Builder(mContext) in setUp()
122 mController = createController(mSession.getToken()); in setUp()
130 if (mSession != null) { in cleanUp()
131 mSession.close(); in cleanUp()
231 MediaController2 controller = createController(mSession.getToken()); in testGettersAfterConnected()
431 MediaController2 controller = createController(mSession.getToken()); in testRemovePlaylistItem()
468 MediaController2 controller = createController(mSession.getToken()); in testSkipToPlaylistItem()
497 mSession.updatePlayer(mPlayer, agent, null); in testGetShuffleMode()
498 MediaController2 controller = createController(mSession.getToken(), true, callback); in testGetShuffleMode()
[all …]
DBassBoostTest.java218 getBassBoost(mSession); in test3_0ControlStatusListener()
244 getBassBoost(mSession); in test3_1EnableStatusListener()
269 getBassBoost(mSession); in test3_2ParameterChangedListener()
291 if (mBassBoost == null || session != mSession) { in getBassBoost()
292 if (session != mSession && mBassBoost != null) { in getBassBoost()
298 mSession = session; in getBassBoost()
360 mSession = getSessionId(); in createListenerLooper()
361 mBassBoost2 = new BassBoost(0, mSession); in createListenerLooper()
DMockMediaSessionService2.java43 private MediaSession2 mSession; field in MockMediaSessionService2
63 mSession = new MediaSession2.Builder(this) in onCreateSession()
67 return mSession; in onCreateSession()
DEqualizerTest.java244 getEqualizer(mSession); in test3_0ControlStatusListener()
267 getEqualizer(mSession); in test3_1EnableStatusListener()
289 getEqualizer(mSession); in test3_2ParameterChangedListener()
312 if (mEqualizer == null || session != mSession) { in getEqualizer()
313 if (session != mSession && mEqualizer != null) { in getEqualizer()
319 mSession = session; in getEqualizer()
380 mSession = getSessionId(); in createListenerLooper()
381 mEqualizer2 = new Equalizer(0, mSession); in createListenerLooper()
DMockMediaLibraryService2.java85 private MediaLibrarySession mSession; field in MockMediaLibraryService2
119 mSession = new MediaLibrarySession.Builder(MockMediaLibraryService2.this, executor, in onCreateSession()
121 return mSession; in onCreateSession()
174 mSession.notifySearchResultChanged(controllerInfo, query, SEARCH_RESULT_COUNT, in onSearch()
181 mSession.notifySearchResultChanged( in onSearch()
186 mSession.notifySearchResultChanged(controllerInfo, query, 0, extras); in onSearch()
DMediaSessionManager_MediaSession2Test.java62 private MediaSession2 mSession; field in MediaSessionManager_MediaSession2Test
73 mSession = new MediaSession2.Builder(mContext) in setUp()
85 mSession.close(); in cleanUp()
92 final MockPlayer player = (MockPlayer) mSession.getPlayer(); in testGetMediaSession2Tokens_hasMediaController()
123 mSession.close(); in testGetSessionTokens_sessionRejected()
124 mSession = new MediaSession2.Builder(mContext).setPlayer(new MockPlayer(0)) in testGetSessionTokens_sessionRejected()
150 mSession.close(); in testGetMediaSession2Tokens_sessionClosed()
DVirtualizerTest.java225 getVirtualizer(mSession); in test3_0ControlStatusListener()
252 getVirtualizer(mSession); in test3_1EnableStatusListener()
278 getVirtualizer(mSession); in test3_2ParameterChangedListener()
551 if (mVirtualizer == null || session != mSession) { in getVirtualizer()
552 if (session != mSession && mVirtualizer != null) { in getVirtualizer()
558 mSession = session; in getVirtualizer()
620 mSession = getSessionId(); in createListenerLooper()
621 mVirtualizer2 = new Virtualizer(0, mSession); in createListenerLooper()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DPackageInstallTest.java31 private PackageInstaller.Session mSession; field in PackageInstallTest
48 if (mSession != null) { in tearDown()
49 mSession.abandon(); in tearDown()
106 mSession = mPackageInstaller.openSession(sessionId); in installPackage()
110 OutputStream out = mSession.openWrite("PackageInstallTest", 0, file.length()); in installPackage()
116 mSession.fsync(out); in installPackage()
118 mSession.commit(getCommitCallback()); in installPackage()
119 mSession.close(); in installPackage()
/cts/tests/tests/print/printTestUtilLib/src/android/print/test/services/
DPrinterDiscoverySessionCallbacks.java27 private StubbablePrinterDiscoverySession mSession; field in PrinterDiscoverySessionCallbacks
30 mSession = session; in setSession()
34 return mSession; in getSession()
/cts/tests/camera/src/android/hardware/camera2/cts/
DSurfaceViewPreviewTest.java228 mSession = configureCameraSession(mCamera, outputSurfaces, mockSessionListener, mHandler); in preparePerformanceTestByCamera()
234 mSession.setRepeatingRequest(previewRequest.build(), resultListener, mHandler); in preparePerformanceTestByCamera()
242 mSession.setRepeatingRequest(previewRequest.build(), resultListener, mHandler); in preparePerformanceTestByCamera()
260 mSession.prepare(mReaderSurface); in preparePerformanceTestByCamera()
264 onSurfacePrepared(eq(mSession), eq(mReaderSurface)); in preparePerformanceTestByCamera()
307 mSession.setRepeatingRequest(previewRequest.build(), resultListener, mHandler); in preparePerformanceTestByCamera()
377 mSession = configureCameraSession(mCamera, outputSurfaces, sessionListener, mHandler); in surfaceEqualityTestByCamera()
386 mSession.setRepeatingRequest(previewRequest.build(), resultListener, mHandler); in surfaceEqualityTestByCamera()
392 mSession.abortCaptures(); in surfaceEqualityTestByCamera()
412 mSession = configureCameraSession(mCamera, outputSurfaces, sessionListener, mHandler); in surfaceEqualityTestByCamera()
[all …]
DCameraDeviceTest.java90 private CameraCaptureSession mSession; field in CameraDeviceTest
760 mSession = mSessionMockListener.waitAndGetSession(SESSION_CONFIGURE_TIMEOUT_MS); in testCreateCustomSessionByCamera()
772 mSession.capture(request, captureListener, mHandler); in testCreateCustomSessionByCamera()
782 mSession = mSessionMockListener.waitAndGetSession(SESSION_CONFIGURE_TIMEOUT_MS); in testCreateCustomSessionByCamera()
790 mSession = mSessionMockListener.waitAndGetSession(SESSION_CONFIGURE_TIMEOUT_MS); in testCreateCustomSessionByCamera()
797 mSession.close(); in testCreateCustomSessionByCamera()
981 mSession = mSessionMockListener.waitAndGetSession(SESSION_CONFIGURE_TIMEOUT_MS); in testSessionParametersStateLeakByCamera()
1031 mSession.setRepeatingRequest(request, captureListener, mHandler); in testSessionParametersStateLeakByCamera()
1042 mSession.close(); in testSessionParametersStateLeakByCamera()
1164 mSession = mSessionMockListener.waitAndGetSession(SESSION_CONFIGURE_TIMEOUT_MS); in testCreateSessionWithParametersByCamera()
[all …]
DLogicalCameraDeviceTest.java234 mSession = configureCameraSessionWithConfig(mCamera, outputConfigs, in testBasicLogicalPhysicalStreamCombination()
243 mSession.capture(requestBuilder.build(), new SimpleCaptureCallback(), mHandler); in testBasicLogicalPhysicalStreamCombination()
258 mSession.capture(requestBuilder.build(), new SimpleCaptureCallback(), mHandler); in testBasicLogicalPhysicalStreamCombination()
274 mSession.capture(requestBuilder.build(), new SimpleCaptureCallback(), mHandler); in testBasicLogicalPhysicalStreamCombination()
281 if (mSession != null) { in testBasicLogicalPhysicalStreamCombination()
282 mSession.close(); in testBasicLogicalPhysicalStreamCombination()
357 mSession = configureCameraSessionWithConfig(mCamera, outputConfigs, in testBasicPhysicalRequests()
361 mSession.capture(requestBuilder.build(), new SimpleCaptureCallback(), mHandler); in testBasicPhysicalRequests()
385 mSession = configureCameraSessionWithConfig(mCamera, outputConfigs, in testBasicPhysicalRequests()
395 mSession.setRepeatingRequest(requestBuilder.build(), simpleResultListener, in testBasicPhysicalRequests()
[all …]
DStillCaptureTest.java565 mSession.setRepeatingRequest(previewRequest.build(), resultListener, mHandler); in focalLengthTestByCamera()
577 mSession.capture(request, resultListener, mHandler); in focalLengthTestByCamera()
615 mSession.capture(request, stillResultListener, mHandler); in previewPersistenceTestByCamera()
712 focuser = new Camera2Focuser(mCamera, mSession, mPreviewSurface, afListener, in takePictureTestByCamera()
748 mSession.setRepeatingRequest(previewRequest.build(), resultListener, mHandler); in takePictureTestByCamera()
760 mSession.setRepeatingRequest(previewRequest.build(), resultListener, mHandler); in takePictureTestByCamera()
783 mSession.setRepeatingRequest(previewRequest.build(), resultListener, mHandler); in takePictureTestByCamera()
786 mSession.capture(previewRequest.build(), resultListener, mHandler); in takePictureTestByCamera()
794 mSession.capture(previewRequest.build(), resultListener, mHandler); in takePictureTestByCamera()
801 mSession.capture(previewRequest.build(), resultListener, mHandler); in takePictureTestByCamera()
[all …]
/cts/hostsidetests/devicepolicy/app/PackageInstaller/src/com/android/cts/packageinstaller/
DBasePackageInstallTest.java56 private PackageInstaller.Session mSession; field in BasePackageInstallTest
108 if (mSession != null) { in tearDown()
109 mSession.abandon(); in tearDown()
140 mSession = mPackageInstaller.openSession(sessionId); in installPackage()
144 OutputStream out = mSession.openWrite("SilentPackageInstallerTest", 0, file.length()); in installPackage()
150 mSession.fsync(out); in installPackage()
152 mSession.commit(getCommitCallback(sessionId)); in installPackage()
153 mSession.close(); in installPackage()
/cts/tests/tests/graphics/jni/
DCameraTestHelpers.cpp99 &mSession); in initCamera()
151 if (mSession != nullptr) { in closeCamera()
152 ACameraCaptureSession_close(mSession); in closeCamera()
153 mSession = nullptr; in closeCamera()
185 return ACameraCaptureSession_capture(mSession, nullptr, 1, &mCaptureRequest, in takePicture()
/cts/tests/tests/packageinstaller/adminpackageinstaller/src/android/packageinstaller/admin/cts/
DBasePackageInstallTest.java60 private PackageInstaller.Session mSession; field in BasePackageInstallTest
119 if (mSession != null) { in tearDown()
120 mSession.abandon(); in tearDown()
170 mSession = mPackageInstaller.openSession(sessionId); in installPackage()
174 OutputStream out = mSession.openWrite("SilentPackageInstallerTest", 0, file.length()); in installPackage()
180 mSession.fsync(out); in installPackage()
182 mSession.commit(getCommitCallback(sessionId)); in installPackage()
183 mSession.close(); in installPackage()
/cts/tests/camera/utils/src/android/hardware/camera2/cts/helpers/
DCamera2Focuser.java54 private final CameraCaptureSession mSession; field in Camera2Focuser
116 mSession = session; in Camera2Focuser()
219 mSession.setRepeatingRequest(mRepeatingBuilder.build(), listener, mHandler); in cancelAutoFocus()
220 mSession.capture(requestBuilder.build(), listener, mHandler); in cancelAutoFocus()
256 mSession.setRepeatingRequest(mRepeatingBuilder.build(), listener, mHandler); in startAutoFocusLocked()
257 mSession.capture(requestBuilder.build(), listener, mHandler); in startAutoFocusLocked()
280 mSession.setRepeatingRequest(mRepeatingBuilder.build(), listener, mHandler); in startAutoFocusFullActiveLocked()
281 mSession.capture(requestBuilder.build(), listener, mHandler); in startAutoFocusFullActiveLocked()
/cts/tests/tests/print/src/android/print/cts/
DPrinterCapabilitiesChangeTest.java69 …private final StubbablePrinterDiscoverySession[] mSession = new StubbablePrinterDiscoverySession[1… field in PrinterCapabilitiesChangeTest
162 mSession[0] = ((PrinterDiscoverySessionCallbacks) invocation.getMock()) in setUpPrinting()
165 mPrinterId[0] = mSession[0].getService().generatePrinterId(PRINTER_NAME); in setUpPrinting()
167 mSession[0].addPrinters(generatePrinters(mPrinterId[0], MediaSize.NA_LETTER, in setUpPrinting()
240 changeCapabilities(mSession[0], mPrinterId[0], mMsBefore, mAvailBefore); in changeCapabilities()
248 changeCapabilities(mSession[0], mPrinterId[0], mMsAfter, mAvailAfter); in changeCapabilities()
257 changeCapabilities(mSession[0], mPrinterId[0], MediaSize.NA_LETTER, true); in changeCapabilities()
/cts/tests/camera/src/android/hardware/camera2/cts/testcases/
DCamera2MultiViewTestCase.java414 private CameraCaptureSession mSession; field in Camera2MultiViewTestCase.CameraHolder
457 mSession = null; in close()
465 mSession = configureCameraSession(mCamera, outputSurfaces, mSessionListener, mHandler); in startPreview()
477 mSession.setRepeatingRequest(captureBuilder.build(), listener, mHandler); in startPreview()
483mSession = configureCameraSessionWithConfig(mCamera, outputConfigs, mSessionListener, mHandler); in createSessionWithConfigs()
513 return mSession.setRepeatingRequest(captureBuilder.build(), listener, mHandler); in startPreviewWithConfigs()
526 return mSession.setRepeatingRequest(captureBuilder.build(), listener, mHandler); in updateRepeatingRequest()
530 mSession.updateOutputConfiguration(config); in updateOutputConfiguration()
535 mSession.capture(request, listener, mHandler); in capture()
544 mSession.finalizeOutputConfigurations(configs); in finalizeOutputConfigs()
[all …]
DCamera2SurfaceViewTestCase.java99 protected CameraCaptureSession mSession; field in Camera2SurfaceViewTestCase
194 mSession.setRepeatingRequest(request.build(), listener, mHandler); in startPreview()
207 mSession = configureCameraSession(mCamera, outputSurfaces, mSessionListener, mHandler); in configurePreviewOutput()
236 if (mSession != null) { in stopPreview()
238 mSession.close(); in stopPreview()
248 if (mSession != null) { in stopPreviewAndDrain()
250 mSession.close(); in stopPreviewAndDrain()
452 mSession.capture(request, listener, handler); in captureRequestsSynchronized()
618 mSession = null; in closeDevice()
751 mSession = configureCameraSession(mCamera, outputSurfaces, mSessionListener, mHandler); in prepareCaptureAndStartPreview()
[all …]
/cts/tests/tests/media/libimagereaderjni/
DAImageReaderCts.cpp138 ret = ACameraDevice_createCaptureSession(mDevice, mOutputs, &mSessionCb, &mSession); in initCamera()
190 if (mSession != nullptr) { in closeCamera()
191 ACameraCaptureSession_close(mSession); in closeCamera()
192 mSession = nullptr; in closeCamera()
225 return ACameraCaptureSession_capture(mSession, nullptr, 1, &mStillRequest, &seqId); in takePicture()
255 ACameraCaptureSession* mSession = nullptr; member in __anond2bb31fa0111::CameraHelper

12