Home
last modified time | relevance | path

Searched refs:secondActivity (Results 1 – 15 of 15) sorted by relevance

/cts/tests/framework/base/windowmanager/src/android/server/wm/activity/lifecycle/
DActivityLifecycleLegacySplitScreenTests.java85 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 …]
DActivityTests.java74 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()
DActivityLifecycleTests.java241 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
DActivityLifecyclePipTests.java273 final Activity secondActivity = new Launcher(SecondActivity.class) in testPipAboveSplitScreen() local
285 waitAndAssertActivityStates(state(secondActivity, ON_RESUME)); in testPipAboveSplitScreen()
DActivityLifecycleTopResumedStateTests.java367 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()
DActivityLifecycleFreeformTests.java143 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/
DTaskInfoHelperTest.java111 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/
DActivityEmbeddingUtil.java154 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/
DLockTaskTest.kt670 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/
DAppCompatStateStatsTests.java180 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/
DPocMainActivity.java51 + "." + getString(R.string.secondActivity))); in onCreate()
DDeviceTest.java150 + getStringRes(R.string.secondActivity); in testRaceCondition()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DInputMethodServiceTest.java760 TestActivity secondActivity = (TestActivity) InstrumentationRegistry
771 runOnMainSync(secondActivity::onBackPressed);
774 TestUtils.waitOnMainUntil(() -> secondActivity.getOnBackPressedCallCount() > 0,
DKeyboardVisibilityControlTest.java1345 final TestActivity secondActivity = new TestActivity.Starter() in testImeInsetsInvisibleAfterBackingFromImeHiddenActivity() local
1357 runOnMainSync(secondActivity::onBackPressed); in testImeInsetsInvisibleAfterBackingFromImeHiddenActivity()
/cts/tests/tests/content/src/android/content/cts/
DContextTest.java1161 Activity secondActivity = getInstrumentation().waitForMonitorWithTimeout(secondMonitor, in testStartActivities() local
1163 assertNotNull(secondActivity); in testStartActivities()