Home
last modified time | relevance | path

Searched refs:activity2 (Results 1 – 20 of 20) sorted by relevance

/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DAppTransitionControllerTest.java295 final ActivityRecord activity2 = createActivityRecord(mDisplayContent); in testGetAnimationTargets_visibilityAlreadyUpdated() local
296 activity2.setVisible(false); in testGetAnimationTargets_visibilityAlreadyUpdated()
297 activity2.setVisibleRequested(false); in testGetAnimationTargets_visibilityAlreadyUpdated()
302 closing.add(activity2); in testGetAnimationTargets_visibilityAlreadyUpdated()
325 final ActivityRecord activity2 = createActivityRecord(mDisplayContent); in testGetAnimationTargets_visibilityAlreadyUpdated_butForcedTransitionRequested() local
326 activity2.setVisible(false); in testGetAnimationTargets_visibilityAlreadyUpdated_butForcedTransitionRequested()
327 activity2.setVisibleRequested(false); in testGetAnimationTargets_visibilityAlreadyUpdated_butForcedTransitionRequested()
328 activity2.mRequestForceTransition = true; in testGetAnimationTargets_visibilityAlreadyUpdated_butForcedTransitionRequested()
333 closing.add(activity2); in testGetAnimationTargets_visibilityAlreadyUpdated_butForcedTransitionRequested()
342 new ArraySet<>(new WindowContainer[]{activity2.getRootTask()}), in testGetAnimationTargets_visibilityAlreadyUpdated_butForcedTransitionRequested()
[all …]
DActivityTaskSupervisorTests.java212 final ActivityRecord activity2 = new ActivityBuilder(mAtm).setCreateTask(true).build(); in testRemoveTask() local
213 activity2.setState(ActivityRecord.State.RESUMED, "test"); in testRemoveTask()
215 activity2.addToStopping(false /* scheduleIdle */, false /* idleDelayed */, "test"); in testRemoveTask()
218 mSupervisor.removeTask(activity2.getTask(), true /* killProcess */, in testRemoveTask()
221 assertEquals(ActivityRecord.State.DESTROYING, activity2.getState()); in testRemoveTask()
329 final ActivityRecord activity2 = new TaskBuilder(mSupervisor) in testUpdatePendingTopForTopResumed() local
332 activity2.getTask().setResumedActivity(activity2, "test"); in testUpdatePendingTopForTopResumed()
349 final ActivityRecord activity2 = new ActivityBuilder(mAtm).setCreateTask(true).build(); in testUpdateTopResumed_moveToFront() local
350 activity2.setState(ActivityRecord.State.RESUMED, "test"); in testUpdateTopResumed_moveToFront()
351 assertEquals(activity2.app, mAtm.mTopApp); in testUpdateTopResumed_moveToFront()
[all …]
DAnimatingActivityRegistryTest.java66 … final ActivityRecord activity2 = createAppWindow(activity1.getTask(), ACTIVITY_TYPE_STANDARD, in testDeferring() local
73 activity2.startAnimation(activity1.getPendingTransaction(), mAdapter, false /* hidden */, in testDeferring()
76 assertTrue(activity2.isAnimating(TRANSITION)); in testDeferring()
81 assertFalse(registry.notifyAboutToFinish(activity2, mMockEndDeferFinishCallback2)); in testDeferring()
DUnknownAppVisibilityControllerTest.java73 final ActivityRecord activity2 = createNonAttachedActivityRecord(mDisplayContent); in testMultiple() local
76 mDisplayContent.mUnknownAppVisibilityController.notifyLaunched(activity2); in testMultiple()
78 mDisplayContent.mUnknownAppVisibilityController.notifyAppResumedFinished(activity2); in testMultiple()
79 mDisplayContent.mUnknownAppVisibilityController.notifyRelayouted(activity2); in testMultiple()
DActivityLeakTests.java100 final DetectLeakActivity activity2 = (DetectLeakActivity) startActivity( in testActivityLeakForTwoInstances() local
103 mStartedActivityList.add(activity2); in testActivityLeakForTwoInstances()
109 activity2.finish(); in testActivityLeakForTwoInstances()
110 assertFalse("Leak found on activity 2", activity2.isLeakedAfterDestroy()); in testActivityLeakForTwoInstances()
DDisplayWindowPolicyControllerTests.java78 final ActivityRecord activity2 = launchActivityOnDisplay(mSecondaryDisplay, TEST_USER_1_ID); in testOnRunningActivityChanged() local
79 verifyTopActivityAndRunningUid(activity2, in testOnRunningActivityChanged()
86 verifyTopActivityAndRunningUid(activity2, in testOnRunningActivityChanged()
89 activity2.finishing = true; in testOnRunningActivityChanged()
DAppTransitionTests.java287 final ActivityRecord activity2 = createActivityRecord(dc2); in testAppTransitionStateForMultiDisplay() local
299 activity2.setVisibility(false); in testAppTransitionStateForMultiDisplay()
390 final ActivityRecord activity2 = createActivityRecord(task); in testDelayWhileRecents() local
391 activity2.setVisible(false); in testDelayWhileRecents()
392 activity2.setVisibleRequested(true); in testDelayWhileRecents()
393 activity2.allDrawn = true; in testDelayWhileRecents()
396 dc.mOpeningApps.add(activity2); in testDelayWhileRecents()
411 verify(activity2, never()).commitVisibility(anyBoolean(), anyBoolean(), anyBoolean()); in testDelayWhileRecents()
DActivityRecordTests.java350 ActivityRecord activity2 = new ActivityBuilder(mAtm).setTask(activity.getTask()).build(); in testsApplyOptionsLocked() local
351 activity2.updateOptionsLocked(activityOptions); in testsApplyOptionsLocked()
355 assertNull(activity2.getOptions()); in testsApplyOptionsLocked()
359 activity2 = new ActivityBuilder(mAtm).setCreateTask(true).build(); in testsApplyOptionsLocked()
360 activity2.updateOptionsLocked(activityOptions); in testsApplyOptionsLocked()
364 assertNotNull(activity2.getOptions()); in testsApplyOptionsLocked()
1248 final ActivityRecord activity2 = createActivityRecord(activity.getTask()); in testFinishActivityIfPossible_collectToExistingTransition() local
1249 activity2.setState(PAUSING, "test"); in testFinishActivityIfPossible_collectToExistingTransition()
1250 activity2.finishIfPossible("test", false /* oomAdj */); in testFinishActivityIfPossible_collectToExistingTransition()
1251 assertTrue(activity2.inTransition()); in testFinishActivityIfPossible_collectToExistingTransition()
[all …]
DTaskTests.java161 final ActivityRecord activity2 = createActivityRecord(task2); in testRemoveContainer_multipleNestedTasks() local
167 assertTrue(activity2.finishing); in testRemoveContainer_multipleNestedTasks()
171 activity2.removeImmediately(); in testRemoveContainer_multipleNestedTasks()
283 final ActivityRecord activity2 = createActivityRecord(mDisplayContent, task2); in testIsInTask() local
285 assertNull(task1.isInTask(activity2)); in testIsInTask()
292 final ActivityRecord activity2 = new ActivityBuilder(mAtm).setTask(task).build(); in testPerformClearTop() local
295 activity2.detachFromProcess(); in testPerformClearTop()
322 final ActivityRecord activity2 = createActivityRecord(mDisplayContent, task); in testRemoveChildForOverlayTask() local
325 activity2.setTaskOverlay(true); in testRemoveChildForOverlayTask()
378 final ActivityRecord activity2 = createActivityRecord(mDisplayContent, leafTask2); in testEnsureActivitiesVisible() local
[all …]
DTransitionTests.java1388 final ActivityRecord activity2 = createActivityRecord(task1); in testIntermediateVisibility() local
1389 activity2.setVisibleRequested(true); in testIntermediateVisibility()
1390 activity2.setVisible(true); in testIntermediateVisibility()
1395 openTransition.collectExistenceChange(activity2); in testIntermediateVisibility()
1399 activity2.setVisibleRequested(false); in testIntermediateVisibility()
1413 closeTransition.collectExistenceChange(activity2); in testIntermediateVisibility()
1416 activity2.setVisibleRequested(true); in testIntermediateVisibility()
1424 assertTrue(activity2.isVisible()); in testIntermediateVisibility()
1434 assertTrue(activity2.isVisible()); in testIntermediateVisibility()
1511 final ActivityRecord activity2 = createActivityRecord(task2); in testTransientLaunch() local
[all …]
DRootTaskTests.java138 final ActivityRecord activity2 = createActivityRecord(mDisplayContent); in testClosingAppDifferentTaskOrientation() local
139 activity2.setOrientation(SCREEN_ORIENTATION_PORTRAIT); in testClosingAppDifferentTaskOrientation()
143 activity2.setVisibleRequested(false); in testClosingAppDifferentTaskOrientation()
152 final ActivityRecord activity2 = createActivityRecord(mDisplayContent); in testMoveTaskToBackDifferentTaskOrientation() local
153 activity2.setOrientation(SCREEN_ORIENTATION_PORTRAIT); in testMoveTaskToBackDifferentTaskOrientation()
240 ActivityRecord activity2 = createNonAttachedActivityRecord(mDisplayContent); in testActivityAndTaskGetsProperType() local
241 task1.addChild(activity2, WindowContainer.POSITION_TOP); in testActivityAndTaskGetsProperType()
242 assertEquals(WindowConfiguration.ACTIVITY_TYPE_STANDARD, activity2.getActivityType()); in testActivityAndTaskGetsProperType()
1234 final ActivityRecord activity2 = finishTopActivity(rootTask2); in testFinishCurrentActivity() local
1235 assertEquals(STOPPING, activity2.getState()); in testFinishCurrentActivity()
[all …]
DWindowContainerTests.java1063 final ActivityRecord activity2 = createActivityRecord(mDisplayContent, task); in testTaskCanApplyAnimation() local
1065 verifyWindowContainerApplyAnimation(task, activity1, activity2); in testTaskCanApplyAnimation()
1071 final ActivityRecord activity2 = createActivityRecord(mDisplayContent, in testRootTaskCanApplyAnimation() local
1075 verifyWindowContainerApplyAnimation(rootTask, activity1, activity2); in testRootTaskCanApplyAnimation()
1444 final ActivityRecord activity2 = createActivityRecord(mDisplayContent, in testAddLocalInsetsFrameProvider() local
1449 activity2.addWindow(createWindowState(attrs2, activity2)); in testAddLocalInsetsFrameProvider()
1486 activity2.forAllWindows(window -> { in testAddLocalInsetsFrameProvider()
1562 final ActivityRecord activity2 = createActivityRecord(mDisplayContent, in testRemoveLocalInsetsFrameProvider() local
1567 activity2.addWindow(createWindowState(attrs2, activity2)); in testRemoveLocalInsetsFrameProvider()
1569 activity2.addWindow(createWindowState(attrs2, activity2)); in testRemoveLocalInsetsFrameProvider()
[all …]
DRootWindowContainerTests.java219 final ActivityRecord activity2 = new ActivityBuilder(mAtm).setTask(task2).build(); in testTaskLayerRank() local
220 activity2.setVisibleRequested(true); in testTaskLayerRank()
238 activity2.setVisibleRequested(false); in testTaskLayerRank()
379 final ActivityRecord activity2 = new ActivityBuilder(mAtm) in testMultipleActivitiesTaskEnterPip() local
381 activity2.setState(RESUMED, "test"); in testMultipleActivitiesTaskEnterPip()
387 mRootWindowContainer.moveActivityToPinnedRootTask(activity2, in testMultipleActivitiesTaskEnterPip()
391 final Task newPipTask = activity2.getTask(); in testMultipleActivitiesTaskEnterPip()
DRecentsAnimationControllerTest.java177 final ActivityRecord activity2 = createActivityRecord(task); in testLaunchAndStartRecents_expectTargetAndVisible() local
178 activity2.setVisible(false); in testLaunchAndStartRecents_expectTargetAndVisible()
179 activity2.setVisibleRequested(true); in testLaunchAndStartRecents_expectTargetAndVisible()
DTaskFragmentTest.java532 final ActivityRecord activity2 = leafTask1.getTopMostActivity(); in testActivityHasOverlayOverUntrustedModeEmbedded() local
533 activity2.info.applicationInfo.uid = DEFAULT_TASK_FRAGMENT_ORGANIZER_UID + 2; in testActivityHasOverlayOverUntrustedModeEmbedded()
DDisplayContentTests.java2077 final ActivityRecord activity2 = new ActivityBuilder(mAtm).setCreateTask(true).build(); in testShellTransitRotation() local
2079 doReturn(true).when(activity2).isSyncFinished(any()); in testShellTransitRotation()
2110 verify(activity2).ensureActivityConfiguration(anyBoolean()); in testShellTransitRotation()
DWindowOrganizerTests.java1319 final ActivityRecord activity2 = createActivityRecord(rootTask.mDisplayContent, task2); in testInterceptBackPressedOnTaskRoot() local
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/pipeline/wifi/domain/interactor/
DWifiInteractorImplTest.kt265 val activity2 = DataActivityModel(hasActivityIn = false, hasActivityOut = false) in activity_matchesRepoWifiActivity() constant
266 wifiRepository.setWifiActivity(activity2) in activity_matchesRepoWifiActivity()
268 assertThat(latest).isEqualTo(activity2) in activity_matchesRepoWifiActivity()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/
DPackageArchiverTest.java594 LauncherActivityInfo activity2 = mock(LauncherActivityInfo.class); in createLauncherActivities() local
595 when(activity2.getLabel()).thenReturn("activity2"); in createLauncherActivities()
596 when(activity2.getComponentName()).thenReturn(new ComponentName("pkg2", "class2")); in createLauncherActivities()
597 when(activity2.getActivityInfo()).thenReturn(activityInfo); in createLauncherActivities()
598 return List.of(activity1, activity2); in createLauncherActivities()
/frameworks/base/core/tests/coretests/src/android/content/res/
DResourcesManagerTest.java225 Binder activity2 = new Binder(); in testTwoActivitiesWithIdenticalParametersShareImpl() local
227 activity2, APP_ONE_RES_DIR, null, null, null, null, null, null, in testTwoActivitiesWithIdenticalParametersShareImpl()