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

1 2

  /cts/tests/tests/view/src/android/view/cts/
GravityTest.java 26 import android.view.Gravity;
34 * Test {@link Gravity}.
50 new Gravity();
53 private void applyGravity(int gravity, int w, int h, boolean bRtl) {
55 Gravity.apply(gravity, w, h, mInRect, mOutRect, layoutDirection);
61 Gravity.apply(Gravity.TOP, 2, 3, mInRect, mOutRect);
66 Gravity.apply(Gravity.TOP, 2, 3, mInRect, 5, 5, mOutRect)
    [all...]
  /frameworks/support/compat/java/android/support/v4/view/
GravityCompat.java 23 import android.view.Gravity;
26 * Compatibility shim for accessing newer functionality from {@link android.view.Gravity}.
35 public static final int START = RELATIVE_LAYOUT_DIRECTION | Gravity.LEFT;
38 public static final int END = RELATIVE_LAYOUT_DIRECTION | Gravity.RIGHT;
41 * Binary mask for the horizontal gravity and script specific direction bit.
46 * Apply a gravity constant to an object and take care if layout direction is RTL or not.
48 * @param gravity The desired placement of the object, as defined by the
62 public static void apply(int gravity, int w, int h, Rect container,
65 Gravity.apply(gravity, w, h, container, outRect, layoutDirection)
    [all...]
  /frameworks/support/core-utils/api21/android/support/v4/graphics/drawable/
RoundedBitmapDrawable21.java 24 import android.view.Gravity;
53 void gravityCompatApply(int gravity, int bitmapWidth, int bitmapHeight,
55 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 45 import android.view.Gravity;
101 /** Optical insets due to gravity. */
277 /** Get the gravity used to position/stretch the bitmap within its bounds.
278 * See android.view.Gravity
279 * @return the gravity applied to the bitmap
285 /** Set the gravity used to position/stretch the bitmap within its bounds.
286 See android.view.Gravity
287 * @param gravity the gravity
289 public void setGravity(int gravity) {
    [all...]
  /frameworks/support/design/src/android/support/design/internal/
ForegroundLinearLayout.java 32 import android.view.Gravity;
46 private int mForegroundGravity = Gravity.FILL;
83 * @return foreground gravity.
94 * @param foregroundGravity See {@link android.view.Gravity}
100 if ((foregroundGravity & Gravity.RELATIVE_HORIZONTAL_GRAVITY_MASK) == 0) {
101 foregroundGravity |= Gravity.START;
104 if ((foregroundGravity & Gravity.VERTICAL_GRAVITY_MASK) == 0) {
105 foregroundGravity |= Gravity.TOP;
110 if (mForegroundGravity == Gravity.FILL && mForeground != null) {
165 if (mForegroundGravity == Gravity.FILL)
    [all...]
  /frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/helper/
ItemTouchHelperTest.java 39 import android.view.Gravity;
147 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 27 import android.view.Gravity;
350 emptyViewText.setGravity(mApps.hasNoFilteredResults() ? Gravity.CENTER :
351 Gravity.START | Gravity.CENTER_VERTICAL);
  /cts/tests/tests/graphics/src/android/graphics/drawable/cts/
ScaleDrawableTest.java 56 import android.view.Gravity;
80 ScaleDrawable scaleDrawable = new ScaleDrawable(d, Gravity.CENTER, 100, 200);
90 Gravity.CENTER, 100, 200);
111 Gravity.CENTER, 100, 200);
132 Gravity.CENTER, 100, 200);
152 ScaleDrawable scaleDrawable = new ScaleDrawable(mockDrawable, Gravity.CENTER, 100, 200);
175 ScaleDrawable scaleDrawable = new ScaleDrawable(mockDrawable, Gravity.CENTER, 100, 200);
190 ScaleDrawable scaleDrawable = new ScaleDrawable(mockDrawable, Gravity.CENTER, 100, 200);
200 ScaleDrawable scaleDrawable = new ScaleDrawable(mockDrawable, Gravity.CENTER, 100, 200);
208 ScaleDrawable scaleDrawable = new ScaleDrawable(mockDrawable, Gravity.CENTER, 100, 200)
    [all...]
  /frameworks/base/services/core/java/com/android/server/wm/
PinnedStackController.java 39 import android.view.Gravity;
256 Gravity.apply(mDefaultStackGravity, size.getWidth(), size.getHeight(), insetBounds,
WindowState.java 126 import android.view.Gravity;
    [all...]
  /frameworks/base/core/java/android/widget/
RelativeLayout.java 30 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/support/v7/recyclerview/tests/src/android/support/v7/widget/
RecyclerViewLayoutTest.java 66 import android.view.Gravity;
704 Gravity.LEFT | Gravity.TOP,
718 Gravity.LEFT | Gravity.TOP,
    [all...]
  /packages/apps/UnifiedEmail/src/com/android/mail/ui/
AbstractActivityController.java 53 import android.view.Gravity;
    [all...]

Completed in 773 milliseconds

1 2