Home
last modified time | relevance | path

Searched refs:gravity (Results 1 – 25 of 57) 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 …]
DCircleView.java155 public CircleView setGravity(int gravity) { in setGravity() argument
156 if (mGravity != gravity) { in setGravity()
157 mGravity = gravity; in setGravity()
159 if (gravity != Gravity.NO_GRAVITY && isLayoutDirectionResolved()) { in setGravity()
160 applyGravity(gravity, getLayoutDirection()); in setGravity()
291 private void applyGravity(int gravity, int layoutDirection) { in applyGravity() argument
292 final int absoluteGravity = Gravity.getAbsoluteGravity(gravity, layoutDirection); in applyGravity()
/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.java68 int gravity = a.getInt(R.styleable.UsageView_android_gravity, 0); in UsageView() local
69 if (gravity == Gravity.END) { in UsageView()
82 } else if (gravity != Gravity.START) { in UsageView()
83 throw new IllegalArgumentException("Unsupported gravity " + gravity); in UsageView()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/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.java68 int gravity = a.getInt(R.styleable.UsageView_android_gravity, 0); in UsageView() local
69 if (gravity == Gravity.END) { in UsageView()
82 } else if (gravity != Gravity.START) { in UsageView()
83 throw new IllegalArgumentException("Unsupported gravity " + gravity); in UsageView()
/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/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/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/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.java165 params.gravity = Gravity.BOTTOM | Gravity.LEFT; in layoutHvacUi()
302 String windowTitle, int windowHeight, int gravity) { in createTemperatureBarOverlay() argument
304 windowTitle, windowHeight, gravity); in createTemperatureBarOverlay()
315 int windowHeight, int gravity) { in createTemperatureBarLayoutParams() argument
329 lp.gravity = gravity; in createTemperatureBarLayoutParams()
/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/src/com/android/launcher3/
DHotseat.java88 lp.gravity = Gravity.LEFT; in setInsets()
91 lp.gravity = Gravity.RIGHT; in setInsets()
95 lp.gravity = Gravity.BOTTOM; in setInsets()
DDropTargetBar.java95 lp.gravity = grid.isSeascape() ? Gravity.RIGHT : Gravity.LEFT; in setInsets()
113 lp.gravity = Gravity.CENTER_HORIZONTAL | Gravity.TOP; in setInsets()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DIccLockSettings.java500 final int gravity = Gravity.getAbsoluteGravity( in createCustomTextToast() local
504 params.gravity = gravity; in createCustomTextToast()
505 if ((gravity & Gravity.HORIZONTAL_GRAVITY_MASK) == Gravity.FILL_HORIZONTAL) { in createCustomTextToast()
508 if ((gravity & Gravity.VERTICAL_GRAVITY_MASK) == Gravity.FILL_VERTICAL) { in createCustomTextToast()
/packages/apps/Settings/src/com/android/settings/
DIccLockSettings.java557 final int gravity = Gravity.getAbsoluteGravity( in createCustomTextToast() local
561 params.gravity = gravity; in createCustomTextToast()
562 if ((gravity & Gravity.HORIZONTAL_GRAVITY_MASK) == Gravity.FILL_HORIZONTAL) { in createCustomTextToast()
565 if ((gravity & Gravity.VERTICAL_GRAVITY_MASK) == Gravity.FILL_VERTICAL) { in createCustomTextToast()
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
DDragLayer.java641 int gravity = lp.gravity; in onLayout() local
642 if (gravity == -1) { in onLayout()
643 gravity = Gravity.TOP | Gravity.START; in onLayout()
648 int absoluteGravity = Gravity.getAbsoluteGravity(gravity, layoutDirection); in onLayout()
/packages/apps/Launcher3/src/com/android/launcher3/popup/
DArrowPopup.java323 arrowLp.gravity = lp.gravity = Gravity.BOTTOM; in orientAboutObject()
327 arrowLp.gravity = lp.gravity = Gravity.TOP; in orientAboutObject()
/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()
DExpiredTimersActivity.java226 lp.gravity = Gravity.CENTER; in centerFirstTimer()
236 lp.gravity = Gravity.NO_GRAVITY; in uncenterFirstTimer()
/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()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/display/
DConversationMessageView.java204 final int gravity = mIncoming ? (Gravity.START | Gravity.CENTER_VERTICAL) : in updateViewAppearance() local
236 mMessageBubble.setGravity(gravity); in updateViewAppearance()

123