Home
last modified time | relevance | path

Searched refs:gravity (Results 1 – 24 of 24) sorted by relevance

/cts/tests/tests/widget/src/android/widget/cts/
DLinearLayout_LayoutParamsTest.java53 assertEquals(-1, linearLayoutParams.gravity); in testConstructor()
59 assertEquals(-1, linearLayoutParams.gravity); in testConstructor()
65 assertEquals(-1, linearLayoutParams.gravity); in testConstructor()
72 assertEquals(-1, linearLayoutParams.gravity); in testConstructor()
79 assertEquals(-1, linearLayoutParams.gravity); in testConstructor()
83 linearLayoutParams2.gravity = Gravity.RIGHT; in testConstructor()
88 assertEquals(Gravity.RIGHT, linearLayoutParams.gravity); in testConstructor()
DTextViewFadingEdgeTest.java149 data.gravity, data.textAlignment, data.scrollToMiddle); in testFadingEdge()
159 int gravity, int textAlignment, boolean scrollToMiddle) throws Throwable { in createTextView() argument
169 textView.setGravity(gravity); in createTextView()
197 final int gravity; field in TextViewFadingEdgeTest.TestCase
203 TestCase(String errorMsg, String text, boolean horizontalFadingEnabled, int gravity, in TestCase() argument
209 this.gravity = gravity; in TestCase()
216 TestCase(String errorMsg, String text, boolean horizontalFadingEnabled, int gravity, in TestCase() argument
218 this(errorMsg, text, horizontalFadingEnabled, gravity, textAlignment, false, in TestCase()
DGridLayoutTest.java60 int gravity; field in GridLayoutTest.Alignment
64 protected Alignment(String name, int gravity) { in Alignment() argument
66 this.gravity = gravity; in Alignment()
216 lp.setGravity(va.gravity | Gravity.CENTER_HORIZONTAL); in populate()
227 lp.setGravity(Gravity.CENTER_VERTICAL | ha.gravity); in populate()
241 lp.setGravity(va.gravity | ha.gravity); in populate()
DFrameLayout_LayoutParamsTest.java95 fllp.gravity = Gravity.BOTTOM; in testCopyConstructor()
104 assertEquals("Gravity", fllp.gravity, copy.gravity); in testCopyConstructor()
DPopupWindowTest.java448 final int gravity = Gravity.TOP | Gravity.START; in testShowAsDropDown_ClipToScreen_Overlap_Offset() local
452 offsetX, offsetY, gravity); in testShowAsDropDown_ClipToScreen_Overlap_Offset()
455 offsetX, offsetY, gravity); in testShowAsDropDown_ClipToScreen_Overlap_Offset()
458 offsetX, offsetY, gravity); in testShowAsDropDown_ClipToScreen_Overlap_Offset()
462 offsetX, offsetY, gravity); in testShowAsDropDown_ClipToScreen_Overlap_Offset()
465 offsetX, offsetY, gravity); in testShowAsDropDown_ClipToScreen_Overlap_Offset()
468 offsetX, offsetY, gravity); in testShowAsDropDown_ClipToScreen_Overlap_Offset()
472 offsetX, offsetY, gravity); in testShowAsDropDown_ClipToScreen_Overlap_Offset()
475 offsetX, offsetY, gravity); in testShowAsDropDown_ClipToScreen_Overlap_Offset()
478 offsetX, offsetY, gravity); in testShowAsDropDown_ClipToScreen_Overlap_Offset()
[all …]
DGalleryTest.java192 private void setGalleryGravity(final int gravity) throws Throwable { in setGalleryGravity() argument
194 mGallery.setGravity(gravity); in setGalleryGravity()
DPopupMenuTest.java357 public Builder withGravity(int gravity) { in withGravity() argument
359 mGravity = gravity; in withGravity()
DRadioGroupTest.java306 assertEquals(-1, layoutParams.gravity); in testGenerateLayoutParams()
319 assertEquals(Gravity.BOTTOM, layoutParams.gravity); in testGenerateLayoutParams()
DRadioGroup_LayoutParamsTest.java113 assertEquals(Gravity.BOTTOM, mLayoutParams.gravity); in testConstructor()
DListPopupWindowTest.java242 private void verifyAnchoring(int horizontalOffset, int verticalOffset, int gravity) { in verifyAnchoring() argument
258 Gravity.getAbsoluteGravity(gravity, upperAnchor.getLayoutDirection()); in verifyAnchoring()
DFrameLayoutTest.java220 assertEquals(Gravity.BOTTOM, params.gravity); in testGenerateLayoutParams2()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DBoxInsetLayout.java263 int gravity = lp.gravity; in layoutBoxChildren() local
264 if (gravity == -1) { in layoutBoxChildren()
265 gravity = DEFAULT_CHILD_GRAVITY; in layoutBoxChildren()
269 final int absoluteGravity = Gravity.getAbsoluteGravity(gravity, layoutDirection); in layoutBoxChildren()
270 final int verticalGravity = gravity & Gravity.VERTICAL_GRAVITY_MASK; in layoutBoxChildren()
408 public LayoutParams(int width, int height, int gravity) { in LayoutParams() argument
409 super(width, height, gravity); in LayoutParams()
412 public LayoutParams(int width, int height, int gravity, int boxed) { in LayoutParams() argument
413 super(width, height, gravity); in LayoutParams()
432 this.gravity = source.gravity; in LayoutParams()
/cts/hostsidetests/services/activityandwindowmanager/windowmanager/frametestapp/src/android/server/frametestapp/
DDialogTestActivity.java141 params.gravity = Gravity.TOP | Gravity.LEFT; in testExplicitSizeTopLeftGravity()
149 params.gravity = Gravity.BOTTOM | Gravity.RIGHT; in testExplicitSizeBottomRightGravity()
165 params.gravity = Gravity.LEFT | Gravity.TOP; in testOversizedDimensionsNoLimits()
182 params.gravity = Gravity.LEFT | Gravity.TOP; in testExplicitPositionMatchParentNoLimits()
197 params.gravity = Gravity.LEFT | Gravity.TOP; in testWithMargins()
/cts/tests/tests/view/src/android/view/cts/
DWindowManager_LayoutParamsTest.java145 params.gravity = Gravity.TOP; in testCopyFrom()
149 assertEquals(params.gravity, mLayoutParams.gravity); in testCopyFrom()
222 mLayoutParams.gravity = Gravity.TOP; in testWriteToParcel()
DGravityTest.java53 private void applyGravity(int gravity, int w, int h, boolean bRtl) { in applyGravity() argument
55 Gravity.apply(gravity, w, h, mInRect, mOutRect, layoutDirection); in applyGravity()
DWindowTest.java532 assertEquals(0, attrs.gravity); in testSetGravity()
538 assertEquals(Gravity.TOP, attrs.gravity); in testSetGravity()
/cts/hostsidetests/services/activityandwindowmanager/windowmanager/alertwindowappsdk25/src/android/server/alertwindowappsdk25/
DAlertWindowTestBaseActivity.java62 params.gravity = TOP | LEFT; in createAlertWindow()
/cts/tests/tests/security/src/android/security/cts/
DMotionEventTest.java97 wmlp.gravity = Gravity.TOP | Gravity.LEFT; in testActionOutsideDoesNotContainedObscuredInformation()
110 wmlp.gravity = Gravity.TOP | Gravity.RIGHT; in testActionOutsideDoesNotContainedObscuredInformation()
/cts/tests/app/app2/src/com/android/app2/
DAlertWindowService.java91 params.gravity = TOP | LEFT; in addAlertWindow()
/cts/tests/sensor/src/android/hardware/cts/
DSensorManagerStaticTest.java256 final float gravity = 9.81f; in testGetRotationMatrix() local
267 gm[6] = gravity; // m/s^2, first column gravity in testGetRotationMatrix()
340 gI[0] = gI[1] = gI[2] = data.nextFloat() * gravity * 0.05f; // sqrt(3) * 0.05 < 0.1 in testGetRotationMatrix()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DClipDrawableTest.java379 public MockClipDrawable(Drawable drawable, int gravity, int orientation) { in MockClipDrawable() argument
380 super(drawable, gravity, orientation); in MockClipDrawable()
DScaleDrawableTest.java551 public MockScaleDrawable(Drawable drawable, int gravity, in MockScaleDrawable() argument
553 super(drawable, gravity, scaleWidth, scaleHeight); in MockScaleDrawable()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityWindowQueryTest.java764 params.gravity = Gravity.TOP; in addTwoAppPanelWindows()
796 params.gravity = Gravity.BOTTOM; in addTwoAppPanelWindows()
/cts/tools/dex-tools/dex/
Dclasses.out.dex608 public static final int gravity
89455 public int gravity
103416 public int gravity
104495 public int gravity
109854 public static final int gravity