Searched refs:gravity (Results 1 - 25 of 90) sorted by relevance

1234

/frameworks/support/v4/jellybean-mr1/android/support/v4/view/
H A DGravityCompatJellybeanMr1.java25 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 DGravityCompat.java29 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 DPopupWindowCompatKitKat.java29 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 DPopupWindowCompat.java33 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 DDrawerLayout.java383 * @param gravity Which drawer the shadow should apply to
385 public void setDrawerShadow(Drawable shadowDrawable, @EdgeGravity int gravity) { argument
392 final int absGravity = GravityCompat.getAbsoluteGravity(gravity,
409 * @param gravity Which drawer the shadow should apply to
411 public void setDrawerShadow(@DrawableRes int resId, @EdgeGravity int gravity) { argument
412 setDrawerShadow(getResources().getDrawable(resId), gravity);
525 final int gravity = ((LayoutParams) drawerView.getLayoutParams()).gravity;
526 setDrawerLockMode(lockMode, gravity);
530 * Check the lock mode of the drawer with the given gravity
762 findDrawerWithGravity(int gravity) argument
782 gravityToString(@dgeGravity int gravity) argument
1316 openDrawer(@dgeGravity int gravity) argument
1356 closeDrawer(@dgeGravity int gravity) argument
1631 ViewDragCallback(int gravity) argument
1789 public int gravity = Gravity.NO_GRAVITY; field in class:DrawerLayout.LayoutParams
1806 LayoutParams(int width, int height, int gravity) argument
[all...]
/frameworks/base/core/java/android/view/
H A DGravity.java26 /** 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 DSoftInputWindow.java69 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 DDrawerLayoutCompatApi21.java45 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/api21/android/support/v4/graphics/drawable/
H A DRoundedBitmapDrawable21.java51 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 DActionBar.java1324 public int gravity = Gravity.NO_GRAVITY; field in class:ActionBar.LayoutParams
1330 gravity = a.getInt(R.styleable.ActionBarLayout_android_layout_gravity, Gravity.NO_GRAVITY);
1336 this.gravity = Gravity.CENTER_VERTICAL | GravityCompat.START;
1339 public LayoutParams(int width, int height, int gravity) { argument
1341 this.gravity = gravity;
1344 public LayoutParams(int gravity) { argument
1345 this(WRAP_CONTENT, MATCH_PARENT, gravity);
1351 this.gravity = source.gravity;
[all...]
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DScaleFrameLayout.java101 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/base/core/java/android/widget/
H A DPopupMenu.java76 * gravity.
82 * @param gravity The {@link Gravity} value for aligning the popup with its
85 public PopupMenu(Context context, View anchor, int gravity) { argument
86 this(context, anchor, gravity, R.attr.popupMenuStyle, 0);
96 * @param gravity The {@link Gravity} value for aligning the popup with its
106 public PopupMenu(Context context, View anchor, int gravity, int popupStyleAttr, argument
113 mPopup.setGravity(gravity);
H A DPopupWindow.java886 * for more information on how gravity and the x and y parameters are related. Specifying
887 * a gravity of {@link android.view.Gravity#NO_GRAVITY} is similar to specifying
892 * @param gravity the gravity which controls the placement of the popup window
896 public void showAtLocation(View parent, int gravity, int x, int y) { argument
897 showAtLocation(parent.getWindowToken(), gravity, x, y);
904 * @param gravity the gravity which controls the placement of the popup window
911 public void showAtLocation(IBinder token, int gravity, int x, int y) { argument
925 if (gravity
988 showAsDropDown(View anchor, int xoff, int yoff, int gravity) argument
1223 findDropDownPosition(View anchor, WindowManager.LayoutParams p, int xoff, int yoff, int gravity) argument
1596 update(View anchor, boolean updateLocation, int xoff, int yoff, boolean updateDimension, int width, int height, int gravity) argument
1666 registerForScrollChanged(View anchor, int xoff, int yoff, int gravity) argument
[all...]
H A DToast.java210 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.
406 final int gravity = Gravity.getAbsoluteGravity(mGravity, config.getLayoutDirection());
407 mParams.gravity = gravity;
408 if ((gravity & Gravity.HORIZONTAL_GRAVITY_MASK) == Gravity.FILL_HORIZONTAL) {
411 if ((gravity & Gravity.VERTICAL_GRAVITY_MASK) == Gravity.FILL_VERTICAL) {
H A DFrameLayout.java48 * and control their position within the FrameLayout by assigning gravity to each child, using the
153 * @return foreground gravity.
514 layoutChildren(left, top, right, bottom, false /* no force left gravity */);
540 int gravity = lp.gravity;
541 if (gravity == -1) {
542 gravity = DEFAULT_CHILD_GRAVITY;
546 final int absoluteGravity = Gravity.getAbsoluteGravity(gravity, layoutDirection);
547 final int verticalGravity = gravity & Gravity.VERTICAL_GRAVITY_MASK;
728 * The gravity t
735 public int gravity = -1; field in class:FrameLayout.LayoutParams
767 LayoutParams(int width, int height, int gravity) argument
[all...]
H A DLinearLayout.java42 * 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...]
/frameworks/base/core/java/android/app/
H A DActionBar.java1331 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 DMultiPaneChallengeLayout.java268 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 DTouchUtils.java478 * 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 DLinearLayoutCompat.java44 * 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 DPopupMenu.java75 * 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);
/frameworks/base/tests/GridLayoutTest/src/com/android/test/layout/
H A DLinearLayoutTest.java37 lp.gravity = va | ha;
/frameworks/support/v4/donut/android/support/v4/graphics/drawable/
H A DRoundedBitmapDrawable.java125 * 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 DRoundedBitmapDrawableFactory.java55 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 DAppCompatPopupWindow.java58 public void showAsDropDown(View anchor, int xoff, int yoff, int gravity) { argument
63 super.showAsDropDown(anchor, xoff, yoff, gravity);

Completed in 1446 milliseconds

1234