/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/embedding/ |
D | ActivityEmbeddingFocusTests.java | 82 final TestFocusActivity secondaryActivity = activityPair.second; in testMoveFocusToAdjacentWindow_tab() local 86 for (int i = 0; i < secondaryActivity.getFocusableViewCount(); i++) { in testMoveFocusToAdjacentWindow_tab() 93 secondaryActivity.resetFocusCounter(); in testMoveFocusToAdjacentWindow_tab() 97 secondaryActivity.waitForFocus(); in testMoveFocusToAdjacentWindow_tab() 98 assertTrue("secondaryActivity must be focused.", secondaryActivity.hasWindowFocus()); in testMoveFocusToAdjacentWindow_tab() 112 final TestFocusActivity secondaryActivity = activityPair.second; in testMoveFocusToAdjacentWindow_backTab() local 116 for (int i = 0; i < secondaryActivity.getFocusableViewCount(); i++) { in testMoveFocusToAdjacentWindow_backTab() 123 secondaryActivity.resetFocusCounter(); in testMoveFocusToAdjacentWindow_backTab() 127 secondaryActivity.waitForFocus(); in testMoveFocusToAdjacentWindow_backTab() 128 assertTrue("secondaryActivity must be focused.", secondaryActivity.hasWindowFocus()); in testMoveFocusToAdjacentWindow_backTab() [all …]
|
D | ActivityEmbeddingLifecycleTests.java | 165 Activity secondaryActivity = startActivityAndVerifySplitAttributes(primaryActivity, in testSecondaryActivityLaunch_multiSplit() local 180 Activity secondaryActivity2 = startActivityAndVerifySplitAttributes(secondaryActivity, in testSecondaryActivityLaunch_multiSplit() 191 waitAndAssertResumed(secondaryActivity); in testSecondaryActivityLaunch_multiSplit() 208 Activity secondaryActivity = startActivityAndVerifySplitAttributes(primaryActivity, in testSplitFinish_secondaryOnly() local 214 secondaryActivity.finish(); in testSplitFinish_secondaryOnly() 237 Activity secondaryActivity = startActivityAndVerifySplitAttributes(primaryActivity, in testSplitFinish_secondaryWithDependent() local 243 secondaryActivity.finish(); in testSplitFinish_secondaryWithDependent() 274 Activity secondaryActivity = startActivityAndVerifySplitAttributes(primaryActivity, in testSplitFinish_primaryOnly() local 283 waitAndAssertResumed(secondaryActivity); in testSplitFinish_primaryOnly() 336 Activity secondaryActivity = startActivityAndVerifySplitAttributes(primaryActivity, in testSplitFinish_lastMultiSplit() local [all …]
|
D | ActivityEmbeddingLaunchTests.java | 94 Activity secondaryActivity = startActivityAndVerifySplitAttributes(primaryActivity, in testSplitWithPrimaryActivity() local 100 secondaryActivities.add(secondaryActivity); in testSplitWithPrimaryActivity() 137 Activity secondaryActivity = startActivityAndVerifySplitAttributes(primaryActivity, in testPrimaryActivityLaunchToSideClearTop() local 147 prevSecondaryActivity = secondaryActivity; in testPrimaryActivityLaunchToSideClearTop() 148 secondaryActivity = startActivityAndVerifySplitAttributes(primaryActivity, in testPrimaryActivityLaunchToSideClearTop() 259 Activity secondaryActivity = startActivityAndVerifySplitAttributes(primaryActivity, in testAlwaysExpandOverSplit_launchFromPrimary() local 273 waitAndAssertResumed(Arrays.asList(primaryActivity, secondaryActivity)); in testAlwaysExpandOverSplit_launchFromPrimary() 274 assertValidSplit(primaryActivity, secondaryActivity, splitPairRule); in testAlwaysExpandOverSplit_launchFromPrimary() 301 Activity secondaryActivity = startActivityAndVerifySplitAttributes(primaryActivity, in testAlwaysExpandOverSplit_launchFromSecondary() local 306 startActivityFromActivity(secondaryActivity, TestActivityWithId.class, in testAlwaysExpandOverSplit_launchFromSecondary() [all …]
|
D | EmbeddedActivityWindowInfoTests.java | 112 final Activity secondaryActivity = startActivityAndVerifySplitAttributes(primaryActivity, in testGetEmbeddedActivityWindowInfo_embeddedActivity() local 120 .getEmbeddedActivityWindowInfo(secondaryActivity); in testGetEmbeddedActivityWindowInfo_embeddedActivity() 124 secondaryInfo, secondaryActivity, true /* isEmbedded */); in testGetEmbeddedActivityWindowInfo_embeddedActivity() 160 final Activity secondaryActivity = startActivityAndVerifySplitAttributes(primaryActivity, in testEmbeddedActivityWindowInfoCallback() local 168 .getLastReportedInfo(secondaryActivity); in testEmbeddedActivityWindowInfoCallback() 172 secondaryInfo, secondaryActivity, true /* isEmbedded */); in testEmbeddedActivityWindowInfoCallback() 178 secondaryActivity); in testEmbeddedActivityWindowInfoCallback() 179 secondaryActivity.finish(); in testEmbeddedActivityWindowInfoCallback() 187 .getLastReportedInfo(secondaryActivity); in testEmbeddedActivityWindowInfoCallback()
|
D | ActivityEmbeddingIntegrationTests.java | 102 Activity secondaryActivity = startActivityAndVerifySplitAttributes(primaryActivity, in testDisplayFeaturesWithEmbedding() local 107 WindowLayoutInfo newWindowLayoutInfo = getExtensionWindowLayoutInfo(secondaryActivity); in testDisplayFeaturesWithEmbedding() 113 secondaryActivity.finish(); in testDisplayFeaturesWithEmbedding() 171 TestActivityWithId secondaryActivity = getResumedActivityById(EMBEDDED_ACTIVITY_ID); in testDisplayFeaturesWithEmbedding_differentPackage() local 172 assertNotNull(secondaryActivity); in testDisplayFeaturesWithEmbedding_differentPackage() 173 assertTrue(mActivityEmbeddingComponent.isActivityEmbedded(secondaryActivity)); in testDisplayFeaturesWithEmbedding_differentPackage() 177 WindowLayoutInfo newWindowLayoutInfo = getExtensionWindowLayoutInfo(secondaryActivity); in testDisplayFeaturesWithEmbedding_differentPackage()
|
D | ActivityStackApisTests.java | 69 final Activity secondaryActivity = startActivityAndVerifySplitAttributes(primaryActivity, in testFinishActivityStacks_finishPrimary() local 72 final SplitInfo splitInfo = getSplitInfo(primaryActivity, secondaryActivity); in testFinishActivityStacks_finishPrimary() 78 waitAndAssertResumedAndFillsTask(secondaryActivity); in testFinishActivityStacks_finishPrimary() 93 final Activity secondaryActivity = startActivityAndVerifySplitAttributes(primaryActivity, in testFinishActivityStacks_finishSecondary() local 96 final SplitInfo splitInfo = getSplitInfo(primaryActivity, secondaryActivity); in testFinishActivityStacks_finishSecondary() 101 waitAndAssertFinishing(secondaryActivity); in testFinishActivityStacks_finishSecondary() 181 @NonNull Activity secondaryActivity) { in getSplitInfo() argument 187 .contains(secondaryActivity)) { in getSplitInfo()
|
D | PinActivityStackTests.java | 261 Activity secondaryActivity = startActivityAndVerifySplitAttributes(mPrimaryActivity, in testPinTopActivityStack_resizeStickyPin() local 265 pinExpandActivityAndResizeDisplay(secondaryActivity, true /* stickyPin */); in testPinTopActivityStack_resizeStickyPin() 268 waitAndAssertResumed(secondaryActivity); in testPinTopActivityStack_resizeStickyPin() 279 Activity secondaryActivity = startActivityAndVerifySplitAttributes(mPrimaryActivity, in testPinTopActivityStack_resizeNonStickyPin() local 283 pinExpandActivityAndResizeDisplay(secondaryActivity, false /* stickyPin */); in testPinTopActivityStack_resizeNonStickyPin() 287 waitAndAssertNotVisible(secondaryActivity); in testPinTopActivityStack_resizeNonStickyPin() 291 private void pinExpandActivityAndResizeDisplay(@NonNull Activity secondaryActivity, in pinExpandActivityAndResizeDisplay() argument 299 mPinnedActivity = startActivityAndVerifySplitAttributes(secondaryActivity, in pinExpandActivityAndResizeDisplay() 315 waitAndAssertResumed(secondaryActivity); in pinExpandActivityAndResizeDisplay() 326 waitAndAssertNotVisible(secondaryActivity); in pinExpandActivityAndResizeDisplay()
|
D | ActivityEmbeddingFinishTests.java | 77 TestActivity secondaryActivity = (TestActivity) startActivityAndVerifySplitAttributes( in testFinishPrimary() local 84 waitAndAssertResumedAndFillsTask(secondaryActivity); in testFinishPrimary() 102 TestActivity secondaryActivity = (TestActivity) startActivityAndVerifySplitAttributes( in testFinishSecondary() local 108 secondaryActivity.finish(); in testFinishSecondary() 355 TestActivity secondaryActivity; in start() local 357 secondaryActivity = startActivityAndVerifyNotSplit(primaryActivity); in start() 359 secondaryActivity = (TestActivity) startActivityAndVerifySplitAttributes( in start() 363 return new Pair<>(primaryActivity, secondaryActivity); in start()
|
D | ActivityEmbeddingBoundsTests.java | 98 final TestActivity secondaryActivity = (TestActivity) startActivityAndVerifySplitAttributes( in testParentWindowMetricsPredicate() local 112 waitAndAssertResumedAndFillsTask(secondaryActivity); in testParentWindowMetricsPredicate() 118 assertValidSplit(primaryActivity, secondaryActivity, splitPairRule); in testParentWindowMetricsPredicate()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/input/ |
D | WindowFocusTests.java | 161 final SecondaryActivity secondaryActivity = session.startActivityAndFocus(); in testKeyReceiving() local 162 sendAndAssertTargetConsumedKey(secondaryActivity, KEYCODE_2, INVALID_DISPLAY); in testKeyReceiving() 163 sendAndAssertTargetConsumedKey(secondaryActivity, KEYCODE_3, secondaryDisplayId); in testKeyReceiving() 175 secondaryActivity.assertAndConsumeKeyEvent(ACTION_DOWN, KEYCODE_5, 0 /* flags */); in testKeyReceiving() 176 secondaryActivity.assertAndConsumeKeyEvent(ACTION_DOWN, KEYCODE_6, 0 /* flags */); in testKeyReceiving() 177 secondaryActivity.assertAndConsumeKeyEvent(ACTION_DOWN, KEYCODE_7, 0 /* flags */); in testKeyReceiving() 184 secondaryActivity.waitAssertAndConsumeKeyEvent(ACTION_UP, KEYCODE_5, FLAG_CANCELED); in testKeyReceiving() 185 secondaryActivity.waitAssertAndConsumeKeyEvent(ACTION_UP, KEYCODE_7, FLAG_CANCELED); in testKeyReceiving() 187 secondaryActivity.waitAssertAndConsumeKeyEvent(ACTION_UP, KEYCODE_6, FLAG_CANCELED); in testKeyReceiving() 189 assertEquals(secondaryActivity.getLogTag() + " must only receive expected events", in testKeyReceiving() [all …]
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/activity/ |
D | ActivityCaptureCallbackTests.java | 81 final SecondaryActivity secondaryActivity = in testScreencaptureInvokeCallbackOnAllVisibleActivities() local 89 secondaryActivity.waitAndAssertCallbackInvokedOnActivity(); in testScreencaptureInvokeCallbackOnAllVisibleActivities() 99 final SecondaryActivity secondaryActivity = in testScreencaptureInvokeCallbackOnOneDisplay() local 106 secondaryActivity.waitAndAssertCallbackNotInvoked(); in testScreencaptureInvokeCallbackOnOneDisplay() 116 final SecondaryActivity secondaryActivity = in testScreencaptureInvokeCallbackOnRegisteredVisibleActivities() local 124 secondaryActivity.waitAndAssertCallbackInvokedOnActivity(); in testScreencaptureInvokeCallbackOnRegisteredVisibleActivities()
|
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/utils/ |
D | ActivityEmbeddingUtil.java | 175 final Activity secondaryActivity = getResumedActivityById(secondaryActivityId); in startActivityAndVerifySplitAttributes() local 177 assertSplitPairIsCorrect(expectedPrimaryActivity, secondaryActivity, splitAttributes, in startActivityAndVerifySplitAttributes() 181 return secondaryActivity; in startActivityAndVerifySplitAttributes() 185 @NonNull Activity secondaryActivity, @NonNull SplitAttributes splitAttributes, in assertSplitPairIsCorrect() argument 198 secondaryActivity, splitAttributes); in assertSplitPairIsCorrect() 199 assertValidSplit(expectedPrimaryActivity, secondaryActivity, splitAttributes); in assertSplitPairIsCorrect() 328 @Nullable Activity secondaryActivity, @NonNull SplitRule splitRule) { in assertValidSplit() argument 329 assertValidSplit(primaryActivity, secondaryActivity, splitRule.getDefaultSplitAttributes()); in assertValidSplit() 337 @Nullable Activity secondaryActivity, @NonNull SplitAttributes splitAttributes) { in assertValidSplit() argument 341 if (secondaryActivity == null) { in assertValidSplit() [all …]
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/activity/lifecycle/ |
D | ActivityLifecycleKeyguardTests.java | 108 final Activity secondaryActivity = launchActivityAndWait(SideActivity.class); in testKeyguardShowHideOverSplitScreen() local 112 moveTaskToPrimarySplitScreenAndVerify(firstActivity, secondaryActivity); in testKeyguardShowHideOverSplitScreen() 120 waitAndAssertActivityStates(state(secondaryActivity, ON_STOP)); in testKeyguardShowHideOverSplitScreen() 128 state(secondaryActivity, ON_RESUME)); in testKeyguardShowHideOverSplitScreen()
|
D | ActivityLifecycleClientTestBase.java | 633 Activity secondaryActivity) throws Exception { in moveTaskToPrimarySplitScreenAndVerify() argument 648 mWmState.computeState(secondaryActivity.getComponentName()); in moveTaskToPrimarySplitScreenAndVerify() 650 secondaryActivity.getComponentName()); in moveTaskToPrimarySplitScreenAndVerify()
|
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/ |
D | ActivityManagerTestBase.java | 1100 LaunchActivityBuilder secondaryActivity) { in launchActivitiesInSplitScreen() argument 1112 secondaryActivity in launchActivitiesInSplitScreen() 1120 secondaryActivity.mTargetActivity).mTaskId; in launchActivitiesInSplitScreen() 1123 secondaryActivity.getTargetActivity()); in launchActivitiesInSplitScreen() 1133 ComponentName secondaryActivity) { in moveActivitiesToSplitScreen() argument 1137 final int secondaryTaskId = mWmState.getTaskByActivity(secondaryActivity).mTaskId; in moveActivitiesToSplitScreen() 1140 mWmState.computeState(primaryActivity, secondaryActivity); in moveActivitiesToSplitScreen()
|