HomeSort by relevance Sort by last modified time
    Searched refs:gravity (Results 1 - 25 of 493) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /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...]
  /external/ImageMagick/PerlMagick/t/
composite.t 29 'input.miff', q//, q/, gravity=>'Center', compose=>'ModulusAdd'/,
36 'input.miff', q//, q/, gravity=>'Center', compose=>'Atop'/,
44 'input.miff', q//,q/, gravity=>'Center', compose=>'Bumpmap'/,
52 'input.miff', q//, q/, gravity=>'Center', compose=>'Clear'/,
60 'input.miff', q//, q/, gravity=>'Center', compose=>'Copy'/,
68 'input.miff', q//, q/, gravity=>'Center', compose=>'CopyBlue'/,
76 'input.miff', q//, q/, gravity=>'Center', compose=>'CopyGreen'/,
84 'input.miff', q//, q/, gravity=>'Center', compose=>'CopyRed'/,
92 'input.miff', q//, q/, gravity=>'Center', compose=>'CopyAlpha'/,
100 'input.miff', q//, q/, gravity=>'Center', compose=>'Difference'/
    [all...]
montage.t 35 # 2) Test Center gravity
40 q/background=>'#696e7e', geometry=>'90x80+5+5>', gravity=>'Center'/,
44 # 3) Test NorthWest gravity
49 q/background=>'#696e7e', geometry=>'90x80+5+5>', gravity=>'NorthWest'/,
53 # 4) Test North gravity
58 q/background=>'#696e7e', geometry=>'90x80+5+5>', gravity=>'North'/,
62 # 5) Test NorthEast gravity
67 q/background=>'#696e7e', geometry=>'90x80+5+5>', gravity=>'NorthEast'/,
71 # 6) Test West gravity
76 q/background=>'#696e7e', geometry=>'90x80+5+5>', gravity=>'West'/
    [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/compat/java/android/support/v4/view/
GravityCompat.java 23 import android.view.Gravity;
26 * Compatibility shim for accessing newer functionality from {@link android.view.Gravity}.
35 public static final int START = RELATIVE_LAYOUT_DIRECTION | Gravity.LEFT;
38 public static final int END = RELATIVE_LAYOUT_DIRECTION | Gravity.RIGHT;
41 * Binary mask for the horizontal gravity and script specific direction bit.
46 * Apply a gravity constant to an object and take care if layout direction is RTL or not.
48 * @param gravity The desired placement of the object, as defined by the
62 public static void apply(int gravity, int w, int h, Rect container,
65 Gravity.apply(gravity, w, h, container, outRect, layoutDirection)
    [all...]
  /frameworks/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...]
  /external/ImageMagick/PerlMagick/demo/
annotate.pl 23 $label->Annotate(text=>"North West",gravity=>"NorthWest",x=>$x,y=>$y,
25 $label->Annotate(text=>"North",gravity=>"North",y=>$y,rotate=>$angle);
26 $label->Annotate(text=>"North East",gravity=>"NorthEast",x=>$x,y=>$y,
28 $label->Annotate(text=>"West",gravity=>"West",x=>$x,rotate=>$angle);
29 $label->Annotate(text=>"Center",gravity=>"Center",rotate=>$angle);
30 $label->Annotate(text=>"East",gravity=>"East",x=>$x,rotate=>$angle);
31 $label->Annotate(text=>"South West",gravity=>"SouthWest",x=>$x,y=>$y,
33 $label->Annotate(text=>"South",gravity=>"South",y=>$y,rotate=>$angle);
34 $label->Annotate(text=>"South East",gravity=>"SouthEast",x=>$x,y=>$y,
composite.pl 27 $thumbnail->Composite(image=>$smile,gravity=>"NorthWest",x=>$x,y=>$y,
29 $thumbnail->Composite(image=>$smile,gravity=>"North",y=>$y,rotate=>$angle);
30 $thumbnail->Composite(image=>$smile,gravity=>"NorthEast",x=>$x,y=>$y,
32 $thumbnail->Composite(image=>$smile,gravity=>"West",x=>$x,rotate=>$angle);
33 $thumbnail->Composite(image=>$smile,gravity=>"Center",rotate=>$angle);
34 $thumbnail->Composite(image=>$smile,gravity=>"East",x=>$x,rotate=>$angle);
35 $thumbnail->Composite(image=>$smile,gravity=>"SouthWest",x=>$x,y=>$y,
37 $thumbnail->Composite(image=>$smile,gravity=>"South",y=>$y,rotate=>$angle);
38 $thumbnail->Composite(image=>$smile,gravity=>"SouthEast",x=>$x,y=>$y,
button.pl 13 gravity=>'Center',pointsize=>18);
annotate_words.pl 36 gravity => 'NorthWest',
48 gravity => 'NorthWest',
  /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 22 import android.view.Gravity;
60 this(context, anchor, Gravity.NO_GRAVITY);
65 * gravity.
71 * @param gravity The {@link Gravity} value for aligning the popup with its
74 public PopupMenu(Context context, View anchor, int gravity) {
75 this(context, anchor, gravity, R.attr.popupMenuStyle, 0);
85 * @param gravity The {@link Gravity} value for aligning the popup with its
95 public PopupMenu(Context context, View anchor, int gravity, int popupStyleAttr
    [all...]
  /frameworks/support/core-utils/api21/android/support/v4/graphics/drawable/
RoundedBitmapDrawable21.java 24 import android.view.Gravity;
53 void gravityCompatApply(int gravity, int bitmapWidth, int bitmapHeight,
55 Gravity.apply(gravity, bitmapWidth, bitmapHeight,
  /frameworks/support/samples/SupportTransitionDemos/src/com/example/android/support/transition/widget/
ArcMotionUsage.java 25 import android.view.Gravity;
59 if ((lp.gravity & Gravity.START) == Gravity.START) {
60 lp.gravity = Gravity.END | Gravity.BOTTOM;
62 lp.gravity = Gravity.START | Gravity.TOP
    [all...]
  /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;
  /cts/tests/tests/widget/src/android/widget/cts/
LinearLayout_LayoutParamsTest.java 27 import android.view.Gravity;
53 assertEquals(-1, linearLayoutParams.gravity);
59 assertEquals(-1, linearLayoutParams.gravity);
65 assertEquals(-1, linearLayoutParams.gravity);
72 assertEquals(-1, linearLayoutParams.gravity);
79 assertEquals(-1, linearLayoutParams.gravity);
83 linearLayoutParams2.gravity = Gravity.RIGHT;
88 assertEquals(Gravity.RIGHT, linearLayoutParams.gravity);
    [all...]
TextViewFadingEdgeTest.java 19 import static android.view.Gravity.CENTER;
20 import static android.view.Gravity.LEFT;
21 import static android.view.Gravity.NO_GRAVITY;
22 import static android.view.Gravity.RIGHT;
89 new TestCase("Should not fade when text:short, dir:LTR, gravity:center",
93 new TestCase("Should not fade when text:short, dir:RTL, gravity:center",
97 new TestCase("Should fade left when text:long, dir:LTR, gravity:right",
107 new TestCase("Should fade left when text:long, dir:RTL, gravity:right",
119 new TestCase("Should fade right when text:long, dir:LTR, gravity:left",
125 new TestCase("Should fade right when text:long, dir:RTL, gravity:left"
197 final int gravity; field in class:TextViewFadingEdgeTest.TestCase
    [all...]
  /frameworks/support/wear/src/android/support/wear/widget/
BoxInsetLayout.java 32 import android.view.Gravity;
51 private static final int DEFAULT_CHILD_GRAVITY = Gravity.TOP | Gravity.START;
251 int gravity = lp.gravity; local
252 if (gravity == -1) {
253 gravity = DEFAULT_CHILD_GRAVITY;
257 final int absoluteGravity = Gravity.getAbsoluteGravity(gravity, layoutDirection);
258 final int verticalGravity = gravity & Gravity.VERTICAL_GRAVITY_MASK
323 int gravity = childLayoutParams.gravity; local
    [all...]
  /frameworks/support/compat/java/android/support/v4/widget/
PopupWindowCompat.java 24 import android.view.Gravity;
43 int gravity) {
44 final int hgrav = GravityCompat.getAbsoluteGravity(gravity,
45 ViewCompat.getLayoutDirection(anchor)) & Gravity.HORIZONTAL_GRAVITY_MASK;
46 if (hgrav == Gravity.RIGHT) {
113 int gravity) {
114 popup.showAsDropDown(anchor, xoff, yoff, gravity);
214 * @param gravity Alignment of the popup relative to the anchor
217 int gravity) {
218 IMPL.showAsDropDown(popup, anchor, xoff, yoff, gravity);
    [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...]
  /frameworks/support/percent/src/android/support/percent/
PercentFrameLayout.java 188 public LayoutParams(int width, int height, int gravity) {
189 super(width, height, gravity);
202 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: "
  /frameworks/base/core/java/android/app/
ActionBar.java 31 import android.view.Gravity;
1370 public int gravity = Gravity.NO_GRAVITY; field in class:ActionBar.LayoutParams
    [all...]

Completed in 1088 milliseconds

1 2 3 4 5 6 7 8 91011>>