/frameworks/base/libs/WindowManager/Jetpack/tests/unittest/src/androidx/window/extensions/embedding/ |
D | EmbeddingTestUtils.java | 130 @NonNull Activity secondaryActivity) { in createSplitRule() argument 131 return createSplitRule(primaryActivity, secondaryActivity, in createSplitRule() 138 @NonNull Activity secondaryActivity, boolean clearTop) { in createSplitRule() argument 139 return createSplitRule(primaryActivity, secondaryActivity, in createSplitRule() 146 @NonNull Activity secondaryActivity, int finishPrimaryWithSecondary, in createSplitRule() argument 148 final Pair<Activity, Activity> targetPair = new Pair<>(primaryActivity, secondaryActivity); in createSplitRule()
|
D | SplitControllerTest.java | 509 final Activity secondaryActivity = createMockActivity(); in testResolveStartActivityIntent_shouldSplitWithTopPrimaryActivity() local 510 addSplitTaskFragments(mActivity, secondaryActivity); in testResolveStartActivityIntent_shouldSplitWithTopPrimaryActivity() 545 final Activity secondaryActivity = createMockActivity(); in testResolveStartActivityIntent_shouldExpandSplitContainer() local 546 addSplitTaskFragments(mActivity, secondaryActivity, false /* clearTop */); in testResolveStartActivityIntent_shouldExpandSplitContainer() 564 final Activity secondaryActivity = createMockActivity(); in testResolveStartActivityIntent_noInfo_shouldCreateSplitContainer() local 565 addSplitTaskFragments(mActivity, secondaryActivity, false /* clearTop */); in testResolveStartActivityIntent_noInfo_shouldCreateSplitContainer() 568 .getContainerWithActivity(secondaryActivity); in testResolveStartActivityIntent_noInfo_shouldCreateSplitContainer() 730 final Activity secondaryActivity = createMockActivity(); in testResolveActivityToContainer_placeholderRule_inPrimarySplit() local 731 addSplitTaskFragments(mActivity, secondaryActivity); in testResolveActivityToContainer_placeholderRule_inPrimarySplit() 832 final Activity secondaryActivity = createMockActivity(); in testResolveActivityToContainer_splitRule_inSecondarySplitWithNoRuleMatched() local [all …]
|
D | SplitPresenterTest.java | 669 Activity secondaryActivity = createMockActivity(); in testExpandSplitContainerIfNeeded() local 670 SplitRule splitRule = createSplitRule(mActivity, secondaryActivity); in testExpandSplitContainerIfNeeded() 672 TaskFragmentContainer secondaryTf = createTfContainer(mController, secondaryActivity); in testExpandSplitContainerIfNeeded() 673 SplitContainer splitContainer = new SplitContainer(primaryTf, secondaryActivity, in testExpandSplitContainerIfNeeded() 681 splitContainer, mActivity, secondaryActivity, null /* secondaryIntent */)); in testExpandSplitContainerIfNeeded() 685 doReturn(createActivityInfoWithMinDimensions()).when(secondaryActivity).getActivityInfo(); in testExpandSplitContainerIfNeeded() 687 mTransaction, splitContainer, mActivity, secondaryActivity, in testExpandSplitContainerIfNeeded() 693 createMockTaskFragmentInfo(secondaryTf, secondaryActivity)); in testExpandSplitContainerIfNeeded() 696 splitContainer, mActivity, secondaryActivity, null /* secondaryIntent */)); in testExpandSplitContainerIfNeeded() 713 final Activity secondaryActivity = createMockActivity(); in testCreateNewSplitContainer_secondaryAbovePrimary() local [all …]
|
D | OverlayPresentationTest.java | 359 final Activity secondaryActivity = createMockActivity(); in testCreateOrUpdateOverlay_launchFromSplit_returnNull() local 363 createMockTaskFragmentContainer(secondaryActivity); in testCreateOrUpdateOverlay_launchFromSplit_returnNull() 372 assertThat(createOrUpdateOverlayTaskFragmentIfNeeded("test", secondaryActivity)).isNull(); in testCreateOrUpdateOverlay_launchFromSplit_returnNull() 446 final Activity secondaryActivity = createMockActivity(); in testGetTopNonFishingTaskFragmentContainerWithoutAssociatedOverlay() local 457 createMockTaskFragmentContainer(secondaryActivity); in testGetTopNonFishingTaskFragmentContainerWithoutAssociatedOverlay()
|
/frameworks/base/libs/WindowManager/Jetpack/src/androidx/window/extensions/embedding/ |
D | SplitPresenter.java | 223 @NonNull Activity primaryActivity, @NonNull Activity secondaryActivity, in createNewSplitContainer() argument 234 secondaryActivity); in createNewSplitContainer() 243 secondaryActivity, secondaryRelBounds, splitAttributes, containerToAvoid); in createNewSplitContainer() 713 @Nullable Activity secondaryActivity, @Nullable Intent secondaryIntent) { in expandSplitContainerIfNeeded() argument 714 if (secondaryActivity == null && secondaryIntent == null) { in expandSplitContainerIfNeeded() 719 if (secondaryActivity != null) { in expandSplitContainerIfNeeded() 720 minDimensionsPair = getActivitiesMinDimensionsPair(primaryActivity, secondaryActivity); in expandSplitContainerIfNeeded() 840 @NonNull Activity primaryActivity, @NonNull Activity secondaryActivity) { in getActivitiesMinDimensionsPair() argument 841 return new Pair<>(getMinDimensions(primaryActivity), getMinDimensions(secondaryActivity)); in getActivitiesMinDimensionsPair()
|
D | SplitController.java | 1366 final Activity secondaryActivity = secondaryContainer.getTopNonFinishingActivity(); in isNewActivityInSplitWithRuleMatched() local 1367 return secondaryActivity != null in isNewActivityInSplitWithRuleMatched() 1368 && getSplitRule(launchedActivity, secondaryActivity) != null; in isNewActivityInSplitWithRuleMatched() 1439 @NonNull Activity primaryActivity, @NonNull Activity secondaryActivity) { in putActivitiesIntoSplitIfNecessary() argument 1440 final SplitPairRule splitRule = getSplitRule(primaryActivity, secondaryActivity); in putActivitiesIntoSplitIfNecessary() 1451 getActivitiesMinDimensionsPair(primaryActivity, secondaryActivity)); in putActivitiesIntoSplitIfNecessary() 1459 if (secondaryContainer == getContainerWithActivity(secondaryActivity)) { in putActivitiesIntoSplitIfNecessary() 1463 secondaryContainer.addPendingAppearedActivity(secondaryActivity); in putActivitiesIntoSplitIfNecessary() 1465 secondaryActivity, null /* secondaryIntent */) in putActivitiesIntoSplitIfNecessary() 1469 secondaryActivity.getActivityToken()); in putActivitiesIntoSplitIfNecessary() [all …]
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | TaskFragmentTest.java | 327 final ActivityRecord secondaryActivity = secondaryTf.getTopMostActivity(); in testMoveTaskToFront_supportsEnterPipOnTaskSwitchForAdjacentTaskFragment() local 329 doReturn(false).when(secondaryActivity).supportsPictureInPicture(); in testMoveTaskToFront_supportsEnterPipOnTaskSwitchForAdjacentTaskFragment() 333 secondaryActivity.setState(RESUMED, "test"); in testMoveTaskToFront_supportsEnterPipOnTaskSwitchForAdjacentTaskFragment() 343 assertFalse(secondaryActivity.supportsEnterPipOnTaskSwitch); in testMoveTaskToFront_supportsEnterPipOnTaskSwitchForAdjacentTaskFragment()
|
D | BackNavigationControllerTests.java | 679 final ActivityRecord secondaryActivity = secondaryTf.getTopMostActivity(); in testAdjacentFocusInActivityEmbedding() local 688 doReturn(2L).when(secondaryActivity).getLastWindowCreateTime(); in testAdjacentFocusInActivityEmbedding() 691 verify(mWm).moveFocusToActivity(eq(secondaryActivity)); in testAdjacentFocusInActivityEmbedding()
|