Home
last modified time | relevance | path

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

12

/cts/tests/tests/widget/src/android/widget/cts/
DLinearLayout_LayoutParamsTest.java54 assertEquals(-1, linearLayoutParams.gravity); in testConstructor()
60 assertEquals(-1, linearLayoutParams.gravity); in testConstructor()
66 assertEquals(-1, linearLayoutParams.gravity); in testConstructor()
73 assertEquals(-1, linearLayoutParams.gravity); in testConstructor()
80 assertEquals(-1, linearLayoutParams.gravity); in testConstructor()
84 linearLayoutParams2.gravity = Gravity.RIGHT; in testConstructor()
89 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()
196 final int gravity; field in TextViewFadingEdgeTest.TestCase
202 TestCase(String errorMsg, String text, boolean horizontalFadingEnabled, int gravity, in TestCase() argument
208 this.gravity = gravity; in TestCase()
215 TestCase(String errorMsg, String text, boolean horizontalFadingEnabled, int gravity, in TestCase() argument
217 this(errorMsg, text, horizontalFadingEnabled, gravity, textAlignment, false, in TestCase()
DGridLayoutTest.java61 int gravity; field in GridLayoutTest.Alignment
65 protected Alignment(String name, int gravity) { in Alignment() argument
67 this.gravity = gravity; in Alignment()
217 lp.setGravity(va.gravity | Gravity.CENTER_HORIZONTAL); in populate()
228 lp.setGravity(Gravity.CENTER_VERTICAL | ha.gravity); in populate()
242 lp.setGravity(va.gravity | ha.gravity); in populate()
DFrameLayout_LayoutParamsTest.java96 fllp.gravity = Gravity.BOTTOM; in testCopyConstructor()
105 assertEquals("Gravity", fllp.gravity, copy.gravity); in testCopyConstructor()
DPopupWindowTest.java463 final int gravity = Gravity.TOP | Gravity.START; in testShowAsDropDown_ClipToScreen_Overlap_Offset() local
467 offsetX, offsetY, gravity); in testShowAsDropDown_ClipToScreen_Overlap_Offset()
470 offsetX, offsetY, gravity); in testShowAsDropDown_ClipToScreen_Overlap_Offset()
473 offsetX, offsetY, gravity); in testShowAsDropDown_ClipToScreen_Overlap_Offset()
477 offsetX, offsetY, gravity); in testShowAsDropDown_ClipToScreen_Overlap_Offset()
480 offsetX, offsetY, gravity); in testShowAsDropDown_ClipToScreen_Overlap_Offset()
483 offsetX, offsetY, gravity); in testShowAsDropDown_ClipToScreen_Overlap_Offset()
487 offsetX, offsetY, gravity); in testShowAsDropDown_ClipToScreen_Overlap_Offset()
490 offsetX, offsetY, gravity); in testShowAsDropDown_ClipToScreen_Overlap_Offset()
493 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), true); in setGalleryGravity()
DPopupMenuTest.java489 public Builder withGravity(int gravity) { in withGravity() argument
491 mGravity = gravity; in withGravity()
DRadioGroupTest.java307 assertEquals(-1, layoutParams.gravity); in testGenerateLayoutParams()
320 assertEquals(Gravity.BOTTOM, layoutParams.gravity); in testGenerateLayoutParams()
DRadioGroup_LayoutParamsTest.java114 assertEquals(Gravity.BOTTOM, mLayoutParams.gravity); in testConstructor()
/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/tests/framework/base/windowmanager/src/android/server/wm/
DDialogFrameTestActivity.java155 params.gravity = Gravity.TOP | Gravity.LEFT; in testExplicitSizeTopLeftGravity()
163 params.gravity = Gravity.BOTTOM | Gravity.RIGHT; in testExplicitSizeBottomRightGravity()
179 params.gravity = Gravity.LEFT | Gravity.TOP; in testOversizedDimensionsNoLimits()
196 params.gravity = Gravity.LEFT | Gravity.TOP; in testExplicitPositionMatchParentNoLimits()
209 params.gravity = Gravity.LEFT | Gravity.TOP; in testWithMargins()
DWindowManager_LayoutParamsTest.java146 params.gravity = Gravity.TOP; in testCopyFrom()
150 assertEquals(params.gravity, mLayoutParams.gravity); in testCopyFrom()
223 mLayoutParams.gravity = Gravity.TOP; in testWriteToParcel()
DWindowInputTests.java89 p.gravity = Gravity.LEFT | Gravity.TOP; in testMoveWindowAndTap()
DLocationInWindowTests.java93 mLayoutParams.gravity = Gravity.CENTER; in testLocationInWindow_floatingWindow()
DLocationOnScreenTests.java106 mLayoutParams.gravity = Gravity.CENTER; in testLocationOnDisplay_floatingWindow()
/cts/tests/app/src/android/app/cts/
DWearableExtenderTest.java58 final int gravity = Gravity.LEFT; in testWearableExtender() local
73 .setGravity(gravity) in testWearableExtender()
75 .setContentIconGravity(gravity) in testWearableExtender()
96 assertEquals(gravity, extender.getGravity()); in testWearableExtender()
98 assertEquals(gravity, extender.getContentIconGravity()); in testWearableExtender()
210 final int gravity = Gravity.LEFT; in testWriteToParcel() local
229 .setGravity(gravity) in testWriteToParcel()
231 .setContentIconGravity(gravity) in testWriteToParcel()
258 assertEquals(gravity, extender.getGravity()); in testWriteToParcel()
260 assertEquals(gravity, extender.getContentIconGravity()); in testWriteToParcel()
/cts/tests/framework/base/windowmanager/alertwindowappsdk25/src/android/server/wm/alertwindowappsdk25/
DAlertWindowTestBaseActivity.java62 params.gravity = TOP | LEFT; in createAlertWindow()
/cts/tests/tests/security/src/android/security/cts/
DMotionEventTest.java101 wmlp.gravity = Gravity.TOP | Gravity.LEFT; in testActionOutsideDoesNotContainedObscuredInformation()
114 wmlp.gravity = Gravity.TOP | Gravity.RIGHT; in testActionOutsideDoesNotContainedObscuredInformation()
/cts/tests/framework/base/windowmanager/alertwindowservice/src/android/server/wm/alertwindowservice/
DAlertWindowService.java91 params.gravity = TOP | LEFT; in addAlertWindow()
/cts/hostsidetests/statsd/apps/statsdapp/src/com/android/server/cts/device/statsd/
DStatsdCtsForegroundActivity.java119 wmlp.gravity = Gravity.CENTER | Gravity.LEFT; in doShowApplicationOverlay()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityWindowReportingTest.java318 params.gravity = Gravity.TOP; in layoutParmsForWindowOnTop()
328 params.gravity = Gravity.BOTTOM; in layoutParmsForWindowOnBottom()
/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/view/src/android/view/cts/
DGravityTest.java54 private void applyGravity(int gravity, int w, int h, boolean bRtl) { in applyGravity() argument
56 Gravity.apply(gravity, w, h, mInRect, mOutRect, layoutDirection); in applyGravity()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DClipDrawableTest.java380 public MockClipDrawable(Drawable drawable, int gravity, int orientation) { in MockClipDrawable() argument
381 super(drawable, gravity, orientation); in MockClipDrawable()
DScaleDrawableTest.java552 public MockScaleDrawable(Drawable drawable, int gravity, in MockScaleDrawable() argument
554 super(drawable, gravity, scaleWidth, scaleHeight); in MockScaleDrawable()

12