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

1 2 3

  /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/src/main/java/androidx/core/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/compat/src/main/java/androidx/core/graphics/drawable/
RoundedBitmapDrawable21.java 23 import android.view.Gravity;
54 void gravityCompatApply(int gravity, int bitmapWidth, int bitmapHeight,
56 Gravity.apply(gravity, bitmapWidth, bitmapHeight,
  /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/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...]
WindowManager.java 25 import static android.view.WindowLayoutParamsProto.GRAVITY;
426 * X position for this window. With the default gravity it is ignored.
427 * When using {@link Gravity#LEFT} or {@link Gravity#START} or {@link Gravity#RIGHT} or
428 * {@link Gravity#END} it provides an offset from the given edge.
434 * Y position for this window. With the default gravity it is ignored.
435 * When using {@link Gravity#TOP} or {@link Gravity#BOTTOM} it provides
2011 public int gravity; field in class:WindowManager.LayoutParams
    [all...]
  /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 46 import android.view.Gravity;
103 /** Optical insets due to gravity. */
293 /** Get the gravity used to position/stretch the bitmap within its bounds.
294 * See android.view.Gravity
295 * @return the gravity applied to the bitmap
301 /** Set the gravity used to position/stretch the bitmap within its bounds.
302 See android.view.Gravity
303 * @param gravity the gravity
305 public void setGravity(int gravity) {
    [all...]
  /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;
  /frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/
ItemTouchHelperTest.java 34 import android.view.Gravity;
202 TouchUtils.dragViewToX(getInstrumentation(), target.itemView, Gravity.CENTER, targetX);
  /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 26 import android.view.Gravity;
296 emptyViewText.setGravity(mApps.hasNoFilteredResults() ? Gravity.CENTER :
297 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...]
  /external/drrickorang/LoopbackApp/app/src/main/java/org/drrickorang/loopback/
SettingsActivity.java 23 import android.view.Gravity;
403 popUp.showAtLocation(findViewById(R.id.settingsMainLayout), Gravity.TOP, 0, 0);
LoopbackActivity.java 43 import android.view.Gravity;
    [all...]
  /frameworks/base/services/core/java/com/android/server/wm/
PinnedStackController.java 43 import android.view.Gravity;
303 Gravity.apply(mDefaultStackGravity, size.getWidth(), size.getHeight(), insetBounds,
566 * @return the default snap fraction to apply instead of the default gravity when calculating
  /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,
  /packages/apps/UnifiedEmail/src/com/android/mail/ui/
AbstractActivityController.java 53 import android.view.Gravity;
    [all...]

Completed in 989 milliseconds

1 2 3