Home
last modified time | relevance | path

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

12345678910

/frameworks/support/v4/tests/java/android/support/v4/view/
DGravityCompatTest.java24 import android.view.Gravity;
37 assertEquals("Start constants", Gravity.START, GravityCompat.START); in testConstants()
38 assertEquals("End constants", Gravity.END, GravityCompat.END); in testConstants()
44 GravityCompat.getAbsoluteGravity(Gravity.LEFT, ViewCompat.LAYOUT_DIRECTION_LTR), in testGetAbsoluteGravity()
45 Gravity.LEFT); in testGetAbsoluteGravity()
47 GravityCompat.getAbsoluteGravity(Gravity.RIGHT, ViewCompat.LAYOUT_DIRECTION_LTR), in testGetAbsoluteGravity()
48 Gravity.RIGHT); in testGetAbsoluteGravity()
50 GravityCompat.getAbsoluteGravity(Gravity.LEFT, ViewCompat.LAYOUT_DIRECTION_RTL), in testGetAbsoluteGravity()
51 Gravity.LEFT); in testGetAbsoluteGravity()
53 GravityCompat.getAbsoluteGravity(Gravity.RIGHT, ViewCompat.LAYOUT_DIRECTION_RTL), in testGetAbsoluteGravity()
[all …]
/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;
49 private @GravityFlag int mSlideEdge = Gravity.BOTTOM;
54 @IntDef({Gravity.LEFT, Gravity.TOP, Gravity.RIGHT, Gravity.BOTTOM, Gravity.START, Gravity.END})
143 setSlideEdge(Gravity.BOTTOM); in Slide()
156 int edge = a.getInt(R.styleable.Slide_slideEdge, Gravity.BOTTOM); in Slide()
191 case Gravity.LEFT: in setSlideEdge()
194 case Gravity.TOP: in setSlideEdge()
197 case Gravity.RIGHT: in setSlideEdge()
200 case Gravity.BOTTOM: in setSlideEdge()
203 case Gravity.START: in setSlideEdge()
[all …]
/frameworks/base/core/java/android/widget/
DLinearLayout.java30 import android.view.Gravity;
140 @ViewDebug.FlagToString(mask = Gravity.NO_GRAVITY,
141 equals = Gravity.NO_GRAVITY,name = "NONE"),
142 @ViewDebug.FlagToString(mask = Gravity.TOP,
143 equals = Gravity.TOP, name = "TOP"),
144 @ViewDebug.FlagToString(mask = Gravity.BOTTOM,
145 equals = Gravity.BOTTOM, name = "BOTTOM"),
146 @ViewDebug.FlagToString(mask = Gravity.LEFT,
147 equals = Gravity.LEFT, name = "LEFT"),
148 @ViewDebug.FlagToString(mask = Gravity.RIGHT,
[all …]
DFrameLayout.java30 import android.view.Gravity;
58 private static final int DEFAULT_CHILD_GRAVITY = Gravity.TOP | Gravity.START;
120 if (getForegroundGravity() == Gravity.FILL && foreground != null) { in setForegroundGravity()
290 final int absoluteGravity = Gravity.getAbsoluteGravity(gravity, layoutDirection); in layoutChildren()
291 final int verticalGravity = gravity & Gravity.VERTICAL_GRAVITY_MASK; in layoutChildren()
293 switch (absoluteGravity & Gravity.HORIZONTAL_GRAVITY_MASK) { in layoutChildren()
294 case Gravity.CENTER_HORIZONTAL: in layoutChildren()
298 case Gravity.RIGHT: in layoutChildren()
303 case Gravity.LEFT: in layoutChildren()
309 case Gravity.TOP: in layoutChildren()
[all …]
/frameworks/base/core/java/android/app/
DActionBar.java31 import android.view.Gravity;
1384 @ViewDebug.IntToString(from = Gravity.NO_GRAVITY, to = "NONE"),
1385 @ViewDebug.IntToString(from = Gravity.TOP, to = "TOP"),
1386 @ViewDebug.IntToString(from = Gravity.BOTTOM, to = "BOTTOM"),
1387 @ViewDebug.IntToString(from = Gravity.LEFT, to = "LEFT"),
1388 @ViewDebug.IntToString(from = Gravity.RIGHT, to = "RIGHT"),
1389 @ViewDebug.IntToString(from = Gravity.START, to = "START"),
1390 @ViewDebug.IntToString(from = Gravity.END, to = "END"),
1391 @ViewDebug.IntToString(from = Gravity.CENTER_VERTICAL, to = "CENTER_VERTICAL"),
1392 @ViewDebug.IntToString(from = Gravity.FILL_VERTICAL, to = "FILL_VERTICAL"),
[all …]
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DScaleFrameLayout.java19 import android.view.Gravity;
30 private static final int DEFAULT_CHILD_GRAVITY = Gravity.TOP | Gravity.START;
137 final int absoluteGravity = Gravity.getAbsoluteGravity(gravity, layoutDirection); in onLayout()
138 final int verticalGravity = gravity & Gravity.VERTICAL_GRAVITY_MASK; in onLayout()
140 switch (absoluteGravity & Gravity.HORIZONTAL_GRAVITY_MASK) { in onLayout()
141 case Gravity.CENTER_HORIZONTAL: in onLayout()
145 case Gravity.RIGHT: in onLayout()
148 case Gravity.LEFT: in onLayout()
154 case Gravity.TOP: in onLayout()
157 case Gravity.CENTER_VERTICAL: in onLayout()
[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/support/design/src/android/support/design/internal/
DForegroundLinearLayout.java28 import android.view.Gravity;
41 private int mForegroundGravity = Gravity.FILL;
93 if ((foregroundGravity & Gravity.RELATIVE_HORIZONTAL_GRAVITY_MASK) == 0) { in setForegroundGravity()
94 foregroundGravity |= Gravity.START; in setForegroundGravity()
97 if ((foregroundGravity & Gravity.VERTICAL_GRAVITY_MASK) == 0) { in setForegroundGravity()
98 foregroundGravity |= Gravity.TOP; in setForegroundGravity()
103 if (mForegroundGravity == Gravity.FILL && mForeground != null) { in setForegroundGravity()
156 if (mForegroundGravity == Gravity.FILL) { in setForeground()
212 Gravity.apply(mForegroundGravity, foreground.getIntrinsicWidth(), in draw()
/frameworks/support/v4/jellybean-mr1/android/support/v4/view/
DGravityCompatJellybeanMr1.java21 import android.view.Gravity;
26 return Gravity.getAbsoluteGravity(gravity, layoutDirection); in getAbsoluteGravity()
31 Gravity.apply(gravity, w, h, container, outRect, layoutDirection); in apply()
36 Gravity.apply(gravity, w, h, container, xAdj, yAdj, outRect, layoutDirection); in apply()
40 Gravity.applyDisplay(gravity, display, inoutObj, layoutDirection); in applyDisplay()
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
DLinearLayoutManagerWrapContentTest.java26 import android.view.Gravity;
157 return Gravity.TOP; in getVerticalGravity()
160 return Gravity.BOTTOM; in getVerticalGravity()
162 return Gravity.TOP; in getVerticalGravity()
170 return Gravity.RIGHT; in getHorizontalGravity()
172 return Gravity.LEFT; in getHorizontalGravity()
176 return Gravity.RIGHT; in getHorizontalGravity()
178 return Gravity.LEFT; in getHorizontalGravity()
/frameworks/support/v4/java/android/support/v4/widget/
DDrawerLayout.java51 import android.view.Gravity;
148 @IntDef({Gravity.LEFT, Gravity.RIGHT, GravityCompat.START, GravityCompat.END})
375 mLeftCallback = new ViewDragCallback(Gravity.LEFT); in DrawerLayout()
376 mRightCallback = new ViewDragCallback(Gravity.RIGHT); in DrawerLayout()
476 } else if ((gravity & Gravity.LEFT) == Gravity.LEFT) { in setDrawerShadow()
478 } else if ((gravity & Gravity.RIGHT) == Gravity.RIGHT) { in setDrawerShadow()
589 setDrawerLockMode(lockMode, Gravity.LEFT); in setDrawerLockMode()
590 setDrawerLockMode(lockMode, Gravity.RIGHT); in setDrawerLockMode()
617 case Gravity.LEFT: in setDrawerLockMode()
620 case Gravity.RIGHT: in setDrawerLockMode()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/listview/touch/
DListTouchBottomGravityManyTest.java23 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.java22 import android.view.Gravity;
63 TouchUtils.dragViewBy(this, lastChild, Gravity.TOP | Gravity.LEFT, in testShortScroll()
80 Gravity.TOP | Gravity.LEFT, mListView.getTop()); in testLongScroll()
DListTouchManyTest.java23 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.java23 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.java24 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/support/design/src/android/support/design/widget/
DCollapsingTextHelper.java34 import android.view.Gravity;
62 private int mExpandedTextGravity = Gravity.CENTER_VERTICAL;
63 private int mCollapsedTextGravity = Gravity.CENTER_VERTICAL;
365 switch (collapsedAbsGravity & Gravity.VERTICAL_GRAVITY_MASK) { in calculateBaseOffsets()
366 case Gravity.BOTTOM: in calculateBaseOffsets()
369 case Gravity.TOP: in calculateBaseOffsets()
372 case Gravity.CENTER_VERTICAL: in calculateBaseOffsets()
380 case Gravity.CENTER_HORIZONTAL: in calculateBaseOffsets()
383 case Gravity.RIGHT: in calculateBaseOffsets()
386 case Gravity.LEFT: in calculateBaseOffsets()
[all …]
/frameworks/support/v17/leanback/api21/android/support/v17/leanback/transition/
DFadeAndShortSlide.java30 import android.view.Gravity;
146 this(Gravity.START); in FadeAndShortSlide()
156 int edge = a.getInt(R.styleable.lbSlide_lb_slideEdge, Gravity.START); in FadeAndShortSlide()
190 case Gravity.START: in setSlideEdge()
193 case Gravity.END: in setSlideEdge()
196 case Gravity.START | Gravity.END: in setSlideEdge()
199 case Gravity.TOP: in setSlideEdge()
202 case Gravity.BOTTOM: in setSlideEdge()
205 case Gravity.TOP | Gravity.BOTTOM: in setSlideEdge()
/frameworks/base/core/java/com/android/internal/view/menu/
DIconMenuItemView.java26 import android.view.Gravity;
189 setGravity(Gravity.BOTTOM | Gravity.CENTER_HORIZONTAL); in setIcon()
201 setGravity(Gravity.CENTER_VERTICAL | Gravity.CENTER_HORIZONTAL); in setIcon()
288 Gravity.apply(Gravity.CENTER_VERTICAL | Gravity.START, mIcon.getIntrinsicWidth(), mIcon in positionIcon()
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DLinearLayoutCompat.java29 import android.view.Gravity;
115 private int mGravity = GravityCompat.START | Gravity.TOP;
449 final int majorGravity = mGravity & Gravity.VERTICAL_GRAVITY_MASK; in getBaseline()
450 if (majorGravity != Gravity.TOP) { in getBaseline()
452 case Gravity.BOTTOM: in getBaseline()
456 case Gravity.CENTER_VERTICAL: in getBaseline()
1060 & Gravity.VERTICAL_GRAVITY_MASK; in measureHorizontal()
1061 final int index = ((gravity >> Gravity.AXIS_Y_SHIFT) in measureHorizontal()
1062 & ~Gravity.AXIS_SPECIFIED) >> 1; in measureHorizontal()
1233 & Gravity.VERTICAL_GRAVITY_MASK; in measureHorizontal()
[all …]
/frameworks/support/v4/api21/android/support/v4/widget/
DDrawerLayoutCompatApi21.java23 import android.view.Gravity;
47 if (gravity == Gravity.LEFT) { in dispatchChildInsets()
50 } else if (gravity == Gravity.RIGHT) { in dispatchChildInsets()
60 if (gravity == Gravity.LEFT) { in applyMarginInsets()
63 } else if (gravity == Gravity.RIGHT) { in applyMarginInsets()
/frameworks/support/v4/java/android/support/v4/view/
DGravityCompat.java22 import android.view.Gravity;
46 Gravity.apply(gravity, w, h, container, outRect); in apply()
52 Gravity.apply(gravity, w, h, container, xAdj, yAdj, outRect); in apply()
58 Gravity.applyDisplay(gravity, display, inoutObj); in applyDisplay()
103 public static final int START = RELATIVE_LAYOUT_DIRECTION | Gravity.LEFT;
106 public static final int END = RELATIVE_LAYOUT_DIRECTION | Gravity.RIGHT;
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/support/
DDrawerLayoutUtil.java26 import static android.view.Gravity.END;
27 import static android.view.Gravity.LEFT;
28 import static android.view.Gravity.RIGHT;
29 import static android.view.Gravity.START;

12345678910