/frameworks/base/core/java/android/app/ |
H A D | ActionBar.java | 1331 public int gravity = Gravity.NO_GRAVITY; field in class:ActionBar.LayoutParams 1338 gravity = a.getInt( 1346 this.gravity = Gravity.CENTER_VERTICAL | Gravity.START; 1349 public LayoutParams(int width, int height, int gravity) { argument 1352 this.gravity = gravity; 1355 public LayoutParams(int gravity) { argument 1356 this(WRAP_CONTENT, MATCH_PARENT, gravity); 1361 this.gravity = source.gravity; [all...] |
/frameworks/base/core/java/android/hardware/ |
H A D | SensorManager.java | 254 /** Standard gravity (g) on Earth. This value is equivalent to 1G */ 257 /** Sun's gravity in SI units (m/s^2) */ 259 /** Mercury's gravity in SI units (m/s^2) */ 261 /** Venus' gravity in SI units (m/s^2) */ 263 /** Earth's gravity in SI units (m/s^2) */ 265 /** The Moon's gravity in SI units (m/s^2) */ 267 /** Mars' gravity in SI units (m/s^2) */ 269 /** Jupiter's gravity in SI units (m/s^2) */ 271 /** Saturn's gravity in SI units (m/s^2) */ 273 /** Uranus' gravity i 971 getRotationMatrix(float[] R, float[] I, float[] gravity, float[] geomagnetic) argument [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | Gallery.java | 914 // Position vertically based on gravity setting 1329 * @param gravity 1333 public void setGravity(int gravity) argument 1335 if (mGravity != gravity) { 1336 mGravity = gravity;
|
H A D | GridView.java | 2028 * Set the gravity for this grid. Gravity describes how the child views 2031 * @param gravity the gravity to apply to this grid's children 2035 public void setGravity(int gravity) { argument 2036 if (mGravity != gravity) { 2037 mGravity = gravity; 2045 * @return the gravity that will be applied to this grid's children 2235 * our gravity
|
H A D | LinearLayout.java | 42 * You can also specify gravity, which specifies the alignment of all the child elements by 1122 // Translates the child's vertical gravity into an index 1124 final int gravity = (lp.gravity < 0 ? mGravity : lp.gravity) 1126 final int index = ((gravity >> Gravity.AXIS_Y_SHIFT) 1296 // Translates the child's vertical gravity into an index in the range 0..2 1297 final int gravity = (lp.gravity < 0 ? mGravity : lp.gravity) 1741 setGravity(int gravity) argument 1858 public int gravity = -1; field in class:LinearLayout.LayoutParams [all...] |
H A D | PopupWindow.java | 840 * for more information on how gravity and the x and y parameters are related. Specifying 841 * a gravity of {@link android.view.Gravity#NO_GRAVITY} is similar to specifying 846 * @param gravity the gravity which controls the placement of the popup window 850 public void showAtLocation(View parent, int gravity, int x, int y) { argument 851 showAtLocation(parent.getWindowToken(), gravity, x, y); 858 * @param gravity the gravity which controls the placement of the popup window 865 public void showAtLocation(IBinder token, int gravity, int x, int y) { argument 879 if (gravity 942 showAsDropDown(View anchor, int xoff, int yoff, int gravity) argument 1174 findDropDownPosition(View anchor, WindowManager.LayoutParams p, int xoff, int yoff, int gravity) argument 1547 update(View anchor, boolean updateLocation, int xoff, int yoff, boolean updateDimension, int width, int height, int gravity) argument 1617 registerForScrollChanged(View anchor, int xoff, int yoff, int gravity) argument [all...] |
H A D | RelativeLayout.java | 274 * Defines which View is ignored when the gravity is applied. This setting has no 275 * effect if the gravity is <code>Gravity.START | Gravity.TOP</code>. 277 * @param viewId The id of the View to be ignored by gravity, or 0 if no View 292 * @return the gravity. 308 * relative to one another to be significant, setting gravity will affect 312 * @param gravity See {@link android.view.Gravity} 320 public void setGravity(int gravity) { argument 321 if (mGravity != gravity) { 322 if ((gravity & Gravity.RELATIVE_HORIZONTAL_GRAVITY_MASK) == 0) { 323 gravity | [all...] |
H A D | Spinner.java | 388 * @param gravity See {@link android.view.Gravity} 392 public void setGravity(int gravity) { argument 393 if (mGravity != gravity) { 394 if ((gravity & Gravity.HORIZONTAL_GRAVITY_MASK) == 0) { 395 gravity |= Gravity.START; 397 mGravity = gravity; 662 // Position vertically based on gravity setting
|
H A D | ListPopupWindow.java | 459 * Set the gravity of the dropdown list. This is commonly used to 460 * set gravity to START or END for alignment with the anchor. 462 * @param gravity Gravity value to use 464 public void setDropDownGravity(int gravity) { argument 465 mDropDownGravity = gravity;
|
H A D | Toolbar.java | 835 lp.gravity = Gravity.END | (mButtonGravity & Gravity.VERTICAL_GRAVITY_MASK); 989 lp.gravity = Gravity.START | (mButtonGravity & Gravity.VERTICAL_GRAVITY_MASK); 999 lp.gravity = Gravity.START | (mButtonGravity & Gravity.VERTICAL_GRAVITY_MASK); 1568 switch (getChildVerticalGravity(lp.gravity)) { 1596 private int getChildVerticalGravity(int gravity) { argument 1597 final int vgrav = gravity & Gravity.VERTICAL_GRAVITY_MASK; 1613 * @param gravity Horizontal gravity to match against 1615 private void addCustomViewsWithGravity(List<View> views, int gravity) { argument 1618 final int absGrav = Gravity.getAbsoluteGravity(gravity, getLayoutDirectio 1643 getChildHorizontalGravity(int gravity) argument 1788 LayoutParams(int width, int height, int gravity) argument 1793 LayoutParams(int gravity) argument [all...] |
H A D | GridLayout.java | 114 * {@link LayoutParams#setGravity(int) gravity} property of the child's layout parameters. 127 * weight or a gravity. To prevent a column from stretching, ensure that one of the components 128 * in the column does not define a weight or a gravity. 144 * no gravity was defined on the view. If gravity was defined, then the gone-marked 627 static Alignment getAlignment(int gravity, boolean horizontal) { argument 630 int flags = (gravity & mask) >> shift; 1112 This method is then left with the simpler task of applying margins, gravity 2136 int gravity = a.getInt(GRAVITY, Gravity.NO_GRAVITY); 2141 this.columnSpec = spec(column, colSpan, getAlignment(gravity, tru 2160 setGravity(int gravity) argument [all...] |
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | BitmapDrawable.java | 98 /** Optical insets due to gravity. */ 273 /** Get the gravity used to position/stretch the bitmap within its bounds. 275 * @return the gravity applied to the bitmap 281 /** Set the gravity used to position/stretch the bitmap within its bounds. 283 * @param gravity the gravity 285 public void setGravity(int gravity) { argument 286 if (mBitmapState.mGravity != gravity) { 287 mBitmapState.mGravity = gravity;
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
H A D | BaseGridView.java | 481 * @param gravity See {@link android.view.Gravity} 483 public void setGravity(int gravity) { argument 484 mLayoutManager.setGravity(gravity);
|
H A D | GridLayoutManager.java | 495 public void setGravity(int gravity) { argument 496 mGravity = gravity;
|
/frameworks/support/v7/appcompat/src/android/support/v7/app/ |
H A D | ActionBar.java | 1319 public int gravity = Gravity.NO_GRAVITY; field in class:ActionBar.LayoutParams 1325 gravity = a.getInt(R.styleable.ActionBarLayout_android_layout_gravity, Gravity.NO_GRAVITY); 1331 this.gravity = Gravity.CENTER_VERTICAL | GravityCompat.START; 1334 public LayoutParams(int width, int height, int gravity) { argument 1336 this.gravity = gravity; 1339 public LayoutParams(int gravity) { argument 1340 this(WRAP_CONTENT, MATCH_PARENT, gravity); 1346 this.gravity = source.gravity; [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/ |
H A D | SpinnerCompat.java | 346 * @param gravity See {@link android.view.Gravity} 348 public void setGravity(int gravity) { argument 349 if (mGravity != gravity) { 350 if ((gravity & Gravity.HORIZONTAL_GRAVITY_MASK) == 0) { 351 gravity |= GravityCompat.START; 353 mGravity = gravity; 582 // Position vertically based on gravity setting
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
H A D | LinearLayoutCompat.java | 44 * You can also specify gravity, which specifies the alignment of all the child elements by 1059 // Translates the child's vertical gravity into an index 1061 final int gravity = (lp.gravity < 0 ? mGravity : lp.gravity) 1063 final int index = ((gravity >> Gravity.AXIS_Y_SHIFT) 1233 // Translates the child's vertical gravity into an index in the range 0..2 1234 final int gravity = (lp.gravity < 0 ? mGravity : lp.gravity) 1674 setGravity(int gravity) argument 1771 public int gravity = -1; field in class:LinearLayoutCompat.LayoutParams [all...] |
H A D | ListPopupWindow.java | 462 * Set the gravity of the dropdown list. This is commonly used to 463 * set gravity to START or END for alignment with the anchor. 465 * @param gravity Gravity value to use 467 public void setDropDownGravity(int gravity) { argument 468 mDropDownGravity = gravity;
|
H A D | Toolbar.java | 839 lp.gravity = GravityCompat.END | (mButtonGravity & Gravity.VERTICAL_GRAVITY_MASK); 994 lp.gravity = GravityCompat.START | (mButtonGravity & Gravity.VERTICAL_GRAVITY_MASK); 1005 lp.gravity = GravityCompat.START | (mButtonGravity & Gravity.VERTICAL_GRAVITY_MASK); 1563 switch (getChildVerticalGravity(lp.gravity)) { 1591 private int getChildVerticalGravity(int gravity) { argument 1592 final int vgrav = gravity & Gravity.VERTICAL_GRAVITY_MASK; 1608 * @param gravity Horizontal gravity to match against 1610 private void addCustomViewsWithGravity(List<View> views, int gravity) { argument 1613 final int absGrav = GravityCompat.getAbsoluteGravity(gravity, 1639 getChildHorizontalGravity(int gravity) argument 1803 LayoutParams(int width, int height, int gravity) argument 1808 LayoutParams(int gravity) argument [all...] |
/frameworks/base/core/java/android/view/ |
H A D | WindowManager.java | 111 * X position for this window. With the default gravity it is ignored. 119 * Y position for this window. With the default gravity it is ignored. 1268 * given as the desired gravity. For example you can specify 1277 public int gravity; field in class:WindowManager.LayoutParams 1575 out.writeInt(gravity); 1622 gravity = in.readInt(); 1741 if (gravity != o.gravity) { 1742 gravity = o.gravity; [all...] |
H A D | Window.java | 673 * Set the gravity of the window, as per the Gravity constants. This 677 * @param gravity The desired gravity constant. 682 public void setGravity(int gravity) argument 685 attrs.gravity = gravity;
|
/frameworks/support/v4/java/android/support/v4/widget/ |
H A D | DrawerLayout.java | 368 * @param gravity Which drawer the shadow should apply to 370 public void setDrawerShadow(Drawable shadowDrawable, @EdgeGravity int gravity) { argument 377 final int absGravity = GravityCompat.getAbsoluteGravity(gravity, 394 * @param gravity Which drawer the shadow should apply to 396 public void setDrawerShadow(@DrawableRes int resId, @EdgeGravity int gravity) { argument 397 setDrawerShadow(getResources().getDrawable(resId), gravity); 510 final int gravity = ((LayoutParams) drawerView.getLayoutParams()).gravity; 511 setDrawerLockMode(lockMode, gravity); 515 * Check the lock mode of the drawer with the given gravity 742 findDrawerWithGravity(int gravity) argument 762 gravityToString(@dgeGravity int gravity) argument 1291 openDrawer(@dgeGravity int gravity) argument 1331 closeDrawer(@dgeGravity int gravity) argument 1610 ViewDragCallback(int gravity) argument 1768 public int gravity = Gravity.NO_GRAVITY; field in class:DrawerLayout.LayoutParams 1785 LayoutParams(int width, int height, int gravity) argument [all...] |
/frameworks/support/v4/java/android/support/v4/view/ |
H A D | ViewPager.java | 1388 * views won't intersect. We will pin to edges based on gravity. 1396 final int hgrav = lp.gravity & Gravity.HORIZONTAL_GRAVITY_MASK; 1397 final int vgrav = lp.gravity & Gravity.VERTICAL_GRAVITY_MASK; 1523 final int hgrav = lp.gravity & Gravity.HORIZONTAL_GRAVITY_MASK; 1524 final int vgrav = lp.gravity & Gravity.VERTICAL_GRAVITY_MASK; 1688 final int hgrav = lp.gravity & Gravity.HORIZONTAL_GRAVITY_MASK; 2848 public int gravity; field in class:ViewPager.LayoutParams 2879 gravity = a.getInteger(0, Gravity.TOP);
|
/frameworks/support/v7/gridlayout/src/android/support/v7/widget/ |
H A D | GridLayout.java | 111 * {@link LayoutParams#setGravity(int) gravity} property of the child's layout parameters. 124 * weight or a gravity. To prevent a column from stretching, ensure that one of the components 125 * in the column does not define a weight or a gravity. 141 * no gravity was defined on the view. If gravity was defined, then the gone-marked 612 static Alignment getAlignment(int gravity, boolean horizontal) { argument 615 int flags = (gravity & mask) >> shift; 1002 This method is then left with the simpler task of applying margins, gravity 2012 int gravity = a.getInt(GRAVITY, Gravity.NO_GRAVITY); 2017 this.columnSpec = spec(column, colSpan, getAlignment(gravity, tru 2036 setGravity(int gravity) argument [all...] |
/frameworks/support/v4/java/android/support/v4/app/ |
H A D | NotificationCompat.java | 2242 private static final String KEY_GRAVITY = "gravity"; 2563 * Set the gravity that the content icon should have within the notification display. 2574 * Get the gravity that the content icon should have within the notification display. 2621 * Set the gravity that this notification should have within the available viewport space. 2626 public WearableExtender setGravity(int gravity) { argument 2627 mGravity = gravity; 2632 * Get the gravity that this notification should have within the available viewport space.
|