/frameworks/base/core/tests/coretests/src/android/view/ |
D | GravityTest.java | 26 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/ |
D | LinearLayout.java | 26 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 …]
|
D | FrameLayout.java | 28 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 …]
|
D | Toast.java | 28 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()
|
D | TableRow.java | 23 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()
|
D | CheckedTextView.java | 26 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/ |
D | ActionBar.java | 23 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/ |
D | SoftInputWindow.java | 24 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/ |
D | ListTouchBottomGravityManyTest.java | 23 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()
|
D | ListOfTouchablesTest.java | 22 import android.view.Gravity; 63 TouchUtils.dragViewBy(this, lastChild, Gravity.TOP | Gravity.LEFT, in testShortScroll() 80 Gravity.TOP | Gravity.LEFT, mListView.getTop()); in testLongScroll()
|
D | ListTouchManyTest.java | 23 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/ |
D | GridTouchVerticalSpacingTest.java | 23 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()
|
D | GridTouchVerticalSpacingStackFromBottomTest.java | 24 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/ |
D | PhoneSystemBar.java | 27 import android.view.Gravity; 36 setGravity(Gravity.START | Gravity.TOP | Gravity.RIGHT); in PhoneSystemBar()
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | TextureViewActivity.java | 24 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()
|
D | GetBitmapActivity.java | 25 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()
|
D | GradientsActivity.java | 32 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()
|
D | SimplePathsActivity.java | 21 import android.view.Gravity; 33 layout.addView(text, new FrameLayout.LayoutParams(600, 350, Gravity.CENTER)); in onCreate()
|
D | NinePatchesActivity.java | 21 import android.view.Gravity; 34 FrameLayout.LayoutParams.WRAP_CONTENT, Gravity.CENTER)); in onCreate()
|
/frameworks/base/core/java/com/android/internal/view/menu/ |
D | IconMenuItemView.java | 26 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()
|
D | ActionMenuItemView.java | 25 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/ |
D | TextProgressBar.java | 23 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/ |
D | MockView.java | 22 import android.view.Gravity; 38 setGravity(Gravity.CENTER); in MockView()
|
/frameworks/base/core/tests/coretests/src/android/util/ |
D | ListItemFactory.java | 20 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/ |
D | ToastTest.java | 30 import android.view.Gravity; 136 toast.setGravity(Gravity.LEFT, 0, 0); 146 toast.setGravity(Gravity.FILL_HORIZONTAL, 0, 0);
|