HomeSort by relevance Sort by last modified time
    Searched defs:Gravity (Results 1 - 25 of 33) 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/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 suppose 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...]
  /external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/
ValidationMessageBubble.java 11 import android.view.Gravity;
63 contentViewCore.getContainerView(), Gravity.NO_GRAVITY, origin.x, origin.y);
  /hardware/invensense/60xx/libsensors/
MPLSensor.h 53 Gravity,
  /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);
145 Gravity.apply(SWEEP_GRAVITY, parentRect.width(), sweep.getMeasuredHeight(),
153 Gravity.apply(SWEEP_GRAVITY, sweep.getMeasuredWidth(), parentRect.height(),
  /frameworks/base/graphics/java/android/graphics/drawable/
ClipDrawable.java 25 import android.view.Gravity;
33 * and height based on the level, as well as a gravity to control where it is
62 public ClipDrawable(Drawable drawable, int gravity, int orientation) {
66 mClipState.mGravity = gravity;
86 int g = a.getInt(com.android.internal.R.styleable.ClipDrawable_gravity, Gravity.LEFT);
218 Gravity.apply(mClipState.mGravity, w, h, bounds, r, layoutDirection);
ScaleDrawable.java 25 import android.view.Gravity;
33 * and height based on the level, as well as a gravity to control where it is
55 public ScaleDrawable(Drawable drawable, int gravity, float scaleWidth, float scaleHeight) {
59 mScaleState.mGravity = gravity;
97 int g = a.getInt(com.android.internal.R.styleable.ScaleDrawable_scaleGravity, Gravity.LEFT);
230 Gravity.apply(mScaleState.mGravity, w, h, bounds, r, layoutDirection);
BitmapDrawable.java 35 import android.view.Gravity;
70 private final Rect mDstRect = new Rect(); // Gravity.apply() sets this
249 /** Get the gravity used to position/stretch the bitmap within its bounds.
250 * See android.view.Gravity
251 * @return the gravity applied to the bitmap
257 /** Set the gravity used to position/stretch the bitmap within its bounds.
258 See android.view.Gravity
259 * @param gravity the gravity
261 public void setGravity(int gravity) {
    [all...]
  /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(),
  /frameworks/base/core/java/android/widget/
FrameLayout.java 28 import android.view.Gravity;
42 * and control their position within the FrameLayout by assigning gravity to each child, using the
58 private static final int DEFAULT_CHILD_GRAVITY = Gravity.TOP | Gravity.START;
82 private int mForegroundGravity = Gravity.FILL;
127 * @return foreground gravity.
140 * @param foregroundGravity See {@link android.view.Gravity}
149 if ((foregroundGravity & Gravity.RELATIVE_HORIZONTAL_GRAVITY_MASK) == 0) {
150 foregroundGravity |= Gravity.START;
153 if ((foregroundGravity & Gravity.VERTICAL_GRAVITY_MASK) == 0)
414 int gravity = lp.gravity; local
609 public int gravity = -1; field in class:FrameLayout.LayoutParams
    [all...]
RelativeLayout.java 35 import android.view.Gravity;
201 private int mGravity = Gravity.START | Gravity.TOP;
266 * Defines which View is ignored when the gravity is applied. This setting has no
267 * effect if the gravity is <code>Gravity.START | Gravity.TOP</code>.
269 * @param viewId The id of the View to be ignored by gravity, or 0 if no View
284 * @return the gravity.
287 * @see android.view.Gravity
329 final int gravity = horizontalGravity & Gravity.RELATIVE_HORIZONTAL_GRAVITY_MASK; local
338 final int gravity = verticalGravity & Gravity.VERTICAL_GRAVITY_MASK; local
415 int gravity = mGravity & Gravity.RELATIVE_HORIZONTAL_GRAVITY_MASK; local
    [all...]
  /hardware/invensense/60xx/libsensors_iio/
MPLSensor.h 128 Gravity,
  /frameworks/base/services/java/com/android/server/wm/
WindowState.java 50 import android.view.Gravity;
545 Gravity.apply(mAttrs.gravity, w, h, mContainingFrame,
552 Gravity.applyDisplay(mAttrs.gravity, df, mFrame);
    [all...]
  /cts/tests/tests/graphics/src/android/graphics/drawable/cts/
ScaleDrawableTest.java 38 import android.view.Gravity;
45 ScaleDrawable scaleDrawable = new ScaleDrawable(d, Gravity.CENTER, 100, 200);
54 Gravity.CENTER, 100, 200);
74 Gravity.CENTER, 100, 200);
97 Gravity.CENTER, 100, 200);
159 ScaleDrawable scaleDrawable = new ScaleDrawable(mockDrawable, Gravity.CENTER, 100, 200);
180 ScaleDrawable scaleDrawable = new ScaleDrawable(mockDrawable, Gravity.CENTER, 100, 200);
194 ScaleDrawable scaleDrawable = new ScaleDrawable(mockDrawable, Gravity.CENTER, 100, 200);
210 ScaleDrawable scaleDrawable = new ScaleDrawable(mockDrawable, Gravity.CENTER, 100, 200);
230 ScaleDrawable scaleDrawable = new ScaleDrawable(mockDrawable, Gravity.CENTER, 100, 200)
    [all...]
  /hardware/invensense/65xx/libsensors_iio/
MPLSensor.h 189 Gravity,
  /packages/apps/UnifiedEmail/src/com/android/mail/ui/
AbstractActivityController.java 53 import android.view.Gravity;
    [all...]
  /prebuilts/sdk/10/
android.jar 
  /prebuilts/sdk/11/
android.jar 
  /prebuilts/sdk/13/
android.jar 
  /prebuilts/sdk/14/
android.jar 
  /prebuilts/sdk/15/
android.jar 
  /prebuilts/sdk/17/
android.jar 

Completed in 582 milliseconds

1 2