/cts/tests/tests/media/src/android/media/cts/ |
D | MediaSessionTest.java | 75 private MediaSession mSession; field in MediaSessionTest 82 mSession = new MediaSession(getContext(), TEST_SESSION_TAG); in setUp() 90 mSession.release(); in tearDown() 99 assertNotNull(mSession.getSessionToken()); in testCreateSession() 100 assertFalse("New session should not be active", mSession.isActive()); in testCreateSession() 103 MediaController controller = mSession.getController(); in testCreateSession() 112 MediaSession.Token sessionToken = mSession.getSessionToken(); in testSessionToken() 131 MediaController controller = mSession.getController(); in testConfigureSession() 140 mSession.setExtras(extras); in testConfigureSession() 155 mSession.setFlags(5); in testConfigureSession() [all …]
|
D | MediaControllerTest.java | 52 private MediaSession mSession; field in MediaControllerTest 63 mSession = new MediaSession(getContext(), SESSION_TAG, mSessionInfo); in setUp() 64 mSession.setCallback(mCallback, mHandler); in setUp() 65 mController = mSession.getController(); in setUp() 98 mSession.setPlaybackState(state); in testGetPlaybackState() 118 mSession.setRatingType(Rating.RATING_5_STARS); in testGetRatingType() 124 assertEquals(mSession.getSessionToken(), mController.getSessionToken()); in testGetSessionToken() 191 mSession.setPlaybackToRemote(vp); in testVolumeControl() 502 mCallerInfo = mSession.getCurrentControllerInfo(); in onPlay() 511 mCallerInfo = mSession.getCurrentControllerInfo(); in onPause() [all …]
|
D | MediaActivityTest.java | 74 private MediaSession mSession; field in MediaActivityTest 93 mSession = new MediaSession(mContext, TAG); in setUp() 94 mSession.setPlaybackToLocal(new AudioAttributes.Builder() in setUp() 99 intent.putExtra(MediaSessionTestActivity.KEY_SESSION_TOKEN, mSession.getSessionToken()); in setUp() 105 if (mSession != null) { in cleanUp() 106 mSession.release(); in cleanUp() 107 mSession = null; in cleanUp() 125 final int testStream = mSession.getController().getPlaybackInfo().getAudioAttributes() in testVolumeKey_whileSessionAlive() 152 mSession.release(); in testVolumeKey_afterSessionReleased()
|
D | BassBoostTest.java | 219 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()
|
D | MediaController2Test.java | 88 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 …]
|
D | EqualizerTest.java | 245 getEqualizer(mSession); in test3_0ControlStatusListener() 268 getEqualizer(mSession); in test3_1EnableStatusListener() 290 getEqualizer(mSession); in test3_2ParameterChangedListener() 313 if (mEqualizer == null || session != mSession) { in getEqualizer() 314 if (session != mSession && mEqualizer != null) { in getEqualizer() 320 mSession = session; in getEqualizer() 381 mSession = getSessionId(); in createListenerLooper() 382 mEqualizer2 = new Equalizer(0, mSession); in createListenerLooper()
|
D | VirtualizerTest.java | 226 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()
|
D | MediaSession2Test.java | 389 assertEquals(session, sessionCallback.mSession); in testCallback_onConnect_onDisconnect() 404 assertEquals(session, sessionCallback.mSession); in testCallback_onConnect_onDisconnect() 481 assertEquals(session, sessionCallback.mSession); in testCallback_onSessionCommand() 537 assertEquals(session, sessionCallback.mSession); in testCallback_onCommandResult() 682 MediaSession2 mSession; field in MediaSession2Test.Session2Callback 695 mSession = session; in onConnect() 707 mSession = session; in onPostConnect() 718 mSession = session; in onDisconnected() 730 mSession = session; in onSessionCommand() 753 mSession = session; in onCommandResult()
|
/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | CameraDeviceTest.java | 88 private CameraCaptureSession mSession; field in CameraDeviceTest 767 mSession = mSessionMockListener.waitAndGetSession(SESSION_CONFIGURE_TIMEOUT_MS); in testCreateCustomSessionByCamera() 779 mSession.capture(request, captureListener, mHandler); in testCreateCustomSessionByCamera() 789 mSession = mSessionMockListener.waitAndGetSession(SESSION_CONFIGURE_TIMEOUT_MS); in testCreateCustomSessionByCamera() 797 mSession = mSessionMockListener.waitAndGetSession(SESSION_CONFIGURE_TIMEOUT_MS); in testCreateCustomSessionByCamera() 804 mSession.close(); in testCreateCustomSessionByCamera() 994 mSession = mSessionMockListener.waitAndGetSession(SESSION_CONFIGURE_TIMEOUT_MS); in testSessionParametersStateLeakByCamera() 1044 mSession.setRepeatingRequest(request, captureListener, mHandler); in testSessionParametersStateLeakByCamera() 1055 mSession.close(); in testSessionParametersStateLeakByCamera() 1177 mSession = mSessionMockListener.waitAndGetSession(SESSION_CONFIGURE_TIMEOUT_MS); in testCreateSessionWithParametersByCamera() [all …]
|
D | SurfaceViewPreviewTest.java | 239 mSession = configureCameraSession(mCamera, outputSurfaces, mockSessionListener, mHandler); in preparePerformanceTestByCamera() 245 mSession.setRepeatingRequest(previewRequest.build(), resultListener, mHandler); in preparePerformanceTestByCamera() 253 mSession.setRepeatingRequest(previewRequest.build(), resultListener, mHandler); in preparePerformanceTestByCamera() 271 mSession.prepare(mReaderSurface); in preparePerformanceTestByCamera() 275 onSurfacePrepared(eq(mSession), eq(mReaderSurface)); in preparePerformanceTestByCamera() 318 mSession.setRepeatingRequest(previewRequest.build(), resultListener, mHandler); in preparePerformanceTestByCamera() 391 mSession = configureCameraSession(mCamera, outputSurfaces, sessionListener, mHandler); in surfaceEqualityTestByCamera() 400 mSession.setRepeatingRequest(previewRequest.build(), resultListener, mHandler); in surfaceEqualityTestByCamera() 406 mSession.abortCaptures(); in surfaceEqualityTestByCamera() 426 mSession = configureCameraSession(mCamera, outputSurfaces, sessionListener, mHandler); in surfaceEqualityTestByCamera() [all …]
|
D | LogicalCameraDeviceTest.java | 271 mSession = configureCameraSessionWithConfig(mCamera, outputConfigs, in testBasicLogicalPhysicalStreamCombination() 280 mSession.capture(requestBuilder.build(), new SimpleCaptureCallback(), mHandler); in testBasicLogicalPhysicalStreamCombination() 295 mSession.capture(requestBuilder.build(), new SimpleCaptureCallback(), mHandler); in testBasicLogicalPhysicalStreamCombination() 311 mSession.capture(requestBuilder.build(), new SimpleCaptureCallback(), mHandler); in testBasicLogicalPhysicalStreamCombination() 318 if (mSession != null) { in testBasicLogicalPhysicalStreamCombination() 319 mSession.close(); in testBasicLogicalPhysicalStreamCombination() 405 mSession = configureCameraSessionWithConfig(mCamera, outputConfigs, in testBasicPhysicalRequests() 409 mSession.capture(requestBuilder.build(), new SimpleCaptureCallback(), mHandler); in testBasicPhysicalRequests() 433 mSession = configureCameraSessionWithConfig(mCamera, outputConfigs, in testBasicPhysicalRequests() 443 mSession.setRepeatingRequest(requestBuilder.build(), simpleResultListener, in testBasicPhysicalRequests() [all …]
|
D | StillCaptureTest.java | 665 mSession.setRepeatingRequest(previewRequest.build(), resultListener, mHandler); in focalLengthTestByCamera() 677 mSession.capture(request, resultListener, mHandler); in focalLengthTestByCamera() 715 mSession.capture(request, stillResultListener, mHandler); in previewPersistenceTestByCamera() 812 focuser = new Camera2Focuser(mCamera, mSession, mPreviewSurface, afListener, in takePictureTestByCamera() 848 mSession.setRepeatingRequest(previewRequest.build(), resultListener, mHandler); in takePictureTestByCamera() 860 mSession.setRepeatingRequest(previewRequest.build(), resultListener, mHandler); in takePictureTestByCamera() 883 mSession.setRepeatingRequest(previewRequest.build(), resultListener, mHandler); in takePictureTestByCamera() 886 mSession.capture(previewRequest.build(), resultListener, mHandler); in takePictureTestByCamera() 894 mSession.capture(previewRequest.build(), resultListener, mHandler); in takePictureTestByCamera() 901 mSession.capture(previewRequest.build(), resultListener, mHandler); in takePictureTestByCamera() [all …]
|
D | ReprocessCaptureTest.java | 860 mSession.captureBurst(reprocessRequests, captureCallback, mHandler); in testReprocessAbort() 863 mSession.capture(request, captureCallback, mHandler); in testReprocessAbort() 871 mSession.abortCaptures(); in testReprocessAbort() 947 mSession.captureBurst(reprocessRequests, captureCallback, mHandler); in testReprocessTimestamps() 1027 mSession.captureBurst(reprocessRequests, captureCallback, mHandler); in testReprocessJpegExif() 1103 mSession.captureBurst(reprocessRequests, captureCallback, mHandler); in testReprocessRequestKeys() 1225 mSession = configureReprocessableCameraSession(mCamera, inputConfig, outSurfaces, in setupReprocessableSession() 1229 mInputSurface = mSession.getInputSurface(); in setupReprocessableSession() 1243 if (mSession != null) { in closeReprossibleSession() 1244 mSession.close(); in closeReprossibleSession() [all …]
|
D | RecordingTest.java | 412 mSession = configureCameraSession(mCamera, outputSurfaces, /*highSpeed*/true, in testAbandonedHighSpeedRequest() 425 ((CameraConstrainedHighSpeedCaptureSession) mSession). in testAbandonedHighSpeedRequest() 445 mSession = configureCameraSession(mCamera, outputSurfaces, /*highSpeed*/true, in testAbandonedHighSpeedRequest() 457 ((CameraConstrainedHighSpeedCaptureSession) mSession). in testAbandonedHighSpeedRequest() 879 mSession = buildConstrainedCameraSession(mCamera, outputSurfaces, mSessionListener, in startConstrainedPreview() 881 slowMoRequests = ((CameraConstrainedHighSpeedCaptureSession) mSession). in startConstrainedPreview() 884 mSession.setRepeatingBurst(slowMoRequests, listener, mHandler); in startConstrainedPreview() 911 mSession = buildConstrainedCameraSession(mCamera, outputSurfaces, mSessionListener, in startSlowMotionRecording() 913 slowMoRequests = ((CameraConstrainedHighSpeedCaptureSession) mSession). in startSlowMotionRecording() 939 mSession = configureCameraSessionWithParameters(mCamera, outputSurfaces, in startSlowMotionRecording() [all …]
|
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | PackageInstallTest.java | 31 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/hostsidetests/devicepolicy/app/PackageInstaller/src/com/android/cts/packageinstaller/ |
D | BasePackageInstallTest.java | 56 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/packageinstaller/adminpackageinstaller/src/android/packageinstaller/admin/cts/ |
D | BasePackageInstallTest.java | 60 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/ |
D | Camera2Focuser.java | 54 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/graphics/jni/ |
D | CameraTestHelpers.cpp | 99 &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/print/printTestUtilLib/src/android/print/test/services/ |
D | PrinterDiscoverySessionCallbacks.java | 27 private StubbablePrinterDiscoverySession mSession; field in PrinterDiscoverySessionCallbacks 30 mSession = session; in setSession() 34 return mSession; in getSession()
|
/cts/tests/camera/src/android/hardware/camera2/cts/testcases/ |
D | Camera2MultiViewTestCase.java | 434 private CameraCaptureSession mSession; field in Camera2MultiViewTestCase.CameraHolder 502 mSession = null; in close() 511 mSession = configureCameraSession(mCamera, outputSurfaces, mSessionListener, mHandler); in startPreview() 523 mSession.setRepeatingRequest(captureBuilder.build(), listener, mHandler); in startPreview() 529 … mSession = configureCameraSessionWithConfig(mCamera, outputConfigs, mSessionListener, mHandler); in createSessionWithConfigs() 562 return mSession.setRepeatingRequest(captureBuilder.build(), listener, mHandler); in startPreviewWithConfigs() 575 return mSession.setRepeatingRequest(captureBuilder.build(), listener, mHandler); in updateRepeatingRequest() 579 mSession.updateOutputConfiguration(config); in updateOutputConfiguration() 590 mSession.capture(request, listener, mHandler); in capture() 599 mSession.finalizeOutputConfigurations(configs); in finalizeOutputConfigs() [all …]
|
D | Camera2SurfaceViewTestCase.java | 101 protected CameraCaptureSession mSession; field in Camera2SurfaceViewTestCase 217 mSession.setRepeatingRequest(request.build(), listener, mHandler); in startPreview() 230 mSession = configureCameraSession(mCamera, outputSurfaces, mSessionListener, mHandler); in configurePreviewOutput() 259 if (mSession != null) { in stopPreview() 261 mSession.close(); in stopPreview() 271 if (mSession != null) { in stopPreviewAndDrain() 273 mSession.close(); in stopPreviewAndDrain() 625 mSession = configureCameraSession(mCamera, outputSurfaces, mSessionListener, mHandler); in prepareStillCaptureAndStartPreview() 635 mSession.setRepeatingRequest(previewRequest.build(), resultListener, mHandler); in prepareStillCaptureAndStartPreview() 673 mSession = null; in closeDevice() [all …]
|
/cts/tests/tests/print/src/android/print/cts/ |
D | PrinterCapabilitiesChangeTest.java | 69 …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/media/libimagereaderjni/ |
D | AImageReaderCts.cpp | 139 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/camera/libctscamera2jni/ |
D | native-camera-jni.cpp | 847 if (mSession) { in resetCamera() 848 ACameraCaptureSession_close(mSession); in resetCamera() 849 mSession = nullptr; in resetCamera() 980 if (mSession == nullptr) { in updateOutput() 982 mSession); in updateOutput() 986 return ACameraCaptureSession_updateSharedOutput(mSession, output); in updateOutput() 1154 if (mSession) { in createCaptureSessionWithLog() 1181 mDevice, mOutputs, sessionParameters, &mSessionCb, &mSession); in createCaptureSessionWithLog() 1182 if (ret != ACAMERA_OK || mSession == nullptr) { in createCaptureSessionWithLog() 1184 mCameraId, ret, mSession); in createCaptureSessionWithLog() [all …]
|