/cts/tests/tests/tv/src/android/media/tv/interactive/cts/ |
D | TvInteractiveAppServiceTest.java | 102 private StubTvInteractiveAppService.StubSessionImpl mSession; field in TvInteractiveAppServiceTest 257 assertNotNull(mSession); in linkTvView() 258 mSession.resetValues(); in linkTvView() 328 mSession = StubTvInteractiveAppService.sSession; in setUp() 356 assertNotNull(mSession); in testRequestCurrentChannelUri() 358 mSession.requestCurrentChannelUri(); in testRequestCurrentChannelUri() 366 assertNotNull(mSession); in testRequestSigning() 368 mSession.requestSigning("id", "algo", "alias", new byte[1]); in testRequestSigning() 377 assertNotNull(mSession); in testSendSigningResult() 378 mSession.resetValues(); in testSendSigningResult() [all …]
|
/cts/tests/tests/media/misc/src/android/media/misc/cts/ |
D | MediaSessionTest.java | 87 private MediaSession mSession; field in MediaSessionTest 94 mSession = new MediaSession(getContext(), TEST_SESSION_TAG); in setUp() 102 if (mSession != null) { in tearDown() 103 mSession.release(); in tearDown() 104 mSession = null; in tearDown() 114 assertNotNull(mSession.getSessionToken()); in testCreateSession() 115 assertFalse("New session should not be active", mSession.isActive()); in testCreateSession() 118 MediaController controller = mSession.getController(); in testCreateSession() 127 MediaSession.Token sessionToken = mSession.getSessionToken(); in testSessionTokenEquals() 132 assertFalse(sessionToken.equals(mSession)); in testSessionTokenEquals() [all …]
|
D | MediaActivityTest.java | 88 private MediaSession mSession; field in MediaActivityTest 116 mSession = new MediaSession(mContext, TAG); in setUp() 121 mSession.setPlaybackToLocal(new AudioAttributes.Builder() in setUp() 126 intent.putExtra(MediaSessionTestActivity.KEY_SESSION_TOKEN, mSession.getSessionToken()); in setUp() 144 if (mSession != null) { in cleanUp() 145 mSession.release(); in cleanUp() 146 mSession = null; in cleanUp() 179 final int testStream = mSession.getController().getPlaybackInfo().getAudioAttributes() in testVolumeKey_whileSessionAlive() 208 mSession.release(); in testVolumeKey_afterSessionReleased() 235 mSession.setCallback(new MediaSession.Callback() { in testMediaKey_whileSessionAlive() [all …]
|
D | MediaControllerTest.java | 56 private MediaSession mSession; field in MediaControllerTest 67 mSession = new MediaSession(getContext(), SESSION_TAG, mSessionInfo); in setUp() 68 mSession.setCallback(mCallback, mHandler); in setUp() 69 mController = mSession.getController(); in setUp() 77 if (mSession != null) { in tearDown() 78 mSession.release(); in tearDown() 79 mSession = null; in tearDown() 111 mSession.setPlaybackState(state); in testGetPlaybackState() 131 mSession.setRatingType(Rating.RATING_5_STARS); in testGetRatingType() 137 assertEquals(mSession.getSessionToken(), mController.getSessionToken()); in testGetSessionToken() [all …]
|
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 …]
|
/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/tests/tests/os/jni/ |
D | android_os_cts_PerformanceHintManagerTest.cpp | 32 explicit SessionWrapper(APerformanceHintSession* session) : mSession(session) {} in SessionWrapper() 33 SessionWrapper(SessionWrapper&& other) : mSession(other.mSession) { in SessionWrapper() 34 other.mSession = nullptr; in SessionWrapper() 37 if (mSession) { in ~SessionWrapper() 38 APerformanceHint_closeSession(mSession); in ~SessionWrapper() 45 APerformanceHintSession* session() const { return mSession; } in session() 48 APerformanceHintSession* mSession; member in SessionWrapper
|
/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | SurfaceViewPreviewTest.java | 243 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 …]
|
D | CameraDeviceTest.java | 94 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 …]
|
D | LogicalCameraDeviceTest.java | 295 mSession = configureCameraSessionWithConfig(mCamera, outputConfigs, in testBasicLogicalPhysicalStreamCombination() 309 mSession.capture(requestBuilder.build(), new SimpleCaptureCallback(), mHandler); in testBasicLogicalPhysicalStreamCombination() 324 mSession.capture(requestBuilder.build(), new SimpleCaptureCallback(), mHandler); in testBasicLogicalPhysicalStreamCombination() 340 mSession.capture(requestBuilder.build(), new SimpleCaptureCallback(), mHandler); in testBasicLogicalPhysicalStreamCombination() 347 if (mSession != null) { in testBasicLogicalPhysicalStreamCombination() 348 mSession.close(); in testBasicLogicalPhysicalStreamCombination() 436 mSession = configureCameraSessionWithConfig(mCamera, outputConfigs, in testBasicPhysicalRequests() 445 mSession.capture(requestBuilder.build(), new SimpleCaptureCallback(), mHandler); in testBasicPhysicalRequests() 469 mSession = configureCameraSessionWithConfig(mCamera, outputConfigs, in testBasicPhysicalRequests() 479 mSession.setRepeatingRequest(requestBuilder.build(), simpleResultListener, in testBasicPhysicalRequests() [all …]
|
D | OfflineSessionTest.java | 155 mSession.switchToOffline(offlineSurfaces, new HandlerExecutor(mHandler), in testInvalidOutput() 162 if (mSession.supportsOfflineProcessing(mPreviewSurface)) { in testInvalidOutput() 165 mSession.switchToOffline(offlineSurfaces, new HandlerExecutor(mHandler), in testInvalidOutput() 593 mSession = configureCameraSession(mCamera, outputSurfaces, mSessionListener, mHandler); in camera2OfflineSessionTest() 595 if (!mSession.supportsOfflineProcessing(mReaderSurface)) { in camera2OfflineSessionTest() 619 repeatingSeqId = mSession.setRepeatingRequest(previewRequest.build(), resultListener, in camera2OfflineSessionTest() 624 int offlineSeqId = mSession.captureBurst(offlineRequestList, offlineResultListener, in camera2OfflineSessionTest() 630 repeatingSeqId = mSession.setRepeatingRequest(previewRequest.build(), resultListener, in camera2OfflineSessionTest() 634 CameraOfflineSession offlineSession = mSession.switchToOffline(offlineSurfaces, in camera2OfflineSessionTest() 639 verify(sessionCb, times(1)).onClosed(mSession); in camera2OfflineSessionTest() [all …]
|
/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/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/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/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/media/audio/src/android/media/audio/cts/ |
D | BassBoostTest.java | 221 getBassBoost(mSession); in test3_0ControlStatusListener() 247 getBassBoost(mSession); in test3_1EnableStatusListener() 272 getBassBoost(mSession); in test3_2ParameterChangedListener() 294 if (mBassBoost == null || session != mSession) { in getBassBoost() 295 if (session != mSession && mBassBoost != null) { in getBassBoost() 301 mSession = session; in getBassBoost() 363 mSession = getSessionId(); in createListenerLooper() 364 mBassBoost2 = new BassBoost(0, mSession); in createListenerLooper()
|
D | EqualizerTest.java | 247 getEqualizer(mSession); in test3_0ControlStatusListener() 270 getEqualizer(mSession); in test3_1EnableStatusListener() 292 getEqualizer(mSession); in test3_2ParameterChangedListener() 315 if (mEqualizer == null || session != mSession) { in getEqualizer() 316 if (session != mSession && mEqualizer != null) { in getEqualizer() 322 mSession = session; in getEqualizer() 383 mSession = getSessionId(); in createListenerLooper() 384 mEqualizer2 = new Equalizer(0, mSession); in createListenerLooper()
|
D | VirtualizerTest.java | 228 getVirtualizer(mSession); in test3_0ControlStatusListener() 255 getVirtualizer(mSession); in test3_1EnableStatusListener() 281 getVirtualizer(mSession); in test3_2ParameterChangedListener() 554 if (mVirtualizer == null || session != mSession) { in getVirtualizer() 555 if (session != mSession && mVirtualizer != null) { in getVirtualizer() 561 mSession = session; in getVirtualizer() 623 mSession = getSessionId(); in createListenerLooper() 624 mVirtualizer2 = new Virtualizer(0, mSession); in createListenerLooper()
|
/cts/hostsidetests/packagemanager/installedloadingprogess/hostside/src/com/android/tests/loadingprogress/host/ |
D | IncrementalLoadingProgressTest.java | 65 private IncrementalInstallSession mSession; field in IncrementalLoadingProgressTest 90 mSession = new IncrementalInstallSession.Builder() in setUp() 98 mSession.start(Executors.newCachedThreadPool(), in setUp() 100 mSession.waitForInstallCompleted(30, TimeUnit.SECONDS); in setUp() 106 if (mSession != null) { in tearDown() 107 mSession.close(); in tearDown()
|
/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/camera/src/android/hardware/camera2/cts/testcases/ |
D | Camera2MultiViewTestCase.java | 416 private CameraCaptureSession mSession; field in Camera2MultiViewTestCase.CameraHolder 484 mSession = null; in close() 493 mSession = configureCameraSession(mCamera, outputSurfaces, mSessionListener, mHandler); in startPreview() 505 mSession.setRepeatingRequest(captureBuilder.build(), listener, mHandler); in startPreview() 511 … mSession = configureCameraSessionWithConfig(mCamera, outputConfigs, mSessionListener, mHandler); in createSessionWithConfigs() 544 return mSession.setRepeatingRequest(captureBuilder.build(), listener, mHandler); in startPreviewWithConfigs() 557 return mSession.setRepeatingRequest(captureBuilder.build(), listener, mHandler); in updateRepeatingRequest() 561 mSession.updateOutputConfiguration(config); in updateOutputConfiguration() 572 mSession.capture(request, listener, mHandler); in capture() 581 mSession.finalizeOutputConfigurations(configs); in finalizeOutputConfigs() [all …]
|
D | Camera2SurfaceViewTestCase.java | 108 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/content/src/android/content/pm/cts/ |
D | PackageManagerShellCommandIncrementalTest.java | 133 private IncrementalInstallSession mSession = null; field in PackageManagerShellCommandIncrementalTest 231 mSession = in testSpaceAllocatedForPackage() 257 mSession.start(Executors.newSingleThreadExecutor(), in testSpaceAllocatedForPackage() 259 mSession.waitForInstallCompleted(30, TimeUnit.SECONDS); in testSpaceAllocatedForPackage() 330 mSession = in testInstallWithStreaming() 338 mSession.start(Executors.newSingleThreadExecutor(), in testInstallWithStreaming() 340 mSession.waitForInstallCompleted(30, TimeUnit.SECONDS); in testInstallWithStreaming() 390 mSession = in installWithBlockFilter() 399 mSession.start(Executors.newSingleThreadExecutor(), in installWithBlockFilter() 401 mSession.waitForAnyCompletion(3, TimeUnit.SECONDS); in installWithBlockFilter() [all …]
|
/cts/hostsidetests/packagemanager/stats/src/com/android/cts/packagemanager/stats/host/ |
D | IncrementalAppErrorStatsTests.java | 62 private IncrementalInstallSession mSession; field in IncrementalAppErrorStatsTests 99 mSession = new IncrementalInstallSession.Builder() in setUp() 108 mSession.start(Executors.newCachedThreadPool(), in setUp() 110 mSession.waitForInstallCompleted(INSTALL_TIMEOUT_SECONDS, TimeUnit.SECONDS); in setUp() 123 if (mSession != null) { in tearDown() 124 mSession.close(); in tearDown()
|