/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/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/support/v4/java/android/support/v4/widget/ |
H A D | PopupWindowCompat.java | 33 int gravity); 42 int gravity) { 53 int gravity) { 54 PopupWindowCompatKitKat.showAsDropDown(popup, anchor, xoff, yoff, gravity); 89 * @param gravity Alignment of the popup relative to the anchor 92 int gravity) { 93 IMPL.showAsDropDown(popup, anchor, xoff, yoff, gravity); 32 showAsDropDown(PopupWindow popup, View anchor, int xoff, int yoff, int gravity) argument 41 showAsDropDown(PopupWindow popup, View anchor, int xoff, int yoff, int gravity) argument 52 showAsDropDown(PopupWindow popup, View anchor, int xoff, int yoff, int gravity) argument 91 showAsDropDown(PopupWindow popup, View anchor, int xoff, int yoff, int gravity) argument
|
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/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/support/v4/api21/android/support/v4/widget/ |
H A D | DrawerLayoutCompatApi21.java | 37 public static void dispatchChildInsets(View child, Object insets, int gravity) { argument 39 if (gravity == Gravity.LEFT) { 42 } else if (gravity == Gravity.RIGHT) { 50 int gravity) { 52 if (gravity == Gravity.LEFT) { 55 } else if (gravity == Gravity.RIGHT) { 49 applyMarginInsets(ViewGroup.MarginLayoutParams lp, Object insets, int gravity) argument
|
/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/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/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/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/packages/Keyguard/src/com/android/keyguard/ |
H A D | MultiPaneChallengeLayout.java | 268 if (Gravity.isVertical(lp.gravity)) { 270 } else if (Gravity.isHorizontal(lp.gravity)) { 374 final int gravity = Gravity.getAbsoluteGravity(lp.gravity, getLayoutDirection()); 395 final boolean isVertical = Gravity.isVertical(gravity); 396 final boolean isHorizontal = Gravity.isHorizontal(gravity); 404 switch (gravity & Gravity.VERTICAL_GRAVITY_MASK) { 429 switch (gravity & Gravity.HORIZONTAL_GRAVITY_MASK) { 495 public int gravity = Gravity.NO_GRAVITY; field in class:MultiPaneChallengeLayout.LayoutParams 514 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/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 | PopupMenu.java | 78 * @param gravity The {@link Gravity} value for aligning the popup with its anchor 80 public PopupMenu(Context context, View anchor, int gravity) { argument 87 mPopup.setGravity(gravity);
|
/frameworks/base/tests/GridLayoutTest/src/com/android/test/layout/ |
H A D | LinearLayoutTest.java | 37 lp.gravity = va | ha;
|
/frameworks/support/v4/donut/android/support/v4/graphics/drawable/ |
H A D | RoundedBitmapDrawable.java | 125 * Get the gravity used to position/stretch the bitmap within its bounds. 127 * @return the gravity applied to the bitmap 136 * Set the gravity used to position/stretch the bitmap within its bounds. 138 * @param gravity the gravity 142 public void setGravity(int gravity) { argument 143 if (mGravity != gravity) { 144 mGravity = gravity; 213 void gravityCompatApply(int gravity, int bitmapWidth, int bitmapHeight, argument
|
/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 | 58 public void showAsDropDown(View anchor, int xoff, int yoff, int gravity) { argument 63 super.showAsDropDown(anchor, xoff, yoff, gravity);
|
/frameworks/base/core/java/android/widget/ |
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 | Toast.java | 210 public void setGravity(int gravity, int xOffset, int yOffset) { argument 211 mTN.mGravity = gravity; 226 * Return the X offset in pixels to apply to the gravity's location. 233 * Return the Y offset in pixels to apply to the gravity's location. 398 final int gravity = Gravity.getAbsoluteGravity(mGravity, config.getLayoutDirection()); 399 mParams.gravity = gravity; 400 if ((gravity & Gravity.HORIZONTAL_GRAVITY_MASK) == Gravity.FILL_HORIZONTAL) { 403 if ((gravity & Gravity.VERTICAL_GRAVITY_MASK) == Gravity.FILL_VERTICAL) {
|
H A D | FrameLayout.java | 48 * and control their position within the FrameLayout by assigning gravity to each child, using the 153 * @return foreground gravity. 508 layoutChildren(left, top, right, bottom, false /* no force left gravity */); 534 int gravity = lp.gravity; 535 if (gravity == -1) { 536 gravity = DEFAULT_CHILD_GRAVITY; 540 final int absoluteGravity = Gravity.getAbsoluteGravity(gravity, layoutDirection); 541 final int verticalGravity = gravity & Gravity.VERTICAL_GRAVITY_MASK; 722 * The gravity t 729 public int gravity = -1; field in class:FrameLayout.LayoutParams 761 LayoutParams(int width, int height, int gravity) argument [all...] |
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 | PopupMenu.java | 77 * @param gravity The {@link Gravity} value for aligning the popup with its anchor 79 public PopupMenu(Context context, View anchor, int gravity) { argument 86 mPopup.setGravity(gravity);
|
H A D | TableRow.java | 206 final int gravity = lp.gravity; 207 final boolean isHorizontalGravity = Gravity.isHorizontal(gravity); 230 final int absoluteGravity = Gravity.getAbsoluteGravity(gravity, layoutDirection);
|