Searched refs:primaryActivity (Results 1 – 5 of 5) sorted by relevance
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | WindowFocusTests.java | 137 final PrimaryActivity primaryActivity = startActivity(PrimaryActivity.class, in testKeyReceiving() local 139 sendAndAssertTargetConsumedKey(primaryActivity, KEYCODE_0, INVALID_DISPLAY); in testKeyReceiving() 140 sendAndAssertTargetConsumedKey(primaryActivity, KEYCODE_1, DEFAULT_DISPLAY); in testKeyReceiving() 154 primaryActivity.assertWindowFocusState(true /* hasFocus */); in testKeyReceiving() 155 sendAndAssertTargetConsumedKey(primaryActivity, KEYCODE_4, DEFAULT_DISPLAY); in testKeyReceiving() 157 primaryActivity.waitAndAssertWindowFocusState(false /* hasFocus */); in testKeyReceiving() 168 tapOn(primaryActivity); in testKeyReceiving() 182 sendAndAssertTargetConsumedKey(primaryActivity, KEYCODE_8, INVALID_DISPLAY); in testKeyReceiving() 193 final PrimaryActivity primaryActivity = startActivity(PrimaryActivity.class, in testMovingDisplayToTopByKeyEvent() local 199 sendAndAssertTargetConsumedKey(primaryActivity, KEYCODE_0, DEFAULT_DISPLAY); in testMovingDisplayToTopByKeyEvent() [all …]
|
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/ |
D | ActivityEmbeddingLaunchTests.java | 71 Activity primaryActivity = startActivityNewTask(TestConfigChangeHandlingActivity.class); in testSplitWithPrimaryActivity() local 75 activityActivityPair -> primaryActivity.equals(activityActivityPair.first); in testSplitWithPrimaryActivity() 90 Activity secondaryActivity = startActivityAndVerifySplit(primaryActivity, in testSplitWithPrimaryActivity() 104 assertEquals(primaryActivity, getPrimaryStackTopActivity(splitInfo)); in testSplitWithPrimaryActivity() 119 assertValidSplit(primaryActivity, newSecondaryActivity, splitPairRule); in testSplitWithPrimaryActivity() 130 Activity primaryActivity = startActivityNewTask(TestConfigChangeHandlingActivity.class); in testPrimaryActivityLaunchToSideClearTop() local 135 Activity secondaryActivity = startActivityAndVerifySplit(primaryActivity, in testPrimaryActivityLaunchToSideClearTop() 146 secondaryActivity = startActivityAndVerifySplit(primaryActivity, in testPrimaryActivityLaunchToSideClearTop() 173 Activity primaryActivity = startActivityNewTask(TestConfigChangeHandlingActivity.class); in testSplitWithTopmostActivity() local 174 Activity nextPrimaryActivity = startActivityAndVerifySplit(primaryActivity, in testSplitWithTopmostActivity() [all …]
|
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/utils/ |
D | ActivityEmbeddingUtil.java | 124 public static Activity startActivityAndVerifySplit(@NonNull Activity primaryActivity, in startActivityAndVerifySplit() argument 128 return startActivityAndVerifySplit(primaryActivity /* activityLaunchingFrom */, in startActivityAndVerifySplit() 129 primaryActivity, secondActivityClass, splitPairRule, secondActivityId, in startActivityAndVerifySplit() 133 public static Activity startActivityAndVerifySplit(@NonNull Activity primaryActivity, in startActivityAndVerifySplit() argument 137 return startActivityAndVerifySplit(primaryActivity, secondActivityClass, splitPairRule, in startActivityAndVerifySplit() 143 @NonNull Activity primaryActivity, @NonNull String secondaryClassId) { in getSecondActivity() argument 153 if (primaryActivity.equals(primaryContainerTopActivity)) { in getSecondActivity() 166 public static void assertValidSplit(@NonNull Activity primaryActivity, in assertValidSplit() argument 168 waitForResumed(Arrays.asList(primaryActivity, secondaryActivity)); in assertValidSplit() 173 layoutDir = primaryActivity.getResources().getConfiguration().getLayoutDirection(); in assertValidSplit() [all …]
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/lifecycle/ |
D | ActivityLifecycleClientTestBase.java | 797 void moveTaskToPrimarySplitScreenAndVerify(Activity primaryActivity, in moveTaskToPrimarySplitScreenAndVerify() argument 802 moveActivitiesToSplitScreen(primaryActivity.getComponentName(), in moveTaskToPrimarySplitScreenAndVerify() 805 final Class<? extends Activity> activityClass = primaryActivity.getClass(); in moveTaskToPrimarySplitScreenAndVerify()
|
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/ |
D | ActivityManagerTestBase.java | 906 protected void launchActivitiesInSplitScreen(LaunchActivityBuilder primaryActivity, in launchActivitiesInSplitScreen() argument 909 primaryActivity in launchActivitiesInSplitScreen() 915 primaryActivity.mTargetActivity).mTaskId; in launchActivitiesInSplitScreen() 929 mWmState.computeState(primaryActivity.getTargetActivity(), in launchActivitiesInSplitScreen() 939 protected void moveActivitiesToSplitScreen(ComponentName primaryActivity, in moveActivitiesToSplitScreen() argument 941 final int primaryTaskId = mWmState.getTaskByActivity(primaryActivity).mTaskId; in moveActivitiesToSplitScreen() 947 mWmState.computeState(primaryActivity, secondaryActivity); in moveActivitiesToSplitScreen()
|