Home
last modified time | relevance | path

Searched refs:activityScenario (Results 1 – 6 of 6) sorted by relevance

/cts/tests/sensitivecontentprotection/src/android/sensitivecontentprotection/cts/
DSensitiveNotificationAppHidingTest.kt134 private fun verifyScreenCaptureProtected(activityScenario: ActivityScenario<out Activity?>) { in <lambda>()
135 activityScenario.onActivity { activity: Activity? -> in <lambda>()
147 private fun verifyScreenCaptureNotProtected(activityScenario: ActivityScenario<out Activity?>) { in <lambda>()
148 activityScenario.onActivity { activity: Activity? -> in <lambda>()
213 ActivityScenario.launch(SimpleActivity::class.java).use { activityScenario -> in <lambda>() method
214 verifyScreenCaptureProtected(activityScenario) in <lambda>()
231 ActivityScenario.launch(SimpleActivity::class.java).use { activityScenario -> in <lambda>() method
232 verifyScreenCaptureProtected(activityScenario) in <lambda>()
236 activityScenario.moveToState(State.CREATED) in <lambda>()
237 activityScenario.moveToState(State.RESUMED) in <lambda>()
[all …]
DViewSensitiveContentTest.java88 try (ActivityScenario<SensitiveContentActivity> activityScenario = in testScreenCaptureIsBlocked() argument
90 verifyScreenCapture(activityScenario); in testScreenCaptureIsBlocked()
152 try (ActivityScenario<SensitiveAutofillHintActivity> activityScenario = in verifyScreenCaptureIsBlockedForSensitiveAutofillHint() argument
154 verifyScreenCapture(activityScenario); in verifyScreenCaptureIsBlockedForSensitiveAutofillHint()
168 private void verifyScreenCapture(ActivityScenario<? extends Activity> activityScenario) { in verifyScreenCapture() argument
169 activityScenario.onActivity(activity -> { in verifyScreenCapture()
/cts/tests/credentials/src/android/credentials/cts/
DCtsCredentialProviderServiceDeviceTest.java197 ActivityScenario<TestCredentialActivity> activityScenario = in testGetCredentialManager_shouldSucceed() local
200 activityScenario.onActivity( in testGetCredentialManager_shouldSucceed()
234 ActivityScenario<TestCredentialActivity> activityScenario = in testGetPasswordCredentialRequest_serviceSetUp_onErrorInvokedForEmptyResponse() local
236 activityScenario.onActivity( in testGetPasswordCredentialRequest_serviceSetUp_onErrorInvokedForEmptyResponse()
280 ActivityScenario<TestCredentialActivity> activityScenario = in testGetPasswordCredentialRequest_invalidAllowedProviders_onErrorForEmptyResponse() local
282 activityScenario.onActivity( in testGetPasswordCredentialRequest_invalidAllowedProviders_onErrorForEmptyResponse()
324 ActivityScenario<TestCredentialActivity> activityScenario = in testGetPasswordCredentialRequest_validAllowedProviders_onErrorForEmptyResponse() local
326 activityScenario.onActivity( in testGetPasswordCredentialRequest_validAllowedProviders_onErrorForEmptyResponse()
355 ActivityScenario<TestCredentialActivity> activityScenario = in testGetCredentialRequest_nullRequest_throwsNPE() local
358 activityScenario.onActivity( in testGetCredentialRequest_nullRequest_throwsNPE()
[all …]
DCtsSettingsIntentTest.java132 ActivityScenario<TestCredentialActivity> activityScenario = in testCredentialManagerSettingsIntent() local
135 activityScenario.moveToState(Lifecycle.State.CREATED); in testCredentialManagerSettingsIntent()
137 activityScenario.onActivity( in testCredentialManagerSettingsIntent()
172 ActivityScenario<TestCredentialActivity> activityScenario = in testCredentialManagerAutofillSettingsIntent() local
175 activityScenario.moveToState(Lifecycle.State.CREATED); in testCredentialManagerAutofillSettingsIntent()
177 activityScenario.onActivity( in testCredentialManagerAutofillSettingsIntent()
DCtsCredentialDescriptionRegistryApiTest.java99 ActivityScenario<TestCredentialActivity> activityScenario = in testRegisterCredentialDescriptionRequest_nullRequest_throwsNPE() local
101 activityScenario.onActivity(activity -> { in testRegisterCredentialDescriptionRequest_nullRequest_throwsNPE()
110 ActivityScenario<TestCredentialActivity> activityScenario = in testUnregisterCredentialDescriptionRequest_nullRequest_throwsNPE() local
112 activityScenario.onActivity(activity -> { in testUnregisterCredentialDescriptionRequest_nullRequest_throwsNPE()
/cts/tests/tests/media/projection/src/android/media/projection/cts/
DMediaProjectionMirroringTest.java172 ActivityScenario<Activity> activityScenario = in testDisplayCapture() local
174 activityScenario.onActivity(activity -> mActivity = activity); in testDisplayCapture()
195 activityScenario.close(); in testDisplayCapture()
240 final ActivityScenario<Activity> activityScenario = ActivityScenario.launch( in testSingleAppCapture() local
244 activityScenario.onActivity(activity -> mActivity = activity); in testSingleAppCapture()
265 activityScenario.close(); in testSingleAppCapture()