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

  /cts/tests/tests/view/src/android/view/cts/
GravityTest.java 27 import android.view.Gravity;
30 * Test {@link Gravity}.
32 @TestTargetClass(Gravity.class)
46 notes = "Test constructor(s) of {@link Gravity}",
47 method = "Gravity",
51 new Gravity();
72 Gravity.apply(Gravity.TOP, 2, 3, mInRect, mOutRect);
77 Gravity.apply(Gravity.TOP, 2, 3, mInRect, 5, 5, mOutRect)
    [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. */
85 * Binary mask to get the horizontal gravity of a gravity.
90 * Binary mask to get the vertical gravity of a gravity.
110 * Apply a gravity constant to an object.
112 * @param gravity The desired placement of the object, as defined by th
    [all...]
  /frameworks/base/core/java/android/widget/
FrameLayout.java 29 import android.view.Gravity;
71 private int mForegroundGravity = Gravity.FILL;
114 * @param foregroundGravity See {@link android.view.Gravity}
121 if ((foregroundGravity & Gravity.HORIZONTAL_GRAVITY_MASK) == 0) {
122 foregroundGravity |= Gravity.LEFT;
125 if ((foregroundGravity & Gravity.VERTICAL_GRAVITY_MASK) == 0) {
126 foregroundGravity |= Gravity.TOP;
132 if (mForegroundGravity == Gravity.FILL && mForeground != null) {
209 if (mForegroundGravity == Gravity.FILL) {
301 final int gravity = lp.gravity local
451 public int gravity = -1; field in class:FrameLayout.LayoutParams
    [all...]
RelativeLayout.java 32 import android.view.Gravity;
156 private int mGravity = Gravity.LEFT | Gravity.TOP;
190 * Defines which View is ignored when the gravity is applied. This setting has no
191 * effect if the gravity is <code>Gravity.LEFT | Gravity.TOP</code>.
193 * @param viewId The id of the View to be ignored by gravity, or 0 if no View
207 * <code>Gravity.LEFT | Gravity.TOP</code>
234 final int gravity = horizontalGravity & Gravity.HORIZONTAL_GRAVITY_MASK; local
243 final int gravity = verticalGravity & Gravity.VERTICAL_GRAVITY_MASK; local
337 int gravity = mGravity & Gravity.HORIZONTAL_GRAVITY_MASK; local
    [all...]
  /frameworks/base/graphics/java/android/graphics/drawable/
BitmapDrawable.java 32 import android.view.Gravity;
67 private final Rect mDstRect = new Rect(); // Gravity.apply() sets this
229 /** Get the gravity used to position/stretch the bitmap within its bounds.
230 * See android.view.Gravity
231 * @return the gravity applied to the bitmap
237 /** Set the gravity used to position/stretch the bitmap within its bounds.
238 See android.view.Gravity
239 * @param gravity the gravity
241 public void setGravity(int gravity) {
    [all...]
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);
209 Gravity.apply(mClipState.mGravity, w, h, bounds, r);
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);
220 Gravity.apply(mScaleState.mGravity, w, h, bounds, r);
  /cts/tests/tests/graphics/src/android/graphics/drawable/cts/
ScaleDrawableTest.java 43 import android.view.Gravity;
65 ScaleDrawable scaleDrawable = new ScaleDrawable(d, Gravity.CENTER, 100, 200);
79 Gravity.CENTER, 100, 200);
104 Gravity.CENTER, 100, 200);
132 Gravity.CENTER, 100, 200);
195 ScaleDrawable scaleDrawable = new ScaleDrawable(mockDrawable, Gravity.CENTER, 100, 200);
221 ScaleDrawable scaleDrawable = new ScaleDrawable(mockDrawable, Gravity.CENTER, 100, 200);
242 ScaleDrawable scaleDrawable = new ScaleDrawable(mockDrawable, Gravity.CENTER, 100, 200);
263 ScaleDrawable scaleDrawable = new ScaleDrawable(mockDrawable, Gravity.CENTER, 100, 200);
288 ScaleDrawable scaleDrawable = new ScaleDrawable(mockDrawable, Gravity.CENTER, 100, 200)
    [all...]
  /prebuilt/sdk/4/
android.jar 
  /prebuilt/sdk/5/
android.jar 
  /prebuilt/sdk/6/
android.jar 
  /prebuilt/sdk/7/
android.jar 

Completed in 333 milliseconds