/frameworks/base/tests/InputMethodStressTest/src/com/android/inputmethod/stresstest/ |
D | AutoShowTest.java | 174 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()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | ActivityTaskSupervisorTests.java | 84 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()
|
D | RootWindowContainerTests.java | 313 final ActivityRecord firstActivity = new ActivityBuilder(mAtm) in testReplacingTaskInPinnedRootTask() local 321 ensureTaskPlacement(fullscreenTask, firstActivity, secondActivity); in testReplacingTaskInPinnedRootTask() 324 mRootWindowContainer.moveActivityToPinnedRootTask(firstActivity, in testReplacingTaskInPinnedRootTask() 330 ensureTaskPlacement(pinnedRootTask, firstActivity); in testReplacingTaskInPinnedRootTask() 343 ensureTaskPlacement(fullscreenTask, firstActivity); in testReplacingTaskInPinnedRootTask() 350 final ActivityRecord firstActivity = new ActivityBuilder(mAtm) in testMovingBottomMostRootTaskActivityToPinnedRootTask() local 352 final Task task = firstActivity.getTask(); in testMovingBottomMostRootTaskActivityToPinnedRootTask() 360 ensureTaskPlacement(fullscreenTask, firstActivity, secondActivity); in testMovingBottomMostRootTaskActivityToPinnedRootTask() 362 firstActivity.setState(STOPPED, "testMovingBottomMostRootTaskActivityToPinnedRootTask"); in testMovingBottomMostRootTaskActivityToPinnedRootTask() 369 assertTrue(firstActivity.mRequestForceTransition); in testMovingBottomMostRootTaskActivityToPinnedRootTask() [all …]
|
D | RootTaskTests.java | 817 final ActivityRecord firstActivity = new ActivityBuilder(mAtm) in testShouldBeVisible_FullscreenBehindTranslucentInHomeRootTask() local 821 final Task task = firstActivity.getTask(); in testShouldBeVisible_FullscreenBehindTranslucentInHomeRootTask() 829 assertTrue(firstActivity.shouldBeVisible()); in testShouldBeVisible_FullscreenBehindTranslucentInHomeRootTask() 1061 final ActivityRecord firstActivity = new ActivityBuilder(mAtm).setTask(task).build(); in testFinishDisabledPackageActivities_FinishAliveActivities() local 1063 firstActivity.setState(STOPPED, "testFinishDisabledPackageActivities"); in testFinishDisabledPackageActivities_FinishAliveActivities() 1069 firstActivity.packageName, null /* filterByClasses */, true /* doit */, in testFinishDisabledPackageActivities_FinishAliveActivities() 1074 assertThat(firstActivity.getState()).isEqualTo(DESTROYING); in testFinishDisabledPackageActivities_FinishAliveActivities() 1114 final ActivityRecord firstActivity = new ActivityBuilder(mAtm).setTask(task).build(); in testHandleAppDied() local 1120 firstActivity.setTaskOverlay(true); in testHandleAppDied() 1121 firstActivity.app = null; in testHandleAppDied() [all …]
|
D | TaskDisplayAreaTests.java | 421 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()
|
D | ActivityRecordTests.java | 1601 final ActivityRecord firstActivity = new ActivityBuilder(mAtm).setTask(task).build(); in testCompleteFinishing_ensureActivitiesVisible() local 1602 firstActivity.setVisibleRequested(false); in testCompleteFinishing_ensureActivitiesVisible() 1603 firstActivity.nowVisible = false; in testCompleteFinishing_ensureActivitiesVisible() 1604 firstActivity.setState(STOPPED, "test"); in testCompleteFinishing_ensureActivitiesVisible() 1621 doReturn(true).when(firstActivity).occludesParent(true); in testCompleteFinishing_ensureActivitiesVisible() 1631 firstActivity.finishing = true; in testCompleteFinishing_ensureActivitiesVisible() 1632 firstActivity.setVisibleRequested(true); in testCompleteFinishing_ensureActivitiesVisible() 1633 firstActivity.completeFinishing("test"); in testCompleteFinishing_ensureActivitiesVisible() 1634 verify(firstActivity.mDisplayContent, times(2)).ensureActivitiesVisible(null /* starting */, in testCompleteFinishing_ensureActivitiesVisible() 2178 final ActivityRecord firstActivity = in testActivityDestroyDoesntChangeProcessOverride() local [all …]
|
D | TaskTests.java | 1543 final ActivityRecord firstActivity = new ActivityBuilder(mAtm) in testNotSpecifyOrientation_taskDisplayAreaNotFocused() local 1547 firstActivity.setRequestedOrientation(SCREEN_ORIENTATION_LANDSCAPE); in testNotSpecifyOrientation_taskDisplayAreaNotFocused() 1551 mDisplayContent.setFocusedApp(firstActivity); in testNotSpecifyOrientation_taskDisplayAreaNotFocused()
|
D | WindowOrganizerTests.java | 1477 final ActivityRecord firstActivity = new ActivityBuilder(mAtm) in testReorderWithParents() local
|
/frameworks/base/services/tests/servicestests/src/com/android/server/power/ |
D | WakefulnessSessionObserverTest.java | 117 int firstActivity = PowerManager.USER_ACTIVITY_EVENT_BUTTON; in testOnUserActivity_updateActivity() local 121 firstActivityTimestamp, powerGroupId, firstActivity); in testOnUserActivity_updateActivity() 123 .mCurrentUserActivityEvent).isEqualTo(firstActivity); in testOnUserActivity_updateActivity() 135 .mPrevUserActivityEvent).isEqualTo(firstActivity); in testOnUserActivity_updateActivity() 141 firstActivityTimestamp, otherPowerGroupId, firstActivity); in testOnUserActivity_updateActivity() 143 .mCurrentUserActivityEvent).isEqualTo(firstActivity); in testOnUserActivity_updateActivity()
|