Home
last modified time | relevance | path

Searched refs:mGravity (Results 1 – 14 of 14) sorted by relevance

/frameworks/base/graphics/java/android/graphics/drawable/
DClipDrawable.java66 mClipState.mGravity = gravity; in ClipDrawable()
106 mClipState.mGravity = g; in inflate()
213 Gravity.apply(mClipState.mGravity, w, h, bounds, r, layoutDirection); in draw()
248 int mGravity; field in ClipDrawable.ClipState
262 mGravity = orig.mGravity; in ClipState()
DBitmapDrawable.java244 return mBitmapState.mGravity; in getGravity()
252 if (mBitmapState.mGravity != gravity) { in setGravity()
253 mBitmapState.mGravity = gravity; in setGravity()
389 Gravity.apply(state.mGravity, mBitmapWidth, mBitmapHeight, in draw()
493 if (mBitmapState.mGravity != Gravity.FILL) { in getOpacity()
510 int mGravity = Gravity.FILL; field in BitmapDrawable.BitmapState
524 mGravity = bitmapState.mGravity; in BitmapState()
DScaleDrawable.java59 mScaleState.mGravity = gravity; in ScaleDrawable()
120 mScaleState.mGravity = g; in inflate()
225 Gravity.apply(mScaleState.mGravity, w, h, bounds, r, layoutDirection); in onBoundsChange()
265 int mGravity; field in ScaleDrawable.ScaleState
281 mGravity = orig.mGravity; in ScaleState()
/frameworks/base/core/java/android/widget/
DToast.java199 mTN.mGravity = gravity; in setGravity()
210 return mTN.mGravity; in getGravity()
324 int mGravity = Gravity.CENTER_HORIZONTAL | Gravity.BOTTOM; field in Toast.TN
374 final int gravity = mGravity; in handleShow()
DRelativeLayout.java167 private int mGravity = Gravity.LEFT | Gravity.TOP; field in RelativeLayout
196 mGravity = a.getInt(R.styleable.RelativeLayout_gravity, mGravity); in initFromAttributes()
232 return mGravity; in getGravity()
253 if (mGravity != gravity) { in setGravity()
262 mGravity = gravity; in setGravity()
270 if ((mGravity & Gravity.RELATIVE_HORIZONTAL_GRAVITY_MASK) != gravity) { in setHorizontalGravity()
271 mGravity = (mGravity & ~Gravity.RELATIVE_HORIZONTAL_GRAVITY_MASK) | gravity; in setHorizontalGravity()
279 if ((mGravity & Gravity.VERTICAL_GRAVITY_MASK) != gravity) { in setVerticalGravity()
280 mGravity = (mGravity & ~Gravity.VERTICAL_GRAVITY_MASK) | gravity; in setVerticalGravity()
371 int gravity = mGravity & Gravity.RELATIVE_HORIZONTAL_GRAVITY_MASK; in onMeasure()
[all …]
DLinearLayout.java140 private int mGravity = Gravity.START | Gravity.TOP; field in LinearLayout
474 final int majorGravity = mGravity & Gravity.VERTICAL_GRAVITY_MASK; in getBaseline()
1079 final int gravity = (lp.gravity < 0 ? mGravity : lp.gravity) in measureHorizontal()
1251 final int gravity = (lp.gravity < 0 ? mGravity : lp.gravity) in measureHorizontal()
1449 final int majorGravity = mGravity & Gravity.VERTICAL_GRAVITY_MASK; in layoutVertical()
1450 final int minorGravity = mGravity & Gravity.RELATIVE_HORIZONTAL_GRAVITY_MASK; in layoutVertical()
1540 final int majorGravity = mGravity & Gravity.RELATIVE_HORIZONTAL_GRAVITY_MASK; in layoutHorizontal()
1541 final int minorGravity = mGravity & Gravity.VERTICAL_GRAVITY_MASK; in layoutHorizontal()
1687 if (mGravity != gravity) { in setGravity()
1696 mGravity = gravity; in setGravity()
[all …]
DSpinner.java73 private int mGravity; field in Spinner
189 mGravity = a.getInt(com.android.internal.R.styleable.Spinner_gravity, Gravity.CENTER); in Spinner()
350 if (mGravity != gravity) { in setGravity()
354 mGravity = gravity; in setGravity()
366 return mGravity; in getGravity()
488 switch (mGravity & Gravity.HORIZONTAL_GRAVITY_MASK) { in layout()
DGallery.java101 private int mGravity; field in Gallery
922 switch (mGravity) { in calculateTop()
1322 if (mGravity != gravity) { in setGravity()
1323 mGravity = gravity; in setGravity()
DTextView.java342 private int mGravity = Gravity.TOP | Gravity.START; field in TextView
1597 final int gravity = mGravity & Gravity.VERTICAL_GRAVITY_MASK; in getExtendedPaddingTop()
1630 final int gravity = mGravity & Gravity.VERTICAL_GRAVITY_MASK; in getExtendedPaddingBottom()
2677 (mGravity & Gravity.RELATIVE_HORIZONTAL_GRAVITY_MASK)) { in setGravity()
2681 if (gravity != mGravity) { in setGravity()
2686 mGravity = gravity; in setGravity()
2706 return mGravity; in getGravity()
4205 final int gravity = mGravity & Gravity.VERTICAL_GRAVITY_MASK; in getVerticalOffset()
4236 final int gravity = mGravity & Gravity.VERTICAL_GRAVITY_MASK; in getBottomVerticalOffset()
4414 if (curs < 0 && (mGravity & Gravity.VERTICAL_GRAVITY_MASK) == Gravity.BOTTOM) { in onPreDraw()
[all …]
DGridView.java97 private int mGravity = Gravity.LEFT; field in GridView
1419 final int absoluteGravity = Gravity.getAbsoluteGravity(mGravity, layoutDirection); in setupChild()
1930 if (mGravity != gravity) { in setGravity()
1931 mGravity = gravity; in setGravity()
1944 return mGravity; in getGravity()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DExpandHelper.java86 private int mGravity; field in ExpandHelper
142 mGravity = Gravity.TOP; in ExpandHelper()
210 drag *= mGravity == Gravity.BOTTOM ? -1f : 1f; in ExpandHelper()
245 mGravity = gravity; in setGravity()
/frameworks/support/v4/java/android/support/v4/view/
DPagerTitleStrip.java54 private int mGravity; field in PagerTitleStrip
135 mGravity = a.getInteger(3, Gravity.BOTTOM); in PagerTitleStrip()
232 mGravity = gravity; in setGravity()
371 final int vgrav = mGravity & Gravity.VERTICAL_GRAVITY_MASK; in updateTextPositions()
/frameworks/base/core/java/com/android/internal/widget/multiwaveview/
DGlowPadView.java195 private int mGravity = Gravity.TOP; field in GlowPadView
261 mGravity = a.getInt(android.R.styleable.LinearLayout_gravity, Gravity.TOP); in GlowPadView()
961 final int absoluteGravity = Gravity.getAbsoluteGravity(mGravity, layoutDirection);
DMultiWaveView.java201 private int mGravity = Gravity.TOP; field in MultiWaveView
269 mGravity = a.getInt(android.R.styleable.LinearLayout_gravity, Gravity.TOP); in MultiWaveView()
974 final int absoluteGravity = Gravity.getAbsoluteGravity(mGravity, layoutDirection);