/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/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 suppose 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...] |
H A D | WindowManager.java | 109 * X position for this window. With the default gravity it is ignored. 117 * Y position for this window. With the default gravity it is ignored. 1246 * given as the desired gravity. For example you can specify 1255 public int gravity; field in class:WindowManager.LayoutParams 1536 out.writeInt(gravity); 1578 gravity = in.readInt(); 1688 if (gravity != o.gravity) { 1689 gravity = o.gravity; [all...] |
H A D | Window.java | 609 * Set the gravity of the window, as per the Gravity constants. This 613 * @param gravity The desired gravity constant. 618 public void setGravity(int gravity) argument 621 attrs.gravity = gravity;
|
/frameworks/base/core/java/android/inputmethodservice/ |
H A D | SoftInputWindow.java | 97 if (lp.gravity == Gravity.TOP || lp.gravity == Gravity.BOTTOM) { 116 if (lp.gravity == Gravity.TOP || lp.gravity == Gravity.BOTTOM) { 129 * @param gravity The boundary of the screen to stick. See {#link 134 public void setGravity(int gravity) { argument 137 boolean oldIsVertical = (lp.gravity == Gravity.TOP || lp.gravity == Gravity.BOTTOM); 139 lp.gravity = gravity; [all...] |
/frameworks/base/core/java/android/app/ |
H A D | ActionBar.java | 1025 public int gravity = Gravity.NO_GRAVITY; field in class:ActionBar.LayoutParams 1032 gravity = a.getInt( 1040 this.gravity = Gravity.CENTER_VERTICAL | Gravity.START; 1043 public LayoutParams(int width, int height, int gravity) { argument 1045 this.gravity = gravity; 1048 public LayoutParams(int gravity) { argument 1049 this(WRAP_CONTENT, MATCH_PARENT, gravity); 1055 this.gravity = source.gravity; [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/app/ |
H A D | ActionBar.java | 939 public int gravity = -1; field in class:ActionBar.LayoutParams 946 gravity = a.getInt(R.styleable.ActionBarLayout_android_layout_gravity, -1); 952 this.gravity = Gravity.CENTER_VERTICAL | Gravity.LEFT; 955 public LayoutParams(int width, int height, int gravity) { argument 957 this.gravity = gravity; 960 public LayoutParams(int gravity) { argument 961 this(WRAP_CONTENT, FILL_PARENT, gravity); 967 this.gravity = source.gravity; [all...] |
/frameworks/base/packages/Keyguard/src/com/android/keyguard/ |
H A D | MultiPaneChallengeLayout.java | 269 if (Gravity.isVertical(lp.gravity)) { 271 } else if (Gravity.isHorizontal(lp.gravity)) { 375 final int gravity = Gravity.getAbsoluteGravity(lp.gravity, getLayoutDirection()); 396 final boolean isVertical = Gravity.isVertical(gravity); 397 final boolean isHorizontal = Gravity.isHorizontal(gravity); 405 switch (gravity & Gravity.VERTICAL_GRAVITY_MASK) { 430 switch (gravity & Gravity.HORIZONTAL_GRAVITY_MASK) { 496 public int gravity = Gravity.NO_GRAVITY; field in class:MultiPaneChallengeLayout.LayoutParams 515 gravity [all...] |
/frameworks/base/test-runner/src/android/test/ |
H A D | TouchUtils.java | 490 * Get the location of a view. Use the gravity param to specify which part of the view to 494 * @param gravity A combination of (TOP, CENTER_VERTICAL, BOTTOM) and (LEFT, CENTER_HORIZONTAL, 498 private static void getStartLocation(View v, int gravity, int[] xy) { argument 504 switch (gravity & Gravity.VERTICAL_GRAVITY_MASK) { 517 switch (gravity & Gravity.HORIZONTAL_GRAVITY_MASK) { 536 * @param gravity Which part of the view to use for the initial down event. A combination of 548 public static int dragViewBy(ActivityInstrumentationTestCase test, View v, int gravity, argument 550 return dragViewBy((InstrumentationTestCase) test, v, gravity, deltaX, deltaY); 558 * @param gravity Which part of the view to use for the initial down event. A combination of 570 public static int dragViewBy(InstrumentationTestCase test, View v, int gravity, in argument 603 dragViewTo(ActivityInstrumentationTestCase test, View v, int gravity, int toX, int toY) argument 620 dragViewTo(InstrumentationTestCase test, View v, int gravity, int toX, int toY) argument 654 dragViewToX(ActivityInstrumentationTestCase test, View v, int gravity, int toX) argument 670 dragViewToX(InstrumentationTestCase test, View v, int gravity, int toX) argument 701 dragViewToY(ActivityInstrumentationTestCase test, View v, int gravity, int toY) argument 717 dragViewToY(InstrumentationTestCase test, View v, int gravity, int toY) argument [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | FrameLayout.java | 42 * and control their position within the FrameLayout by assigning gravity to each child, using the 127 * @return foreground gravity. 388 layoutChildren(left, top, right, bottom, false /* no force left gravity */); 414 int gravity = lp.gravity; 415 if (gravity == -1) { 416 gravity = DEFAULT_CHILD_GRAVITY; 420 final int absoluteGravity = Gravity.getAbsoluteGravity(gravity, layoutDirection); 421 final int verticalGravity = gravity & Gravity.VERTICAL_GRAVITY_MASK; 602 * The gravity t 609 public int gravity = -1; field in class:FrameLayout.LayoutParams 641 LayoutParams(int width, int height, int gravity) argument [all...] |
H A D | PopupWindow.java | 803 * for more information on how gravity and the x and y parameters are related. Specifying 804 * a gravity of {@link android.view.Gravity#NO_GRAVITY} is similar to specifying 809 * @param gravity the gravity which controls the placement of the popup window 813 public void showAtLocation(View parent, int gravity, int x, int y) { argument 814 showAtLocation(parent.getWindowToken(), gravity, x, y); 821 * @param gravity the gravity which controls the placement of the popup window 828 public void showAtLocation(IBinder token, int gravity, int x, int y) { argument 842 if (gravity 905 showAsDropDown(View anchor, int xoff, int yoff, int gravity) argument 1133 findDropDownPosition(View anchor, WindowManager.LayoutParams p, int xoff, int yoff, int gravity) argument 1499 update(View anchor, boolean updateLocation, int xoff, int yoff, boolean updateDimension, int width, int height, int gravity) argument 1568 registerForScrollChanged(View anchor, int xoff, int yoff, int gravity) argument [all...] |
H A D | Toast.java | 201 public void setGravity(int gravity, int xOffset, int yOffset) { argument 202 mTN.mGravity = gravity; 217 * Return the X offset in pixels to apply to the gravity's location. 224 * Return the Y offset in pixels to apply to the gravity's location. 388 final int gravity = Gravity.getAbsoluteGravity(mGravity, config.getLayoutDirection()); 389 mParams.gravity = gravity; 390 if ((gravity & Gravity.HORIZONTAL_GRAVITY_MASK) == Gravity.FILL_HORIZONTAL) { 393 if ((gravity & Gravity.VERTICAL_GRAVITY_MASK) == Gravity.FILL_VERTICAL) {
|
H A D | LinearLayout.java | 38 * You can also specify gravity, which specifies the alignment of all the child elements by 1091 // Translates the child's vertical gravity into an index 1093 final int gravity = (lp.gravity < 0 ? mGravity : lp.gravity) 1095 final int index = ((gravity >> Gravity.AXIS_Y_SHIFT) 1264 // Translates the child's vertical gravity into an index in the range 0..2 1265 final int gravity = (lp.gravity < 0 ? mGravity : lp.gravity) 1708 setGravity(int gravity) argument 1825 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);
|
H A D | RelativeLayout.java | 266 * Defines which View is ignored when the gravity is applied. This setting has no 267 * effect if the gravity is <code>Gravity.START | Gravity.TOP</code>. 269 * @param viewId The id of the View to be ignored by gravity, or 0 if no View 284 * @return the gravity. 300 * relative to one another to be significant, setting gravity will affect 304 * @param gravity See {@link android.view.Gravity} 312 public void setGravity(int gravity) { argument 313 if (mGravity != gravity) { 314 if ((gravity & Gravity.RELATIVE_HORIZONTAL_GRAVITY_MASK) == 0) { 315 gravity | [all...] |
/frameworks/support/v4/java/android/support/v4/widget/ |
H A D | DrawerLayout.java | 256 * @param gravity Which drawer the shadow should apply to 258 public void setDrawerShadow(Drawable shadowDrawable, int gravity) { argument 265 final int absGravity = GravityCompat.getAbsoluteGravity(gravity, 282 * @param gravity Which drawer the shadow should apply to 284 public void setDrawerShadow(int resId, int gravity) { argument 285 setDrawerShadow(getResources().getDrawable(resId), gravity); 398 final int gravity = ((LayoutParams) drawerView.getLayoutParams()).gravity; 399 setDrawerLockMode(lockMode, gravity); 403 * Check the lock mode of the drawer with the given gravity 557 findDrawerWithGravity(int gravity) argument 577 gravityToString(int gravity) argument 1043 openDrawer(int gravity) argument 1083 closeDrawer(int gravity) argument 1333 ViewDragCallback(int gravity) argument 1491 public int gravity = Gravity.NO_GRAVITY; field in class:DrawerLayout.LayoutParams 1508 LayoutParams(int width, int height, int gravity) argument [all...] |
/frameworks/base/tests/GridLayoutTest/src/com/android/test/layout/ |
H A D | LinearLayoutTest.java | 37 lp.gravity = va | ha;
|
/frameworks/base/services/java/com/android/server/display/ |
H A D | OverlayDisplayAdapter.java | 155 int gravity = chooseOverlayGravity(number); 163 width, height, densityDpi, gravity, secure)); 273 int width, int height, int densityDpi, int gravity, boolean secure) { 278 mGravity = gravity; 272 OverlayDisplayHandle(String name, int width, int height, int densityDpi, int gravity, boolean secure) argument
|
H A D | OverlayDisplayWindow.java | 96 int width, int height, int densityDpi, int gravity, boolean secure, 103 mGravity = gravity; 216 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/base/core/java/com/android/internal/app/ |
H A D | PlatLogoActivity.java | 65 lp.gravity = Gravity.CENTER; 101 lp2.gravity = Gravity.BOTTOM | Gravity.CENTER_HORIZONTAL;
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | ClipDrawable.java | 33 * and height based on the level, as well as a gravity to control where it is 62 public ClipDrawable(Drawable drawable, int gravity, int orientation) { argument 66 mClipState.mGravity = gravity;
|
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/ |
H A D | SpinnerICS.java | 207 * @param gravity See {@link android.view.Gravity} 211 public void setGravity(int gravity) { argument 212 if (mGravity != gravity) { 213 if ((gravity & Gravity.HORIZONTAL_GRAVITY_MASK) == 0) { 214 gravity |= Gravity.LEFT; 216 mGravity = gravity; 422 // Position vertically based on gravity setting
|