/cts/tests/framework/base/windowmanager/src/android/server/wm/lifecycle/ |
D | ActivityLifecycleLegacySplitScreenTests.java | 79 final Activity secondActivity = launchActivityAndWait(SecondActivity.class); in testResumedWhenRecreatedFromInNonFocusedTask() local 85 moveTaskToPrimarySplitScreenAndVerify(secondActivity, sideActivity); in testResumedWhenRecreatedFromInNonFocusedTask() 97 secondActivity.finish(); in testResumedWhenRecreatedFromInNonFocusedTask() 99 waitAndAssertActivityStates(state(secondActivity, ON_DESTROY), in testResumedWhenRecreatedFromInNonFocusedTask() 172 final Activity secondActivity = getInstrumentation() in testResultInNonFocusedTask() local 176 assertNotNull("Second activity should be started", secondActivity); in testResultInNonFocusedTask() 177 waitAndAssertActivityStates(state(secondActivity, ON_RESUME)); in testResultInNonFocusedTask() 183 moveTaskToPrimarySplitScreenAndVerify(secondActivity, sideActivity); in testResultInNonFocusedTask() 187 secondActivity.setResult(Activity.RESULT_OK); in testResultInNonFocusedTask() 188 secondActivity.finish(); in testResultInNonFocusedTask() [all …]
|
D | ActivityTests.java | 69 final Activity secondActivity = launchActivityAndWait(SecondActivity.class); in testReleaseActivityInstance_invisible() local 83 secondActivity.finish(); in testReleaseActivityInstance_invisible() 84 waitAndAssertActivityStates(state(secondActivity, ON_DESTROY)); in testReleaseActivityInstance_invisible() 226 final Activity secondActivity = launchActivityAndWait(SecondActivity.class); in testFinishAffinity() local 228 waitAndAssertActivityStates(state(thirdActivity, ON_RESUME), state(secondActivity, ON_STOP), in testFinishAffinity() 232 secondActivity.finishAffinity(); in testFinishAffinity() 267 final Activity secondActivity = new Launcher(SecondActivity.class) in testFinishAffinity_multiTask() local 271 waitAndAssertActivityStates(state(secondActivity, ON_RESUME), in testFinishAffinity_multiTask() 275 secondActivity.finishAffinity(); in testFinishAffinity_multiTask()
|
D | ActivityLifecycleTests.java | 205 final Activity secondActivity = launchActivityAndWait(SecondActivity.class); in testDestroyOnTopOfTranslucent() local 214 secondActivity.getWindow().getWindowStyle()); in testDestroyOnTopOfTranslucent() 217 secondActivity.finish(); in testDestroyOnTopOfTranslucent() 219 waitAndAssertActivityStates(state(secondActivity, ON_DESTROY)); in testDestroyOnTopOfTranslucent() 667 final Activity secondActivity = launchActivityAndWait(SecondActivity.class); in testOnPostCreateAfterRecreateInOnStop() local 677 if (isTranslucent(secondActivity)) { in testOnPostCreateAfterRecreateInOnStop() 736 final Activity secondActivity = new Launcher(SecondActivity.class) in testLocalRecreate() local 756 if (isTranslucent(secondActivity)) { in testLocalRecreate() 796 final Activity secondActivity = new Launcher(SecondActivity.class) in testOnNewIntentFromHidden() local
|
D | ActivityLifecyclePipTests.java | 262 final Activity secondActivity = new Launcher(SecondActivity.class) in testPipAboveSplitScreen() local 274 waitAndAssertActivityStates(state(secondActivity, ON_RESUME)); in testPipAboveSplitScreen()
|
D | ActivityLifecycleFreeformTests.java | 136 final Activity secondActivity = launchActivityAndWait(SecondActivity.class); in testLaunchOccludingInFreeform() local 160 secondActivity.finish(); in testLaunchOccludingInFreeform()
|
D | ActivityLifecycleTopResumedStateTests.java | 329 final Activity secondActivity = new Launcher(SingleTopActivity.class) in testTopPositionSwitchBetweenVisibleActivities() local 341 state(secondActivity, ON_TOP_POSITION_LOST)); in testTopPositionSwitchBetweenVisibleActivities() 355 state(secondActivity, ON_TOP_POSITION_GAINED)); in testTopPositionSwitchBetweenVisibleActivities() 469 final Activity secondActivity = new Launcher(SingleTopActivity.class) in testTopPositionSwitchOnTap() local 480 state(secondActivity, ON_TOP_POSITION_LOST)); in testTopPositionSwitchOnTap() 488 final Task sideTask = getRootTaskForLeafTaskId(secondActivity.getTaskId()); in testTopPositionSwitchOnTap() 493 state(secondActivity, ON_TOP_POSITION_GAINED)); in testTopPositionSwitchOnTap()
|
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/utils/ |
D | ActivityEmbeddingUtil.java | 114 Activity secondActivity = getSecondActivity(activeSplitStates, expectedPrimaryActivity, in startActivityAndVerifySplit() local 116 assertNotNull(secondActivity); in startActivityAndVerifySplit() 118 assertValidSplit(expectedPrimaryActivity, secondActivity, splitPairRule); in startActivityAndVerifySplit() 121 return secondActivity; in startActivityAndVerifySplit() 154 Activity secondActivity = getSecondaryStackTopActivity(splitInfo); in getSecondActivity() local 156 if (secondActivity != null && secondActivity instanceof TestActivityWithId in getSecondActivity() 157 && secondaryClassId.equals(((TestActivityWithId) secondActivity).getId())) { in getSecondActivity() 158 return secondActivity; in getSecondActivity()
|
/cts/tests/devicepolicy/src/android/devicepolicy/cts/ |
D | LockTaskTest.java | 638 TestAppActivityReference secondActivity = testApp2.activities().any(); in startActivity_withinSameTask_startsActivity() local 642 secondActivityIntent.setComponent(secondActivity.component().componentName()); in startActivity_withinSameTask_startsActivity() 646 assertThat(secondActivity.events().activityStarted()).eventOccurred(); in startActivity_withinSameTask_startsActivity() 648 .isEqualTo(secondActivity.component()); in startActivity_withinSameTask_startsActivity() 676 TestAppActivityReference secondActivity = testApp2.activities().any(); in startActivity_withinSameTask_blockStartInTask_doesNotStart() local 678 secondActivityIntent.setComponent(secondActivity.component().componentName()); in startActivity_withinSameTask_blockStartInTask_doesNotStart() 717 TestAppActivityReference secondActivity = testApp2.activities().any(); in startActivity_inNewTask_blockStartInTask_doesNotStart() local 719 secondActivityIntent.setComponent(secondActivity.component().componentName()); in startActivity_inNewTask_blockStartInTask_doesNotStart() 752 TestAppActivityReference secondActivity = testApp2.activities().any(); in startActivity_fromPermittedPackage_newTask_starts() local 754 secondActivityIntent.setComponent(secondActivity.component().componentName()); in startActivity_fromPermittedPackage_newTask_starts() [all …]
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/appcompatstate/ |
D | AppCompatStateStatsTests.java | 178 private void testAppCompatFlow(String activity, @Nullable String secondActivity, in testAppCompatFlow() argument 195 if (secondActivity != null) { in testAppCompatFlow() 197 DeviceUtils.STATSD_ATOM_TEST_PKG, secondActivity, "action", in testAppCompatFlow() argument
|
/cts/tests/inputmethod/src/android/view/inputmethod/cts/ |
D | InputMethodServiceTest.java | 576 TestActivity secondActivity = (TestActivity) InstrumentationRegistry 587 runOnMainSync(secondActivity::onBackPressed); 590 TestUtils.waitOnMainUntil(() -> secondActivity.getOnBackPressedCallCount() > 0,
|
/cts/tests/tests/content/src/android/content/cts/ |
D | ContextTest.java | 1031 Activity secondActivity = getInstrumentation().waitForMonitorWithTimeout(secondMonitor, in testStartActivities() local 1033 assertNotNull(secondActivity); in testStartActivities()
|