/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/helper/ |
H A D | ItemTouchHelperTest.java | 449 * Get the location of a view. Use the gravity param to specify which part of the view to 453 * @param gravity A combination of (TOP, CENTER_VERTICAL, BOTTOM) and (LEFT, 458 private static void getStartLocation(View v, int gravity, int[] xy) { argument 464 switch (gravity & Gravity.VERTICAL_GRAVITY_MASK) { 477 switch (gravity & Gravity.HORIZONTAL_GRAVITY_MASK) { 496 * @param gravity Which part of the view to use for the initial down event. A combination 503 public static int dragViewTo(InstrumentationTestCase test, View v, int gravity, int toX, argument 507 getStartLocation(v, gravity, xy); 527 * @param gravity Which part of the view to use for the initial down event. A combination 533 public static int dragViewToX(InstrumentationTestCase test, View v, int gravity, in argument 559 dragViewToY(InstrumentationTestCase test, View v, int gravity, int toY) argument [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | PopupWindow.java | 984 * for more information on how gravity and the x and y parameters are related. Specifying 985 * a gravity of {@link android.view.Gravity#NO_GRAVITY} is similar to specifying 990 * @param gravity the gravity which controls the placement of the popup window 994 public void showAtLocation(View parent, int gravity, int x, int y) { argument 995 showAtLocation(parent.getWindowToken(), gravity, x, y); 1002 * @param gravity the gravity which controls the placement of the popup window 1009 public void showAtLocation(IBinder token, int gravity, int x, int y) { argument 1024 // Only override the default if some gravity wa 1092 showAsDropDown(View anchor, int xoff, int yoff, int gravity) argument 1394 findDropDownPosition(View anchor, WindowManager.LayoutParams p, int xoff, int yoff, int gravity) argument 1915 registerForScrollChanged(View anchor, int xoff, int yoff, int gravity) argument [all...] |
H A D | TableRow.java | 205 final int gravity = lp.gravity; 206 final boolean isHorizontalGravity = Gravity.isHorizontal(gravity); 229 final int absoluteGravity = Gravity.getAbsoluteGravity(gravity, layoutDirection);
|
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 | Toolbar.java | 887 lp.gravity = Gravity.END | (mButtonGravity & Gravity.VERTICAL_GRAVITY_MASK); 1041 lp.gravity = Gravity.START | (mButtonGravity & Gravity.VERTICAL_GRAVITY_MASK); 1052 lp.gravity = Gravity.START | (mButtonGravity & Gravity.VERTICAL_GRAVITY_MASK); 1627 switch (getChildVerticalGravity(lp.gravity)) { 1655 private int getChildVerticalGravity(int gravity) { argument 1656 final int vgrav = gravity & Gravity.VERTICAL_GRAVITY_MASK; 1672 * @param gravity Horizontal gravity to match against 1674 private void addCustomViewsWithGravity(List<View> views, int gravity) { argument 1677 final int absGrav = Gravity.getAbsoluteGravity(gravity, getLayoutDirectio 1702 getChildHorizontalGravity(int gravity) argument 1866 LayoutParams(int width, int height, int gravity) argument 1871 LayoutParams(int gravity) argument [all...] |
H A D | CheckedTextView.java | 365 final int gravity = Gravity.getAbsoluteGravity(mCheckMarkGravity, getLayoutDirection()); 366 final int hgrav = gravity & Gravity.HORIZONTAL_GRAVITY_MASK;
|
H A D | Spinner.java | 449 * @param gravity See {@link android.view.Gravity} 453 public void setGravity(int gravity) { argument 454 if (mGravity != gravity) { 455 if ((gravity & Gravity.HORIZONTAL_GRAVITY_MASK) == 0) { 456 gravity |= Gravity.START; 458 mGravity = gravity; 733 // Position vertically based on gravity setting
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | ClipDrawable.java | 36 * and height based on the level, as well as a gravity to control where it is 66 * Creates a new clip drawable with the specified gravity and orientation. 69 * @param gravity gravity constant (see {@link Gravity} used to position 74 public ClipDrawable(Drawable drawable, int gravity, int orientation) { argument 77 mState.mGravity = gravity;
|
H A D | ScaleDrawable.java | 39 * and height based on the level, as well as a gravity to control where it is 64 * Creates a new scale drawable with the specified gravity and scale 68 * @param gravity gravity constant (see {@link Gravity} used to position 75 public ScaleDrawable(Drawable drawable, int gravity, float scaleWidth, float scaleHeight) { argument 78 mState.mGravity = gravity;
|
H A D | LayerDrawable.java | 600 * default layer gravity behavior. See {@link #setLayerGravity(int, int)} 660 * Sets the gravity used to position or stretch the specified layer within 665 * If gravity is specified as {@link Gravity#NO_GRAVITY}, the default 668 * gravity in that direction defaults to {@link Gravity#FILL_HORIZONTAL} or 669 * {@link Gravity#FILL_VERTICAL}; otherwise, gravity in that direction 673 * @param gravity the gravity to set for the layer 678 public void setLayerGravity(int index, int gravity) { argument 680 childDrawable.mGravity = gravity; 685 * @return the gravity use 1489 resolveGravity(int gravity, int width, int height, int intrinsicWidth, int intrinsicHeight) argument [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
H A D | Toolbar.java | 892 lp.gravity = GravityCompat.END | (mButtonGravity & Gravity.VERTICAL_GRAVITY_MASK); 1047 lp.gravity = GravityCompat.START | (mButtonGravity & Gravity.VERTICAL_GRAVITY_MASK); 1059 lp.gravity = GravityCompat.START | (mButtonGravity & Gravity.VERTICAL_GRAVITY_MASK); 1647 switch (getChildVerticalGravity(lp.gravity)) { 1675 private int getChildVerticalGravity(int gravity) { argument 1676 final int vgrav = gravity & Gravity.VERTICAL_GRAVITY_MASK; 1692 * @param gravity Horizontal gravity to match against 1694 private void addCustomViewsWithGravity(List<View> views, int gravity) { argument 1697 final int absGrav = GravityCompat.getAbsoluteGravity(gravity, 1723 getChildHorizontalGravity(int gravity) argument 1877 LayoutParams(int width, int height, int gravity) argument 1882 LayoutParams(int gravity) argument [all...] |
/frameworks/support/design/src/android/support/design/widget/ |
H A D | CollapsingTextHelper.java | 166 void setExpandedTextGravity(int gravity) { argument 167 if (mExpandedTextGravity != gravity) { 168 mExpandedTextGravity = gravity; 177 void setCollapsedTextGravity(int gravity) { argument 178 if (mCollapsedTextGravity != gravity) { 179 mCollapsedTextGravity = gravity;
|
H A D | CollapsingToolbarLayout.java | 656 * Sets the horizontal alignment of the collapsed title and the vertical gravity that will 662 public void setCollapsedTitleGravity(int gravity) { argument 663 mCollapsingTextHelper.setExpandedTextGravity(gravity); 695 * Sets the horizontal alignment of the expanded title and the vertical gravity that will 701 public void setExpandedTitleGravity(int gravity) { argument 702 mCollapsingTextHelper.setExpandedTextGravity(gravity); 792 public LayoutParams(int width, int height, int gravity) { argument 793 super(width, height, gravity);
|
H A D | CoordinatorLayout.java | 644 resolveKeylineGravity(lp.gravity), layoutDirection) 825 * gravity and anchorGravity. 835 resolveAnchoredChildGravity(lp.gravity), layoutDirection); 851 // Align to the anchor. This puts us in an assumed right/bottom child view gravity. 880 // Offset by the child view's gravity itself. The above assumed right/bottom gravity. 943 * the CoordinatorLayout. The child's gravity will affect how it is positioned with 953 resolveKeylineGravity(lp.gravity), layoutDirection); 1032 GravityCompat.apply(resolveGravity(lp.gravity), child.getMeasuredWidth(), 1038 * Return the given gravity valu 1041 resolveGravity(int gravity) argument 1049 resolveKeylineGravity(int gravity) argument 1057 resolveAnchoredChildGravity(int gravity) argument 2170 public int gravity = Gravity.NO_GRAVITY; field in class:CoordinatorLayout.LayoutParams [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/view/ |
H A D | BridgeInflater.java | 330 String gravity = mOpenDrawerLayouts.get(view); 331 if (gravity != null) { 332 DrawerLayoutUtil.openDrawer(view, gravity);
|
/frameworks/base/core/java/android/view/ |
H A D | WindowManager.java | 112 * X position for this window. With the default gravity it is ignored. 120 * Y position for this window. With the default gravity it is ignored. 1319 * given as the desired gravity. For example you can specify 1328 public int gravity; field in class:WindowManager.LayoutParams 1663 out.writeInt(gravity); 1713 gravity = in.readInt(); 1839 if (gravity != o.gravity) { 1840 gravity = o.gravity; [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
H A D | BrightnessMirrorController.java | 103 lp.gravity = mBrightnessMirror.getResources().getInteger(
|
/frameworks/base/services/core/java/com/android/server/display/ |
H A D | OverlayDisplayAdapter.java | 194 int gravity = chooseOverlayGravity(number); 200 mOverlays.add(new OverlayDisplayHandle(name, modes, gravity, secure, number)); 366 public OverlayDisplayHandle(String name, List<OverlayMode> modes, int gravity, argument 370 mGravity = gravity;
|
H A D | OverlayDisplayWindow.java | 96 int width, int height, int densityDpi, int gravity, boolean secure, 100 mGravity = gravity; 228 mWindowParams.gravity = Gravity.TOP | Gravity.LEFT; 95 OverlayDisplayWindow(Context context, String name, int width, int height, int densityDpi, int gravity, boolean secure, Listener listener) argument
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | DisplayListLayersActivity.java | 73 params.gravity = Gravity.CENTER_HORIZONTAL;
|
/frameworks/support/v4/java/android/support/v4/view/ |
H A D | PagerTitleStrip.java | 71 android.R.attr.gravity 233 * Only the vertical gravity component is used. 235 * @param gravity {@link Gravity} constant for positioning title text 237 public void setGravity(int gravity) { argument 238 mGravity = gravity;
|
/frameworks/base/core/java/android/hardware/ |
H A D | SensorManager.java | 256 /** Standard gravity (g) on Earth. This value is equivalent to 1G */ 259 /** Sun's gravity in SI units (m/s^2) */ 261 /** Mercury's gravity in SI units (m/s^2) */ 263 /** Venus' gravity in SI units (m/s^2) */ 265 /** Earth's gravity in SI units (m/s^2) */ 267 /** The Moon's gravity in SI units (m/s^2) */ 269 /** Mars' gravity in SI units (m/s^2) */ 271 /** Jupiter's gravity in SI units (m/s^2) */ 273 /** Saturn's gravity in SI units (m/s^2) */ 275 /** Uranus' gravity i 978 getRotationMatrix(float[] R, float[] I, float[] gravity, float[] geomagnetic) argument [all...] |
/frameworks/base/core/java/com/android/internal/view/menu/ |
H A D | MenuPopupHelper.java | 115 public void setGravity(int gravity) { argument 116 mDropDownGravity = gravity;
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
H A D | BaseGridView.java | 588 * Sets the gravity used for child view positioning. Defaults to 591 * @param gravity See {@link android.view.Gravity} 593 public void setGravity(int gravity) { argument 594 mLayoutManager.setGravity(gravity);
|
/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/menu/ |
H A D | MenuPopupHelper.java | 120 public void setGravity(int gravity) { argument 121 mDropDownGravity = gravity;
|