Home
last modified time | relevance | path

Searched refs:gravity (Results 1 – 25 of 68) sorted by relevance

123

/packages/apps/Camera2/src/com/android/camera/ui/
DTopRightWeightedLayout.java104 int gravity = layoutParams.gravity; in fixGravityAndPadding() local
107 if ((gravity & Gravity.LEFT) != 0) { // if gravity left is set . . . in fixGravityAndPadding()
108 gravity &= ~Gravity.LEFT; // unset left in fixGravityAndPadding()
109 gravity |= Gravity.BOTTOM; // and set bottom in fixGravityAndPadding()
112 if ((gravity & Gravity.BOTTOM) != 0) { // etc in fixGravityAndPadding()
113 gravity &= ~Gravity.BOTTOM; in fixGravityAndPadding()
114 gravity |= Gravity.LEFT; in fixGravityAndPadding()
119 if ((gravity & Gravity.RIGHT) != 0) { in fixGravityAndPadding()
120 gravity &= ~Gravity.RIGHT; in fixGravityAndPadding()
121 gravity |= Gravity.TOP; in fixGravityAndPadding()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/widget/
DCircleView.kt44 var gravity: Int variable
57 gravity = a.getInt(R.styleable.CircleView_android_gravity, Gravity.NO_GRAVITY)
70 if (gravity != Gravity.NO_GRAVITY) { in onRtlPropertiesChanged()
71 applyGravity(gravity, layoutDirection) in onRtlPropertiesChanged()
78 if (gravity != Gravity.NO_GRAVITY) { in onLayout()
79 applyGravity(gravity, layoutDirection) in onLayout()
106 fun setGravity(gravity: Int): CircleView { in setGravity()
107 if (this.gravity != gravity) { in setGravity()
108 this.gravity = gravity in setGravity()
110 if (gravity != Gravity.NO_GRAVITY && isLayoutDirectionResolved) { in setGravity()
[all …]
/packages/apps/Settings/src/com/android/settings/widget/
DMatchParentShrinkingLinearLayout.java1156 int gravity = lp.gravity; in layoutVertical() local
1157 if (gravity < 0) { in layoutVertical()
1158 gravity = minorGravity; in layoutVertical()
1161 final int absoluteGravity = Gravity.getAbsoluteGravity(gravity, layoutDirection); in layoutVertical()
1283 int gravity = lp.gravity; in layoutHorizontal() local
1284 if (gravity < 0) { in layoutHorizontal()
1285 gravity = minorGravity; in layoutHorizontal()
1288 switch (gravity & Gravity.VERTICAL_GRAVITY_MASK) { in layoutHorizontal()
1378 public void setGravity(int gravity) { in setGravity() argument
1379 if (mGravity != gravity) { in setGravity()
[all …]
DUsageView.java71 int gravity = a.getInt(R.styleable.UsageView_android_gravity, 0); in UsageView() local
72 if (gravity == Gravity.END) { in UsageView()
85 } else if (gravity != Gravity.START) { in UsageView()
86 throw new IllegalArgumentException("Unsupported gravity " + gravity); in UsageView()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/hvac/
DAnimatedTemperatureView.java65 static boolean isHorizontal(int gravity) { in isHorizontal() argument
66 return Gravity.isHorizontal(gravity) in isHorizontal()
67 && (gravity & Gravity.HORIZONTAL_GRAVITY_MASK) != Gravity.CENTER_HORIZONTAL; in isHorizontal()
71 static boolean isLeft(int gravity, int layoutDirection) { in isLeft() argument
73 .getAbsoluteGravity(gravity & Gravity.HORIZONTAL_GRAVITY_MASK, layoutDirection) in isLeft()
77 static boolean isVertical(int gravity) { in isVertical() argument
78 return Gravity.isVertical(gravity) in isVertical()
79 && (gravity & Gravity.VERTICAL_GRAVITY_MASK) != Gravity.CENTER_VERTICAL; in isVertical()
82 static boolean isTop(int gravity) { in isTop() argument
83 return (gravity & Gravity.VERTICAL_GRAVITY_MASK) == Gravity.TOP; in isTop()
DTemperatureBackgroundAnimator.java87 private void setupAnimations(int gravity, int pivotOffset, Rect paddingRect, in setupAnimations() argument
90 if (isHorizontal(gravity)) { in setupAnimations()
92 if (isLeft(gravity, mAnimatedView.getLayoutDirection())) { in setupAnimations()
101 } else if (isVertical(gravity)) { in setupAnimations()
103 if (isTop(gravity)) { in setupAnimations()
DTemperatureTextAnimator.java108 private void setupAnimations(int gravity) { in setupAnimations() argument
111 if (!isHorizontal(gravity)) { in setupAnimations()
117 boolean isLeft = isLeft(gravity, mTextSwitcher.getLayoutDirection()); in setupAnimations()
/packages/apps/Messaging/src/com/android/messaging/ui/
DListEmptyView.java64 int gravity = in setIsVerticallyCentered() local
66 ((LinearLayout.LayoutParams) mEmptyImageHint.getLayoutParams()).gravity = gravity; in setIsVerticallyCentered()
67 ((LinearLayout.LayoutParams) mEmptyTextHint.getLayoutParams()).gravity = gravity; in setIsVerticallyCentered()
/packages/apps/Launcher3/src/com/android/launcher3/views/
DArrowTipView.java135 public ArrowTipView show(String text, int gravity, int arrowMarginStart, int top) { in show() argument
141 params.gravity = gravity; in show()
143 lp.gravity = gravity; in show()
148 if (gravity == Gravity.END) { in show()
150 } else if (gravity == Gravity.START) { in show()
/packages/apps/LegacyCamera/src/com/android/camera/
DOnScreenHint.java144 final int gravity = mGravity; in handleShow() local
145 mParams.gravity = gravity; in handleShow()
146 if ((gravity & Gravity.HORIZONTAL_GRAVITY_MASK) in handleShow()
150 if ((gravity & Gravity.VERTICAL_GRAVITY_MASK) in handleShow()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DViewLayoutUtils.java78 if (params.gravity != layoutGravity) { in updateLayoutGravityOf()
79 params.gravity = layoutGravity; in updateLayoutGravityOf()
84 if (params.gravity != layoutGravity) { in updateLayoutGravityOf()
85 params.gravity = layoutGravity; in updateLayoutGravityOf()
/packages/apps/Car/Hvac/src/com/android/car/hvac/
DHvacUiService.java166 params.gravity = Gravity.BOTTOM | Gravity.LEFT; in layoutHvacUi()
305 String windowTitle, int windowHeight, int gravity) { in createTemperatureBarOverlay() argument
307 windowTitle, windowHeight, gravity); in createTemperatureBarOverlay()
318 int windowHeight, int gravity) { in createTemperatureBarLayoutParams() argument
332 lp.gravity = gravity; in createTemperatureBarLayoutParams()
/packages/apps/TV/tuner/src/com/android/tv/tuner/cc/
DCaptionWindowLayout.java382 int gravity = Gravity.CENTER; in initWindow() local
391 gravity = Gravity.LEFT; in initWindow()
423 gravity = Gravity.LEFT; in initWindow()
434 gravity = Gravity.CENTER_HORIZONTAL; in initWindow()
441 gravity = Gravity.RIGHT; in initWindow()
448 gravity |= Gravity.TOP; in initWindow()
452 gravity |= Gravity.CENTER_VERTICAL; in initWindow()
460 gravity |= Gravity.BOTTOM; in initWindow()
470 setGravity(gravity); in initWindow()
/packages/apps/Camera2/src/com/android/camera/widget/
DModeOptionsOverlay.java198 modeOptionsParams.gravity = Gravity.BOTTOM; in checkOrientation()
200 modeOptionsToggleParams.gravity = BOTTOM_RIGHT; in checkOrientation()
206 modeOptionsParams.gravity = Gravity.RIGHT; in checkOrientation()
208 modeOptionsToggleParams.gravity = TOP_RIGHT; in checkOrientation()
/packages/apps/Contacts/src/com/android/contacts/widget/
DInterpolatingLayout.java291 int gravity = params.gravity; in onLayout() local
292 if (gravity == -1) { in onLayout()
293 gravity = Gravity.START | Gravity.TOP; in onLayout()
311 Gravity.apply(gravity, child.getMeasuredWidth(), child.getMeasuredHeight(), in onLayout()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DBaseActivityInterface.java225 int gravity = Gravity.CENTER_VERTICAL; in calculateTaskSize() local
226 gravity |= orientedState.getRecentsRtlSetting(res) ? Gravity.RIGHT : Gravity.LEFT; in calculateTaskSize()
227 Gravity.apply(gravity, outWidth, outHeight, gridRect, outRect); in calculateTaskSize()
332 int gravity = Gravity.TOP; in calculateGridTaskSize() local
333 gravity |= orientedState.getRecentsRtlSetting(res) ? Gravity.RIGHT : Gravity.LEFT; in calculateGridTaskSize()
335 Gravity.apply(gravity, outWidth, outHeight, gridRect, outRect); in calculateGridTaskSize()
/packages/apps/Launcher3/src/com/android/launcher3/
DHotseat.java106 lp.gravity = Gravity.LEFT; in setInsets()
109 lp.gravity = Gravity.RIGHT; in setInsets()
114 lp.gravity = Gravity.BOTTOM; in setInsets()
DDropTargetBar.java96 lp.gravity = grid.isSeascape() ? Gravity.RIGHT : Gravity.LEFT; in setInsets()
115 lp.gravity = Gravity.CENTER_HORIZONTAL | Gravity.TOP; in setInsets()
/packages/apps/Settings/src/com/android/settings/
DIccLockSettings.java593 final int gravity = Gravity.getAbsoluteGravity( in createCustomTextToast() local
597 params.gravity = gravity; in createCustomTextToast()
598 if ((gravity & Gravity.HORIZONTAL_GRAVITY_MASK) == Gravity.FILL_HORIZONTAL) { in createCustomTextToast()
601 if ((gravity & Gravity.VERTICAL_GRAVITY_MASK) == Gravity.FILL_VERTICAL) { in createCustomTextToast()
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/appstyledview/
DAppStyledViewControllerImpl.java83 params.gravity = Gravity.START; in getDialogWindowLayoutParam()
100 params.gravity = Gravity.TOP | Gravity.START; in getDialogWindowLayoutParam()
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
DAllAppsBackgroundDrawable.java55 int gravity) { in TransformedImageDrawable() argument
59 mGravity = gravity; in TransformedImageDrawable()
/packages/apps/DeskClock/src/com/android/deskclock/timer/
DExpiredTimersActivity.kt213 lp.gravity = Gravity.CENTER in centerFirstTimer()
222 lp.gravity = Gravity.NO_GRAVITY in uncenterFirstTimer()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/
DSplitSelectStateController.java139 params.gravity = topLeftPosition ? Gravity.START : Gravity.END; in getLayoutParamsForActivePosition()
142 params.gravity = Gravity.TOP; in getLayoutParamsForActivePosition()
/packages/apps/Launcher3/src/com/android/launcher3/popup/
DArrowPopup.java650 arrowLp.gravity = lp.gravity = Gravity.BOTTOM; in orientAboutObject()
656 arrowLp.gravity = lp.gravity = Gravity.TOP; in orientAboutObject()
/packages/apps/TV/src/com/android/tv/ui/
DTvViewUiManager.java401 lp.gravity = startValue.gravity; in setTvViewPosition()
537 0, 0, ((FrameLayout.LayoutParams) mTvView.getTvViewLayoutParams()).gravity); in applyDisplayMode()

123