Home
last modified time | relevance | path

Searched refs:mActivityScenario (Results 1 – 9 of 9) sorted by relevance

/packages/apps/Car/Launcher/app/tests/src/com/android/car/carlauncher/
DCarLauncherTest.java64 private ActivityScenario<CarLauncher> mActivityScenario; field in CarLauncherTest
89 if (mActivityScenario != null) { in tearDown()
90 mActivityScenario.close(); in tearDown()
96 mActivityScenario = ActivityScenario.launch(CarLauncher.class); in onResume_mapsCard_isVisible()
97 mActivityScenario.moveToState(Lifecycle.State.RESUMED); in onResume_mapsCard_isVisible()
104 mActivityScenario = ActivityScenario.launch(CarLauncher.class); in onResume_assistiveCard_isVisible()
105 mActivityScenario.moveToState(Lifecycle.State.RESUMED); in onResume_assistiveCard_isVisible()
112 mActivityScenario = ActivityScenario.launch(CarLauncher.class); in onResume_audioCard_isVisible()
113 mActivityScenario.moveToState(Lifecycle.State.RESUMED); in onResume_audioCard_isVisible()
131 mActivityScenario = ActivityScenario.launch(CarLauncher.class); in onCreate_tosMapActivity_tosUnaccepted_canvasOptimizedMapsDisabledByTos()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/pbap/
DBluetoothPbapActivityTest.java65 ActivityScenario<BluetoothPbapActivity> mActivityScenario; field in BluetoothPbapActivityTest
79 mActivityScenario = ActivityScenario.launch(mIntent); in setUp()
84 if (mActivityScenario != null) { in tearDown()
87 mActivityScenario.close(); in tearDown()
95 mActivityScenario.close(); in activityIsDestroyed_whenLaunchedWithoutIntentAction()
98 mActivityScenario = ActivityScenario.launch(mIntent); in activityIsDestroyed_whenLaunchedWithoutIntentAction()
107 mActivityScenario.onActivity( in onPreferenceChange_returnsTrue()
120 mActivityScenario.onActivity( in onPositive_finishesActivity()
133 mActivityScenario.onActivity( in onNegative_finishesActivity()
146 mActivityScenario.onActivity( in onReceiveTimeoutIntent_sendsDismissDialogMessage()
[all …]
/packages/modules/Telephony/services/QualifiedNetworksService/tests/src/com/android/telephony/qns/wfc/
DWfcActivationActivityTest.java70 private ActivityScenario<WfcActivationActivity> mActivityScenario; field in WfcActivationActivityTest
99 if (mActivityScenario != null) { in tearDown()
100 mActivityScenario.close(); in tearDown()
116 mActivityScenario = in testMessageCheckWifi_pass()
138 mActivityScenario = in testMessageCheckWifiDone_wifiConnectionSuccess_showProgressDialog()
146 mActivityScenario.onActivity( in testMessageCheckWifiDone_wifiConnectionSuccess_showProgressDialog()
168 mActivityScenario = in testMessageCheckWifiDone_wifiConnectionError_showWiFiUnavailableDialog()
176 mActivityScenario.onActivity( in testMessageCheckWifiDone_wifiConnectionError_showWiFiUnavailableDialog()
205 mActivityScenario = in testMessageTryEpdgConnectionDone_imsMmTelManagerNotNull_epdgConnectionSuccess()
214 mActivityScenario.onActivity( in testMessageTryEpdgConnectionDone_imsMmTelManagerNotNull_epdgConnectionSuccess()
[all …]
/packages/modules/AdServices/sdksandbox/tests/testutils/src/android/app/sdksandbox/testutils/
DSdkSandboxUiTestRule.java159 ActivityScenario mActivityScenario; field in SdkSandboxUiTestRule.LoadSdkInSandboxRule
170 mActivityScenario = ActivityScenario.launch(mActivityClass); in before()
171 assertThat(mActivityScenario.getState()).isEqualTo(Lifecycle.State.RESUMED); in before()
172 mActivityScenario.onActivity( in before()
183 mActivityScenario.onActivity( in after()
187 if (mActivityScenario != null) { in after()
188 mActivityScenario.close(); in after()
193 return mActivityScenario; in getActivityScenario()
197 mActivityScenario = ActivityScenario.launch(activityClass); in switchActivity()
198 assertThat(mActivityScenario.getState()).isEqualTo(Lifecycle.State.RESUMED); in switchActivity()
[all …]
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/notifications/
DNotificationAccessConfirmationActivityTest.java67 private ActivityScenario<TestActivity> mActivityScenario; field in NotificationAccessConfirmationActivityTest
97 mActivityScenario = ActivityScenario.launch(intent); in componentNameEmpty_finishes()
98 assertThat(mActivityScenario.getState()).isEqualTo(Lifecycle.State.DESTROYED); in componentNameEmpty_finishes()
104 assertThat(mActivityScenario.getState()).isAtLeast(Lifecycle.State.CREATED); in componentNameNonEmpty_showsConfirmationDialog()
110 assertThat(mActivityScenario.getState()).isAtLeast(Lifecycle.State.CREATED); in onAllow_permissionMissing_finishes()
127 assertThat(mActivityScenario.getState()).isAtLeast(Lifecycle.State.CREATED); in onAllow_permissionAvailable_callsNotificationManager()
144 assertThat(mActivityScenario.getState()).isAtLeast(Lifecycle.State.CREATED); in onDeny_finishes()
166 mActivityScenario = ActivityScenario.launch(intent); in launchActivityWithValidIntent()
167 mActivityScenario.onActivity( in launchActivityWithValidIntent()
/packages/modules/CaptivePortalLogin/tests/src/com/android/captiveportallogin/
DCaptivePortalLoginActivityTest.java140 private ActivityScenario<InstrumentedCaptivePortalLoginActivity> mActivityScenario; field in CaptivePortalLoginActivityTest
326 if (mActivityScenario != null) { in tearDown()
329 mActivityScenario.close(); in tearDown()
343 mActivityScenario = ActivityScenario.launch( in initActivity()
350 mActivityScenario.onActivity(activity -> { in initActivity()
388 mActivityScenario.onActivity(a -> portalRef.set((MockCaptivePortal) a.mCaptivePortal)); in getCaptivePortal()
429 mActivityScenario.onActivity(activity -> assertFalse(activity.hasVpnNetwork())); in testHasVpnNetwork()
433 mActivityScenario.onActivity(activity -> assertTrue(activity.hasVpnNetwork())); in testHasVpnNetwork()
440 mActivityScenario.onActivity(activity -> assertFalse(activity.isAlwaysOnVpnEnabled())); in testIsAlwaysOnVpnEnabled()
443 mActivityScenario.onActivity(activity -> assertTrue(activity.isAlwaysOnVpnEnabled())); in testIsAlwaysOnVpnEnabled()
[all …]
/packages/apps/Settings/tests/unit/src/com/android/settings/wifi/
DRequestToggleWiFiActivityTest.java59 private ActivityScenario<RequestToggleWiFiActivity> mActivityScenario; field in RequestToggleWiFiActivityTest
67 mActivityScenario = ActivityScenario.launch(new Intent(WifiManager.ACTION_REQUEST_ENABLE)); in setUp()
68 mActivityScenario.onActivity(activity -> mActivity = activity); in setUp()
75 if (mActivityScenario != null) { in cleanUp()
76 mActivityScenario.close(); in cleanUp()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/map/
DBluetoothMapSettingsTest.java59 ActivityScenario<BluetoothMapSettings> mActivityScenario; field in BluetoothMapSettingsTest
67 mActivityScenario = ActivityScenario.launch(mIntent); in setUp()
73 if (mActivityScenario != null) { in tearDown()
74 mActivityScenario.close(); in tearDown()
/packages/apps/Settings/tests/robotests/src/com/android/settings/security/
DMemtagPreferenceControllerTest.java59 public ActivityScenarioRule<TestActivity> mActivityScenario = field in MemtagPreferenceControllerTest
75 mActivityScenario.getScenario().onActivity(a -> { in setUp()