/frameworks/base/core/java/android/inputmethodservice/ |
H A D | SoftInputWindow.java | 79 if (lp.gravity == Gravity.TOP || lp.gravity == Gravity.BOTTOM) { 98 if (lp.gravity == Gravity.TOP || lp.gravity == Gravity.BOTTOM) { 111 * @param gravity The boundary of the screen to stick. See {#link 116 public void setGravity(int gravity) { argument 119 boolean oldIsVertical = (lp.gravity == Gravity.TOP || lp.gravity == Gravity.BOTTOM); 121 lp.gravity = gravity; [all...] |
/frameworks/base/core/java/android/view/ |
H A D | Gravity.java | 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 the 122 public static void apply(int gravity, in argument 148 apply(int gravity, int w, int h, Rect container, int xAdj, int yAdj, Rect outRect) argument 249 applyDisplay(int gravity, Rect display, Rect inoutObj) argument 293 isVertical(int gravity) argument 303 isHorizontal(int gravity) argument [all...] |
H A D | WindowManager.java | 71 * X position for this window. With the default gravity it is ignored. 78 * Y position for this window. With the default gravity it is ignored. 783 public int gravity; field in class:WindowManager.LayoutParams 928 out.writeInt(gravity); 964 gravity = in.readInt(); 1049 if (gravity != o.gravity) { 1050 gravity = o.gravity; 1135 if (gravity ! [all...] |
H A D | Window.java | 519 * Set the gravity of the window, as per the Gravity constants. This 523 * @param gravity The desired gravity constant. 528 public void setGravity(int gravity) argument 531 attrs.gravity = gravity;
|
H A D | SurfaceView.java | 475 mLayout.gravity = Gravity.LEFT|Gravity.TOP;
|
/frameworks/base/test-runner/src/android/test/ |
H A D | TouchUtils.java | 489 * Get the location of a view. Use the gravity param to specify which part of the view to 493 * @param gravity A combination of (TOP, CENTER_VERTICAL, BOTTOM) and (LEFT, CENTER_HORIZONTAL, 497 private static void getStartLocation(View v, int gravity, int[] xy) { argument 503 switch (gravity & Gravity.VERTICAL_GRAVITY_MASK) { 516 switch (gravity & Gravity.HORIZONTAL_GRAVITY_MASK) { 535 * @param gravity Which part of the view to use for the initial down event. A combination of 547 public static int dragViewBy(ActivityInstrumentationTestCase test, View v, int gravity, argument 549 return dragViewBy((InstrumentationTestCase) test, v, gravity, deltaX, deltaY); 557 * @param gravity Which part of the view to use for the initial down event. A combination of 569 public static int dragViewBy(InstrumentationTestCase test, View v, int gravity, in argument 602 dragViewTo(ActivityInstrumentationTestCase test, View v, int gravity, int toX, int toY) argument 619 dragViewTo(InstrumentationTestCase test, View v, int gravity, int toX, int toY) argument 653 dragViewToX(ActivityInstrumentationTestCase test, View v, int gravity, int toX) argument 669 dragViewToX(InstrumentationTestCase test, View v, int gravity, int toX) argument 700 dragViewToY(ActivityInstrumentationTestCase test, View v, int gravity, int toY) argument 716 dragViewToY(InstrumentationTestCase test, View v, int gravity, int toY) argument [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | Toast.java | 191 public void setGravity(int gravity, int xOffset, int yOffset) { argument 192 mGravity = gravity; 207 * Return the X offset in pixels to apply to the gravity's location. 214 * Return the Y offset in pixels to apply to the gravity's location. 355 final int gravity = mGravity; 356 mParams.gravity = gravity; 357 if ((gravity & Gravity.HORIZONTAL_GRAVITY_MASK) == Gravity.FILL_HORIZONTAL) { 360 if ((gravity & Gravity.VERTICAL_GRAVITY_MASK) == Gravity.FILL_VERTICAL) {
|
H A D | LinearLayout.java | 34 * You can also specify gravity, which specifies the alignment of all the child elements by 739 // Translates the child's vertical gravity into an index 741 final int gravity = (lp.gravity < 0 ? mGravity : lp.gravity) 743 final int index = ((gravity >> Gravity.AXIS_Y_SHIFT) 902 // Translates the child's vertical gravity into an index in the range 0..2 903 final int gravity = (lp.gravity < 0 ? mGravity : lp.gravity) 1291 setGravity(int gravity) argument 1394 public int gravity = -1; field in class:LinearLayout.LayoutParams [all...] |
H A D | FrameLayout.java | 301 final int gravity = lp.gravity; 303 if (gravity != -1) { 304 final int horizontalGravity = gravity & Gravity.HORIZONTAL_GRAVITY_MASK; 305 final int verticalGravity = gravity & Gravity.VERTICAL_GRAVITY_MASK; 446 * The gravity to apply with the View to which these layout parameters 451 public int gravity = -1; field in class:FrameLayout.LayoutParams 460 gravity = a.getInt(com.android.internal.R.styleable.FrameLayout_Layout_layout_gravity, -1); 479 * @param gravity the gravity 483 LayoutParams(int width, int height, int gravity) argument [all...] |
H A D | RelativeLayout.java | 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 209 * @param gravity See {@link android.view.Gravity} 217 public void setGravity(int gravity) { argument 218 if (mGravity != gravity) { 219 if ((gravity & Gravity.HORIZONTAL_GRAVITY_MASK) == 0) { 220 gravity |= Gravity.LEFT; 223 if ((gravity & Gravity.VERTICAL_GRAVITY_MASK) == 0) { 224 gravity | [all...] |
H A D | TableRow.java | 204 final int gravity = lp.gravity; 205 final boolean isHorizontalGravity = Gravity.isHorizontal(gravity); 227 switch (gravity & Gravity.HORIZONTAL_GRAVITY_MASK) {
|
H A D | PopupWindow.java | 737 * for more information on how gravity and the x and y parameters are related. Specifying 738 * a gravity of {@link android.view.Gravity#NO_GRAVITY} is similar to specifying 743 * @param gravity the gravity which controls the placement of the popup window 747 public void showAtLocation(View parent, int gravity, int x, int y) { argument 761 if (gravity == Gravity.NO_GRAVITY) { 762 gravity = Gravity.TOP | Gravity.LEFT; 764 p.gravity = gravity; 921 // these gravity setting [all...] |
H A D | Gallery.java | 794 // Position vertically based on gravity setting 1227 * @param gravity 1231 public void setGravity(int gravity) argument 1233 if (mGravity != gravity) { 1234 mGravity = gravity;
|
H A D | TextView.java | 1294 final int gravity = mGravity & Gravity.VERTICAL_GRAVITY_MASK; 1295 if (gravity == Gravity.TOP) { 1297 } else if (gravity == Gravity.BOTTOM) { 1299 } else { // (gravity == Gravity.CENTER_VERTICAL) 1327 final int gravity = mGravity & Gravity.VERTICAL_GRAVITY_MASK; 1328 if (gravity == Gravity.TOP) { 1330 } else if (gravity == Gravity.BOTTOM) { 1332 } else { // (gravity == Gravity.CENTER_VERTICAL) 1356 * from showing, and the vertical offset for gravity, if any. 1365 * from showing, and the vertical offset for gravity, i 1987 setGravity(int gravity) argument [all...] |
H A D | GridView.java | 1690 * @param gravity the gravity to apply to this grid's children 1694 public void setGravity(int gravity) { argument 1695 if (mGravity != gravity) { 1696 mGravity = gravity; 1783 * our gravity
|
H A D | MediaController.java | 294 p.gravity = Gravity.TOP;
|
H A D | ZoomButtonsController.java | 244 lp.gravity = Gravity.TOP | Gravity.LEFT; 423 * respects the gravity of a child's layout parameters.
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | ClipDrawable.java | 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) { argument 66 mClipState.mGravity = gravity;
|
H A D | ScaleDrawable.java | 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) { argument 59 mScaleState.mGravity = gravity;
|
H A D | BitmapDrawable.java | 229 /** Get the gravity used to position/stretch the bitmap within its bounds. 231 * @return the gravity applied to the bitmap 237 /** Set the gravity used to position/stretch the bitmap within its bounds. 239 * @param gravity the gravity 241 public void setGravity(int gravity) { argument 242 mBitmapState.mGravity = gravity;
|
/frameworks/base/core/java/android/appwidget/ |
H A D | AppWidgetHostView.java | 321 // Take requested dimensions from child, but apply default gravity. 328 requested.gravity = Gravity.CENTER;
|
/frameworks/base/core/java/android/hardware/ |
H A D | SensorManager.java | 253 /** Standard gravity (g) on Earth. This value is equivalent to 1G */ 256 /** Sun's gravity in SI units (m/s^2) */ 258 /** Mercury's gravity in SI units (m/s^2) */ 260 /** Venus' gravity in SI units (m/s^2) */ 262 /** Earth's gravity in SI units (m/s^2) */ 264 /** The Moon's gravity in SI units (m/s^2) */ 266 /** Mars' gravity in SI units (m/s^2) */ 268 /** Jupiter's gravity in SI units (m/s^2) */ 270 /** Saturn's gravity in SI units (m/s^2) */ 272 /** Uranus' gravity i 1299 getRotationMatrix(float[] R, float[] I, float[] gravity, float[] geomagnetic) argument [all...] |
/frameworks/base/services/java/com/android/server/ |
H A D | LoadAverageService.java | 279 params.gravity = Gravity.RIGHT | Gravity.TOP;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | StatusBarService.java | 337 lp.gravity = Gravity.TOP | Gravity.FILL_HORIZONTAL; 1213 lp.gravity = Gravity.TOP | Gravity.FILL_HORIZONTAL; 1242 lp.gravity = Gravity.TOP | Gravity.FILL_HORIZONTAL;
|
/frameworks/base/policy/src/com/android/internal/policy/impl/ |
H A D | PhoneWindow.java | 478 lp.gravity = st.gravity; 832 st.gravity = Gravity.CENTER | Gravity.BOTTOM; 2586 int gravity; field in class:PhoneWindow.PanelFeatureState
|