HomeSort by relevance Sort by last modified time
    Searched defs:Gravity (Results 1 - 25 of 48) sorted by null

1 2

  /frameworks/support/v4/jellybean-mr1/android/support/v4/view/
GravityCompatJellybeanMr1.java 21 import android.view.Gravity;
25 public static int getAbsoluteGravity(int gravity, int layoutDirection) {
26 return Gravity.getAbsoluteGravity(gravity, layoutDirection);
29 public static void apply(int gravity, int w, int h, Rect container, Rect outRect,
31 Gravity.apply(gravity, w, h, container, outRect, layoutDirection);
34 public static void apply(int gravity, int w, int h, Rect container, int xAdj, int yAdj,
36 Gravity.apply(gravity, w, h, container, xAdj, yAdj, outRect, layoutDirection)
    [all...]
  /cts/tests/tests/view/src/android/view/cts/
GravityTest.java 24 import android.view.Gravity;
27 * Test {@link Gravity}.
41 new Gravity();
44 private void applyGravity(int gravity, int w, int h, Rect container, Rect outRect, boolean bRtl) {
46 Gravity.apply(gravity, w, h, mInRect, mOutRect, layoutDirection);
51 Gravity.apply(Gravity.TOP, 2, 3, mInRect, mOutRect);
56 Gravity.apply(Gravity.TOP, 2, 3, mInRect, 5, 5, mOutRect)
    [all...]
  /frameworks/support/v4/java/android/support/v4/view/
GravityCompat.java 22 import android.view.Gravity;
25 * Compatibility shim for accessing newer functionality from {@link android.view.Gravity}.
29 int getAbsoluteGravity(int gravity, int layoutDirection);
30 void apply(int gravity, int w, int h, Rect container, Rect outRect, int layoutDirection);
31 void apply(int gravity, int w, int h, Rect container, int xAdj, int yAdj,
33 void applyDisplay(int gravity, Rect display, Rect inoutObj, int layoutDirection);
38 public int getAbsoluteGravity(int gravity, int layoutDirection) {
40 return gravity & ~RELATIVE_LAYOUT_DIRECTION;
44 public void apply(int gravity, int w, int h, Rect container, Rect outRect,
46 Gravity.apply(gravity, w, h, container, outRect)
    [all...]
  /frameworks/support/v4/api21/android/support/v4/graphics/drawable/
RoundedBitmapDrawable21.java 23 import android.view.Gravity;
51 void gravityCompatApply(int gravity, int bitmapWidth, int bitmapHeight,
53 Gravity.apply(gravity, bitmapWidth, bitmapHeight,
  /frameworks/base/core/java/android/view/
Gravity.java 24 public class Gravity
26 /** Constant indicating that no gravity has been set **/
29 /** Raw bit indicating the gravity for an axis has been specified. */
37 * container, based on the gravity direction being applied. */
90 * Binary mask to get the absolute horizontal gravity of a gravity.
95 * Binary mask to get the vertical gravity of a gravity.
121 * Binary mask for the horizontal gravity and script specific direction bit.
126 * Apply a gravity constant to an object. This supposes that the layout direction is LTR
    [all...]
  /development/samples/ApiDemos/src/com/example/android/apis/view/
CustomLayout.java 28 import android.view.Gravity;
46 /** These are used for computing child frames based on their gravity. */
172 // Use the child's gravity and size to determine its final
174 Gravity.apply(lp.gravity, width, height, mTmpContainerRect, mTmpChildRect);
213 * The gravity to apply with the View to which these layout parameters
216 public int gravity = Gravity.TOP | Gravity.START; field in class:CustomLayout.LayoutParams
231 gravity = a.getInt(R.styleable.CustomLayoutLP_android_layout_gravity, gravity)
    [all...]
  /device/google/contexthub/util/nanotool/
contexthub.h 56 Gravity,
  /external/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/
GlideBitmapDrawable.java 12 import android.view.Gravity;
98 Gravity.apply(BitmapState.GRAVITY, width, height, getBounds(), destRect);
142 private static final int GRAVITY = Gravity.FILL;
  /frameworks/base/graphics/java/android/graphics/drawable/
ClipDrawable.java 30 import android.view.Gravity;
38 * and height based on the level, as well as a gravity to control where it is
68 * Creates a new clip drawable with the specified gravity and orientation.
71 * @param gravity gravity constant (see {@link Gravity} used to position
76 public ClipDrawable(Drawable drawable, int gravity, int orientation) {
79 mState.mGravity = gravity;
197 Gravity.apply(mState.mGravity, w, h, bounds, r, layoutDirection);
217 int mGravity = Gravity.LEFT
    [all...]
ScaleDrawable.java 34 import android.view.Gravity;
41 * and height based on the level, as well as a gravity to control where it is
76 * Creates a new scale drawable with the specified gravity and scale
80 * @param gravity gravity constant (see {@link Gravity} used to position
87 public ScaleDrawable(Drawable drawable, int gravity, float scaleWidth, float scaleHeight) {
90 mState.mGravity = gravity;
240 Gravity.apply(mState.mGravity, w, h, bounds, r, layoutDirection);
261 int mGravity = Gravity.LEFT
    [all...]
BitmapDrawable.java 44 import android.view.Gravity;
100 /** Optical insets due to gravity. */
276 /** Get the gravity used to position/stretch the bitmap within its bounds.
277 * See android.view.Gravity
278 * @return the gravity applied to the bitmap
284 /** Set the gravity used to position/stretch the bitmap within its bounds.
285 See android.view.Gravity
286 * @param gravity the gravity
288 public void setGravity(int gravity) {
    [all...]
  /frameworks/support/design/src/android/support/design/internal/
ForegroundLinearLayout.java 28 import android.view.Gravity;
41 private int mForegroundGravity = Gravity.FILL;
78 * @return foreground gravity.
88 * @param foregroundGravity See {@link android.view.Gravity}
93 if ((foregroundGravity & Gravity.RELATIVE_HORIZONTAL_GRAVITY_MASK) == 0) {
94 foregroundGravity |= Gravity.START;
97 if ((foregroundGravity & Gravity.VERTICAL_GRAVITY_MASK) == 0) {
98 foregroundGravity |= Gravity.TOP;
103 if (mForegroundGravity == Gravity.FILL && mForeground != null) {
156 if (mForegroundGravity == Gravity.FILL)
    [all...]
  /frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/helper/
ItemTouchHelperTest.java 32 import android.view.Gravity;
149 TouchUtils.dragViewToX(getInstrumentation(), target.itemView, Gravity.CENTER, targetX);
  /packages/apps/Messaging/src/com/android/messaging/ui/
SnackBarManager.java 24 import android.view.Gravity;
159 snackBar.getParentView(), Gravity.BOTTOM | Gravity.START,
  /packages/apps/Settings/src/com/android/settings/widget/
ChartView.java 23 import android.view.Gravity;
40 private static final int SWEEP_GRAVITY = Gravity.TOP | Gravity.START;
118 Gravity.apply(params.gravity, width, height, parentRect, childRect);
123 Gravity.apply(params.gravity, width, height, parentRect, childRect);
151 Gravity.apply(SWEEP_GRAVITY, parentRect.width(), sweep.getMeasuredHeight(),
159 Gravity.apply(SWEEP_GRAVITY, sweep.getMeasuredWidth(), parentRect.height(),
  /external/glide/library/src/main/java/com/bumptech/glide/load/resource/gif/
GifDrawable.java 14 import android.view.Gravity;
224 Gravity.apply(GifState.GRAVITY, getIntrinsicWidth(), getIntrinsicHeight(), getBounds(), destRect);
313 private static final int GRAVITY = Gravity.FILL;
  /packages/apps/Contacts/src/com/android/contacts/widget/
InterpolatingLayout.java 23 import android.view.Gravity;
291 int gravity = params.gravity; local
292 if (gravity == -1) {
293 gravity = Gravity.START | Gravity.TOP;
311 Gravity.apply(gravity, child.getMeasuredWidth(), child.getMeasuredHeight(),
  /hardware/invensense/6515/libsensors_iio/
sensors.h 74 Gravity,
151 {"MPL Gravity", "Invensense", 1, SENSORS_GRAVITY_HANDLE,
216 {"MPL Gravity", "Invensense", 1, SENSORS_GRAVITY_HANDLE,
274 {"MPL Gravity", "Invensense", 1,
  /packages/apps/Launcher3/src/com/android/launcher3/allapps/
AllAppsGridAdapter.java 37 import android.view.Gravity;
583 emptyViewText.setGravity(mApps.hasNoFilteredResults() ? Gravity.CENTER :
584 Gravity.START | Gravity.CENTER_VERTICAL);
591 searchView.setGravity(mApps.hasNoFilteredResults() ? Gravity.CENTER :
592 Gravity.START | Gravity.CENTER_VERTICAL);
  /cts/tests/tests/graphics/src/android/graphics/drawable/cts/
ScaleDrawableTest.java 41 import android.view.Gravity;
48 ScaleDrawable scaleDrawable = new ScaleDrawable(d, Gravity.CENTER, 100, 200);
57 Gravity.CENTER, 100, 200);
77 Gravity.CENTER, 100, 200);
100 Gravity.CENTER, 100, 200);
162 ScaleDrawable scaleDrawable = new ScaleDrawable(mockDrawable, Gravity.CENTER, 100, 200);
183 ScaleDrawable scaleDrawable = new ScaleDrawable(mockDrawable, Gravity.CENTER, 100, 200);
197 ScaleDrawable scaleDrawable = new ScaleDrawable(mockDrawable, Gravity.CENTER, 100, 200);
213 ScaleDrawable scaleDrawable = new ScaleDrawable(mockDrawable, Gravity.CENTER, 100, 200);
233 ScaleDrawable scaleDrawable = new ScaleDrawable(mockDrawable, Gravity.CENTER, 100, 200)
    [all...]
  /frameworks/base/core/java/android/widget/
RelativeLayout.java 36 import android.view.Gravity;
206 private int mGravity = Gravity.START | Gravity.TOP;
274 * Defines which View is ignored when the gravity is applied. This setting has no
275 * effect if the gravity is <code>Gravity.START | Gravity.TOP</code>.
277 * @param viewId The id of the View to be ignored by gravity, or 0 if no View
292 * @return the gravity.
295 * @see android.view.Gravity
337 final int gravity = horizontalGravity & Gravity.RELATIVE_HORIZONTAL_GRAVITY_MASK; local
346 final int gravity = verticalGravity & Gravity.VERTICAL_GRAVITY_MASK; local
421 int gravity = mGravity & Gravity.RELATIVE_HORIZONTAL_GRAVITY_MASK; local
    [all...]
  /hardware/invensense/65xx/libsensors_iio/
MPLSensor.h 190 Gravity,
  /frameworks/base/services/core/java/com/android/server/wm/
WindowState.java 41 import android.view.Gravity;
    [all...]
  /frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
RecyclerViewLayoutTest.java 42 import android.view.Gravity;
542 Gravity.LEFT | Gravity.TOP,
556 Gravity.LEFT | Gravity.TOP,
    [all...]
  /packages/apps/UnifiedEmail/src/com/android/mail/ui/
AbstractActivityController.java 53 import android.view.Gravity;
    [all...]

Completed in 538 milliseconds

1 2