Home
last modified time | relevance | path

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

/cts/tests/tests/view/src/android/view/cts/
DAttachedSurfaceControlTest.java95 try (ActivityScenario<HandleConfigurationActivity> scenario = in testOnBufferTransformHintChangedListener() argument
97 scenario.moveToState(Lifecycle.State.RESUMED); in testOnBufferTransformHintChangedListener()
98 scenario.onActivity(activity -> { in testOnBufferTransformHintChangedListener()
112 scenario.onActivity(activity -> Assert.assertEquals(transformHintResult[0], in testOnBufferTransformHintChangedListener()
115 scenario.onActivity(activity -> { in testOnBufferTransformHintChangedListener()
129 scenario.onActivity(activity -> Assert.assertEquals(transformHintResult[1], in testOnBufferTransformHintChangedListener()
159 try (ActivityScenario<HandleConfigurationActivity> scenario = in testOnBufferTransformHintChangesFromLandToSea() argument
161 scenario.moveToState(Lifecycle.State.RESUMED); in testOnBufferTransformHintChangesFromLandToSea()
162 scenario.onActivity(activity -> { in testOnBufferTransformHintChangesFromLandToSea()
180 scenario.onActivity(activity -> Assert.assertEquals(transformHintResult[0], in testOnBufferTransformHintChangesFromLandToSea()
[all …]
/cts/tests/tests/security/src/android/security/cts/
DFlagSlipperyTest.kt120 private lateinit var scenario: ActivityScenario<SlipperyEnterBottomActivity> variable in FlagSlipperyTest
137 scenario = rule.getScenario() in setup()
149 scenario.onActivity { in tearDown()
160 scenario.onActivity { in addWindow()
177 scenario.onActivity { in addWindow()
225 scenario.onActivity { in addEmbeddedHostWindow()
251 scenario.onActivity { in addEmbeddedView()
316 scenario.onActivity { in assertBottomWindowDoesNotReceiveSlipperyTouch()
331 scenario.onActivity { activity -> run { in waitForWindowFocusOnBottomActivity()
/cts/tests/tests/permission/src/android/permission/cts/
DNearbyDevicesRenouncePermissionTest.java195 private Result performScan(Scenario scenario) { in performScan() argument
197 Context context = createContext(scenario, getApplicationContext()); in performScan()
233 private Context createContext(Scenario scenario, Context context) throws Exception { in createContext() argument
234 if (scenario == Scenario.DEFAULT) { in createContext()
241 switch (scenario) { in createContext()
/cts/tests/app/shared/src/android/app/cts/
DNotificationTemplateTestBase.kt59 ActivityScenario.launch<NotificationHostActivity>(activityIntent).use { scenario -> in <lambda>() method
60 scenario.moveToState(Lifecycle.State.RESUMED) in <lambda>()
64 scenario.onActivity { activity -> in <lambda>()
/cts/tests/tests/textclassifier/src/android/view/textclassifier/cts/
DTextViewIntegrationTest.java154 ActivityScenario<TextViewActivity> scenario = rule.getScenario(); in smartLinkify() local
159 scenario.onActivity(activity -> { in smartLinkify()
212 ActivityScenario<TextViewActivity> scenario = rule.getScenario(); in smartSelectionInternal() local
216 scenario.onActivity(activity -> { in smartSelectionInternal()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DAnrTests.java140 try (ActivityScenario<HostActivity> scenario = in embeddedWindowTriggersAnr() argument
143 scenario.onActivity(activity -> latch[0] = activity.mEmbeddedViewAttachedLatch); in embeddedWindowTriggersAnr()