/cts/tests/tests/media/projection/src/android/media/projection/cts/ |
D | MediaProjectionManagerTest.java | 69 private MediaProjection mMediaProjection; field in MediaProjectionManagerTest 85 mMediaProjection = null; in setUp() 90 if (mMediaProjection != null) { in tearDown() 91 mMediaProjection.stop(); in tearDown() 92 mMediaProjection = null; in tearDown() 113 mMediaProjection = activity.waitForMediaProjection(); in testGetMediaProjection() 114 assertThat(mMediaProjection).isNotNull(); in testGetMediaProjection() 123 mMediaProjection = activity.waitForMediaProjection(); in testGetMediaProjectionSecondaryProcessFgs() 124 assertThat(mMediaProjection).isNotNull(); in testGetMediaProjectionSecondaryProcessFgs() 151 mMediaProjection = activity.waitForMediaProjection(); in testGetMediaProjectionWithOtherFgs() [all …]
|
D | MediaProjectionTest.java | 80 private MediaProjection mMediaProjection; field in MediaProjectionTest 101 if (mMediaProjection != null) { in cleanup() 103 mMediaProjection.unregisterCallback(mCallback); in cleanup() 106 mMediaProjection.stop(); in cleanup() 107 mMediaProjection = null; in cleanup() 135 mMediaProjection.registerCallback(mCallback, new Handler(Looper.getMainLooper())); in testOverlayAllowedDuringScreenCapture() 136 mMediaProjection.stop(); in testOverlayAllowedDuringScreenCapture() 169 mMediaProjection.registerCallback(mCallback, new Handler(Looper.getMainLooper())); in testUnregisterCallback() 170 mMediaProjection.unregisterCallback(mCallback); in testUnregisterCallback() 173 mMediaProjection.stop(); in testUnregisterCallback() [all …]
|
D | MediaProjectionMirroringTest.java | 100 private MediaProjection mMediaProjection; field in MediaProjectionMirroringTest 140 mMediaProjection = null; in setUp() 148 if (mMediaProjection != null) { in tearDown() 150 mMediaProjection.unregisterCallback(mMediaProjectionCallback); in tearDown() 153 mMediaProjection.stop(); in tearDown() 154 mMediaProjection = null; in tearDown() 184 mMediaProjection = mMediaProjectionHelper.startMediaProjection(); in testDisplayCapture() 217 mMediaProjection = mMediaProjectionHelper.startMediaProjection(); in testDisplayCapture_rotation() 253 mMediaProjection = mMediaProjectionHelper.startMediaProjection(); in testSingleAppCapture() 289 mMediaProjection.registerCallback(mMediaProjectionCallback, in createVirtualDisplay() [all …]
|
/cts/tests/tests/media/projection/sdk34/src/android/media/projection/ |
D | MediaProjectionSDK34Test.java | 66 private MediaProjection mMediaProjection; field in MediaProjectionSDK34Test 79 if (mMediaProjection != null) { in cleanup() 81 mMediaProjection.unregisterCallback(mCallback); in cleanup() 83 mMediaProjection.stop(); in cleanup() 101 mMediaProjection.registerCallback(mCallback, new Handler(Looper.getMainLooper())); in testCreateVirtualDisplay_withoutCallback_throwsException() 124 + "successfully", mMediaProjection); in testCreateVirtualDisplay_reusedResultData_throwsException() 178 mMediaProjection.registerCallback(mCallback, new Handler(Looper.getMainLooper())); in testCreateVirtualDisplay_reusedMediaProjection_throwsException() 184 () -> mMediaProjection.createVirtualDisplay(TAG + "VirtualDisplay", in testCreateVirtualDisplay_reusedMediaProjection_throwsException() 195 mMediaProjection = mActivity.waitForMediaProjection(); in startMediaProjection() 201 mVirtualDisplay = mMediaProjection.createVirtualDisplay(TAG + "VirtualDisplay", in createVirtualDisplay()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/window/ |
D | ScreenRecordingCallbackTests.java | 115 private MediaProjection mMediaProjection = null; field in ScreenRecordingCallbackTests 124 if (mMediaProjection != null) { in stopMediaProjection() 125 mMediaProjection.stop(); in stopMediaProjection() 180 mMediaProjection = mMediaProjectionHelper.startMediaProjection(); in testFullDisplayMediaProjectionStartsAfterActivity() 184 mMediaProjection.stop(); in testFullDisplayMediaProjectionStartsAfterActivity() 201 mMediaProjection = mMediaProjectionHelper.startMediaProjection(); in testFullDisplayMediaProjectionStartsBeforeActivity() 208 mMediaProjection.stop(); in testFullDisplayMediaProjectionStartsBeforeActivity() 225 mMediaProjection = mMediaProjectionHelper.startMediaProjection(); in testFullDisplayMediaProjectionAppCallback() 238 mMediaProjection.stop(); in testFullDisplayMediaProjectionAppCallback() 273 mMediaProjection = mMediaProjectionHelper.startMediaProjection(); in testPartialScreenSharingRecorded() [all …]
|
/cts/tests/tests/media/projection/sdk33/src/android/media/projection/ |
D | MediaProjectionSDK33Test.java | 110 private MediaProjection mMediaProjection; field in MediaProjectionSDK33Test 125 if (mMediaProjection != null) { in cleanup() 126 mMediaProjection.stop(); in cleanup() 127 mMediaProjection.unregisterCallback(mCallback); in cleanup() 128 mMediaProjection.unregisterCallback(mSecondCallback); in cleanup() 129 mMediaProjection = null; in cleanup() 154 + "successfully", mMediaProjection); in testCreateVirtualDisplay_reusedResultData_reshowsPermissionDialog() 220 mMediaProjection.registerCallback(mCallback, new Handler(Looper.getMainLooper())); in testCreateVirtualDisplay_reusedMediaProjection_reshowPermissionDialog() 231 mMediaProjection.registerCallback(mSecondCallback, new Handler(Looper.getMainLooper())); in testCreateVirtualDisplay_reusedMediaProjection_reshowPermissionDialog() 236 mSecondVirtualDisplay = mMediaProjection.createVirtualDisplay(TAG + "VirtualDisplay", in testCreateVirtualDisplay_reusedMediaProjection_reshowPermissionDialog() [all …]
|
/cts/tests/tests/media/common/src/android/media/cts/ |
D | MediaProjectionActivity.java | 72 private MediaProjection mMediaProjection; field in MediaProjectionActivity 141 mMediaProjection = mProjectionManager.getMediaProjection(mResultCode, mResultData); in createMediaProjection() 161 return mMediaProjection; in waitForMediaProjection()
|
/cts/tests/tests/media/audio/src/android/media/audio/cts/ |
D | AudioPlaybackCaptureTest.java | 90 private MediaProjection mMediaProjection; field in AudioPlaybackCaptureTest 154 mMediaProjection = mActivity.waitForMediaProjection(); in setup() 167 AudioPlaybackCaptureConfiguration apcConfig = mAPCTestConfig.build(mMediaProjection); in createPlaybackCaptureRecord() 408 mMediaProjection.stop(); in testStoppedMediaProjection() 435 mMediaProjection.registerCallback(new MediaProjection.Callback() { in testStopMediaProjectionDuringCapture() 440 mMediaProjection.stop(); in testStopMediaProjectionDuringCapture()
|
D | RemoteSubmixTest.java | 93 private MediaProjection mMediaProjection; field in RemoteSubmixTest 106 mMediaProjection = mActivity.waitForMediaProjection(); in setup() 123 new AudioPlaybackCaptureConfiguration.Builder(mMediaProjection) in createPlaybackCaptureRecord()
|