/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/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...] |
/hardware/invensense/libsensors/ |
MPLSensor.h | 53 Gravity,
|
/packages/apps/Settings/src/com/android/settings/widget/ |
ChartView.java | 25 import android.view.Gravity; 41 private static final int SWEEP_GRAVITY = Gravity.TOP | Gravity.START; 119 Gravity.apply(params.gravity, width, height, parentRect, childRect); 146 Gravity.apply(SWEEP_GRAVITY, parentRect.width(), sweep.getMeasuredHeight(), 154 Gravity.apply(SWEEP_GRAVITY, sweep.getMeasuredWidth(), parentRect.height(),
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
BitmapDrawable.java | 32 import android.view.Gravity; 66 private final Rect mDstRect = new Rect(); // Gravity.apply() sets this 239 /** Get the gravity used to position/stretch the bitmap within its bounds. 240 * See android.view.Gravity 241 * @return the gravity applied to the bitmap 247 /** Set the gravity used to position/stretch the bitmap within its bounds. 248 See android.view.Gravity 249 * @param gravity the gravity 251 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); 213 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); 225 Gravity.apply(mScaleState.mGravity, w, h, bounds, r, layoutDirection);
|
/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.LEFT | 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) 409 int gravity = lp.gravity; local 604 public int gravity = -1; field in class:FrameLayout.LayoutParams [all...] |
RelativeLayout.java | 38 import android.view.Gravity; 193 private int mGravity = Gravity.START | Gravity.TOP; 232 * Defines which View is ignored when the gravity is applied. This setting has no 233 * effect if the gravity is <code>Gravity.START | Gravity.TOP</code>. 235 * @param viewId The id of the View to be ignored by gravity, or 0 if no View 250 * @return the gravity. 253 * @see android.view.Gravity 295 final int gravity = horizontalGravity & Gravity.RELATIVE_HORIZONTAL_GRAVITY_MASK; local 304 final int gravity = verticalGravity & Gravity.VERTICAL_GRAVITY_MASK; local 397 int gravity = mGravity & Gravity.RELATIVE_HORIZONTAL_GRAVITY_MASK; local [all...] |
/frameworks/base/services/java/com/android/server/wm/ |
WindowState.java | 40 import android.view.Gravity; 452 Gravity.apply(mAttrs.gravity, w, h, container, 459 Gravity.applyDisplay(mAttrs.gravity, df, frame); [all...] |
/hardware/invensense/libsensors_iio/ |
MPLSensor.h | 126 Gravity,
|
/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...] |
/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/4/ |
android.jar | |
/prebuilts/sdk/5/ |
android.jar | |
/prebuilts/sdk/6/ |
android.jar | |
/prebuilts/sdk/7/ |
android.jar | |
/prebuilts/sdk/9/ |
android.jar | |
/prebuilts/sdk/current/ |
android.jar | |