Home
last modified time | relevance | path

Searched refs:onLeft (Results 1 – 10 of 10) sorted by relevance

/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/bubbles/
DBaseBubblePinController.kt42 private var onLeft = false in <lambda>() variable in com.android.wm.shell.common.bubbles.BaseBubblePinController
56 onLeft = initialLocationOnLeft in <lambda>()
65 val wasOnLeft = onLeft in <lambda>()
66 onLeft = x < screenCenterX in <lambda>()
67 if (wasOnLeft != onLeft) { in <lambda>()
68 onLocationChange(if (onLeft) LEFT else RIGHT) in <lambda>()
81 val shouldResetLocation = onLeft != initialLocationOnLeft in <lambda>()
83 onLeft = initialLocationOnLeft in <lambda>()
84 listener?.onChange(if (onLeft) LEFT else RIGHT) in <lambda>()
89 updateLocation(if (onLeft) LEFT else RIGHT) in <lambda>()
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/
DBadgedImageView.java149 public void showDotAndBadge(boolean onLeft) { in showDotAndBadge() argument
151 animateDotBadgePositions(onLeft); in showDotAndBadge()
154 public void hideDotAndBadge(boolean onLeft) { in hideDotAndBadge() argument
156 mBadgeOnLeft = onLeft; in hideDotAndBadge()
157 mDotOnLeft = onLeft; in hideDotAndBadge()
291 void animateDotBadgePositions(boolean onLeft) { in animateDotBadgePositions() argument
292 if (onLeft != getDotOnLeft()) { in animateDotBadgePositions()
295 mDotOnLeft = onLeft; in animateDotBadgePositions()
300 mDotOnLeft = onLeft; in animateDotBadgePositions()
303 mBadgeOnLeft = onLeft; in animateDotBadgePositions()
[all …]
DBubblePositioner.java359 public int[] getExpandedViewContainerPadding(boolean onLeft, boolean isOverflow) { in getExpandedViewContainerPadding() argument
369 paddings[0] = onLeft in getExpandedViewContainerPadding()
373 paddings[2] = onLeft in getExpandedViewContainerPadding()
383 if (!onLeft) { in getExpandedViewContainerPadding()
405 public int getTaskViewContentWidth(boolean onLeft) { in getTaskViewContentWidth() argument
406 int[] paddings = getExpandedViewContainerPadding(onLeft, /* isOverflow = */ false); in getTaskViewContentWidth()
577 x = state.onLeft in getExpandedBubbleXY()
924 public void getBubbleBarExpandedViewBounds(boolean onLeft, boolean isOverflowExpanded, in getBubbleBarExpandedViewBounds() argument
932 if (onLeft) { in getBubbleBarExpandedViewBounds()
DBubbleExpandedView.java1048 public void setPointerPosition(float bubblePosition, boolean onLeft, boolean animate) { in setPointerPosition() argument
1053 final float paddingLeft = (showVertically && onLeft) in setPointerPosition()
1056 final float paddingRight = (showVertically && !onLeft) in setPointerPosition()
1071 mCurrentPointer = showVertically ? onLeft ? mLeftPointer : mRightPointer : mTopPointer; in setPointerPosition()
1076 mPointerPos.x = onLeft in setPointerPosition()
1080 mPointerPos.x = onLeft in setPointerPosition()
DBubbleStackView.java868 final boolean onLeft = mStackAnimationController.isStackOnLeftSide();
870 onLeft ? velX < -FLYOUT_DISMISS_VELOCITY : velX > FLYOUT_DISMISS_VELOCITY;
872 onLeft
875 final boolean isCancelFling = onLeft ? velX > 0 : velX < 0;
2942 final boolean onLeft = mStackAnimationController.isStackOnLeftSide(); in setFlyoutStateForDragLength()
2946 onLeft ? -deltaX / mFlyout.getWidth() : deltaX / mFlyout.getWidth(); in setFlyoutStateForDragLength()
2959 (onLeft && collapsePercent > 1f) || (!onLeft && collapsePercent < 0f); in setFlyoutStateForDragLength()
3033 final boolean onLeft = mStackAnimationController.isStackOnLeftSide(); in animateFlyoutCollapsed()
3044 ? (onLeft ? -mFlyout.getWidth() : mFlyout.getWidth()) in animateFlyoutCollapsed()
3576 boolean onLeft = mPositioner.showBubblesVertically() && !mStackOnLeftOrWillBe;
[all …]
/frameworks/base/libs/WindowManager/Shell/multivalentTests/src/com/android/wm/shell/bubbles/
DBubblePositionerTest.kt578 testGetBubbleBarExpandedViewBounds(onLeft = true, isOverflow = false) in testGetBubbleBarExpandedViewBounds_onLeft()
583 testGetBubbleBarExpandedViewBounds(onLeft = false, isOverflow = false) in testGetBubbleBarExpandedViewBounds_onRight()
588 testGetBubbleBarExpandedViewBounds(onLeft = true, isOverflow = true) in testGetBubbleBarExpandedViewBounds_isOverflow_onLeft()
593 testGetBubbleBarExpandedViewBounds(onLeft = false, isOverflow = true) in testGetBubbleBarExpandedViewBounds_isOverflow_onRight()
596 private fun testGetBubbleBarExpandedViewBounds(onLeft: Boolean, isOverflow: Boolean) { in testGetBubbleBarExpandedViewBounds()
617 if (onLeft) { in testGetBubbleBarExpandedViewBounds()
634 positioner.getBubbleBarExpandedViewBounds(onLeft, isOverflow, bounds) in testGetBubbleBarExpandedViewBounds()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/bubbles/animation/
DExpandedAnimationControllerTest.java100 mStackViewState.onLeft = mPositioner.isStackOnLeft(mExpansionPoint); in getStackViewState()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/animation/
DExpandedAnimationController.java552 boolean onLeft = mPositioner.isStackOnLeft(mCollapsePoint); in onChildAdded()
567 float fromX = onLeft in onChildAdded()
DStackAnimationController.java421 final boolean onLeft = mLayout.isFirstChildXLeftOfCenter(stackPos.x);
424 stackPos.x = onLeft ? bounds.left : bounds.right;
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DNotificationMenuRow.java515 boolean onLeft = mTranslation > mIconPadding; in isMenuLocationChange()
517 if ((isMenuOnLeft() && onRight) || (!isMenuOnLeft() && onLeft)) { in isMenuLocationChange()