/frameworks/base/libs/WindowManager/Jetpack/tests/unittest/src/androidx/window/extensions/embedding/ |
D | EmbeddingTestUtils.java | 54 static final Rect TASK_BOUNDS = new Rect(0, 0, 600, 1200); field in EmbeddingTestUtils 74 (shouldSplitHorizontally ? TASK_BOUNDS.height() : TASK_BOUNDS.width()) in getSplitBounds() 79 TASK_BOUNDS.left, in getSplitBounds() 80 TASK_BOUNDS.top, in getSplitBounds() 81 TASK_BOUNDS.right, in getSplitBounds() 82 TASK_BOUNDS.top + dimension) in getSplitBounds() 84 TASK_BOUNDS.left, in getSplitBounds() 85 TASK_BOUNDS.top + dimension, in getSplitBounds() 86 TASK_BOUNDS.right, in getSplitBounds() 87 TASK_BOUNDS.bottom); in getSplitBounds() [all …]
|
D | SplitPresenterTest.java | 28 import static androidx.window.extensions.embedding.EmbeddingTestUtils.TASK_BOUNDS; 145 mActivity.getActivityToken(), TASK_BOUNDS, WINDOWING_MODE_MULTI_WINDOW); in testCreateTaskFragment() 147 assertTrue(container.areLastRequestedBoundsEqual(TASK_BOUNDS)); in testCreateTaskFragment() 156 mPresenter.resizeTaskFragment(mTransaction, container.getTaskFragmentToken(), TASK_BOUNDS); in testResizeTaskFragment() 158 assertTrue(container.areLastRequestedBoundsEqual(TASK_BOUNDS)); in testResizeTaskFragment() 159 verify(mTransaction).setRelativeBounds(any(), eq(TASK_BOUNDS)); in testResizeTaskFragment() 163 mPresenter.resizeTaskFragment(mTransaction, container.getTaskFragmentToken(), TASK_BOUNDS); in testResizeTaskFragment() 440 final Rect taskBounds = new Rect(TASK_BOUNDS); in testGetRelBoundsForPosition_splitVertically_isRelativeToParent() 642 TASK_BOUNDS.left, in testGetRelBoundsForPosition_useHingeSplitType() 643 TASK_BOUNDS.top, in testGetRelBoundsForPosition_useHingeSplitType() [all …]
|
D | OverlayPresentationTest.java | 25 import static androidx.window.extensions.embedding.EmbeddingTestUtils.TASK_BOUNDS; 156 activityConfig.windowConfiguration.setBounds(TASK_BOUNDS); in setUp() 157 activityConfig.windowConfiguration.setMaxBounds(TASK_BOUNDS); in setUp() 402 final Rect bounds = new Rect(TASK_BOUNDS); in testSanitizeBounds_notInTaskBounds_expandOverlay() 417 doReturn(new Rect(TASK_BOUNDS.left + TASK_BOUNDS.width() / 2, TASK_BOUNDS.top, in testSanitizeBounds_taskInSplitScreen() 418 TASK_BOUNDS.right, TASK_BOUNDS.bottom)).when(taskContainer).getBounds(); in testSanitizeBounds_taskInSplitScreen()
|
D | SplitControllerTest.java | 34 import static androidx.window.extensions.embedding.EmbeddingTestUtils.TASK_BOUNDS; 192 activityConfig.windowConfiguration.setBounds(TASK_BOUNDS); in setUp() 193 activityConfig.windowConfiguration.setMaxBounds(TASK_BOUNDS); in setUp() 255 assertEquals(TASK_BOUNDS, taskContainer.getTaskProperties().getConfiguration() in testNewContainer() 1236 new WindowMetrics(TASK_BOUNDS, WindowInsets.CONSUMED))); in testHasSamePresentation() 1251 new WindowMetrics(TASK_BOUNDS, WindowInsets.CONSUMED))); in testHasSamePresentation() 1780 .getWindowingModeForTaskFragment(TASK_BOUNDS); in registerSplitPair()
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/activityembedding/ |
D | ActivityEmbeddingControllerTests.java | 63 private static final Rect TASK_BOUNDS = new Rect(0, 0, 1000, 500); field in ActivityEmbeddingControllerTests 105 EMBEDDED_LEFT_BOUNDS, EMBEDDED_LEFT_BOUNDS, TASK_BOUNDS); in testStartAnimation_containsNonActivityEmbeddingChange() 122 nonEmbeddedClose.setEndAbsBounds(TASK_BOUNDS); in testStartAnimation_containsNonActivityEmbeddingChange() 124 EMBEDDED_RIGHT_BOUNDS, EMBEDDED_RIGHT_BOUNDS, TASK_BOUNDS); in testStartAnimation_containsNonActivityEmbeddingChange() 141 .addChange(createEmbeddedChange(TASK_BOUNDS, TASK_BOUNDS, TASK_BOUNDS)) in testStartAnimation_containsOnlyFillTaskActivityEmbeddingChange() 160 EMBEDDED_LEFT_BOUNDS, EMBEDDED_LEFT_BOUNDS, TASK_BOUNDS)) in testStartAnimation_containsActivityEmbeddingSplitChange() 177 .addChange(createEmbeddedChange(TASK_BOUNDS, EMBEDDED_LEFT_BOUNDS, TASK_BOUNDS)) in testStartAnimation_containsChangeEnterActivityEmbeddingSplit() 194 .addChange(createEmbeddedChange(EMBEDDED_RIGHT_BOUNDS, TASK_BOUNDS, TASK_BOUNDS)) in testStartAnimation_containsChangeExitActivityEmbeddingSplit() 210 .addChange(createEmbeddedChange(EMBEDDED_RIGHT_BOUNDS, TASK_BOUNDS, TASK_BOUNDS)) in testShouldAnimate_containsAnimationOptions_disableAnimOptionsPerChange() 230 .addChange(createEmbeddedChange(EMBEDDED_RIGHT_BOUNDS, TASK_BOUNDS, TASK_BOUNDS)) in testShouldAnimate_containsAnimationOptions_enableAnimOptionsPerChange() [all …]
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/windowdecor/ |
D | WindowDecorationTests.java | 103 private static final Rect TASK_BOUNDS = new Rect(100, 300, 400, 400); field in WindowDecorationTests 188 .setBounds(TASK_BOUNDS) in testLayoutResultCalculation_invisibleTask() 227 .setBounds(TASK_BOUNDS) in testLayoutResultCalculation_visibleFocusedTask() 299 .setBounds(TASK_BOUNDS) in testLayoutResultCalculation_visibleFocusedTaskToInvisible() 399 .setBounds(TASK_BOUNDS) in testAddViewHostViewContainer() 452 .setBounds(TASK_BOUNDS) in testLayoutResultCalculation_fullWidthCaption() 492 .setBounds(TASK_BOUNDS) in testRelayout_applyTransactionInSyncWithDraw() 781 .setBounds(TASK_BOUNDS) in testTaskPositionAndCropNotSetWhenFalse() 811 .setBounds(TASK_BOUNDS) in testTaskPositionAndCropSetWhenSetTrue()
|