/frameworks/support/v4/jellybean-mr1/android/support/v4/view/ |
H A D | GravityCompatJellybeanMr1.java | 25 public static int getAbsoluteGravity(int gravity, int layoutDirection) { argument 26 return Gravity.getAbsoluteGravity(gravity, layoutDirection); 29 public static void apply(int gravity, int w, int h, Rect container, Rect outRect, argument 31 Gravity.apply(gravity, w, h, container, outRect, layoutDirection); 34 public static void apply(int gravity, int w, int h, Rect container, int xAdj, int yAdj, argument 36 Gravity.apply(gravity, w, h, container, xAdj, yAdj, outRect, layoutDirection); 39 public static void applyDisplay(int gravity, Rect display, Rect inoutObj, int layoutDirection) { argument 40 Gravity.applyDisplay(gravity, display, inoutObj, layoutDirection);
|
/frameworks/support/v4/java/android/support/v4/view/ |
H A D | GravityCompat.java | 29 int getAbsoluteGravity(int gravity, int layoutDirection); argument 30 void apply(int gravity, int w, int h, Rect container, Rect outRect, int layoutDirection); argument 31 void apply(int gravity, int w, int h, Rect container, int xAdj, int yAdj, argument 33 void applyDisplay(int gravity, Rect display, Rect inoutObj, int layoutDirection); argument 38 public int getAbsoluteGravity(int gravity, int layoutDirection) { argument 40 return gravity & ~RELATIVE_LAYOUT_DIRECTION; 44 public void apply(int gravity, int w, int h, Rect container, Rect outRect, argument 46 Gravity.apply(gravity, w, h, container, outRect); 50 public void apply(int gravity, int w, int h, Rect container, int xAdj, int yAdj, argument 52 Gravity.apply(gravity, 56 applyDisplay(int gravity, Rect display, Rect inoutObj, int layoutDirection) argument 64 getAbsoluteGravity(int gravity, int layoutDirection) argument 69 apply(int gravity, int w, int h, Rect container, Rect outRect, int layoutDirection) argument 75 apply(int gravity, int w, int h, Rect container, int xAdj, int yAdj, Rect outRect, int layoutDirection) argument 82 applyDisplay(int gravity, Rect display, Rect inoutObj, int layoutDirection) argument 130 apply(int gravity, int w, int h, Rect container, Rect outRect, int layoutDirection) argument 160 apply(int gravity, int w, int h, Rect container, int xAdj, int yAdj, Rect outRect, int layoutDirection) argument 185 applyDisplay(int gravity, Rect display, Rect inoutObj, int layoutDirection) argument 200 getAbsoluteGravity(int gravity, int layoutDirection) argument [all...] |
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/support/ |
H A D | DrawerLayoutUtil.java | 39 int gravity = -1; 41 gravity = LEFT; 43 gravity = RIGHT; 45 gravity = START; 47 gravity = END; 49 if (gravity > 0) { 50 openDrawer(drawerLayout, gravity); 54 private static void openDrawer(View drawerLayout, int gravity) { argument 57 gravity);
|
/frameworks/support/v4/kitkat/android/support/v4/widget/ |
H A D | PopupWindowCompatKitKat.java | 29 int gravity) { 30 popup.showAsDropDown(anchor, xoff, yoff, gravity); 28 showAsDropDown(PopupWindow popup, View anchor, int xoff, int yoff, int gravity) argument
|
/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 supposes that the layout direction is LTR. 128 * @param gravity Th 138 apply(int gravity, int w, int h, Rect container, Rect outRect) argument 159 apply(int gravity, int w, int h, Rect container, Rect outRect, int layoutDirection) argument 186 apply(int gravity, int w, int h, Rect container, int xAdj, int yAdj, Rect outRect) argument 296 apply(int gravity, int w, int h, Rect container, int xAdj, int yAdj, Rect outRect, int layoutDirection) argument 318 applyDisplay(int gravity, Rect display, Rect inoutObj) argument 376 applyDisplay(int gravity, Rect display, Rect inoutObj, int layoutDirection) argument 387 isVertical(int gravity) argument 397 isHorizontal(int gravity) argument 412 getAbsoluteGravity(int gravity, int layoutDirection) argument [all...] |
/frameworks/base/core/java/android/inputmethodservice/ |
H A D | SoftInputWindow.java | 69 int windowType, int gravity, boolean takesFocus) { 76 mGravity = gravity; 106 * @param gravity The boundary of the screen to stick. See {#link 111 public void setGravity(int gravity) { argument 113 lp.gravity = gravity; 119 return getWindow().getAttributes().gravity; 123 if (lp.gravity == Gravity.TOP || lp.gravity == Gravity.BOTTOM) { 174 lp.gravity 67 SoftInputWindow(Context context, String name, int theme, Callback callback, KeyEvent.Callback keyEventCallback, KeyEvent.DispatcherState dispatcherState, int windowType, int gravity, boolean takesFocus) argument [all...] |
/frameworks/support/v4/api21/android/support/v4/widget/ |
H A D | DrawerLayoutCompatApi21.java | 45 public static void dispatchChildInsets(View child, Object insets, int gravity) { argument 47 if (gravity == Gravity.LEFT) { 50 } else if (gravity == Gravity.RIGHT) { 58 int gravity) { 60 if (gravity == Gravity.LEFT) { 63 } else if (gravity == Gravity.RIGHT) { 57 applyMarginInsets(ViewGroup.MarginLayoutParams lp, Object insets, int gravity) argument
|
/frameworks/support/v4/java/android/support/v4/widget/ |
H A D | PopupWindowCompat.java | 32 void showAsDropDown(PopupWindow popup, View anchor, int xoff, int yoff, int gravity); argument 45 int gravity) { 91 int gravity) { 92 PopupWindowCompatKitKat.showAsDropDown(popup, anchor, xoff, yoff, gravity); 167 * @param gravity Alignment of the popup relative to the anchor 170 int gravity) { 171 IMPL.showAsDropDown(popup, anchor, xoff, yoff, gravity); 44 showAsDropDown(PopupWindow popup, View anchor, int xoff, int yoff, int gravity) argument 90 showAsDropDown(PopupWindow popup, View anchor, int xoff, int yoff, int gravity) argument 169 showAsDropDown(PopupWindow popup, View anchor, int xoff, int yoff, int gravity) argument
|
H A D | DrawerLayout.java | 212 /** Shadow drawables for different gravity */ 437 * defined with a resource qualifier "ldrtl" for API 17 and above with the gravity 442 * @param gravity Which drawer the shadow should apply to 444 public void setDrawerShadow(Drawable shadowDrawable, @EdgeGravity int gravity) { argument 454 if ((gravity & GravityCompat.START) == GravityCompat.START) { 456 } else if ((gravity & GravityCompat.END) == GravityCompat.END) { 458 } else if ((gravity & Gravity.LEFT) == Gravity.LEFT) { 460 } else if ((gravity & Gravity.RIGHT) == Gravity.RIGHT) { 476 * defined with a resource qualifier "ldrtl" for API 17 and above with the gravity 481 * @param gravity Whic 483 setDrawerShadow(@rawableRes int resId, @EdgeGravity int gravity) argument 834 findDrawerWithGravity(int gravity) argument 854 gravityToString(@dgeGravity int gravity) argument 1461 openDrawer(@dgeGravity int gravity) argument 1501 closeDrawer(@dgeGravity int gravity) argument 1811 ViewDragCallback(int gravity) argument 1969 public int gravity = Gravity.NO_GRAVITY; field in class:DrawerLayout.LayoutParams 1986 LayoutParams(int width, int height, int gravity) argument [all...] |
/frameworks/support/v4/api21/android/support/v4/graphics/drawable/ |
H A D | RoundedBitmapDrawable21.java | 51 void gravityCompatApply(int gravity, int bitmapWidth, int bitmapHeight, argument 53 Gravity.apply(gravity, bitmapWidth, bitmapHeight,
|
/frameworks/support/percent/src/android/support/percent/ |
H A D | PercentFrameLayout.java | 113 public LayoutParams(int width, int height, int gravity) { argument 114 super(width, height, gravity); 127 gravity = source.gravity;
|
/frameworks/support/v7/appcompat/src/android/support/v7/app/ |
H A D | ActionBar.java | 1317 public int gravity = Gravity.NO_GRAVITY; field in class:ActionBar.LayoutParams 1323 gravity = a.getInt(R.styleable.ActionBarLayout_android_layout_gravity, Gravity.NO_GRAVITY); 1329 this.gravity = Gravity.CENTER_VERTICAL | GravityCompat.START; 1332 public LayoutParams(int width, int height, int gravity) { argument 1334 this.gravity = gravity; 1337 public LayoutParams(int gravity) { argument 1338 this(WRAP_CONTENT, MATCH_PARENT, gravity); 1344 this.gravity = source.gravity; [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | PopupMenu.java | 77 * gravity. 83 * @param gravity The {@link Gravity} value for aligning the popup with its 86 public PopupMenu(Context context, View anchor, int gravity) { argument 87 this(context, anchor, gravity, R.attr.popupMenuStyle, 0); 97 * @param gravity The {@link Gravity} value for aligning the popup with its 107 public PopupMenu(Context context, View anchor, int gravity, int popupStyleAttr, argument 114 mPopup.setGravity(gravity); 119 * Sets the gravity used to align the popup window to its anchor view. 124 * @param gravity the gravity use 128 setGravity(int gravity) argument [all...] |
H A D | FrameLayout.java | 47 * and control their position within the FrameLayout by assigning gravity to each child, using the 273 layoutChildren(left, top, right, bottom, false /* no force left gravity */); 297 int gravity = lp.gravity; 298 if (gravity == -1) { 299 gravity = DEFAULT_CHILD_GRAVITY; 303 final int absoluteGravity = Gravity.getAbsoluteGravity(gravity, layoutDirection); 304 final int verticalGravity = gravity & Gravity.VERTICAL_GRAVITY_MASK; 433 * The gravity to apply with the View to which these layout parameters 440 public int gravity field in class:FrameLayout.LayoutParams 472 LayoutParams(int width, int height, int gravity) argument [all...] |
H A D | Toast.java | 211 public void setGravity(int gravity, int xOffset, int yOffset) { argument 212 mTN.mGravity = gravity; 227 * Return the X offset in pixels to apply to the gravity's location. 234 * Return the Y offset in pixels to apply to the gravity's location. 407 final int gravity = Gravity.getAbsoluteGravity(mGravity, config.getLayoutDirection()); 408 mParams.gravity = gravity; 409 if ((gravity & Gravity.HORIZONTAL_GRAVITY_MASK) == Gravity.FILL_HORIZONTAL) { 412 if ((gravity & Gravity.VERTICAL_GRAVITY_MASK) == Gravity.FILL_VERTICAL) {
|
H A D | LinearLayout.java | 43 * You can also specify gravity, which specifies the alignment of all the child elements by 1151 // Translates the child's vertical gravity into an index 1153 final int gravity = (lp.gravity < 0 ? mGravity : lp.gravity) 1155 final int index = ((gravity >> Gravity.AXIS_Y_SHIFT) 1325 // Translates the child's vertical gravity into an index in the range 0..2 1326 final int gravity = (lp.gravity < 0 ? mGravity : lp.gravity) 1781 setGravity(int gravity) argument 1905 public int gravity = -1; field in class:LinearLayout.LayoutParams [all...] |
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
H A D | ScaleFrameLayout.java | 101 int gravity = lp.gravity; 102 if (gravity == -1) { 103 gravity = DEFAULT_CHILD_GRAVITY; 106 final int absoluteGravity = Gravity.getAbsoluteGravity(gravity, layoutDirection); 107 final int verticalGravity = gravity & Gravity.VERTICAL_GRAVITY_MASK;
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
H A D | PopupMenu.java | 75 * gravity. 81 * @param gravity The {@link Gravity} value for aligning the popup with its 84 public PopupMenu(Context context, View anchor, int gravity) { argument 85 this(context, anchor, gravity, R.attr.popupMenuStyle, 0); 95 * @param gravity The {@link Gravity} value for aligning the popup with its 105 public PopupMenu(Context context, View anchor, int gravity, int popupStyleAttr, argument 112 mPopup.setGravity(gravity); 117 * Sets the gravity used to align the popup window to its anchor view. 122 * @param gravity the gravity use 126 setGravity(int gravity) argument [all...] |
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...] |
/frameworks/base/core/java/android/app/ |
H A D | ActionBar.java | 1336 public int gravity = Gravity.NO_GRAVITY; field in class:ActionBar.LayoutParams 1343 gravity = a.getInt( 1351 this.gravity = Gravity.CENTER_VERTICAL | Gravity.START; 1354 public LayoutParams(int width, int height, int gravity) { argument 1357 this.gravity = gravity; 1360 public LayoutParams(int gravity) { argument 1361 this(WRAP_CONTENT, MATCH_PARENT, gravity); 1366 this.gravity = source.gravity; [all...] |
/frameworks/base/test-runner/src/android/test/ |
H A D | TouchUtils.java | 478 * Get the location of a view. Use the gravity param to specify which part of the view to 482 * @param gravity A combination of (TOP, CENTER_VERTICAL, BOTTOM) and (LEFT, CENTER_HORIZONTAL, 486 private static void getStartLocation(View v, int gravity, int[] xy) { argument 492 switch (gravity & Gravity.VERTICAL_GRAVITY_MASK) { 505 switch (gravity & Gravity.HORIZONTAL_GRAVITY_MASK) { 524 * @param gravity Which part of the view to use for the initial down event. A combination of 536 public static int dragViewBy(ActivityInstrumentationTestCase test, View v, int gravity, argument 538 return dragViewBy((InstrumentationTestCase) test, v, gravity, deltaX, deltaY); 546 * @param gravity Which part of the view to use for the initial down event. A combination of 558 public static int dragViewBy(InstrumentationTestCase test, View v, int gravity, in argument 591 dragViewTo(ActivityInstrumentationTestCase test, View v, int gravity, int toX, int toY) argument 608 dragViewTo(InstrumentationTestCase test, View v, int gravity, int toX, int toY) argument 642 dragViewToX(ActivityInstrumentationTestCase test, View v, int gravity, int toX) argument 658 dragViewToX(InstrumentationTestCase test, View v, int gravity, int toX) argument 689 dragViewToY(ActivityInstrumentationTestCase test, View v, int gravity, int toY) argument 705 dragViewToY(InstrumentationTestCase test, View v, int gravity, int toY) argument [all...] |
/frameworks/base/tests/GridLayoutTest/src/com/android/test/layout/ |
H A D | LinearLayoutTest.java | 37 lp.gravity = va | ha;
|
/frameworks/support/v4/java/android/support/v4/graphics/drawable/ |
H A D | RoundedBitmapDrawableFactory.java | 55 void gravityCompatApply(int gravity, int bitmapWidth, int bitmapHeight, argument 57 GravityCompat.apply(gravity, bitmapWidth, bitmapHeight,
|
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/ |
H A D | AppCompatPopupWindow.java | 73 public void showAsDropDown(View anchor, int xoff, int yoff, int gravity) { 78 super.showAsDropDown(anchor, xoff, yoff, gravity);
|
/frameworks/support/v4/donut/android/support/v4/graphics/drawable/ |
H A D | RoundedBitmapDrawable.java | 128 * Get the gravity used to position/stretch the bitmap within its bounds. 130 * @return the gravity applied to the bitmap 139 * Set the gravity used to position/stretch the bitmap within its bounds. 141 * @param gravity the gravity 145 public void setGravity(int gravity) { argument 146 if (mGravity != gravity) { 147 mGravity = gravity; 216 void gravityCompatApply(int gravity, int bitmapWidth, int bitmapHeight, argument
|