/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...] |
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/Camera2/src/com/android/camera/ui/ |
RotatableLayout.java | 23 import android.view.Gravity; 195 int gravity = lp.gravity; local 197 // rotate gravity 198 if (contains(gravity, Gravity.LEFT)) { 199 ngravity |= Gravity.TOP; 201 if (contains(gravity, Gravity.RIGHT)) { 202 ngravity |= Gravity.BOTTOM 238 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/60xx/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; 939 public int gravity = -1; field in class:ActionBar.LayoutParams [all...] |
/external/chromium_org/content/public/android/javatests/src/org/chromium/content/browser/ |
DeviceMotionAndOrientationTest.java | 224 float[] gravity = {0, 0, 1}; local 228 verifyOrientationAngles(gravity, magnetic, expectedAngles); 233 float[] gravity = {0, (float) Math.sin(Math.PI / 4), (float) Math.cos(Math.PI / 4)}; local 237 verifyOrientationAngles(gravity, magnetic, expectedAngles); 242 float[] gravity = {-(float) Math.sin(Math.PI / 4), 0, (float) Math.cos(Math.PI / 4)}; local 246 verifyOrientationAngles(gravity, magnetic, expectedAngles); 251 float[] gravity = {0, 0, 1}; local 255 verifyOrientationAngles(gravity, magnetic, expectedAngles); 260 float[] gravity = {0, 1, 0}; local 264 verifyOrientationAngles(gravity, magnetic, expectedAngles) 270 float[] gravity = {0, (float) Math.cos(largePitchAngle - Math.PI \/ 2), local 280 float[] gravity = {-1, 0, 0}; local [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/Camera2/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/60xx/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...] |
/frameworks/base/packages/Keyguard/src/com/android/keyguard/ |
MultiPaneChallengeLayout.java | 28 import android.view.Gravity; 269 if (Gravity.isVertical(lp.gravity)) { 271 } else if (Gravity.isHorizontal(lp.gravity)) { 375 final int gravity = Gravity.getAbsoluteGravity(lp.gravity, getLayoutDirection()); local 396 final boolean isVertical = Gravity.isVertical(gravity); 496 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/base/core/java/android/widget/ |
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) 414 int gravity = lp.gravity; local 609 public int gravity = -1; field in class:FrameLayout.LayoutParams [all...] |
PopupWindow.java | 31 import android.view.Gravity; 76 private static final int DEFAULT_ANCHORED_GRAVITY = Gravity.TOP | Gravity.START; 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 805 * <code>Gravity.LEFT | Gravity.TOP</code>. 809 * @param gravity the gravity which controls the placement of the popup windo 814 showAtLocation(parent.getWindowToken(), gravity, x, y); local [all...] |
/frameworks/support/v4/java/android/support/v4/widget/ |
DrawerLayout.java | 38 import android.view.Gravity; 231 mLeftCallback = new ViewDragCallback(Gravity.LEFT); 232 mRightCallback = new ViewDragCallback(Gravity.RIGHT); 256 * @param gravity Which drawer the shadow should apply to 258 public void setDrawerShadow(Drawable shadowDrawable, int gravity) { 265 final int absGravity = GravityCompat.getAbsoluteGravity(gravity, 267 if ((absGravity & Gravity.LEFT) == Gravity.LEFT) { 271 if ((absGravity & Gravity.RIGHT) == Gravity.RIGHT) 285 setDrawerShadow(getResources().getDrawable(resId), gravity); local 398 final int gravity = ((LayoutParams) drawerView.getLayoutParams()).gravity; local 519 final int gravity = ((LayoutParams) drawerView.getLayoutParams()).gravity; local 857 final int gravity = ((LayoutParams) child.getLayoutParams()).gravity; local 1491 public int gravity = Gravity.NO_GRAVITY; field in class:DrawerLayout.LayoutParams [all...] |
/frameworks/base/tests/GridLayoutTest/src/com/android/test/layout/ |
LinearLayoutTest.java | 37 lp.gravity = va | ha;
|
/development/samples/Support7Demos/src/com/example/android/supportv7/media/ |
OverlayDisplayWindow.java | 30 import android.view.Gravity; 63 int width, int height, int gravity) { 68 mGravity = gravity; 72 int width, int height, int gravity) { 74 return new JellybeanMr1Impl(context, name, width, height, gravity); 76 return new LegacyImpl(context, name, width, height, gravity); 113 int width, int height, int gravity) { 114 super(context, name, width, height, gravity); 135 params.gravity = Gravity.LEFT | Gravity.BOTTOM [all...] |
/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/chromium_org/tools/perf/page_sets/tough_canvas_cases/canvas2d_balls_common/ |
bouncing_balls.js | 12 var gravity = 0.5; //screen heights per second^2 variable 105 velocityY = -Math.sqrt(2 * gravity * (1-2 * borderY) * (0.75 + 0.25 * 139 var deltaY = alive ? velocityY*timeStep+gravity*timeStep*timeStep/2 : 0; 147 var a = gravity/2; 151 velocityY = -elasticity*(velocityY + gravity*subStep); 162 deltaY = velocityY*remainingTime+gravity*remainingTime*remainingTime/2; 168 velocityY += gravity*remainingTime;
|