Home
last modified time | relevance | path

Searched refs:ActivityScenario (Results 1 – 25 of 46) sorted by relevance

12

/cts/tests/storageaccess/src/android/storageaccess/cts/
DActivityScenarioExt.kt20 import androidx.test.core.app.ActivityScenario in <lambda>()
23 fun launchClientActivity(block: (ActivityScenario<ClientActivity>) -> Unit) = in <lambda>()
24 ActivityScenario.launch(ClientActivity::class.java).use(block) in <lambda>()
26 fun ActivityScenario<ClientActivity>.startActivityForFutureResult( in <lambda>() method
/cts/tests/tests/media/bettertogether/src/android/media/bettertogether/cts/
DMediaRouter2TestActivity.java25 import androidx.test.core.app.ActivityScenario;
29 private static ActivityScenario<MediaRouter2TestActivity> sActivityScenario;
31 public static ActivityScenario<MediaRouter2TestActivity> startActivity(Context context) { in startActivity()
34 sActivityScenario = ActivityScenario.launch(intent); in startActivity()
/cts/tests/autofillservice/src/android/autofillservice/cts/dialog/
DDialogTest.java29 import androidx.test.core.app.ActivityScenario;
49 ActivityScenario<LoginActivity> scenario = ActivityScenario.launch(LoginActivity.class); in showAutofillDialog_noResponse_returnsFalse()
67 ActivityScenario<VirtualContainerActivity> scenario = ActivityScenario.launch( in showAutofillDialogForVirtualView_noDialogPresentation_returnsFalse()
/cts/tests/sensitivecontentprotection/src/android/sensitivecontentprotection/cts/
DViewSensitiveContentTest.java41 import androidx.test.core.app.ActivityScenario;
88 try (ActivityScenario<SensitiveContentActivity> activityScenario = in testScreenCaptureIsBlocked()
89 ActivityScenario.launch(SensitiveContentActivity.class)) { in testScreenCaptureIsBlocked()
152 try (ActivityScenario<SensitiveAutofillHintActivity> activityScenario = in verifyScreenCaptureIsBlockedForSensitiveAutofillHint()
153 ActivityScenario.launch(intent)) { in verifyScreenCaptureIsBlockedForSensitiveAutofillHint()
168 private void verifyScreenCapture(ActivityScenario<? extends Activity> activityScenario) { in verifyScreenCapture()
180 try (ActivityScenario<SensitiveContentActivity> ignored = in testToastIsShown()
181 ActivityScenario.launch(SensitiveContentActivity.class)) { in testToastIsShown()
DSensitiveNotificationAppHidingTest.kt39 import androidx.test.core.app.ActivityScenario in <lambda>()
134 private fun verifyScreenCaptureProtected(activityScenario: ActivityScenario<out Activity?>) { in <lambda>()
147 private fun verifyScreenCaptureNotProtected(activityScenario: ActivityScenario<out Activity?>) { in <lambda>()
213 ActivityScenario.launch(SimpleActivity::class.java).use { activityScenario -> in <lambda>()
231 ActivityScenario.launch(SimpleActivity::class.java).use { activityScenario -> in <lambda>()
253 ActivityScenario.launch(SimpleActivity::class.java).use { activityScenario -> in <lambda>()
271 ActivityScenario.launch(SimpleActivity::class.java).use { activityScenario -> in <lambda>()
295 ActivityScenario.launch(SimpleActivity::class.java).use { activityScenario -> in <lambda>()
320 ActivityScenario.launch(SimpleActivity::class.java).use { activityScenario -> in <lambda>()
348 ActivityScenario.launch(SimpleActivity::class.java).use { activityScenario -> in <lambda>()
[all …]
/cts/tests/credentials/src/android/credentials/cts/
DCtsCredentialProviderServiceDeviceTest.java66 import androidx.test.core.app.ActivityScenario;
197 ActivityScenario<TestCredentialActivity> activityScenario = in testGetCredentialManager_shouldSucceed()
198 ActivityScenario.launch(TestCredentialActivity.class); in testGetCredentialManager_shouldSucceed()
234 ActivityScenario<TestCredentialActivity> activityScenario = in testGetPasswordCredentialRequest_serviceSetUp_onErrorInvokedForEmptyResponse()
235 ActivityScenario.launch(TestCredentialActivity.class); in testGetPasswordCredentialRequest_serviceSetUp_onErrorInvokedForEmptyResponse()
280 ActivityScenario<TestCredentialActivity> activityScenario = in testGetPasswordCredentialRequest_invalidAllowedProviders_onErrorForEmptyResponse()
281 ActivityScenario.launch(TestCredentialActivity.class); in testGetPasswordCredentialRequest_invalidAllowedProviders_onErrorForEmptyResponse()
324 ActivityScenario<TestCredentialActivity> activityScenario = in testGetPasswordCredentialRequest_validAllowedProviders_onErrorForEmptyResponse()
325 ActivityScenario.launch(TestCredentialActivity.class); in testGetPasswordCredentialRequest_validAllowedProviders_onErrorForEmptyResponse()
355 ActivityScenario<TestCredentialActivity> activityScenario = in testGetCredentialRequest_nullRequest_throwsNPE()
[all …]
DCtsCredentialDescriptionRegistryApiTest.java37 import androidx.test.core.app.ActivityScenario;
99 ActivityScenario<TestCredentialActivity> activityScenario = in testRegisterCredentialDescriptionRequest_nullRequest_throwsNPE()
100 ActivityScenario.launch(TestCredentialActivity.class); in testRegisterCredentialDescriptionRequest_nullRequest_throwsNPE()
110 ActivityScenario<TestCredentialActivity> activityScenario = in testUnregisterCredentialDescriptionRequest_nullRequest_throwsNPE()
111 ActivityScenario.launch(TestCredentialActivity.class); in testUnregisterCredentialDescriptionRequest_nullRequest_throwsNPE()
DCtsSettingsIntentTest.java48 import androidx.test.core.app.ActivityScenario;
132 ActivityScenario<TestCredentialActivity> activityScenario = in testCredentialManagerSettingsIntent()
133 ActivityScenario.launch(TestCredentialActivity.class); in testCredentialManagerSettingsIntent()
172 ActivityScenario<TestCredentialActivity> activityScenario = in testCredentialManagerAutofillSettingsIntent()
173 ActivityScenario.launch(TestCredentialActivity.class); in testCredentialManagerAutofillSettingsIntent()
/cts/tests/tests/car/src/android/car/cts/
DCarInputTest.java50 import androidx.test.core.app.ActivityScenario;
131 try (ActivityScenario<TestActivity> driverActivityScenario = ActivityScenario.launch( in testHomeKeyForAnyPassengerMainDisplay_bringsHomeForThePassengerDisplayOnly()
134 try (ActivityScenario<TestActivity> passengerActivityScenario = in testHomeKeyForAnyPassengerMainDisplay_bringsHomeForThePassengerDisplayOnly()
135 ActivityScenario.launch( in testHomeKeyForAnyPassengerMainDisplay_bringsHomeForThePassengerDisplayOnly()
159 ActivityScenario<TestActivity> driverActivityScenario, in doTestHomeKeyForAnyPassengerMainDisplay()
160 ActivityScenario<TestActivity> passengerActivityScenario) { in doTestHomeKeyForAnyPassengerMainDisplay()
188 try (ActivityScenario<TestActivity> passengerActivityScenario = in testBackKeyForAnyPassengerMainDisplay()
189 ActivityScenario.launch( in testBackKeyForAnyPassengerMainDisplay()
221 try (ActivityScenario<TestActivity> passengerActivityScenario = in testAKeyForAnyPassengerMainDisplay()
222 ActivityScenario.launch( in testAKeyForAnyPassengerMainDisplay()
[all …]
/cts/tests/tests/mediacujtest/common/src/android/media/cujcommon/cts/
DCujTestBase.java30 import androidx.test.core.app.ActivityScenario;
53 ActivityScenario<MainActivity> scenario = ActivityScenario.launch(MainActivity.class); in CujTestBase()
62 ActivityScenario<ScrollTestActivity> scenario = ActivityScenario.launch( in CujTestBase()
/cts/tests/tests/media/player/src/android/media/player/cts/
DMediaPlayerSurfaceTest.java26 import androidx.test.core.app.ActivityScenario;
45 private ActivityScenario<MediaPlayerSurfaceStubActivity> mActivityScenario;
50 mActivityScenario = ActivityScenario.launch(MediaPlayerSurfaceStubActivity.class); in setUp()
/cts/tests/tests/media/common/src/android/media/cts/
DMediaTestBase.java26 import androidx.test.core.app.ActivityScenario;
46 protected ActivityScenario<MediaStubActivity> mActivityScenario;
51 mActivityScenario = ActivityScenario.launch(MediaStubActivity.class); in setUp()
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/
DPartialNotImportantActivityTest.java30 import androidx.test.core.app.ActivityScenario;
46 ActivityScenario<PartialNotImportantActivity> mScenario;
86 mScenario = ActivityScenario.launch(PartialNotImportantActivity.class); in testAddAndRemoveNoImportantChild()
128 mScenario = ActivityScenario.launch(PartialNotImportantActivity.class); in testAddAndRemoveImportantChild()
170 mScenario = ActivityScenario.launch(PartialNotImportantActivity.class); in testAddImportantChildAfterSessionStarted()
/cts/tests/framework/base/windowmanager/src/android/server/wm/backnavigation/
DBackNavigationTests.java33 import androidx.test.core.app.ActivityScenario;
52 private ActivityScenario<BackNavigationActivity> mScenario;
113 ActivityScenario<BackNavigationActivity> newScenario = mScenario.recreate(); in registerCallback_relaunch()
147 private CountDownLatch registerBackCallback(ActivityScenario<?> scenario, in registerBackCallback()
/cts/tests/tests/widget/src/android/widget/cts/
DZoomControlsTest.java29 import androidx.test.core.app.ActivityScenario;
129 try (ActivityScenario<ZoomButtonCtsActivity> scenario = in testHasFocus()
130 ActivityScenario.launch(ZoomButtonCtsActivity.class)) { in testHasFocus()
/cts/tests/tests/tv/src/android/media/tv/ad/cts/
DTvAdManagerTest.java35 import androidx.test.core.app.ActivityScenario;
67 private ActivityScenario<TvAdStubActivity> mActivityScenario;
79 mActivityScenario = ActivityScenario.launch(intent); in setUp()
DTvAdViewTest.java35 import androidx.test.core.app.ActivityScenario;
66 private ActivityScenario<TvAdStubActivity> mActivityScenario;
80 mActivityScenario = ActivityScenario.launch(intent); in setUp()
/cts/tests/tests/voiceRecognition/src/android/voicerecognition/cts/
DSpeechRecognizerAvailabilityTest.java28 import androidx.test.core.app.ActivityScenario;
45 private ActivityScenario<SpeechRecognitionActivity> mScenario;
/cts/tests/tests/packageinstaller/contentprovider/src/android/packageinstaller/contentprovider/cts/
DContentProviderAppVisibilityTestsBase.kt28 import androidx.test.core.app.ActivityScenario
39 private var mScenario: ActivityScenario<TestActivity>? = null
92 mScenario = ActivityScenario.launchActivityForResult(intent) in runTest()
/cts/tests/surfacecontrol/src/android/view/surfacecontrol/cts/
DAttachedSurfaceControlTest.java57 import androidx.test.core.app.ActivityScenario;
345 try (ActivityScenario<TestActivity> scenario = in testCropWithChildBoundingInsets()
346 ActivityScenario.launch(TestActivity.class)) { in testCropWithChildBoundingInsets()
421 try (ActivityScenario<TestActivity> scenario = in testGetHostToken()
422 ActivityScenario.launch(TestActivity.class)) { in testGetHostToken()
452 try (ActivityScenario<TestActivity> scenario = in testSyncTransactionViewNotVisible()
453 ActivityScenario.launch(TestActivity.class)) { in testSyncTransactionViewNotVisible()
492 try (ActivityScenario<TestActivity> scenario = in testSyncTransactionNothingToDraw()
493 ActivityScenario.launch(TestActivity.class)) { in testSyncTransactionNothingToDraw()
/cts/tests/tests/attributionsource/src/android/attributionsource/cts/
DAttributionSourceTest.kt30 import androidx.test.core.app.ActivityScenario
137 val scenario: ActivityScenario<AttributionSourceActivity> = in run()
138 ActivityScenario.launchActivityForResult(mActivityIntent) in run()
/cts/tests/tests/media/projection/src/android/media/projection/cts/
DMediaProjectionMirroringTest.java61 import androidx.test.core.app.ActivityScenario;
122 public ActivityScenario<TestRotationActivity> mTestRotationActivityActivityScenario;
172 ActivityScenario<Activity> activityScenario = in testDisplayCapture()
173 ActivityScenario.launch(new Intent(mContext, Activity.class)); in testDisplayCapture()
204 ActivityScenario.launch(new Intent(mContext, TestRotationActivity.class)); in testDisplayCapture_rotation()
240 final ActivityScenario<Activity> activityScenario = ActivityScenario.launch( in testSingleAppCapture()
/cts/tests/tests/tv/src/android/media/tv/interactive/cts/
DTvInteractiveAppViewTest.java32 import androidx.test.core.app.ActivityScenario;
55 private ActivityScenario<TvInteractiveAppViewStubActivity> mActivityScenario;
115 mActivityScenario = ActivityScenario.launch(intent); in setUp()
/cts/tests/tests/packageinstaller/tapjacking/src/android/packageinstaller/tapjacking/cts/
DTapjackingTest.java31 import androidx.test.core.app.ActivityScenario;
65 ActivityScenario<TestActivity> mScenario;
84 mScenario = ActivityScenario.launch(intent); in launchPackageInstaller()
/cts/tests/framework/base/windowmanager/src/android/server/wm/other/
DAnrTests.java50 import androidx.test.core.app.ActivityScenario;
145 try (ActivityScenario<HostActivity> scenario = in embeddedWindowTriggersAnr()
146 ActivityScenario.launch(HostActivity.class)) { in embeddedWindowTriggersAnr()

12