Home
last modified time | relevance | path

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

/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DAppTransitionControllerTest.java134 final ActivityRecord activity2 = WindowTestUtils.createTestActivityRecord(stack2); in testGetAnimationTargets_noHierarchicalAnimations() local
139 closing.add(activity2); in testGetAnimationTargets_noHierarchicalAnimations()
147 new ArraySet<>(new WindowContainer[]{activity2}), in testGetAnimationTargets_noHierarchicalAnimations()
160 final ActivityRecord activity2 = WindowTestUtils.createTestActivityRecord(stack2); in testGetAnimationTargets_visibilityAlreadyUpdated() local
161 activity2.setVisible(false); in testGetAnimationTargets_visibilityAlreadyUpdated()
162 activity2.mVisibleRequested = false; in testGetAnimationTargets_visibilityAlreadyUpdated()
167 closing.add(activity2); in testGetAnimationTargets_visibilityAlreadyUpdated()
233 final ActivityRecord activity2 = WindowTestUtils.createTestActivityRecord(stack2); in testGetAnimationTargets_windowsAreBeingReplaced() local
234 activity2.setVisible(false); in testGetAnimationTargets_windowsAreBeingReplaced()
235 activity2.mVisibleRequested = false; in testGetAnimationTargets_windowsAreBeingReplaced()
[all …]
DTaskStackTests.java94 ActivityRecord activity2= in testClosingAppDifferentStackOrientation() local
96 task2.addChild(activity2, 0); in testClosingAppDifferentStackOrientation()
97 activity2.setOrientation(SCREEN_ORIENTATION_PORTRAIT); in testClosingAppDifferentStackOrientation()
100 mDisplayContent.mClosingApps.add(activity2); in testClosingAppDifferentStackOrientation()
114 ActivityRecord activity2 = in testMoveTaskToBackDifferentStackOrientation() local
116 task2.addChild(activity2, 0); in testMoveTaskToBackDifferentStackOrientation()
117 activity2.setOrientation(SCREEN_ORIENTATION_PORTRAIT); in testMoveTaskToBackDifferentStackOrientation()
232 ActivityRecord activity2 = WindowTestUtils.createTestActivityRecord(mDisplayContent); in testActivityAndTaskGetsProperType() local
233 task1.addChild(activity2, WindowContainer.POSITION_TOP); in testActivityAndTaskGetsProperType()
234 assertEquals(WindowConfiguration.ACTIVITY_TYPE_STANDARD, activity2.getActivityType()); in testActivityAndTaskGetsProperType()
DUnknownAppVisibilityControllerTest.java60 final ActivityRecord activity2 = WindowTestUtils.createTestActivityRecord(mDisplayContent); in testMultiple() local
63 mDisplayContent.mUnknownAppVisibilityController.notifyLaunched(activity2); in testMultiple()
65 mDisplayContent.mUnknownAppVisibilityController.notifyAppResumedFinished(activity2); in testMultiple()
66 mDisplayContent.mUnknownAppVisibilityController.notifyRelayouted(activity2); in testMultiple()
DAnimatingActivityRegistryTest.java68 … final ActivityRecord activity2 = createAppWindow(activity1.getTask(), ACTIVITY_TYPE_STANDARD, in testDeferring() local
75 activity2.startAnimation(activity1.getPendingTransaction(), mAdapter, false /* hidden */, in testDeferring()
78 assertTrue(activity2.isAnimating(TRANSITION)); in testDeferring()
83 assertFalse(registry.notifyAboutToFinish(activity2, mMockEndDeferFinishCallback2)); in testDeferring()
DAppWindowTokenTests.java360 final ActivityRecord activity2 = createIsolatedTestActivityRecord(); in testTransferStartingWindow() local
365 activity2.addStartingWindow(mPackageName, in testTransferStartingWindow()
370 assertHasStartingWindow(activity2); in testTransferStartingWindow()
376 final ActivityRecord activity2 = createIsolatedTestActivityRecord(); in testTransferStartingWindowWhileCreating() local
380 activity2.addStartingWindow(mPackageName, in testTransferStartingWindowWhileCreating()
390 assertHasStartingWindow(activity2); in testTransferStartingWindowWhileCreating()
396 final ActivityRecord activity2 = createIsolatedTestActivityRecord(); in testTransferStartingWindowCanAnimate() local
401 activity2.addStartingWindow(mPackageName, in testTransferStartingWindowCanAnimate()
406 assertHasStartingWindow(activity2); in testTransferStartingWindowCanAnimate()
410 sources.add(activity2); in testTransferStartingWindowCanAnimate()
[all …]
DActivityLeakTests.java94 final DetectLeakActivity activity2 = (DetectLeakActivity) startActivity( in testActivityLeakForTwoInstances() local
97 mStartedActivityList.add(activity2); in testActivityLeakForTwoInstances()
103 activity2.finish(); in testActivityLeakForTwoInstances()
104 assertFalse("Leak found on activity 2", activity2.isLeakedAfterDestroy()); in testActivityLeakForTwoInstances()
DTaskTests.java158 final ActivityRecord activity2 = in testIsInStack() local
161 assertNull(task1.isInTask(activity2)); in testIsInStack()
170 final ActivityRecord activity2 = in testRemoveChildForOverlayTask() local
175 activity2.setTaskOverlay(true); in testRemoveChildForOverlayTask()
DAppTransitionTests.java120 final ActivityRecord activity2 = createTestActivityRecord(dc2, in testAppTransitionStateForMultiDisplay() local
138 activity2.setVisibility(false, false); in testAppTransitionStateForMultiDisplay()
DTaskRecordTests.java760 final ActivityRecord activity2 = new ActivityBuilder(mService).setTask(task).build(); in testGetTaskForActivity_onlyRoot_finishing() local
767 ActivityRecord.getTaskForActivityLocked(activity2.appToken, true /* onlyRoot */)); in testGetTaskForActivity_onlyRoot_finishing()
783 final ActivityRecord activity2 = new ActivityBuilder(mService).setTask(task).build(); in testGetTaskForActivity_onlyRoot_relinquishTaskIdentity() local
790 ActivityRecord.getTaskForActivityLocked(activity2.appToken, true /* onlyRoot */)); in testGetTaskForActivity_onlyRoot_relinquishTaskIdentity()
809 final ActivityRecord activity2 = new ActivityBuilder(mService).setTask(task).build(); in testGetTaskForActivity_notOnlyRoot() local
816 ActivityRecord.getTaskForActivityLocked(activity2.appToken, false /* onlyRoot */)); in testGetTaskForActivity_notOnlyRoot()
DActivityRecordTests.java248 ActivityRecord activity2 = new ActivityBuilder(mService).setTask(mTask).build(); in testsApplyOptionsLocked() local
249 activity2.updateOptionsLocked(activityOptions); in testsApplyOptionsLocked()
253 assertNull(activity2.pendingOptions); in testsApplyOptionsLocked()
258 activity2 = new ActivityBuilder(mService).setTask(task2).build(); in testsApplyOptionsLocked()
259 activity2.updateOptionsLocked(activityOptions); in testsApplyOptionsLocked()
263 assertNotNull(activity2.pendingOptions); in testsApplyOptionsLocked()
DWindowContainerTests.java857 final ActivityRecord activity2 = in testTaskCanApplyAnimation() local
861 verifyWindowContainerApplyAnimation(task, activity1, activity2); in testTaskCanApplyAnimation()
867 final ActivityRecord activity2 = WindowTestUtils.createActivityRecordInTask(mDisplayContent, in testStackCanApplyAnimation() local
871 verifyWindowContainerApplyAnimation(stack, activity1, activity2); in testStackCanApplyAnimation()
DActivityStackTests.java1185 final ActivityRecord activity2 = finishTopActivity(stack2); in testFinishCurrentActivity() local
1186 assertEquals(STOPPING, activity2.getState()); in testFinishCurrentActivity()
1187 assertThat(mSupervisor.mStoppingActivities).contains(activity2); in testFinishCurrentActivity()
/frameworks/base/core/tests/coretests/src/android/content/res/
DResourcesManagerTest.java171 Binder activity2 = new Binder(); in testTwoActivitiesWithIdenticalParametersShareImpl() local
173 activity2, APP_ONE_RES_DIR, null, null, null, Display.DEFAULT_DISPLAY, null, in testTwoActivitiesWithIdenticalParametersShareImpl()