Home
last modified time | relevance | path

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

/frameworks/base/graphics/java/android/graphics/drawable/
DClipDrawable.java66 mClipState.mGravity = gravity; in ClipDrawable()
106 mClipState.mGravity = g; in inflate()
218 Gravity.apply(mClipState.mGravity, w, h, bounds, r, layoutDirection); in draw()
258 int mGravity; field in ClipDrawable.ClipState
273 mGravity = orig.mGravity; in ClipState()
DScaleDrawable.java59 mScaleState.mGravity = gravity; in ScaleDrawable()
120 mScaleState.mGravity = g; in inflate()
230 Gravity.apply(mScaleState.mGravity, w, h, bounds, r, layoutDirection); in onBoundsChange()
270 int mGravity; field in ScaleDrawable.ScaleState
287 mGravity = orig.mGravity; in ScaleState()
DBitmapDrawable.java254 return mBitmapState.mGravity; in getGravity()
262 if (mBitmapState.mGravity != gravity) { in setGravity()
263 mBitmapState.mGravity = gravity; in setGravity()
480 Gravity.apply(state.mGravity, mBitmapWidth, mBitmapHeight, in draw()
620 if (mBitmapState.mGravity != Gravity.FILL) { in getOpacity()
637 int mGravity = Gravity.FILL; field in BitmapDrawable.BitmapState
652 mGravity = bitmapState.mGravity; in BitmapState()
/frameworks/base/core/java/android/widget/
DToast.java95 mTN.mGravity = context.getResources().getInteger( in Toast()
202 mTN.mGravity = gravity; in setGravity()
213 return mTN.mGravity; in getGravity()
329 int mGravity; field in Toast.TN
388 … final int gravity = Gravity.getAbsoluteGravity(mGravity, config.getLayoutDirection()); in handleShow()
DLinearLayout.java140 private int mGravity = Gravity.START | Gravity.TOP; field in LinearLayout
488 final int majorGravity = mGravity & Gravity.VERTICAL_GRAVITY_MASK; in getBaseline()
1093 final int gravity = (lp.gravity < 0 ? mGravity : lp.gravity) in measureHorizontal()
1265 final int gravity = (lp.gravity < 0 ? mGravity : lp.gravity) in measureHorizontal()
1467 final int majorGravity = mGravity & Gravity.VERTICAL_GRAVITY_MASK; in layoutVertical()
1468 final int minorGravity = mGravity & Gravity.RELATIVE_HORIZONTAL_GRAVITY_MASK; in layoutVertical()
1562 final int majorGravity = mGravity & Gravity.RELATIVE_HORIZONTAL_GRAVITY_MASK; in layoutHorizontal()
1563 final int minorGravity = mGravity & Gravity.VERTICAL_GRAVITY_MASK; in layoutHorizontal()
1709 if (mGravity != gravity) { in setGravity()
1718 mGravity = gravity; in setGravity()
[all …]
DRelativeLayout.java201 private int mGravity = Gravity.START | Gravity.TOP; field in RelativeLayout
250 mGravity = a.getInt(R.styleable.RelativeLayout_gravity, mGravity); in initFromAttributes()
292 return mGravity; in getGravity()
313 if (mGravity != gravity) { in setGravity()
322 mGravity = gravity; in setGravity()
330 if ((mGravity & Gravity.RELATIVE_HORIZONTAL_GRAVITY_MASK) != gravity) { in setHorizontalGravity()
331 mGravity = (mGravity & ~Gravity.RELATIVE_HORIZONTAL_GRAVITY_MASK) | gravity; in setHorizontalGravity()
339 if ((mGravity & Gravity.VERTICAL_GRAVITY_MASK) != gravity) { in setVerticalGravity()
340 mGravity = (mGravity & ~Gravity.VERTICAL_GRAVITY_MASK) | gravity; in setVerticalGravity()
415 int gravity = mGravity & Gravity.RELATIVE_HORIZONTAL_GRAVITY_MASK; in onMeasure()
[all …]
DSpinner.java89 private int mGravity; field in Spinner
219 mGravity = a.getInt(com.android.internal.R.styleable.Spinner_gravity, Gravity.CENTER); in Spinner()
380 if (mGravity != gravity) { in setGravity()
384 mGravity = gravity; in setGravity()
396 return mGravity; in getGravity()
544 final int absoluteGravity = Gravity.getAbsoluteGravity(mGravity, layoutDirection); in layout()
DGallery.java101 private int mGravity; field in Gallery
938 switch (mGravity) { in calculateTop()
1331 if (mGravity != gravity) { in setGravity()
1332 mGravity = gravity; in setGravity()
DTextView.java515 private int mGravity = Gravity.TOP | Gravity.START; field in TextView
1837 final int gravity = mGravity & Gravity.VERTICAL_GRAVITY_MASK; in getExtendedPaddingTop()
1870 final int gravity = mGravity & Gravity.VERTICAL_GRAVITY_MASK; in getExtendedPaddingBottom()
2956 (mGravity & Gravity.RELATIVE_HORIZONTAL_GRAVITY_MASK)) { in setGravity()
2960 if (gravity != mGravity) { in setGravity()
2964 mGravity = gravity; in setGravity()
2984 return mGravity; in getGravity()
4497 final int gravity = mGravity & Gravity.VERTICAL_GRAVITY_MASK; in getVerticalOffset()
4520 final int gravity = mGravity & Gravity.VERTICAL_GRAVITY_MASK; in getBottomVerticalOffset()
4688 if (curs < 0 && (mGravity & Gravity.VERTICAL_GRAVITY_MASK) == Gravity.BOTTOM) { in onPreDraw()
[all …]
DGridView.java101 private int mGravity = Gravity.START; field in GridView
1435 final int absoluteGravity = Gravity.getAbsoluteGravity(mGravity, layoutDirection); in setupChild()
1948 if (mGravity != gravity) { in setGravity()
1949 mGravity = gravity; in setGravity()
1962 return mGravity; in getGravity()
/frameworks/base/services/java/com/android/server/display/
DOverlayDisplayAdapter.java266 private final int mGravity; field in OverlayDisplayAdapter.OverlayDisplayHandle
278 mGravity = gravity; in OverlayDisplayHandle()
317 pw.println(" mGravity=" + mGravity); in dumpLocked()
333 mName, mWidth, mHeight, mDensityDpi, mGravity, mSecure,
DOverlayDisplayWindow.java66 private final int mGravity; field in OverlayDisplayWindow
103 mGravity = gravity; in OverlayDisplayWindow()
224 mWindowX = (mGravity & Gravity.LEFT) == Gravity.LEFT ? in createWindow()
226 mWindowY = (mGravity & Gravity.TOP) == Gravity.TOP ? in createWindow()
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/
DSpinnerICS.java73 private int mGravity; field in SpinnerICS
189 mGravity = a.getInt(R.styleable.Spinner_android_gravity, Gravity.CENTER); in SpinnerICS()
212 if (mGravity != gravity) { in setGravity()
216 mGravity = gravity; in setGravity()
337 switch (mGravity & Gravity.HORIZONTAL_GRAVITY_MASK) { in layout()
/frameworks/base/core/java/android/app/
DFragmentBreadCrumbs.java57 private int mGravity; field in FragmentBreadCrumbs
93 mGravity = a.getInt(com.android.internal.R.styleable.FragmentBreadCrumbs_gravity, in FragmentBreadCrumbs()
192 final int horizontalGravity = mGravity & Gravity.RELATIVE_HORIZONTAL_GRAVITY_MASK; in onLayout()
/frameworks/support/v4/java/android/support/v4/view/
DPagerTitleStrip.java56 private int mGravity; field in PagerTitleStrip
139 mGravity = a.getInteger(3, Gravity.BOTTOM); in PagerTitleStrip()
236 mGravity = gravity; in setGravity()
377 final int vgrav = mGravity & Gravity.VERTICAL_GRAVITY_MASK; in updateTextPositions()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DExpandHelper.java108 private int mGravity; field in ExpandHelper
192 mGravity = Gravity.TOP; in ExpandHelper()
238 drag *= mGravity == Gravity.BOTTOM ? -1f : 1f; in updateExpansion()
300 mGravity = gravity; in setGravity()
/frameworks/base/core/java/com/android/internal/widget/multiwaveview/
DGlowPadView.java200 private int mGravity = Gravity.TOP; field in GlowPadView
268 mGravity = a.getInt(R.styleable.GlowPadView_gravity, Gravity.TOP); in GlowPadView()
1010 final int absoluteGravity = Gravity.getAbsoluteGravity(mGravity, layoutDirection);
1049 final int absoluteGravity = Gravity.getAbsoluteGravity(mGravity, layoutDirection);
DMultiWaveView.java202 private int mGravity = Gravity.TOP; field in MultiWaveView
270 mGravity = a.getInt(android.R.styleable.LinearLayout_gravity, Gravity.TOP); in MultiWaveView()
978 final int absoluteGravity = Gravity.getAbsoluteGravity(mGravity, layoutDirection);