/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | TaskPositionerTests.java | 66 private TaskPositioner mPositioner; field in TaskPositionerTests 83 mPositioner = new TaskPositioner(mWm); in setUp() 84 mPositioner.register(mDisplayContent, win); in setUp() 118 mPositioner.mTask.setBounds(r); in testMoveWindow() 119 mPositioner.startDrag(false /* resizing */, false /* preserveOrientation */, left, top); in testMoveWindow() 122 mPositioner.notifyMoveLocked(left - MOUSE_DELTA_X, top - MOUSE_DELTA_Y); in testMoveWindow() 124 assertBoundsEquals(r, mPositioner.getWindowDragBounds()); in testMoveWindow() 127 mPositioner.notifyMoveLocked(left, top); in testMoveWindow() 129 assertBoundsEquals(r, mPositioner.getWindowDragBounds()); in testMoveWindow() 140 mPositioner.mTask.setBounds(r, true); in testBasicFreeWindowResizing() [all …]
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/bubbles/ |
D | BubbleOverflowTest.java | 45 private TestableBubblePositioner mPositioner; field in BubbleOverflowTest 59 mPositioner = new TestableBubblePositioner(mContext, in setUp() 61 when(mBubbleController.getPositioner()).thenReturn(mPositioner); in setUp() 64 mOverflow = new BubbleOverflow(mContext, mPositioner); in setUp() 71 mOverflow.initialize(mExpandedViewManager, mBubbleStackView, mPositioner); in test_initialize_forStack() 80 mOverflow.initializeForBubbleBar(mExpandedViewManager, mPositioner); in test_initialize_forBubbleBar() 88 mOverflow.initialize(mExpandedViewManager, mBubbleStackView, mPositioner); in test_cleanUpExpandedState()
|
D | BubbleFlyoutViewTest.java | 54 private BubblePositioner mPositioner; field in BubbleFlyoutViewTest 60 when(mPositioner.getBubbleSize()).thenReturn(60); in setUp() 66 mFlyout = new BubbleFlyoutView(getContext(), mPositioner); in setUp()
|
D | BubbleDataTest.java | 103 private TestableBubblePositioner mPositioner; field in BubbleDataTest 196 mPositioner = new TestableBubblePositioner(mContext, in setUp() 198 mBubbleData = new BubbleData(getContext(), mBubbleLogger, mPositioner, mEducationController, in setUp() 949 mPositioner.setMaxBubbles(5); in test_onMaxBubblesChanged_notExpanded() 958 mPositioner.setMaxBubbles(3); in test_onMaxBubblesChanged_notExpanded() 975 mPositioner.setMaxBubbles(5); in test_onMaxBubblesChanged_expanded() 984 mPositioner.setMaxBubbles(3); in test_onMaxBubblesChanged_expanded() 1199 mPositioner.setBubbleBarLocation(BubbleBarLocation.LEFT); in test_getInitialStateForBubbleBar_includesInitialBubblesAndPosition() 1214 mPositioner.setBubbleBarLocation(BubbleBarLocation.LEFT); in test_getInitialStateForBubbleBar_includesExpandedState()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/bar/ |
D | BubbleBarLayerView.java | 71 private final BubblePositioner mPositioner; field in BubbleBarLayerView 100 mPositioner = mBubbleController.getPositioner(); in BubbleBarLayerView() 103 this, mPositioner); in BubbleBarLayerView() 121 context, this, mPositioner); in BubbleBarLayerView() 142 mPositioner.update(DeviceConfig.create(mContext, Objects.requireNonNull(windowManager))); in onAttachedToWindow() 198 final int width = mPositioner.getExpandedViewWidthForBubbleBar(isOverflowExpanded); in showExpandedView() 199 final int height = mPositioner.getExpandedViewHeightForBubbleBar(isOverflowExpanded); in showExpandedView() 201 mExpandedView.setY(mPositioner.getExpandedViewBottomForBubbleBar() - height); in showExpandedView() 233 mPositioner, in showExpandedView() 252 mHandleTouchBounds.top -= mPositioner.getBubblePaddingTop(); in showExpandedView() [all …]
|
D | BubbleBarAnimationHelper.java | 94 private final BubblePositioner mPositioner; field in BubbleBarAnimationHelper 105 mPositioner = positioner; in BubbleBarAnimationHelper() 240 Rect availableRect = mPositioner.getAvailableRect(); in setScaleFromBubbleBar() 241 float pivotX = mPositioner.isBubbleBarOnLeft() ? availableRect.left : availableRect.right; in setScaleFromBubbleBar() 242 float pivotY = mPositioner.getBubbleBarTopOnScreen(); in setScaleFromBubbleBar() 290 int diffFromBottom = mPositioner.getScreenRect().bottom - location[1]; in animateDismiss() 481 final int padding = mPositioner.getBubbleBarExpandedViewPadding(); in getExpandedViewRestPosition() 483 if (mPositioner.isBubbleBarOnLeft()) { in getExpandedViewRestPosition() 484 point.x = mPositioner.getInsets().left + padding; in getExpandedViewRestPosition() 486 point.x = mPositioner.getAvailableRect().width() - size.getWidth() - padding; in getExpandedViewRestPosition() [all …]
|
D | BubbleBarExpandedView.java | 85 private BubblePositioner mPositioner; field in BubbleBarExpandedView 164 mPositioner = positioner; in initialize() 311 if (mPositioner.isImeVisible()) { in hideImeIfVisible()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/animation/ |
D | ExpandedAnimationController.java | 140 private BubblePositioner mPositioner; field in ExpandedAnimationController 156 mPositioner = positioner; in ExpandedAnimationController() 159 mCollapsePoint = mPositioner.getDefaultStartPosition(); in ExpandedAnimationController() 226 mBubbleSizePx = mPositioner.getBubbleSize(); in updateResources() 263 boolean showBubblesVertically = mPositioner.showBubblesVertically(); in startOrUpdatePathAnimation() 276 final PointF p = mPositioner.getExpandedBubbleXY(index, mBubbleStackView.getState()); in startOrUpdatePathAnimation() 422 final int expandedY = mPositioner.getExpandedViewYTopAligned(); in dragBubbleOut() 469 final PointF p = mPositioner.getExpandedBubbleXY(index, mBubbleStackView.getState()); 471 final float zTranslation = mPositioner.getZTranslation(index, 552 boolean onLeft = mPositioner.isStackOnLeft(mCollapsePoint); in onChildAdded() [all …]
|
D | StackAnimationController.java | 190 private BubblePositioner mPositioner; field in StackAnimationController 214 mPositioner.getAllowableStackPositionRegion(getBubbleCount()) 268 mPositioner = positioner; in StackAnimationController() 301 return mPositioner.isStackOnLeft(mStackPosition); in isStackOnLeftSide() 349 final RectF stackBounds = mPositioner.getAllowableStackPositionRegion(getBubbleCount()); in flingStackThenSpringToEdge() 422 final RectF bounds = mPositioner.getAllowableStackPositionRegion(getBubbleCount()); 433 pw.println(mPositioner.getRestingPosition().toString()); 461 final RectF bounds = mPositioner.getAllowableStackPositionRegion(getBubbleCount()); 487 mPositioner.setRestingPosition(mStackPosition); 522 final float maxBubbleY = mPositioner.getAllowableStackPositionRegion( [all …]
|
D | ExpandedViewAnimationControllerImpl.java | 89 private final BubblePositioner mPositioner; field in ExpandedViewAnimationControllerImpl 106 mPositioner = positioner; in ExpandedViewAnimationControllerImpl() 264 clip = mExpandedView.getContentBottomOnScreen() - mPositioner.getImeTop(); in animateForImeVisibilityChange()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/ |
D | BubbleStackView.java | 902 private BubblePositioner mPositioner; field in BubbleStackView 915 mPositioner = bubblePositioner; in BubbleStackView() 921 mBubbleElevation = mPositioner.getBubbleElevation(); in BubbleStackView() 940 this::animateShadows /* onStackAnimationFinished */, mPositioner); in BubbleStackView() 942 mExpandedAnimationController = new ExpandedAnimationController(mPositioner, in BubbleStackView() 946 new ExpandedViewAnimationControllerImpl(context, mPositioner); in BubbleStackView() 1039 mPositioner.update(DeviceConfig.create(mContext, mContext.getSystemService( in BubbleStackView() 1069 PointF p = mPositioner.getExpandedBubbleXY(getBubbleIndex(mExpandedBubble), in BubbleStackView() 1071 final float translationY = mPositioner.getExpandedViewY(mExpandedBubble, in BubbleStackView() 1072 mPositioner.showBubblesVertically() ? p.y : p.x); in BubbleStackView() [all …]
|
D | BubblesNavBarMotionEventHandler.java | 44 private final BubblePositioner mPositioner; field in BubblesNavBarMotionEventHandler 54 mPositioner = positioner; in BubblesNavBarMotionEventHandler() 115 if (mPositioner.getNavBarGestureZone().contains((int) ev.getX(), (int) ev.getY())) { in isInGestureRegion() 117 (int) ev.getX(), (int) ev.getY(), mPositioner.getNavBarGestureZone()); in isInGestureRegion()
|
D | BubblesNavBarGestureTracker.java | 44 private final BubblePositioner mPositioner; field in BubblesNavBarGestureTracker 53 mPositioner = positioner; in BubblesNavBarGestureTracker() 71 new BubblesNavBarMotionEventHandler(mContext, mPositioner, in start()
|
D | BadgedImageView.java | 84 private BubblePositioner mPositioner; field in BadgedImageView 134 final int bubbleSize = mPositioner.getBubbleSize(); in getOutline() 141 mPositioner = positioner; in initialize() 145 mDotRenderer = new DotRenderer(mPositioner.getBubbleSize(), in initialize() 242 mDotRenderer = new DotRenderer(mPositioner.getBubbleSize(), in drawDot()
|
D | BubbleOverflowContainerView.java | 67 private BubblePositioner mPositioner; field in BubbleOverflowContainerView 135 mPositioner = positioner; in initialize() 186 mPositioner); in updateOverflow() 293 private BubblePositioner mPositioner; field in BubbleOverflowAdapter 303 mPositioner = positioner; in BubbleOverflowAdapter() 328 return new ViewHolder(overflowView, mPositioner); in onCreateViewHolder()
|
D | BubbleExpandedView.java | 192 private BubblePositioner mPositioner; field in BubbleExpandedView 420 boolean isStackOnLeft = mPositioner.isStackOnLeft(mStackView.getStackPosition()); in getContentWidth() 421 return mPositioner.getTaskViewContentWidth(isStackOnLeft); in getContentWidth() 436 mPositioner = positioner; in initialize() 982 float desiredHeight = mPositioner.getExpandedViewHeight(mBubble); in updateHeight() 983 int maxHeight = mPositioner.getMaxExpandedViewHeight(mIsOverflow); in updateHeight() 1052 final boolean showVertically = mPositioner.showBubblesVertically(); in setPointerPosition() 1065 float pointerPosition = mPositioner.getPointerPosition(bubblePosition); in setPointerPosition() 1066 final float bubbleCenter = mPositioner.showBubblesVertically() in setPointerPosition() 1067 ? pointerPosition - mPositioner.getExpandedViewY(mBubble, bubblePosition) in setPointerPosition()
|
D | BubbleViewInfoTask.java | 75 private WeakReference<BubblePositioner> mPositioner; field in BubbleViewInfoTask 102 mPositioner = new WeakReference<>(positioner); in BubbleViewInfoTask() 119 mTaskViewFactory.get(), mPositioner.get(), mLayerView.get(), mIconFactory, in doInBackground() 123 mTaskViewFactory.get(), mPositioner.get(), mStackView.get(), mIconFactory, in doInBackground()
|
D | BubbleFlyoutView.java | 69 private BubblePositioner mPositioner; field in BubbleFlyoutView 164 mPositioner = positioner; in BubbleFlyoutView() 288 final int maxTextViewWidth = (int) mPositioner.getMaxFlyoutSize() - mFlyoutPadding * 2; in updateFlyoutMessage() 344 mBubbleSize = mPositioner.getBubbleSize(); in setupFlyoutStartingAsDot()
|
D | BubbleData.java | 195 private final BubblePositioner mPositioner; field in BubbleData 246 mPositioner = positioner; in BubbleData() 254 mMaxBubbles = mPositioner.getMaxBubbles(); in BubbleData() 264 initialState.bubbleBarLocation = mPositioner.getBubbleBarLocation(); in getInitialStateForBubbleBar() 281 mMaxBubbles = mPositioner.getMaxBubbles(); in onMaxBubblesChanged()
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/bubbles/animation/ |
D | ExpandedAnimationControllerTest.java | 60 private BubblePositioner mPositioner; field in ExpandedAnimationControllerTest 68 mPositioner = new BubblePositioner(getContext(), in setUp() 70 mPositioner.updateInternal(Configuration.ORIENTATION_PORTRAIT, in setUp() 76 mExpandedController = new ExpandedAnimationController(mPositioner, in setUp() 100 mStackViewState.onLeft = mPositioner.isStackOnLeft(mExpansionPoint); in getStackViewState() 178 PointF expectedPosition = mPositioner.getExpandedBubbleXY(i, in testBubblesInCorrectExpandedPositions()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/wmshell/ |
D | BubblesTest.java | 345 private TestableBubblePositioner mPositioner; field in BubblesTest 440 mPositioner = new TestableBubblePositioner(mContext, in setUp() 442 mPositioner.setMaxBubbles(5); in setUp() 443 mBubbleData = new BubbleData(mContext, mBubbleLogger, mPositioner, mEducationController, in setUp() 501 mPositioner, in setUp() 1368 mPositioner, in test_bubbleViewInfoGetPackageForUser() 2047 mPositioner.setIsLargeScreen(true); in registerBubbleBarListener_barDisabled_largeScreen_shouldBeIgnored() 2065 mPositioner.setIsLargeScreen(false); in registerBubbleBarListener_barEnabled_smallScreen_shouldBeIgnored() 2083 mPositioner.setIsLargeScreen(true); in registerBubbleBarListener_switchToBarAndBackToStack() 2115 mPositioner.setIsLargeScreen(true); in registerBubbleBarListener_switchToBarWhileExpanded() [all …]
|