Home
last modified time | relevance | path

Searched refs:firstActivity (Results 1 – 7 of 7) sorted by relevance

/aosp14/frameworks/base/tests/InputMethodStressTest/src/com/android/inputmethod/stresstest/
H A DAutoShowTest.java174 TestActivity firstActivity = TestActivity.start(intent1); in autoShow_forwardWithKeyboardOff() local
182 TestActivity secondActivity = firstActivity.startSecondTestActivity(intent2); in autoShow_forwardWithKeyboardOff()
201 TestActivity firstActivity = TestActivity.start(intent1); in autoShow_forwardWithKeyboardOn() local
203 callOnMainSync(firstActivity::showImeWithInputMethodManager); in autoShow_forwardWithKeyboardOn()
213 TestActivity secondActivity = firstActivity.startSecondTestActivity(intent2); in autoShow_forwardWithKeyboardOn()
227 TestActivity firstActivity = TestActivity.start(intent1); in autoShow_backwardWithKeyboardOff() local
229 requestFocusAndVerify(firstActivity); in autoShow_backwardWithKeyboardOff()
237 TestActivity secondActivity = firstActivity.startSecondTestActivity(intent2); in autoShow_backwardWithKeyboardOff()
243 verifyAutoShowBehavior_backwardWithKeyboardOff(firstActivity); in autoShow_backwardWithKeyboardOff()
/aosp14/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
H A DActivityTaskSupervisorTests.java84 final ActivityRecord firstActivity = new ActivityBuilder(mAtm) in testStoppingActivityRemovedWhenResumed() local
86 mSupervisor.mStoppingActivities.add(firstActivity); in testStoppingActivityRemovedWhenResumed()
88 firstActivity.completeResumeLocked(); in testStoppingActivityRemovedWhenResumed()
90 assertFalse(mSupervisor.mStoppingActivities.contains(firstActivity)); in testStoppingActivityRemovedWhenResumed()
100 final ActivityRecord firstActivity = new ActivityBuilder(mAtm) in testReportWaitingActivityLaunched() local
111 mSupervisor.reportWaitingActivityLaunchedIfNeeded(firstActivity, in testReportWaitingActivityLaunched()
125 ArgumentMatchers.argThat(r -> r == firstActivity || r == secondActivity)); in testReportWaitingActivityLaunched()
128 mSupervisor.waitActivityVisibleOrLaunched(taskToFrontWait, firstActivity, launchingState); in testReportWaitingActivityLaunched()
154 mSupervisor.waitActivityVisibleOrLaunched(deliverToTopWait, firstActivity, launchingState); in testReportWaitingActivityLaunched()
H A DRootWindowContainerTests.java261 final ActivityRecord firstActivity = new ActivityBuilder(mAtm) in testReplacingTaskInPinnedRootTask() local
272 mRootWindowContainer.moveActivityToPinnedRootTask(firstActivity, in testReplacingTaskInPinnedRootTask()
278 ensureTaskPlacement(pinnedRootTask, firstActivity); in testReplacingTaskInPinnedRootTask()
291 ensureTaskPlacement(fullscreenTask, firstActivity); in testReplacingTaskInPinnedRootTask()
298 final ActivityRecord firstActivity = new ActivityBuilder(mAtm) in testMovingBottomMostRootTaskActivityToPinnedRootTask() local
300 final Task task = firstActivity.getTask(); in testMovingBottomMostRootTaskActivityToPinnedRootTask()
317 assertTrue(firstActivity.mRequestForceTransition); in testMovingBottomMostRootTaskActivityToPinnedRootTask()
393 mRootWindowContainer.moveActivityToPinnedRootTask(firstActivity, in testMultipleActivitiesInTaskFragmentEnterPip()
400 ensureTaskPlacement(pinnedRootTask, firstActivity); in testMultipleActivitiesInTaskFragmentEnterPip()
551 firstActivity.app.setThread(null); in testRemovingRootTaskOnAppCrash()
[all …]
H A DRootTaskTests.java816 final ActivityRecord firstActivity = new ActivityBuilder(mAtm) in testShouldBeVisible_FullscreenBehindTranslucentInHomeRootTask() local
820 final Task task = firstActivity.getTask(); in testShouldBeVisible_FullscreenBehindTranslucentInHomeRootTask()
829 assertTrue(firstActivity.shouldBeVisible()); in testShouldBeVisible_FullscreenBehindTranslucentInHomeRootTask()
1063 firstActivity.setState(STOPPED, "testFinishDisabledPackageActivities"); in testFinishDisabledPackageActivities_FinishAliveActivities()
1074 assertThat(firstActivity.getState()).isEqualTo(DESTROYING); in testFinishDisabledPackageActivities_FinishAliveActivities()
1120 firstActivity.setTaskOverlay(true); in testHandleAppDied()
1121 firstActivity.app = null; in testHandleAppDied()
1333 .setUid(firstActivity.getUid() + 1).build(); in testNavigateUpTo()
1340 firstActivity.intent /* destIntent */, null /* resolvedType */, in testNavigateUpTo()
1346 firstActivity.intent /* destIntent */, null /* resolvedType */, in testNavigateUpTo()
[all …]
H A DTaskDisplayAreaTests.java421 final ActivityRecord firstActivity = new ActivityBuilder(mAtm) in testIsLastFocused() local
427 mDisplayContent.setFocusedApp(firstActivity); in testIsLastFocused()
457 final ActivityRecord firstActivity = new ActivityBuilder(mAtm) in testCanSpecifyOrientation() local
470 mDisplayContent.setFocusedApp(firstActivity); in testCanSpecifyOrientation()
494 final ActivityRecord firstActivity = new ActivityBuilder(mAtm) in testCanSpecifyOrientationNoSensor() local
505 mDisplayContent.setFocusedApp(firstActivity); in testCanSpecifyOrientationNoSensor()
526 final ActivityRecord firstActivity = new ActivityBuilder(mAtm) in testCanSpecifyOrientationLocked() local
537 mDisplayContent.setFocusedApp(firstActivity); in testCanSpecifyOrientationLocked()
H A DActivityRecordTests.java1595 firstActivity.setVisibleRequested(false); in testCompleteFinishing_ensureActivitiesVisible()
1596 firstActivity.nowVisible = false; in testCompleteFinishing_ensureActivitiesVisible()
1597 firstActivity.setState(STOPPED, "test"); in testCompleteFinishing_ensureActivitiesVisible()
1614 doReturn(true).when(firstActivity).occludesParent(true); in testCompleteFinishing_ensureActivitiesVisible()
1625 firstActivity.finishing = true; in testCompleteFinishing_ensureActivitiesVisible()
1626 firstActivity.setVisibleRequested(true); in testCompleteFinishing_ensureActivitiesVisible()
1627 firstActivity.completeFinishing("test"); in testCompleteFinishing_ensureActivitiesVisible()
2214 final ActivityRecord firstActivity = in testActivityDestroyDoesntChangeProcessOverride() local
2216 final WindowProcessController wpc = firstActivity.app; in testActivityDestroyDoesntChangeProcessOverride()
2218 assertEquals(0, firstActivity.getMergedOverrideConfiguration() in testActivityDestroyDoesntChangeProcessOverride()
[all …]
H A DTaskTests.java1466 final ActivityRecord firstActivity = new ActivityBuilder(mAtm) in testNotSpecifyOrientation_taskDisplayAreaNotFocused() local
1470 firstActivity.setRequestedOrientation(SCREEN_ORIENTATION_LANDSCAPE); in testNotSpecifyOrientation_taskDisplayAreaNotFocused()
1474 mDisplayContent.setFocusedApp(firstActivity); in testNotSpecifyOrientation_taskDisplayAreaNotFocused()