/frameworks/base/core/java/android/inputmethodservice/ |
H A D | SoftInputWindow.java | 97 if (lp.gravity == Gravity.TOP || lp.gravity == Gravity.BOTTOM) { 116 if (lp.gravity == Gravity.TOP || lp.gravity == Gravity.BOTTOM) { 129 * @param gravity The boundary of the screen to stick. See {#link 134 public void setGravity(int gravity) { argument 137 boolean oldIsVertical = (lp.gravity == Gravity.TOP || lp.gravity == Gravity.BOTTOM); 139 lp.gravity = gravity; [all...] |
/frameworks/base/test-runner/src/android/test/ |
H A D | TouchUtils.java | 490 * Get the location of a view. Use the gravity param to specify which part of the view to 494 * @param gravity A combination of (TOP, CENTER_VERTICAL, BOTTOM) and (LEFT, CENTER_HORIZONTAL, 498 private static void getStartLocation(View v, int gravity, int[] xy) { argument 504 switch (gravity & Gravity.VERTICAL_GRAVITY_MASK) { 517 switch (gravity & Gravity.HORIZONTAL_GRAVITY_MASK) { 536 * @param gravity Which part of the view to use for the initial down event. A combination of 548 public static int dragViewBy(ActivityInstrumentationTestCase test, View v, int gravity, argument 550 return dragViewBy((InstrumentationTestCase) test, v, gravity, deltaX, deltaY); 558 * @param gravity Which part of the view to use for the initial down event. A combination of 570 public static int dragViewBy(InstrumentationTestCase test, View v, int gravity, in argument 603 dragViewTo(ActivityInstrumentationTestCase test, View v, int gravity, int toX, int toY) argument 620 dragViewTo(InstrumentationTestCase test, View v, int gravity, int toX, int toY) argument 654 dragViewToX(ActivityInstrumentationTestCase test, View v, int gravity, int toX) argument 670 dragViewToX(InstrumentationTestCase test, View v, int gravity, int toX) argument 701 dragViewToY(ActivityInstrumentationTestCase test, View v, int gravity, int toY) argument 717 dragViewToY(InstrumentationTestCase test, View v, int gravity, int toY) argument [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. */ 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. 128 * @param gravity Th 138 apply(int gravity, int w, int h, Rect container, Rect outRect) argument 160 apply(int gravity, int w, int h, Rect container, Rect outRect, int layoutDirection) argument 187 apply(int gravity, int w, int h, Rect container, int xAdj, int yAdj, Rect outRect) argument 298 apply(int gravity, int w, int h, Rect container, int xAdj, int yAdj, Rect outRect, int layoutDirection) argument 320 applyDisplay(int gravity, Rect display, Rect inoutObj) argument 379 applyDisplay(int gravity, Rect display, Rect inoutObj, int layoutDirection) argument 390 isVertical(int gravity) argument 400 isHorizontal(int gravity) argument 416 getAbsoluteGravity(int gravity, int layoutDirection) argument [all...] |
H A D | Window.java | 624 * Set the gravity of the window, as per the Gravity constants. This 628 * @param gravity The desired gravity constant. 633 public void setGravity(int gravity) argument 636 attrs.gravity = gravity;
|
H A D | WindowManager.java | 79 * X position for this window. With the default gravity it is ignored. 87 * Y position for this window. With the default gravity it is ignored. 983 * given as the desired gravity. For example you can specify 992 public int gravity; field in class:WindowManager.LayoutParams 1213 out.writeInt(gravity); 1253 gravity = in.readInt(); 1352 if (gravity != o.gravity) { 1353 gravity = o.gravity; [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | Toast.java | 198 public void setGravity(int gravity, int xOffset, int yOffset) { argument 199 mTN.mGravity = gravity; 214 * Return the X offset in pixels to apply to the gravity's location. 221 * Return the Y offset in pixels to apply to the gravity's location. 374 final int gravity = mGravity; 375 mParams.gravity = gravity; 376 if ((gravity & Gravity.HORIZONTAL_GRAVITY_MASK) == Gravity.FILL_HORIZONTAL) { 379 if ((gravity & Gravity.VERTICAL_GRAVITY_MASK) == Gravity.FILL_VERTICAL) {
|
H A D | FrameLayout.java | 42 * and control their position within the FrameLayout by assigning gravity to each child, using the 127 * @return foreground gravity. 409 int gravity = lp.gravity; 410 if (gravity == -1) { 411 gravity = DEFAULT_CHILD_GRAVITY; 415 final int absoluteGravity = Gravity.getAbsoluteGravity(gravity, layoutDirection); 416 final int verticalGravity = gravity & Gravity.VERTICAL_GRAVITY_MASK; 597 * The gravity to apply with the View to which these layout parameters 604 public int gravity field in class:FrameLayout.LayoutParams 636 LayoutParams(int width, int height, int gravity) argument [all...] |
H A D | Spinner.java | 351 * @param gravity See {@link android.view.Gravity} 355 public void setGravity(int gravity) { argument 356 if (mGravity != gravity) { 357 if ((gravity & Gravity.HORIZONTAL_GRAVITY_MASK) == 0) { 358 gravity |= Gravity.LEFT; 360 mGravity = gravity; 583 // Position vertically based on gravity setting
|
H A D | Gallery.java | 894 // Position vertically based on gravity setting 1316 * @param gravity 1320 public void setGravity(int gravity) argument 1322 if (mGravity != gravity) { 1323 mGravity = gravity;
|
H A D | GridView.java | 1922 * Set the gravity for this grid. Gravity describes how the child views 1925 * @param gravity the gravity to apply to this grid's children 1929 public void setGravity(int gravity) { argument 1930 if (mGravity != gravity) { 1931 mGravity = gravity; 1939 * @return the gravity that will be applied to this grid's children 2128 * our gravity
|
H A D | LinearLayout.java | 38 * You can also specify gravity, which specifies the alignment of all the child elements by 1077 // Translates the child's vertical gravity into an index 1079 final int gravity = (lp.gravity < 0 ? mGravity : lp.gravity) 1081 final int index = ((gravity >> Gravity.AXIS_Y_SHIFT) 1250 // Translates the child's vertical gravity into an index in the range 0..2 1251 final int gravity = (lp.gravity < 0 ? mGravity : lp.gravity) 1686 setGravity(int gravity) argument 1803 public int gravity = -1; field in class:LinearLayout.LayoutParams [all...] |
H A D | PopupWindow.java | 798 * for more information on how gravity and the x and y parameters are related. Specifying 799 * a gravity of {@link android.view.Gravity#NO_GRAVITY} is similar to specifying 804 * @param gravity the gravity which controls the placement of the popup window 808 public void showAtLocation(View parent, int gravity, int x, int y) { argument 809 showAtLocation(parent.getWindowToken(), gravity, x, y); 816 * @param gravity the gravity which controls the placement of the popup window 823 public void showAtLocation(IBinder token, int gravity, int x, int y) { argument 837 if (gravity [all...] |
H A D | RelativeLayout.java | 206 * Defines which View is ignored when the gravity is applied. This setting has no 207 * effect if the gravity is <code>Gravity.LEFT | Gravity.TOP</code>. 209 * @param viewId The id of the View to be ignored by gravity, or 0 if no View 224 * @return the gravity. 240 * relative to one another to be significant, setting gravity will affect 244 * @param gravity See {@link android.view.Gravity} 252 public void setGravity(int gravity) { argument 253 if (mGravity != gravity) { 254 if ((gravity & Gravity.RELATIVE_HORIZONTAL_GRAVITY_MASK) == 0) { 255 gravity | [all...] |
H A D | GridLayout.java | 107 * {@link LayoutParams#setGravity(int) gravity} property of the child's layout parameters). 120 * gravity. To prevent a column from stretching, ensure that one of the components 121 * in the column does not define a gravity. 135 * use {@link #CENTER} alignment (or {@link LayoutParams#setGravity(int) gravity}). 577 static Alignment getAlignment(int gravity, boolean horizontal) { argument 580 int flags = (gravity & mask) >> shift; 1053 This method is then left with the simpler task of applying margins, gravity 1972 int gravity = a.getInt(GRAVITY, Gravity.NO_GRAVITY); 1976 this.columnSpec = spec(column, colSpan, getAlignment(gravity, true)); 1980 this.rowSpec = spec(row, rowSpan, getAlignment(gravity, fals 1994 setGravity(int gravity) argument [all...] |
H A D | TextView.java | 1597 final int gravity = mGravity & Gravity.VERTICAL_GRAVITY_MASK; 1598 if (gravity == Gravity.TOP) { 1600 } else if (gravity == Gravity.BOTTOM) { 1602 } else { // (gravity == Gravity.CENTER_VERTICAL) 1630 final int gravity = mGravity & Gravity.VERTICAL_GRAVITY_MASK; 1631 if (gravity == Gravity.TOP) { 1633 } else if (gravity == Gravity.BOTTOM) { 1635 } else { // (gravity == Gravity.CENTER_VERTICAL) 1677 * from showing, and the vertical offset for gravity, if any. 1686 * from showing, and the vertical offset for gravity, i 2666 setGravity(int gravity) argument [all...] |
/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 | 239 /** Get the gravity used to position/stretch the bitmap within its bounds. 241 * @return the gravity applied to the bitmap 247 /** Set the gravity used to position/stretch the bitmap within its bounds. 249 * @param gravity the gravity 251 public void setGravity(int gravity) { argument 252 if (mBitmapState.mGravity != gravity) { 253 mBitmapState.mGravity = gravity;
|
/frameworks/support/v4/java/android/support/v4/view/ |
H A D | PagerTitleStrip.java | 65 android.R.attr.gravity 227 * Only the vertical gravity component is used. 229 * @param gravity {@link Gravity} constant for positioning title text 231 public void setGravity(int gravity) { argument 232 mGravity = gravity;
|
H A D | ViewPager.java | 1181 * views won't intersect. We will pin to edges based on gravity. 1189 final int hgrav = lp.gravity & Gravity.HORIZONTAL_GRAVITY_MASK; 1190 final int vgrav = lp.gravity & Gravity.VERTICAL_GRAVITY_MASK; 1318 final int hgrav = lp.gravity & Gravity.HORIZONTAL_GRAVITY_MASK; 1319 final int vgrav = lp.gravity & Gravity.VERTICAL_GRAVITY_MASK; 1478 final int hgrav = lp.gravity & Gravity.HORIZONTAL_GRAVITY_MASK; 2543 public int gravity; field in class:ViewPager.LayoutParams 2564 gravity = a.getInteger(0, Gravity.TOP);
|
/frameworks/base/core/java/android/app/ |
H A D | ActionBar.java | 928 public int gravity = -1; field in class:ActionBar.LayoutParams 935 gravity = a.getInt( 942 this.gravity = Gravity.CENTER_VERTICAL | Gravity.LEFT; 945 public LayoutParams(int width, int height, int gravity) { argument 947 this.gravity = gravity; 950 public LayoutParams(int gravity) { argument 951 this(WRAP_CONTENT, MATCH_PARENT, gravity); 957 this.gravity = source.gravity; [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
H A D | ExpandHelper.java | 157 * @param scoller if non-null also manipulate the scroll position to obey the gravity. 305 public void setGravity(int gravity) { argument 306 mGravity = gravity;
|
/frameworks/base/core/java/android/hardware/ |
H A D | SensorManager.java | 250 /** Standard gravity (g) on Earth. This value is equivalent to 1G */ 253 /** Sun's gravity in SI units (m/s^2) */ 255 /** Mercury's gravity in SI units (m/s^2) */ 257 /** Venus' gravity in SI units (m/s^2) */ 259 /** Earth's gravity in SI units (m/s^2) */ 261 /** The Moon's gravity in SI units (m/s^2) */ 263 /** Mars' gravity in SI units (m/s^2) */ 265 /** Jupiter's gravity in SI units (m/s^2) */ 267 /** Saturn's gravity in SI units (m/s^2) */ 269 /** Uranus' gravity i 786 getRotationMatrix(float[] R, float[] I, float[] gravity, float[] geomagnetic) argument [all...] |
/frameworks/base/policy/src/com/android/internal/policy/impl/ |
H A D | PhoneWindow.java | 622 lp.gravity = getOptionsPanelGravity(); 625 lp.gravity = st.gravity; 1046 st.gravity = Gravity.CENTER | Gravity.BOTTOM; 1053 * Determine the gravity value for the options panel. This can 1056 * @return gravity value to use for the panel window 1074 lp.gravity = getOptionsPanelGravity(); 3232 int gravity; field in class:PhoneWindow.PanelFeatureState
|
/frameworks/support/v7/gridlayout/src/android/support/v7/widget/ |
H A D | GridLayout.java | 107 * {@link LayoutParams#setGravity(int) gravity} property of the child's layout parameters). 120 * gravity. To prevent a column from stretching, ensure that one of the components 121 * in the column does not define a gravity. 135 * use {@link #CENTER} alignment (or {@link LayoutParams#setGravity(int) gravity}). 557 static Alignment getAlignment(int gravity, boolean horizontal) { argument 560 int flags = (gravity & mask) >> shift; 992 This method is then left with the simpler task of applying margins, gravity 1905 int gravity = a.getInt(GRAVITY, Gravity.NO_GRAVITY); 1909 this.columnSpec = spec(column, colSpan, getAlignment(gravity, true)); 1913 this.rowSpec = spec(row, rowSpan, getAlignment(gravity, fals 1927 setGravity(int gravity) argument [all...] |