Home
last modified time | relevance | path

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

12345

/frameworks/base/core/tests/coretests/src/android/view/
DGravityTest.java26 assertOneGravity(Gravity.LEFT, Gravity.LEFT, false); in testGetAbsoluteGravity()
27 assertOneGravity(Gravity.LEFT, Gravity.LEFT, true); in testGetAbsoluteGravity()
29 assertOneGravity(Gravity.RIGHT, Gravity.RIGHT, false); in testGetAbsoluteGravity()
30 assertOneGravity(Gravity.RIGHT, Gravity.RIGHT, true); in testGetAbsoluteGravity()
32 assertOneGravity(Gravity.TOP, Gravity.TOP, false); in testGetAbsoluteGravity()
33 assertOneGravity(Gravity.TOP, Gravity.TOP, true); in testGetAbsoluteGravity()
35 assertOneGravity(Gravity.BOTTOM, Gravity.BOTTOM, false); in testGetAbsoluteGravity()
36 assertOneGravity(Gravity.BOTTOM, Gravity.BOTTOM, true); in testGetAbsoluteGravity()
38 assertOneGravity(Gravity.CENTER_VERTICAL, Gravity.CENTER_VERTICAL, false); in testGetAbsoluteGravity()
39 assertOneGravity(Gravity.CENTER_VERTICAL, Gravity.CENTER_VERTICAL, true); in testGetAbsoluteGravity()
[all …]
/frameworks/base/core/java/android/widget/
DLinearLayout.java26 import android.view.Gravity;
109 @ViewDebug.FlagToString(mask = Gravity.NO_GRAVITY,
110 equals = Gravity.NO_GRAVITY,name = "NONE"),
111 @ViewDebug.FlagToString(mask = Gravity.TOP,
112 equals = Gravity.TOP, name = "TOP"),
113 @ViewDebug.FlagToString(mask = Gravity.BOTTOM,
114 equals = Gravity.BOTTOM, name = "BOTTOM"),
115 @ViewDebug.FlagToString(mask = Gravity.LEFT,
116 equals = Gravity.LEFT, name = "LEFT"),
117 @ViewDebug.FlagToString(mask = Gravity.RIGHT,
[all …]
DFrameLayout.java28 import android.view.Gravity;
56 private static final int DEFAULT_CHILD_GRAVITY = Gravity.TOP | Gravity.LEFT;
80 private int mForegroundGravity = Gravity.FILL;
132 if ((foregroundGravity & Gravity.RELATIVE_HORIZONTAL_GRAVITY_MASK) == 0) { in setForegroundGravity()
133 foregroundGravity |= Gravity.START; in setForegroundGravity()
136 if ((foregroundGravity & Gravity.VERTICAL_GRAVITY_MASK) == 0) { in setForegroundGravity()
137 foregroundGravity |= Gravity.TOP; in setForegroundGravity()
143 if (mForegroundGravity == Gravity.FILL && mForeground != null) { in setForegroundGravity()
226 if (mForegroundGravity == Gravity.FILL) { in setForeground()
398 final int absoluteGravity = Gravity.getAbsoluteGravity(gravity, layoutDirection); in onLayout()
[all …]
DToast.java28 import android.view.Gravity;
319 int mGravity = Gravity.CENTER_HORIZONTAL | Gravity.BOTTOM;
371 if ((gravity & Gravity.HORIZONTAL_GRAVITY_MASK) == Gravity.FILL_HORIZONTAL) { in handleShow()
374 if ((gravity & Gravity.VERTICAL_GRAVITY_MASK) == Gravity.FILL_VERTICAL) { in handleShow()
DTableRow.java23 import android.view.Gravity;
205 final boolean isHorizontalGravity = Gravity.isHorizontal(gravity); in measureChildBeforeLayout()
228 final int absoluteGravity = Gravity.getAbsoluteGravity(gravity, layoutDirection); in measureChildBeforeLayout()
229 switch (absoluteGravity & Gravity.HORIZONTAL_GRAVITY_MASK) { in measureChildBeforeLayout()
230 case Gravity.LEFT: in measureChildBeforeLayout()
233 case Gravity.RIGHT: in measureChildBeforeLayout()
236 case Gravity.CENTER_HORIZONTAL: in measureChildBeforeLayout()
DCheckedTextView.java26 import android.view.Gravity;
173 final int verticalGravity = getGravity() & Gravity.VERTICAL_GRAVITY_MASK; in onDraw()
179 case Gravity.BOTTOM: in onDraw()
182 case Gravity.CENTER_VERTICAL: in onDraw()
/frameworks/base/core/java/android/app/
DActionBar.java23 import android.view.Gravity;
906 @ViewDebug.IntToString(from = Gravity.NO_GRAVITY, to = "NONE"),
907 @ViewDebug.IntToString(from = Gravity.TOP, to = "TOP"),
908 @ViewDebug.IntToString(from = Gravity.BOTTOM, to = "BOTTOM"),
909 @ViewDebug.IntToString(from = Gravity.LEFT, to = "LEFT"),
910 @ViewDebug.IntToString(from = Gravity.RIGHT, to = "RIGHT"),
911 @ViewDebug.IntToString(from = Gravity.CENTER_VERTICAL, to = "CENTER_VERTICAL"),
912 @ViewDebug.IntToString(from = Gravity.FILL_VERTICAL, to = "FILL_VERTICAL"),
913 @ViewDebug.IntToString(from = Gravity.CENTER_HORIZONTAL, to = "CENTER_HORIZONTAL"),
914 @ViewDebug.IntToString(from = Gravity.FILL_HORIZONTAL, to = "FILL_HORIZONTAL"),
[all …]
/frameworks/base/core/java/android/inputmethodservice/
DSoftInputWindow.java24 import android.view.Gravity;
101 if (lp.gravity == Gravity.TOP || lp.gravity == Gravity.BOTTOM) { in getSize()
120 if (lp.gravity == Gravity.TOP || lp.gravity == Gravity.BOTTOM) { in setSize()
141 boolean oldIsVertical = (lp.gravity == Gravity.TOP || lp.gravity == Gravity.BOTTOM); in setGravity()
145 boolean newIsVertical = (lp.gravity == Gravity.TOP || lp.gravity == Gravity.BOTTOM); in setGravity()
161 lp.gravity = Gravity.BOTTOM; in initDockWindow()
/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/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
DPhoneSystemBar.java27 import android.view.Gravity;
36 setGravity(Gravity.START | Gravity.TOP | Gravity.RIGHT); in PhoneSystemBar()
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DTextureViewActivity.java24 import android.view.Gravity;
66 Gravity.CENTER)); in onCreate()
69 Gravity.CENTER_HORIZONTAL | Gravity.BOTTOM)); in onCreate()
78 previewSize.width, previewSize.height, Gravity.CENTER)); in onSurfaceTextureAvailable()
DGetBitmapActivity.java25 import android.view.Gravity;
73 content.addView(mTextureView, new FrameLayout.LayoutParams(500, 400, Gravity.CENTER)); in onCreate()
76 Gravity.CENTER_HORIZONTAL | Gravity.BOTTOM)); in onCreate()
DGradientsActivity.java32 import android.view.Gravity;
70 200, 200, Gravity.CENTER)); in onCreate()
72 FrameLayout.LayoutParams lp = new FrameLayout.LayoutParams(200, 200, Gravity.CENTER); in onCreate()
76 lp = new FrameLayout.LayoutParams(200, 200, Gravity.CENTER); in onCreate()
80 lp = new FrameLayout.LayoutParams(200, 200, Gravity.CENTER); in onCreate()
86 Gravity.CENTER_HORIZONTAL | Gravity.BOTTOM)); in onCreate()
DSimplePathsActivity.java21 import android.view.Gravity;
33 layout.addView(text, new FrameLayout.LayoutParams(600, 350, Gravity.CENTER)); in onCreate()
DNinePatchesActivity.java21 import android.view.Gravity;
34 FrameLayout.LayoutParams.WRAP_CONTENT, Gravity.CENTER)); in onCreate()
/frameworks/base/core/java/com/android/internal/view/menu/
DIconMenuItemView.java26 import android.view.Gravity;
186 setGravity(Gravity.BOTTOM | Gravity.CENTER_HORIZONTAL); in setIcon()
198 setGravity(Gravity.CENTER_VERTICAL | Gravity.CENTER_HORIZONTAL); in setIcon()
285 Gravity.apply(Gravity.CENTER_VERTICAL | Gravity.LEFT, mIcon.getIntrinsicWidth(), mIcon in positionIcon()
DActionMenuItemView.java25 import android.view.Gravity;
222 cheatSheet.setGravity(Gravity.TOP | Gravity.RIGHT, in onLongClick()
226 cheatSheet.setGravity(Gravity.BOTTOM | Gravity.CENTER_HORIZONTAL, 0, height); in onLongClick()
/frameworks/base/core/java/com/android/internal/widget/
DTextProgressBar.java23 import android.view.Gravity;
61 int mChronometerGravity = Gravity.NO_GRAVITY;
90 Gravity.RELATIVE_HORIZONTAL_GRAVITY_MASK); in addView()
158 if (mChronometerGravity == Gravity.RIGHT) { in onChronometerTick()
160 } else if (mChronometerGravity == Gravity.CENTER_HORIZONTAL) { in onChronometerTick()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/
DMockView.java22 import android.view.Gravity;
38 setGravity(Gravity.CENTER); in MockView()
/frameworks/base/core/tests/coretests/src/android/util/
DListItemFactory.java20 import android.view.Gravity;
250 t1.setGravity(Gravity.LEFT | Gravity.CENTER_VERTICAL); in doubleText()
259 t2.setGravity(Gravity.RIGHT | Gravity.CENTER_VERTICAL); in doubleText()
/frameworks/base/tests/StatusBar/src/com/android/statusbartest/
DToastTest.java30 import android.view.Gravity;
136 toast.setGravity(Gravity.LEFT, 0, 0);
146 toast.setGravity(Gravity.FILL_HORIZONTAL, 0, 0);

12345