Home
last modified time | relevance | path

Searched refs:secondaryActivity (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/libs/WindowManager/Jetpack/tests/unittest/src/androidx/window/extensions/embedding/
DEmbeddingTestUtils.java130 @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()
DSplitControllerTest.java509 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 …]
DSplitPresenterTest.java669 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 …]
DOverlayPresentationTest.java359 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/
DSplitPresenter.java223 @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()
DSplitController.java1366 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/
DTaskFragmentTest.java327 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()
DBackNavigationControllerTests.java679 final ActivityRecord secondaryActivity = secondaryTf.getTopMostActivity(); in testAdjacentFocusInActivityEmbedding() local
688 doReturn(2L).when(secondaryActivity).getLastWindowCreateTime(); in testAdjacentFocusInActivityEmbedding()
691 verify(mWm).moveFocusToActivity(eq(secondaryActivity)); in testAdjacentFocusInActivityEmbedding()