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

1 2 3 4 5 6 7

  /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 */
35 /** Bitmask for a gravity which includes left */
38 /** Bitmask for a gravity which includes right */
41 /** Bitmask for a gravity which includes center horizontal */
44 /** Bitmask for a gravity which includes fill horizontal */
47 /** Bitmask for a gravity which includes center vertical */
50 /** Bitmask for a gravity which includes fill vertical */
53 /** Bitmask for a gravity which includes top */
56 /** Bitmask for a gravity which includes bottom *
86 int gravity = defaultMask; local
    [all...]
GridLayoutRule.java 174 // Gravity and margins
358 String gravity = computeDefaultGravity(fill); local
359 if (gravity != null) {
360 node.setAttribute(getNamespace(parent), ATTR_LAYOUT_GRAVITY, gravity); local
383 * Computes the default gravity to be used for a widget of the given fill
387 * @return the gravity value, or null, to be set on the widget
398 String gravity; local
401 gravity = GRAVITY_VALUE_FILL;
403 gravity = horizontal + '|' + vertical;
405 gravity = horizontal
470 int gravity = GravityHelper.getGravity(gravityString, 0); local
507 int gravity = GravityHelper.getGravity(gravityString, 0); local
    [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/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 suppose that the layout direction is LTR
    [all...]
  /packages/apps/Gallery2/src/com/android/camera/ui/
RotatableLayout.java 23 import android.view.Gravity;
151 int gravity = lp.gravity; local
153 // rotate gravity
154 if (contains(gravity, Gravity.LEFT)) {
155 ngravity |= Gravity.TOP;
157 if (contains(gravity, Gravity.RIGHT)) {
158 ngravity |= Gravity.BOTTOM
194 int gravity = lp.gravity; local
    [all...]
  /frameworks/base/core/java/android/inputmethodservice/
SoftInputWindow.java 23 import android.view.Gravity;
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 {#lin
    [all...]
  /hardware/invensense/libsensors_iio/software/core/mpl/
mag_disturb.h 18 const long *compass, const long *gravity);
  /external/robolectric/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/base/core/java/android/app/
ActionBar.java 23 import android.view.Gravity;
1025 public int gravity = Gravity.NO_GRAVITY; field in class:ActionBar.LayoutParams
    [all...]
  /frameworks/support/v7/appcompat/src/android/support/v7/app/
ActionBar.java 27 import android.view.Gravity;
900 public int gravity = -1; field in class:ActionBar.LayoutParams
    [all...]
  /packages/apps/Camera/src/com/android/camera/
OnScreenHint.java 22 import android.view.Gravity;
43 int mGravity = Gravity.CENTER_HORIZONTAL | Gravity.BOTTOM;
141 final int gravity = mGravity; local
142 mParams.gravity = gravity;
143 if ((gravity & Gravity.HORIZONTAL_GRAVITY_MASK)
144 == Gravity.FILL_HORIZONTAL) {
147 if ((gravity & Gravity.VERTICAL_GRAVITY_MASK
    [all...]
  /packages/apps/Gallery2/src/com/android/camera/
OnScreenHint.java 22 import android.view.Gravity;
45 int mGravity = Gravity.CENTER_HORIZONTAL | Gravity.BOTTOM;
143 final int gravity = mGravity; local
144 mParams.gravity = gravity;
145 if ((gravity & Gravity.HORIZONTAL_GRAVITY_MASK)
146 == Gravity.FILL_HORIZONTAL) {
149 if ((gravity & Gravity.VERTICAL_GRAVITY_MASK
    [all...]
  /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...]
  /hardware/invensense/libsensors_iio/software/core/mllite/
hal_outputs.c 50 * @param[out] values Acceleration in m/s^2 includes gravity. So while not in motion, it
87 long gravity[3], accel[3]; local
90 inv_get_gravity(gravity);
91 accel[0] -= gravity[0] >> 14;
92 accel[1] -= gravity[1] >> 14;
93 accel[2] -= gravity[2] >> 14;
101 /** Gravity vector (m/s^2) in Body Frame.
102 * @param[out] values Gravity vector in body frame, length 3, (m/s^2)
111 long gravity[3]; local
116 inv_get_gravity(gravity);
    [all...]
results_holder.c 195 /** Gets gravity vector
196 * @param[out] data gravity vector in body frame scaled such that 1.0 = 2^30.
396 * with gravity removed
398 * with gravity removed
404 long gravity[3]; local
409 inv_get_gravity(gravity);
410 data[0] -= gravity[0] >> 14;
411 data[1] -= gravity[1] >> 14;
412 data[2] -= gravity[2] >> 14;
  /frameworks/base/policy/src/com/android/internal/policy/impl/keyguard/
MultiPaneChallengeLayout.java 30 import android.view.Gravity;
262 if (Gravity.isVertical(lp.gravity)) {
264 } else if (Gravity.isHorizontal(lp.gravity)) {
367 final int gravity = Gravity.getAbsoluteGravity(lp.gravity, getLayoutDirection()); local
388 final boolean isVertical = Gravity.isVertical(gravity);
486 public int gravity = Gravity.NO_GRAVITY; field in class:MultiPaneChallengeLayout.LayoutParams
    [all...]
  /frameworks/base/test-runner/src/android/test/
TouchUtils.java 24 import android.view.Gravity;
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) {
504 switch (gravity & Gravity.VERTICAL_GRAVITY_MASK) {
505 case Gravity.TOP:
507 case Gravity.CENTER_VERTICAL:
510 case Gravity.BOTTOM:
517 switch (gravity & Gravity.HORIZONTAL_GRAVITY_MASK)
    [all...]
  /frameworks/support/v4/java/android/support/v4/widget/
DrawerLayout.java 38 import android.view.Gravity;
227 mLeftCallback = new ViewDragCallback(Gravity.LEFT);
228 mRightCallback = new ViewDragCallback(Gravity.RIGHT);
252 * @param gravity Which drawer the shadow should apply to
254 public void setDrawerShadow(Drawable shadowDrawable, int gravity) {
261 final int absGravity = GravityCompat.getAbsoluteGravity(gravity,
263 if ((absGravity & Gravity.LEFT) == Gravity.LEFT) {
267 if ((absGravity & Gravity.RIGHT) == Gravity.RIGHT)
281 setDrawerShadow(getResources().getDrawable(resId), gravity); local
423 final int gravity = getDrawerViewGravity(drawerView); local
511 final int gravity = ((LayoutParams) drawerView.getLayoutParams()).gravity; local
840 final int gravity = ((LayoutParams) child.getLayoutParams()).gravity; local
    [all...]
  /frameworks/base/core/java/android/widget/
LinearLayout.java 26 import android.view.Gravity;
38 * You can also specify gravity, which specifies the alignment of all the child elements by
111 @ViewDebug.FlagToString(mask = Gravity.NO_GRAVITY,
112 equals = Gravity.NO_GRAVITY,name = "NONE"),
113 @ViewDebug.FlagToString(mask = Gravity.TOP,
114 equals = Gravity.TOP, name = "TOP"),
115 @ViewDebug.FlagToString(mask = Gravity.BOTTOM,
116 equals = Gravity.BOTTOM, name = "BOTTOM"),
117 @ViewDebug.FlagToString(mask = Gravity.LEFT,
118 equals = Gravity.LEFT, name = "LEFT")
1093 final int gravity = (lp.gravity < 0 ? mGravity : lp.gravity) local
1265 final int gravity = (lp.gravity < 0 ? mGravity : lp.gravity) local
1498 int gravity = lp.gravity; local
1614 int gravity = lp.gravity; local
1725 final int gravity = horizontalGravity & Gravity.RELATIVE_HORIZONTAL_GRAVITY_MASK; local
1734 final int gravity = verticalGravity & Gravity.VERTICAL_GRAVITY_MASK; local
1825 public int gravity = -1; field in class:LinearLayout.LayoutParams
    [all...]
FrameLayout.java 28 import android.view.Gravity;
42 * 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;
82 private int mForegroundGravity = Gravity.FILL;
127 * @return foreground gravity.
140 * @param foregroundGravity See {@link android.view.Gravity}
149 if ((foregroundGravity & Gravity.RELATIVE_HORIZONTAL_GRAVITY_MASK) == 0) {
150 foregroundGravity |= Gravity.START;
153 if ((foregroundGravity & Gravity.VERTICAL_GRAVITY_MASK) == 0)
409 int gravity = lp.gravity; local
604 public int gravity = -1; field in class:FrameLayout.LayoutParams
    [all...]
Toast.java 29 import android.view.Gravity;
195 * @see android.view.Gravity
198 public void setGravity(int gravity, int xOffset, int yOffset) {
199 mTN.mGravity = gravity;
206 * @see android.view.Gravity
214 * Return the X offset in pixels to apply to the gravity's location.
221 * Return the Y offset in pixels to apply to the gravity's location.
326 int mGravity = Gravity.CENTER_HORIZONTAL | Gravity.BOTTOM;
382 // We can resolve the Gravity here by using the Locale for gettin
385 final int gravity = Gravity.getAbsoluteGravity(mGravity, config.getLayoutDirection()); local
    [all...]
  /frameworks/base/tests/GridLayoutTest/src/com/android/test/layout/
LinearLayoutTest.java 37 lp.gravity = va | ha;
  /cts/tests/tests/widget/src/android/widget/cts/
GridLayoutTest.java 23 import android.view.Gravity;
47 int gravity; field in class:GridLayoutTest.Alignment
51 protected Alignment(String name, int gravity) {
53 this.gravity = gravity;
58 new Alignment("LEFT", Gravity.LEFT) {
64 new Alignment("CENTER", Gravity.CENTER_HORIZONTAL) {
70 new Alignment("RIGHT", Gravity.RIGHT) {
76 new Alignment("FILL", Gravity.FILL_HORIZONTAL) {
85 new Alignment("TOP", Gravity.TOP)
    [all...]
  /external/jmonkeyengine/engine/src/bullet/com/jme3/bullet/objects/
PhysicsRigidBody.java 341 public Vector3f getGravity(Vector3f gravity) {
342 if (gravity == null) {
343 gravity = new Vector3f();
345 getGravity(objectId, gravity);
346 return gravity;
349 private native void getGravity(long objectId, Vector3f gravity);
352 * Set the local gravity of this PhysicsRigidBody<br/>
354 * the PhysicsSpace assigns its current gravity to the physics node when its added.
355 * @param gravity the gravity vector to se
    [all...]

Completed in 624 milliseconds

1 2 3 4 5 6 7