/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/ |
GravityHelper.java | 33 /** Helper class for looking up the gravity masks of gravity attributes */ 39 /** Bitmask for a gravity which includes left */ 43 /** Bitmask for a gravity which includes right */ 46 /** Bitmask for a gravity which includes center horizontal */ 49 /** Bitmask for a gravity which includes fill horizontal */ 52 /** Bitmask for a gravity which includes center vertical */ 55 /** Bitmask for a gravity which includes fill vertical */ 58 /** Bitmask for a gravity which includes top */ 61 /** Bitmask for a gravity which includes bottom * 97 int gravity = defaultMask; local [all...] |
/packages/apps/Camera2/src/com/android/camera/ui/ |
TopRightWeightedLayout.java | 22 import android.view.Gravity; 91 * Swap gravity: 101 // gravity swap 104 int gravity = layoutParams.gravity; local 107 if ((gravity & Gravity.LEFT) != 0) { // if gravity left is set . . . 108 gravity &= ~Gravity.LEFT; // unset lef [all...] |
/frameworks/support/v4/jellybean-mr1/android/support/v4/view/ |
GravityCompatJellybeanMr1.java | 21 import android.view.Gravity; 25 public static int getAbsoluteGravity(int gravity, int layoutDirection) { 26 return Gravity.getAbsoluteGravity(gravity, layoutDirection); 29 public static void apply(int gravity, int w, int h, Rect container, Rect outRect, 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, 36 Gravity.apply(gravity, w, h, container, xAdj, yAdj, outRect, layoutDirection) [all...] |
/frameworks/support/v4/java/android/support/v4/view/ |
GravityCompat.java | 22 import android.view.Gravity; 25 * Compatibility shim for accessing newer functionality from {@link android.view.Gravity}. 29 int getAbsoluteGravity(int gravity, int layoutDirection); 30 void apply(int gravity, int w, int h, Rect container, Rect outRect, int layoutDirection); 31 void apply(int gravity, int w, int h, Rect container, int xAdj, int yAdj, 33 void applyDisplay(int gravity, Rect display, Rect inoutObj, int layoutDirection); 38 public int getAbsoluteGravity(int gravity, int layoutDirection) { 40 return gravity & ~RELATIVE_LAYOUT_DIRECTION; 44 public void apply(int gravity, int w, int h, Rect container, Rect outRect, 46 Gravity.apply(gravity, w, h, container, outRect) [all...] |
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/support/ |
DrawerLayoutUtil.java | 26 import static android.view.Gravity.END; 27 import static android.view.Gravity.LEFT; 28 import static android.view.Gravity.RIGHT; 29 import static android.view.Gravity.START; 39 int gravity = -1; local 41 gravity = LEFT; 43 gravity = RIGHT; 45 gravity = START; 47 gravity = END; 49 if (gravity > 0) 57 gravity); local [all...] |
/frameworks/support/v4/kitkat/android/support/v4/widget/ |
PopupWindowCompatKitKat.java | 29 int gravity) { 30 popup.showAsDropDown(anchor, xoff, yoff, gravity);
|
/frameworks/base/core/java/android/view/ |
Gravity.java | 24 public class Gravity 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 [all...] |
/packages/apps/Messaging/src/com/android/messaging/ui/ |
ListEmptyView.java | 20 import android.view.Gravity; 64 int gravity = local 65 isVerticallyCentered ? Gravity.CENTER : Gravity.TOP | Gravity.CENTER_HORIZONTAL; 66 ((LinearLayout.LayoutParams) mEmptyImageHint.getLayoutParams()).gravity = gravity; 67 ((LinearLayout.LayoutParams) mEmptyTextHint.getLayoutParams()).gravity = gravity;
|
/frameworks/base/core/java/android/inputmethodservice/ |
SoftInputWindow.java | 23 import android.view.Gravity; 69 int windowType, int gravity, boolean takesFocus) { 76 mGravity = gravity; 106 * @param gravity The boundary of the screen to stick. See {#link 107 * android.view.Gravity.LEFT}, {#link android.view.Gravity.TOP}, 108 * {#link android.view.Gravity.BOTTOM}, {#link 109 * android.view.Gravity.RIGHT}. 111 public void setGravity(int gravity) { 113 lp.gravity = gravity [all...] |
/frameworks/base/core/java/android/widget/ |
PopupMenu.java | 26 import android.view.Gravity; 59 this(context, anchor, Gravity.NO_GRAVITY); 64 * gravity. 70 * @param gravity The {@link Gravity} value for aligning the popup with its 73 public PopupMenu(Context context, View anchor, int gravity) { 74 this(context, anchor, gravity, R.attr.popupMenuStyle, 0); 84 * @param gravity The {@link Gravity} value for aligning the popup with its 94 public PopupMenu(Context context, View anchor, int gravity, int popupStyleAttr [all...] |
FrameLayout.java | 30 import android.view.Gravity; 44 * and control their position within the FrameLayout by assigning gravity to each child, using the 58 private static final int DEFAULT_CHILD_GRAVITY = Gravity.TOP | Gravity.START; 107 * @param foregroundGravity See {@link android.view.Gravity} 120 if (getForegroundGravity() == Gravity.FILL && foreground != null) { 261 layoutChildren(left, top, right, bottom, false /* no force left gravity */); 284 int gravity = lp.gravity; local 285 if (gravity == -1) 435 public int gravity = UNSPECIFIED_GRAVITY; field in class:FrameLayout.LayoutParams [all...] |
/frameworks/support/v4/api21/android/support/v4/widget/ |
DrawerLayoutCompatApi21.java | 23 import android.view.Gravity; 45 public static void dispatchChildInsets(View child, Object insets, int gravity) { 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) [all...] |
/frameworks/support/v4/api21/android/support/v4/graphics/drawable/ |
RoundedBitmapDrawable21.java | 23 import android.view.Gravity; 51 void gravityCompatApply(int gravity, int bitmapWidth, int bitmapHeight, 53 Gravity.apply(gravity, bitmapWidth, bitmapHeight,
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowToast.java | 24 private int gravity; field in class:ShadowToast 58 public void setGravity(int gravity, int xOffset, int yOffset) { 59 this.gravity = gravity; 64 return gravity;
|
/frameworks/support/v4/java/android/support/v4/widget/ |
PopupWindowCompat.java | 21 import android.view.Gravity; 35 void showAsDropDown(PopupWindow popup, View anchor, int xoff, int yoff, int gravity); 48 int gravity) { 49 final int hgrav = GravityCompat.getAbsoluteGravity(gravity, 50 ViewCompat.getLayoutDirection(anchor)) & Gravity.HORIZONTAL_GRAVITY_MASK; 51 if (hgrav == Gravity.RIGHT) { 101 int gravity) { 102 PopupWindowCompatKitKat.showAsDropDown(popup, anchor, xoff, yoff, gravity); 177 * @param gravity Alignment of the popup relative to the anchor 180 int gravity) { [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/app/ |
ActionBar.java | 35 import android.view.Gravity; 1355 public int gravity = Gravity.NO_GRAVITY; field in class:ActionBar.LayoutParams [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
PopupMenu.java | 30 import android.view.Gravity; 63 this(context, anchor, Gravity.NO_GRAVITY); 68 * gravity. 74 * @param gravity The {@link Gravity} value for aligning the popup with its 77 public PopupMenu(@NonNull Context context, @NonNull View anchor, int gravity) { 78 this(context, anchor, gravity, R.attr.popupMenuStyle, 0); 88 * @param gravity The {@link Gravity} value for aligning the popup with its 98 public PopupMenu(@NonNull Context context, @NonNull View anchor, int gravity, [all...] |
/cts/tests/tests/widget/src/android/widget/cts/ |
TextViewFadingEdgeTest.java | 24 import static android.view.Gravity.CENTER; 25 import static android.view.Gravity.LEFT; 26 import static android.view.Gravity.NO_GRAVITY; 27 import static android.view.Gravity.RIGHT; 66 new TestCase("Should not fade when text:short, dir:LTR, gravity:center", 70 new TestCase("Should not fade when text:short, dir:RTL, gravity:center", 74 new TestCase("Should fade left when text:long, dir:LTR, gravity:right", 84 new TestCase("Should fade left when text:long, dir:RTL, gravity:right", 96 new TestCase("Should fade right when text:long, dir:LTR, gravity:left", 102 new TestCase("Should fade right when text:long, dir:RTL, gravity:left" 190 final int gravity; field in class:TextViewFadingEdgeTest.TestCase [all...] |
/frameworks/support/percent/src/android/support/percent/ |
PercentFrameLayout.java | 130 public LayoutParams(int width, int height, int gravity) { 131 super(width, height, gravity); 144 gravity = source.gravity;
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
ViewLayoutUtils.java | 78 if (params.gravity != layoutGravity) { 79 params.gravity = layoutGravity; 84 if (params.gravity != layoutGravity) { 85 params.gravity = layoutGravity; 89 throw new IllegalArgumentException("Layout parameter doesn't have gravity: "
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
OnScreenHint.java | 22 import android.view.Gravity; 45 int mGravity = Gravity.CENTER_HORIZONTAL | Gravity.BOTTOM; 144 final int gravity = mGravity; local 145 mParams.gravity = gravity; 146 if ((gravity & Gravity.HORIZONTAL_GRAVITY_MASK) 147 == Gravity.FILL_HORIZONTAL) { 150 if ((gravity & Gravity.VERTICAL_GRAVITY_MASK [all...] |
/frameworks/base/test-runner/src/android/test/ |
TouchUtils.java | 24 import android.view.Gravity; 484 * Get the location of a view. Use the gravity param to specify which part of the view to 488 * @param gravity A combination of (TOP, CENTER_VERTICAL, BOTTOM) and (LEFT, CENTER_HORIZONTAL, 492 private static void getStartLocation(View v, int gravity, int[] xy) { 498 switch (gravity & Gravity.VERTICAL_GRAVITY_MASK) { 499 case Gravity.TOP: 501 case Gravity.CENTER_VERTICAL: 504 case Gravity.BOTTOM: 511 switch (gravity & Gravity.HORIZONTAL_GRAVITY_MASK) [all...] |
/packages/apps/DeskClock/src/com/android/deskclock/widget/ |
CircleView.java | 27 import android.view.Gravity; 95 mGravity = a.getInt(R.styleable.CircleView_android_gravity, Gravity.NO_GRAVITY); 109 if (mGravity != Gravity.NO_GRAVITY) { 118 if (mGravity != Gravity.NO_GRAVITY) { 138 * @return the current {@link Gravity} used to align/size the circle 146 * {@link Gravity#NO_GRAVITY}. 149 * {@link #setRadius(float)} will automatically clear any conflicting gravity bits. 151 * @param gravity the {@link Gravity} flags to use 155 public CircleView setGravity(int gravity) { [all...] |
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/util/ |
TouchUtils.java | 23 import android.view.Gravity; 183 private static void getStartLocation(View v, int gravity, int[] xy) { 189 switch (gravity & Gravity.VERTICAL_GRAVITY_MASK) { 190 case Gravity.TOP: 192 case Gravity.CENTER_VERTICAL: 195 case Gravity.BOTTOM: 202 switch (gravity & Gravity.HORIZONTAL_GRAVITY_MASK) { 203 case Gravity.LEFT [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/ |
BoxInsetLayout.java | 26 import android.view.Gravity; 45 private static final int DEFAULT_CHILD_GRAVITY = Gravity.TOP | Gravity.START; 238 layoutBoxChildren(left, top, right, bottom, false /* no force left gravity */); 263 int gravity = lp.gravity; local 264 if (gravity == -1) { 265 gravity = DEFAULT_CHILD_GRAVITY; 269 final int absoluteGravity = Gravity.getAbsoluteGravity(gravity, layoutDirection) [all...] |