Home
last modified time | relevance | path

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

12

/cts/tests/tests/media/src/android/media/cts/
DMediaSessionTest.java85 private MediaSession mSession; field in MediaSessionTest
92 mSession = new MediaSession(getContext(), TEST_SESSION_TAG); in setUp()
100 if (mSession != null) { in tearDown()
101 mSession.release(); in tearDown()
102 mSession = null; in tearDown()
112 assertNotNull(mSession.getSessionToken()); in testCreateSession()
113 assertFalse("New session should not be active", mSession.isActive()); in testCreateSession()
116 MediaController controller = mSession.getController(); in testCreateSession()
125 MediaSession.Token sessionToken = mSession.getSessionToken(); in testSessionTokenEquals()
130 assertFalse(sessionToken.equals(mSession)); in testSessionTokenEquals()
[all …]
DMediaActivityTest.java85 private MediaSession mSession; field in MediaActivityTest
104 mSession = new MediaSession(mContext, TAG); in setUp()
109 mSession.setPlaybackToLocal(new AudioAttributes.Builder() in setUp()
114 intent.putExtra(MediaSessionTestActivity.KEY_SESSION_TOKEN, mSession.getSessionToken()); in setUp()
132 if (mSession != null) { in cleanUp()
133 mSession.release(); in cleanUp()
134 mSession = null; in cleanUp()
163 final int testStream = mSession.getController().getPlaybackInfo().getAudioAttributes() in testVolumeKey_whileSessionAlive()
191 mSession.release(); in testVolumeKey_afterSessionReleased()
218 mSession.setCallback(new MediaSession.Callback() { in testMediaKey_whileSessionAlive()
[all …]
DMediaControllerTest.java55 private MediaSession mSession; field in MediaControllerTest
66 mSession = new MediaSession(getContext(), SESSION_TAG, mSessionInfo); in setUp()
67 mSession.setCallback(mCallback, mHandler); in setUp()
68 mController = mSession.getController(); in setUp()
76 if (mSession != null) { in tearDown()
77 mSession.release(); in tearDown()
78 mSession = null; in tearDown()
110 mSession.setPlaybackState(state); in testGetPlaybackState()
130 mSession.setRatingType(Rating.RATING_5_STARS); in testGetRatingType()
136 assertEquals(mSession.getSessionToken(), mController.getSessionToken()); in testGetSessionToken()
[all …]
DBassBoostTest.java219 getBassBoost(mSession); in test3_0ControlStatusListener()
245 getBassBoost(mSession); in test3_1EnableStatusListener()
270 getBassBoost(mSession); in test3_2ParameterChangedListener()
292 if (mBassBoost == null || session != mSession) { in getBassBoost()
293 if (session != mSession && mBassBoost != null) { in getBassBoost()
299 mSession = session; in getBassBoost()
361 mSession = getSessionId(); in createListenerLooper()
362 mBassBoost2 = new BassBoost(0, mSession); in createListenerLooper()
DMediaController2Test.java88 private MediaSession2 mSession; field in MediaController2Test
134 mSession = new MediaSession2.Builder(mContext) in setUp()
142 if (mSession != null) { in cleanUp()
143 mSession.close(); in cleanUp()
144 mSession = null; in cleanUp()
254 new MediaController2.Builder(mContext, mSession.getToken()).build()) { in testCreatingControllerWithoutCallback()
266 new MediaController2.Builder(mContext, mSession.getToken()) in testGetConnectedToken()
271 assertEquals(mSession.getToken(), controller.getConnectedToken()); in testGetConnectedToken()
287 new MediaController2.Builder(mContext, mSession.getToken()) in testCallback_onConnected_onDisconnected()
302 new MediaController2.Builder(mContext, mSession.getToken()) in testCallback_onSessionCommand()
[all …]
DVirtualizerTest.java226 getVirtualizer(mSession); in test3_0ControlStatusListener()
253 getVirtualizer(mSession); in test3_1EnableStatusListener()
279 getVirtualizer(mSession); in test3_2ParameterChangedListener()
552 if (mVirtualizer == null || session != mSession) { in getVirtualizer()
553 if (session != mSession && mVirtualizer != null) { in getVirtualizer()
559 mSession = session; in getVirtualizer()
621 mSession = getSessionId(); in createListenerLooper()
622 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.java243 mSession = configureCameraSession(mCamera, outputSurfaces, mockSessionListener, mHandler); in preparePerformanceTestByCamera()
249 mSession.setRepeatingRequest(previewRequest.build(), resultListener, mHandler); in preparePerformanceTestByCamera()
257 mSession.setRepeatingRequest(previewRequest.build(), resultListener, mHandler); in preparePerformanceTestByCamera()
275 mSession.prepare(mReaderSurface); in preparePerformanceTestByCamera()
279 onSurfacePrepared(eq(mSession), eq(mReaderSurface)); in preparePerformanceTestByCamera()
290 mSession.setRepeatingRequest(previewRequest.build(), resultListener, mHandler); in preparePerformanceTestByCamera()
363 mSession = configureCameraSession(mCamera, outputSurfaces, sessionListener, mHandler); in surfaceEqualityTestByCamera()
372 mSession.setRepeatingRequest(previewRequest.build(), resultListener, mHandler); in surfaceEqualityTestByCamera()
378 mSession.abortCaptures(); in surfaceEqualityTestByCamera()
398 mSession = configureCameraSession(mCamera, outputSurfaces, sessionListener, mHandler); in surfaceEqualityTestByCamera()
[all …]
DCameraDeviceTest.java94 private CameraCaptureSession mSession; field in CameraDeviceTest
786 mSession = mSessionMockListener.waitAndGetSession(SESSION_CONFIGURE_TIMEOUT_MS); in testCreateCustomSessionByCamera()
798 mSession.capture(request, captureListener, mHandler); in testCreateCustomSessionByCamera()
808 mSession = mSessionMockListener.waitAndGetSession(SESSION_CONFIGURE_TIMEOUT_MS); in testCreateCustomSessionByCamera()
816 mSession = mSessionMockListener.waitAndGetSession(SESSION_CONFIGURE_TIMEOUT_MS); in testCreateCustomSessionByCamera()
823 mSession.close(); in testCreateCustomSessionByCamera()
1015 mSession = mSessionMockListener.waitAndGetSession(SESSION_CONFIGURE_TIMEOUT_MS); in testSessionParametersStateLeakByCamera()
1065 mSession.setRepeatingRequest(request, captureListener, mHandler); in testSessionParametersStateLeakByCamera()
1076 mSession.close(); in testSessionParametersStateLeakByCamera()
1199 mSession = mSessionMockListener.waitAndGetSession(SESSION_CONFIGURE_TIMEOUT_MS); in testCreateSessionWithParametersByCamera()
[all …]
DLogicalCameraDeviceTest.java282 mSession = configureCameraSessionWithConfig(mCamera, outputConfigs, in testBasicLogicalPhysicalStreamCombination()
296 mSession.capture(requestBuilder.build(), new SimpleCaptureCallback(), mHandler); in testBasicLogicalPhysicalStreamCombination()
311 mSession.capture(requestBuilder.build(), new SimpleCaptureCallback(), mHandler); in testBasicLogicalPhysicalStreamCombination()
327 mSession.capture(requestBuilder.build(), new SimpleCaptureCallback(), mHandler); in testBasicLogicalPhysicalStreamCombination()
334 if (mSession != null) { in testBasicLogicalPhysicalStreamCombination()
335 mSession.close(); in testBasicLogicalPhysicalStreamCombination()
422 mSession = configureCameraSessionWithConfig(mCamera, outputConfigs, in testBasicPhysicalRequests()
431 mSession.capture(requestBuilder.build(), new SimpleCaptureCallback(), mHandler); in testBasicPhysicalRequests()
455 mSession = configureCameraSessionWithConfig(mCamera, outputConfigs, in testBasicPhysicalRequests()
465 mSession.setRepeatingRequest(requestBuilder.build(), simpleResultListener, in testBasicPhysicalRequests()
[all …]
DStillCaptureTest.java668 mSession.setRepeatingRequest(previewRequest.build(), resultListener, mHandler); in focalLengthTestByCamera()
680 mSession.capture(request, resultListener, mHandler); in focalLengthTestByCamera()
718 mSession.capture(request, stillResultListener, mHandler); in previewPersistenceTestByCamera()
815 focuser = new Camera2Focuser(mCamera, mSession, mPreviewSurface, afListener, in takePictureTestByCamera()
851 mSession.setRepeatingRequest(previewRequest.build(), resultListener, mHandler); in takePictureTestByCamera()
863 mSession.setRepeatingRequest(previewRequest.build(), resultListener, mHandler); in takePictureTestByCamera()
886 mSession.setRepeatingRequest(previewRequest.build(), resultListener, mHandler); in takePictureTestByCamera()
889 mSession.capture(previewRequest.build(), resultListener, mHandler); in takePictureTestByCamera()
897 mSession.capture(previewRequest.build(), resultListener, mHandler); in takePictureTestByCamera()
904 mSession.capture(previewRequest.build(), resultListener, mHandler); in takePictureTestByCamera()
[all …]
DBurstCaptureRawTest.java237 mSession.captureBurst(rawRequestList, rawCaptureCallback, mHandler); in execute()
291 mSession.captureBurst(rawRequestList, rawCaptureCallback, mHandler); in execute()
301 mSession.captureBurst(rawRequestList, rawCaptureCallback, mHandler); in execute()
312 mSession.captureBurst(rawRequestList, rawCaptureCallback, mHandler); in execute()
383 mSession.captureBurst(rawRequestList, rawCaptureCallback, mHandler); in execute()
716 mSession.prepare(mReaderSurface); in performTestRoutine()
718 mSession, mReaderSurface, PREPARE_TIMEOUT_MS); in performTestRoutine()
/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()
128 mSession = mPackageInstaller.openSession(sessionId); in installPackage()
132 OutputStream out = mSession.openWrite("SilentPackageInstallerTest", 0, file.length()); in installPackage()
138 mSession.fsync(out); in installPackage()
140 mSession.commit(getCommitCallback(sessionId)); in installPackage()
141 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/hostsidetests/packagemanager/installedloadingprogess/hostside/src/com/android/tests/loadingprogress/host/
DIncrementalLoadingProgressTest.java62 private IncrementalInstallSession mSession; field in IncrementalLoadingProgressTest
87 mSession = new IncrementalInstallSession.Builder() in setUp()
95 mSession.start(Executors.newCachedThreadPool(), in setUp()
97 mSession.waitForInstallCompleted(30, TimeUnit.SECONDS); in setUp()
103 if (mSession != null) { in tearDown()
104 mSession.close(); in tearDown()
/cts/tests/camera/src/android/hardware/camera2/cts/testcases/
DCamera2MultiViewTestCase.java397 private CameraCaptureSession mSession; field in Camera2MultiViewTestCase.CameraHolder
465 mSession = null; in close()
474 mSession = configureCameraSession(mCamera, outputSurfaces, mSessionListener, mHandler); in startPreview()
486 mSession.setRepeatingRequest(captureBuilder.build(), listener, mHandler); in startPreview()
492mSession = configureCameraSessionWithConfig(mCamera, outputConfigs, mSessionListener, mHandler); in createSessionWithConfigs()
525 return mSession.setRepeatingRequest(captureBuilder.build(), listener, mHandler); in startPreviewWithConfigs()
538 return mSession.setRepeatingRequest(captureBuilder.build(), listener, mHandler); in updateRepeatingRequest()
542 mSession.updateOutputConfiguration(config); in updateOutputConfiguration()
553 mSession.capture(request, listener, mHandler); in capture()
562 mSession.finalizeOutputConfigurations(configs); in finalizeOutputConfigs()
[all …]
DCamera2SurfaceViewTestCase.java108 protected CameraCaptureSession mSession; field in Camera2SurfaceViewTestCase
205 mSession.setRepeatingRequest(request.build(), listener, mHandler); in startPreview()
218 mSession = configureCameraSession(mCamera, outputSurfaces, mSessionListener, mHandler); in configurePreviewOutput()
247 if (mSession != null) { in stopPreview()
249 mSession.close(); in stopPreview()
259 if (mSession != null) { in stopPreviewAndDrain()
261 mSession.close(); in stopPreviewAndDrain()
613 mSession = configureCameraSession(mCamera, outputSurfaces, mSessionListener, mHandler); in prepareStillCaptureAndStartPreview()
623 mSession.setRepeatingRequest(previewRequest.build(), resultListener, mHandler); in prepareStillCaptureAndStartPreview()
661 mSession = null; in closeDevice()
[all …]
/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/tests/content/src/android/content/pm/cts/
DPackageManagerShellCommandIncrementalTest.java109 private IncrementalInstallSession mSession = null; field in PackageManagerShellCommandIncrementalTest
205 mSession = in testSpaceAllocatedForPackage()
233 mSession.start(Executors.newSingleThreadExecutor(), in testSpaceAllocatedForPackage()
235 mSession.waitForInstallCompleted(30, TimeUnit.SECONDS); in testSpaceAllocatedForPackage()
302 mSession = in testInstallWithStreaming()
310 mSession.start(Executors.newSingleThreadExecutor(), in testInstallWithStreaming()
312 mSession.waitForInstallCompleted(30, TimeUnit.SECONDS); in testInstallWithStreaming()
362 mSession = in installWithBlockFilter()
371 mSession.start(Executors.newSingleThreadExecutor(), in installWithBlockFilter()
373 mSession.waitForAnyCompletion(3, TimeUnit.SECONDS); in installWithBlockFilter()
[all …]
DResourcesHardeningTest.java268 session.mSession.getPackageResources(); in testIncrementalOwnPackageResources()
273 session.mSession.getPackageResources(); in testIncrementalOwnPackageResources()
274 session.mSession.enableBlockRestrictions(); in testIncrementalOwnPackageResources()
295 private final ShellInstallSession mSession; field in ResourcesHardeningTest.RemoteTest
299 mSession = session; in RemoteTest()
362 mSession.close(); in close()
/cts/tests/tests/media/libimagereaderjni/
DAImageReaderCts.cpp139 ret = ACameraDevice_createCaptureSession(mDevice, mOutputs, &mSessionCb, &mSession); in initCamera()
191 if (mSession != nullptr) { in closeCamera()
192 ACameraCaptureSession_close(mSession); in closeCamera()
193 mSession = nullptr; in closeCamera()
226 return ACameraCaptureSession_capture(mSession, nullptr, 1, &mStillRequest, &seqId); in takePicture()
256 ACameraCaptureSession* mSession = nullptr; member in __anond2bb31fa0111::CameraHelper
/cts/tests/uwb/src/android/uwb/cts/
DRangingSessionTest.java328 protected RangingSession mSession; field in RangingSessionTest.AdapterAnswer
331 mSession = session; in AdapterAnswer()
342 mSession.onRangingStarted(PARAMS); in answer()
354 mSession.onRangingReconfigured(PARAMS); in answer()
366 mSession.onRangingStopped(REASON, PARAMS); in answer()
378 mSession.onRangingClosed(REASON, PARAMS); in answer()

12