Home
last modified time | relevance | path

Searched refs:Gravity (Results 1 – 25 of 190) sorted by relevance

12345678

/frameworks/base/core/java/android/transition/
DSidePropagation.java20 import android.view.Gravity;
36 private int mSide = Gravity.BOTTOM;
124 if (mSide == Gravity.START) { in distance()
126 side = isRtl ? Gravity.RIGHT : Gravity.LEFT; in distance()
127 } else if (mSide == Gravity.END) { in distance()
129 side = isRtl ? Gravity.LEFT : Gravity.RIGHT; in distance()
135 case Gravity.LEFT: in distance()
138 case Gravity.TOP: in distance()
141 case Gravity.RIGHT: in distance()
144 case Gravity.BOTTOM: in distance()
[all …]
DSlide.java24 import android.view.Gravity;
50 private @GravityFlag int mSlideEdge = Gravity.BOTTOM;
55 @IntDef({Gravity.LEFT, Gravity.TOP, Gravity.RIGHT, Gravity.BOTTOM, Gravity.START, Gravity.END})
144 setSlideEdge(Gravity.BOTTOM); in Slide()
157 int edge = a.getInt(R.styleable.Slide_slideEdge, Gravity.BOTTOM); in Slide()
192 case Gravity.LEFT: in setSlideEdge()
195 case Gravity.TOP: in setSlideEdge()
198 case Gravity.RIGHT: in setSlideEdge()
201 case Gravity.BOTTOM: in setSlideEdge()
204 case Gravity.START: in setSlideEdge()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DHardwareUiLayout.java28 import android.view.Gravity;
289 final int absoluteGravity = Gravity.getAbsoluteGravity(gravity, layoutDirection); in rotateGravityRight()
290 final int verticalGravity = gravity & Gravity.VERTICAL_GRAVITY_MASK; in rotateGravityRight()
292 switch (absoluteGravity & Gravity.HORIZONTAL_GRAVITY_MASK) { in rotateGravityRight()
293 case Gravity.CENTER_HORIZONTAL: in rotateGravityRight()
294 retGravity |= Gravity.CENTER_VERTICAL; in rotateGravityRight()
296 case Gravity.RIGHT: in rotateGravityRight()
297 retGravity |= Gravity.BOTTOM; in rotateGravityRight()
299 case Gravity.LEFT: in rotateGravityRight()
301 retGravity |= Gravity.TOP; in rotateGravityRight()
[all …]
DScreenDecorations.java64 import android.view.Gravity;
602 updateView(topLeft, Gravity.TOP | Gravity.LEFT, 0); in updateViews()
603 updateView(topRight, Gravity.TOP | Gravity.RIGHT, 90); in updateViews()
604 updateView(bottomLeft, Gravity.BOTTOM | Gravity.LEFT, 270); in updateViews()
605 updateView(bottomRight, Gravity.BOTTOM | Gravity.RIGHT, 180); in updateViews()
607 updateView(topLeft, Gravity.TOP | Gravity.LEFT, 0); in updateViews()
608 updateView(topRight, Gravity.BOTTOM | Gravity.LEFT, 270); in updateViews()
609 updateView(bottomLeft, Gravity.TOP | Gravity.RIGHT, 90); in updateViews()
610 updateView(bottomRight, Gravity.BOTTOM | Gravity.RIGHT, 180); in updateViews()
612 updateView(topLeft, Gravity.BOTTOM | Gravity.LEFT, 270); in updateViews()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/globalactions/
DGlobalActionsColumnLayout.java25 import android.view.Gravity;
88 setGravity(Gravity.LEFT | Gravity.TOP); in snapToPowerButton()
92 setGravity(Gravity.RIGHT | Gravity.BOTTOM); in snapToPowerButton()
96 setGravity(Gravity.TOP | Gravity.RIGHT); in snapToPowerButton()
109 setGravity(Gravity.CENTER_HORIZONTAL | Gravity.TOP); in centerAlongEdge()
113 setGravity(Gravity.CENTER_HORIZONTAL | Gravity.BOTTOM); in centerAlongEdge()
117 setGravity(Gravity.CENTER_VERTICAL | Gravity.RIGHT); in centerAlongEdge()
/frameworks/base/core/java/android/widget/
DLinearLayout.java29 import android.view.Gravity;
164 @ViewDebug.FlagToString(mask = Gravity.NO_GRAVITY,
165 equals = Gravity.NO_GRAVITY,name = "NONE"),
166 @ViewDebug.FlagToString(mask = Gravity.TOP,
167 equals = Gravity.TOP, name = "TOP"),
168 @ViewDebug.FlagToString(mask = Gravity.BOTTOM,
169 equals = Gravity.BOTTOM, name = "BOTTOM"),
170 @ViewDebug.FlagToString(mask = Gravity.LEFT,
171 equals = Gravity.LEFT, name = "LEFT"),
172 @ViewDebug.FlagToString(mask = Gravity.RIGHT,
[all …]
DFrameLayout.java29 import android.view.Gravity;
60 private static final int DEFAULT_CHILD_GRAVITY = Gravity.TOP | Gravity.START;
129 if (getForegroundGravity() == Gravity.FILL && foreground != null) { in setForegroundGravity()
299 final int absoluteGravity = Gravity.getAbsoluteGravity(gravity, layoutDirection); in layoutChildren()
300 final int verticalGravity = gravity & Gravity.VERTICAL_GRAVITY_MASK; in layoutChildren()
302 switch (absoluteGravity & Gravity.HORIZONTAL_GRAVITY_MASK) { in layoutChildren()
303 case Gravity.CENTER_HORIZONTAL: in layoutChildren()
307 case Gravity.RIGHT: in layoutChildren()
312 case Gravity.LEFT: in layoutChildren()
318 case Gravity.TOP: in layoutChildren()
[all …]
/frameworks/base/core/java/android/app/
DActionBar.java32 import android.view.Gravity;
1364 @ViewDebug.IntToString(from = Gravity.NO_GRAVITY, to = "NONE"),
1365 @ViewDebug.IntToString(from = Gravity.TOP, to = "TOP"),
1366 @ViewDebug.IntToString(from = Gravity.BOTTOM, to = "BOTTOM"),
1367 @ViewDebug.IntToString(from = Gravity.LEFT, to = "LEFT"),
1368 @ViewDebug.IntToString(from = Gravity.RIGHT, to = "RIGHT"),
1369 @ViewDebug.IntToString(from = Gravity.START, to = "START"),
1370 @ViewDebug.IntToString(from = Gravity.END, to = "END"),
1371 @ViewDebug.IntToString(from = Gravity.CENTER_VERTICAL, to = "CENTER_VERTICAL"),
1372 @ViewDebug.IntToString(from = Gravity.FILL_VERTICAL, to = "FILL_VERTICAL"),
[all …]
/frameworks/base/tests/GridLayoutTest/src/com/android/test/layout/
DAbstractLayoutTest.java27 import static android.view.Gravity.BOTTOM;
28 import static android.view.Gravity.CENTER;
29 import static android.view.Gravity.FILL;
30 import static android.view.Gravity.LEFT;
31 import static android.view.Gravity.NO_GRAVITY;
32 import static android.view.Gravity.RIGHT;
33 import static android.view.Gravity.TOP;
DLayoutInsetsTest.java7 import android.view.Gravity;
17 …static int[] GRAVITIES = {Gravity.LEFT, Gravity.LEFT, Gravity.CENTER_HORIZONTAL, Gravity.RIGHT, Gr…
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DDisplayCutoutView.java28 import android.view.Gravity;
117 case Gravity.TOP: in boundsFromDirection()
122 case Gravity.LEFT: in boundsFromDirection()
127 case Gravity.BOTTOM: in boundsFromDirection()
132 case Gravity.RIGHT: in boundsFromDirection()
146 boundsFromDirection(displayCutout, Gravity.LEFT, out); in localBounds()
148 boundsFromDirection(displayCutout, Gravity.TOP, out); in localBounds()
152 boundsFromDirection(displayCutout, Gravity.RIGHT, out); in localBounds()
154 boundsFromDirection(displayCutout, Gravity.BOTTOM, out); in localBounds()
/frameworks/base/packages/CarSystemUI/src/com/android/systemui/statusbar/hvac/
DAnimatedTemperatureView.java28 import android.view.Gravity;
67 return Gravity.isHorizontal(gravity) in isHorizontal()
68 && (gravity & Gravity.HORIZONTAL_GRAVITY_MASK) != Gravity.CENTER_HORIZONTAL; in isHorizontal()
73 return Gravity in isLeft()
74 .getAbsoluteGravity(gravity & Gravity.HORIZONTAL_GRAVITY_MASK, layoutDirection) in isLeft()
75 == Gravity.LEFT; in isLeft()
79 return Gravity.isVertical(gravity) in isVertical()
80 && (gravity & Gravity.VERTICAL_GRAVITY_MASK) != Gravity.CENTER_VERTICAL; in isVertical()
84 return (gravity & Gravity.VERTICAL_GRAVITY_MASK) == Gravity.TOP; in isTop()
114 Gravity.START); in AnimatedTemperatureView()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DFloatingRotationButton.java25 import android.view.Gravity;
89 lp.gravity = Gravity.BOTTOM | Gravity.LEFT; in show()
92 lp.gravity = Gravity.BOTTOM | Gravity.RIGHT; in show()
95 lp.gravity = Gravity.TOP | Gravity.RIGHT; in show()
98 lp.gravity = Gravity.TOP | Gravity.LEFT; in show()
DReverseLinearLayout.java20 import android.view.Gravity;
139 private int mDefaultGravity = Gravity.NO_GRAVITY;
146 if (mDefaultGravity != Gravity.TOP && mDefaultGravity != Gravity.BOTTOM) return; in updateGravity()
151 gravityToApply = mDefaultGravity == Gravity.TOP ? Gravity.BOTTOM : Gravity.TOP; in updateGravity()
/frameworks/base/services/core/java/com/android/server/wm/utils/
DWmDisplayCutout.java22 import android.view.Gravity;
119 int topInset = findInsetForSide(displaySize, boundingRects, Gravity.TOP); in computeSafeInsets()
120 int bottomInset = findInsetForSide(displaySize, boundingRects, Gravity.BOTTOM); in computeSafeInsets()
126 int leftInset = findInsetForSide(displaySize, boundingRects, Gravity.LEFT); in computeSafeInsets()
127 int right = findInsetForSide(displaySize, boundingRects, Gravity.RIGHT); in computeSafeInsets()
141 case Gravity.TOP: in findInsetForSide()
146 case Gravity.BOTTOM: in findInsetForSide()
151 case Gravity.LEFT: in findInsetForSide()
156 case Gravity.RIGHT: in findInsetForSide()
/frameworks/base/core/java/com/android/internal/policy/
DPipSnapAlgorithm.java26 import android.view.Gravity;
216 Gravity.apply(mSnapGravities.get(i), stackBounds.width(), stackBounds.height(), in findClosestSnapBounds()
237 Gravity.apply(mSnapGravities.get(i), stackBounds.width(), stackBounds.height(), in findClosestSnapBounds()
444 mSnapGravities.add(Gravity.TOP | Gravity.CENTER_HORIZONTAL); in calculateSnapTargets()
445 mSnapGravities.add(Gravity.BOTTOM | Gravity.CENTER_HORIZONTAL); in calculateSnapTargets()
447 mSnapGravities.add(Gravity.CENTER_VERTICAL | Gravity.LEFT); in calculateSnapTargets()
448 mSnapGravities.add(Gravity.CENTER_VERTICAL | Gravity.RIGHT); in calculateSnapTargets()
454 mSnapGravities.add(Gravity.TOP | Gravity.LEFT); in calculateSnapTargets()
455 mSnapGravities.add(Gravity.TOP | Gravity.RIGHT); in calculateSnapTargets()
456 mSnapGravities.add(Gravity.BOTTOM | Gravity.LEFT); in calculateSnapTargets()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/listview/touch/
DListTouchBottomGravityManyTest.java21 import android.view.Gravity;
105 TouchUtils.dragViewBy(this, firstChild, Gravity.BOTTOM | Gravity.CENTER_HORIZONTAL, in testNoScroll()
127 TouchUtils.dragViewBy(this, firstChild, Gravity.BOTTOM | Gravity.CENTER_HORIZONTAL, in testShortScroll()
148 Gravity.BOTTOM | Gravity.CENTER_HORIZONTAL, 0, in testLongScroll()
DListOfTouchablesTest.java21 import android.view.Gravity;
62 TouchUtils.dragViewBy(this, lastChild, Gravity.TOP | Gravity.LEFT, in testShortScroll()
79 Gravity.TOP | Gravity.LEFT, mListView.getTop()); in testLongScroll()
DListTouchManyTest.java21 import android.view.Gravity;
153 TouchUtils.dragViewBy(this, lastChild, Gravity.TOP | Gravity.LEFT, in testNoScroll()
170 TouchUtils.dragViewBy(this, lastChild, Gravity.TOP | Gravity.LEFT, in testShortScroll()
187 Gravity.TOP | Gravity.LEFT, mListView.getTop()); in testLongScroll()
/frameworks/base/core/tests/coretests/src/android/widget/gridview/touch/
DGridTouchVerticalSpacingTest.java21 import android.view.Gravity;
61 TouchUtils.dragViewBy(this, lastChild, Gravity.TOP | Gravity.LEFT, in testNoScroll()
78 TouchUtils.dragViewBy(this, lastChild, Gravity.TOP | Gravity.LEFT, in testShortScroll()
94 int distance = TouchUtils.dragViewToY(this, lastChild, Gravity.TOP | Gravity.LEFT, in testLongScroll()
DGridTouchVerticalSpacingStackFromBottomTest.java22 import android.view.Gravity;
67 TouchUtils.dragViewBy(this, firstChild, Gravity.BOTTOM | Gravity.CENTER_HORIZONTAL, 0, in testNoScroll()
89 TouchUtils.dragViewBy(this, firstChild, Gravity.BOTTOM | Gravity.CENTER_HORIZONTAL, 0, in testShortScroll()
110 Gravity.BOTTOM | Gravity.CENTER_HORIZONTAL, 0, in testLongScroll()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DWindowFrameTests.java35 import android.view.Gravity;
133 w.mAttrs.gravity = Gravity.LEFT | Gravity.TOP; in testLayoutInFullscreenTaskInsets()
190 w.mAttrs.gravity = Gravity.LEFT | Gravity.TOP; in testLayoutInFullscreenTaskNoInsets()
251 w.mAttrs.gravity = Gravity.RIGHT | Gravity.TOP; in testLayoutInFullscreenTaskNoInsets()
254 w.mAttrs.gravity = Gravity.RIGHT | Gravity.BOTTOM; in testLayoutInFullscreenTaskNoInsets()
281 w.mAttrs.gravity = Gravity.LEFT | Gravity.TOP; in testLayoutNonfullscreenTask()
330 w.mAttrs.gravity = Gravity.LEFT | Gravity.TOP; in testCalculatePolicyCrop()
363 w.mAttrs.gravity = Gravity.LEFT | Gravity.TOP; in testCalculatePolicyCrop()
399 w.mAttrs.gravity = Gravity.LEFT | Gravity.TOP; in testLayoutLetterboxedWindow()
432 w.mAttrs.gravity = Gravity.LEFT | Gravity.TOP; in testDisplayCutout()
[all …]
/frameworks/base/core/java/com/android/internal/widget/
DAlertDialogLayout.java26 import android.view.Gravity;
287 final int majorGravity = gravity & Gravity.VERTICAL_GRAVITY_MASK; in onLayout()
288 final int minorGravity = gravity & Gravity.RELATIVE_HORIZONTAL_GRAVITY_MASK; in onLayout()
292 case Gravity.BOTTOM: in onLayout()
298 case Gravity.CENTER_VERTICAL: in onLayout()
302 case Gravity.TOP: in onLayout()
326 final int absoluteGravity = Gravity.getAbsoluteGravity( in onLayout()
330 switch (absoluteGravity & Gravity.HORIZONTAL_GRAVITY_MASK) { in onLayout()
331 case Gravity.CENTER_HORIZONTAL: in onLayout()
336 case Gravity.RIGHT: in onLayout()
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DTaskLaunchParamsModifier.java51 import android.view.Gravity;
349 final int verticalGravity = windowLayout.gravity & Gravity.VERTICAL_GRAVITY_MASK; in getLayoutBounds()
350 final int horizontalGravity = windowLayout.gravity & Gravity.HORIZONTAL_GRAVITY_MASK; in getLayoutBounds()
386 case Gravity.LEFT: in getLayoutBounds()
389 case Gravity.RIGHT: in getLayoutBounds()
398 case Gravity.TOP: in getLayoutBounds()
401 case Gravity.BOTTOM: in getLayoutBounds()
731 if (direction == Gravity.NO_GRAVITY) { in adjustBoundsToAvoidConflict()
765 mTmpDirections[i] = Gravity.NO_GRAVITY; in calculateCandidateShiftDirections()
773 mTmpDirections[0] = Gravity.RIGHT; in calculateCandidateShiftDirections()
[all …]
/frameworks/base/core/java/com/android/internal/view/menu/
DIconMenuItemView.java27 import android.view.Gravity;
201 setGravity(Gravity.BOTTOM | Gravity.CENTER_HORIZONTAL); in setIcon()
213 setGravity(Gravity.CENTER_VERTICAL | Gravity.CENTER_HORIZONTAL); in setIcon()
304 Gravity.apply(Gravity.CENTER_VERTICAL | Gravity.START, mIcon.getIntrinsicWidth(), mIcon in positionIcon()

12345678