/cts/tests/framework/base/windowmanager/src/android/server/wm/activity/lifecycle/ |
D | ActivityLifecycleLegacySplitScreenTests.java | 85 final Activity secondActivity = launchActivityAndWait(SecondActivity.class); in testResumedWhenRecreatedFromInNonFocusedTask() local 91 moveTaskToPrimarySplitScreenAndVerify(secondActivity, sideActivity); in testResumedWhenRecreatedFromInNonFocusedTask() 103 secondActivity.finish(); in testResumedWhenRecreatedFromInNonFocusedTask() 105 waitAndAssertActivityStates(state(secondActivity, ON_DESTROY), in testResumedWhenRecreatedFromInNonFocusedTask() 178 final Activity secondActivity = getInstrumentation() in testResultInNonFocusedTask() local 182 assertNotNull("Second activity should be started", secondActivity); in testResultInNonFocusedTask() 183 waitAndAssertActivityStates(state(secondActivity, ON_RESUME)); in testResultInNonFocusedTask() 189 moveTaskToPrimarySplitScreenAndVerify(secondActivity, sideActivity); in testResultInNonFocusedTask() 193 secondActivity.setResult(Activity.RESULT_OK); in testResultInNonFocusedTask() 194 secondActivity.finish(); in testResultInNonFocusedTask() [all …]
|
D | ActivityTests.java | 74 final Activity secondActivity = launchActivityAndWait(SecondActivity.class); in testReleaseActivityInstance_invisible() local 88 secondActivity.finish(); in testReleaseActivityInstance_invisible() 89 waitAndAssertActivityStates(state(secondActivity, ON_DESTROY)); in testReleaseActivityInstance_invisible() 229 final Activity secondActivity = launchActivityAndWait(SecondActivity.class); in testFinishAffinity() local 231 waitAndAssertActivityStates(state(thirdActivity, ON_RESUME), state(secondActivity, ON_STOP), in testFinishAffinity() 235 secondActivity.finishAffinity(); in testFinishAffinity() 277 final Activity secondActivity = new Launcher(SecondActivity.class) in testFinishAffinity_multiTask() local 281 waitAndAssertActivityStates(state(secondActivity, ON_RESUME), in testFinishAffinity_multiTask() 285 secondActivity.finishAffinity(); in testFinishAffinity_multiTask()
|
D | ActivityLifecycleTests.java | 241 final Activity secondActivity = launchActivityAndWait(SecondActivity.class); in testDestroyOnTopOfTranslucent() local 250 secondActivity.getWindow().getWindowStyle()); in testDestroyOnTopOfTranslucent() 253 secondActivity.finish(); in testDestroyOnTopOfTranslucent() 255 waitAndAssertActivityStates(state(secondActivity, ON_DESTROY)); in testDestroyOnTopOfTranslucent() 698 final Activity secondActivity = launchActivityAndWait(SecondActivity.class); in testOnPostCreateAfterRecreateInOnStop() local 708 if (isTranslucent(secondActivity)) { in testOnPostCreateAfterRecreateInOnStop() 778 final Activity secondActivity = new Launcher(SecondActivity.class) in testLocalRecreate() local 798 if (isTranslucent(secondActivity)) { in testLocalRecreate() 843 final Activity secondActivity = new Launcher(SecondActivity.class) in testOnNewIntentFromHidden() local
|
D | ActivityLifecyclePipTests.java | 273 final Activity secondActivity = new Launcher(SecondActivity.class) in testPipAboveSplitScreen() local 285 waitAndAssertActivityStates(state(secondActivity, ON_RESUME)); in testPipAboveSplitScreen()
|
D | ActivityLifecycleTopResumedStateTests.java | 367 final Activity secondActivity = new Launcher(SingleTopActivity.class) in testTopPositionSwitchBetweenVisibleActivities() local 380 state(secondActivity, ON_TOP_POSITION_LOST)); in testTopPositionSwitchBetweenVisibleActivities() 395 state(secondActivity, ON_TOP_POSITION_GAINED)); in testTopPositionSwitchBetweenVisibleActivities() 508 final Activity secondActivity = new Launcher(SingleTopActivity.class) in testTopPositionSwitchOnTap() local 520 state(secondActivity, ON_TOP_POSITION_LOST)); in testTopPositionSwitchOnTap() 528 final Task sideTask = getRootTaskForLeafTaskId(secondActivity.getTaskId()); in testTopPositionSwitchOnTap() 533 state(secondActivity, ON_TOP_POSITION_GAINED)); in testTopPositionSwitchOnTap()
|
D | ActivityLifecycleFreeformTests.java | 143 final Activity secondActivity = launchActivityAndWait(SecondActivity.class); in testLaunchOccludingInFreeform() local 166 secondActivity.finish(); in testLaunchOccludingInFreeform()
|
/cts/tests/tests/car_builtin/src/android/car/cts/builtin/app/ |
D | TaskInfoHelperTest.java | 111 TaskInfoTestActivity secondActivity = launchTestActivity(); in testTaskVisibility() local 112 assertThat(taskId).isNotEqualTo(secondActivity.getTaskId()); in testTaskVisibility() 115 secondActivity.finish(); in testTaskVisibility()
|
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/utils/ |
D | ActivityEmbeddingUtil.java | 154 TestActivity secondActivity = getResumedActivityById(secondActivityId); in startActivityAndVerifyNotSplit() local 156 waitAndAssertResumedAndFillsTask(secondActivity); in startActivityAndVerifyNotSplit() 157 return secondActivity; in startActivityAndVerifyNotSplit() 311 Activity secondActivity = getSecondaryStackTopActivity(splitInfo); in getSecondActivity() local 313 if (secondActivity != null && secondActivity instanceof TestActivityWithId in getSecondActivity() 314 && secondaryClassId.equals(((TestActivityWithId) secondActivity).getId())) { in getSecondActivity() 315 return secondActivity; in getSecondActivity()
|
/cts/tests/devicepolicy/src/android/devicepolicy/cts/ |
D | LockTaskTest.kt | 670 val secondActivity = testApp2.activities().any() in <lambda>() constant 674 secondActivityIntent.setComponent(secondActivity.component().componentName()) in <lambda>() 676 assertThat(secondActivity.events().activityStarted()).eventOccurred() in <lambda>() 678 .isEqualTo(secondActivity.component()) in <lambda>() 713 val secondActivity = testApp2.activities().any() in <lambda>() constant 715 secondActivityIntent.setComponent(secondActivity.component().componentName()) in <lambda>() 759 val secondActivity = testApp2.activities().any() in <lambda>() constant 761 secondActivityIntent.setComponent(secondActivity.component().componentName()) in <lambda>() 800 val secondActivity = testApp2.activities().any() in <lambda>() constant 802 secondActivityIntent.setComponent(secondActivity.component().componentName()) in <lambda>() [all …]
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/appcompatstate/ |
D | AppCompatStateStatsTests.java | 180 private void testAppCompatFlow(String activity, @Nullable String secondActivity, in testAppCompatFlow() argument 214 if (secondActivity != null) { in testAppCompatFlow() 216 DeviceUtils.STATSD_ATOM_TEST_PKG, secondActivity, "action", in testAppCompatFlow() argument
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2022-20007/test-app/src/android/security/cts/CVE_2022_20007/ |
D | PocMainActivity.java | 51 + "." + getString(R.string.secondActivity))); in onCreate()
|
D | DeviceTest.java | 150 + getStringRes(R.string.secondActivity); in testRaceCondition()
|
/cts/tests/inputmethod/src/android/view/inputmethod/cts/ |
D | InputMethodServiceTest.java | 760 TestActivity secondActivity = (TestActivity) InstrumentationRegistry 771 runOnMainSync(secondActivity::onBackPressed); 774 TestUtils.waitOnMainUntil(() -> secondActivity.getOnBackPressedCallCount() > 0,
|
D | KeyboardVisibilityControlTest.java | 1345 final TestActivity secondActivity = new TestActivity.Starter() in testImeInsetsInvisibleAfterBackingFromImeHiddenActivity() local 1357 runOnMainSync(secondActivity::onBackPressed); in testImeInsetsInvisibleAfterBackingFromImeHiddenActivity()
|
/cts/tests/tests/content/src/android/content/cts/ |
D | ContextTest.java | 1161 Activity secondActivity = getInstrumentation().waitForMonitorWithTimeout(secondMonitor, in testStartActivities() local 1163 assertNotNull(secondActivity); in testStartActivities()
|