/cts/tests/tests/widget/src/android/widget/cts/ |
D | LinearLayout_LayoutParamsTest.java | 54 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()
|
D | TextViewFadingEdgeTest.java | 149 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()
|
D | GridLayoutTest.java | 61 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()
|
D | FrameLayout_LayoutParamsTest.java | 96 fllp.gravity = Gravity.BOTTOM; in testCopyConstructor() 105 assertEquals("Gravity", fllp.gravity, copy.gravity); in testCopyConstructor()
|
D | PopupWindowTest.java | 463 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 …]
|
D | GalleryTest.java | 192 private void setGalleryGravity(final int gravity) throws Throwable { in setGalleryGravity() argument 194 () -> mGallery.setGravity(gravity), true); in setGalleryGravity()
|
D | PopupMenuTest.java | 489 public Builder withGravity(int gravity) { in withGravity() argument 491 mGravity = gravity; in withGravity()
|
D | RadioGroupTest.java | 307 assertEquals(-1, layoutParams.gravity); in testGenerateLayoutParams() 320 assertEquals(Gravity.BOTTOM, layoutParams.gravity); in testGenerateLayoutParams()
|
D | RadioGroup_LayoutParamsTest.java | 114 assertEquals(Gravity.BOTTOM, mLayoutParams.gravity); in testConstructor()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/ |
D | BoxInsetLayout.java | 263 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/app/src/android/app/cts/ |
D | WearableExtenderTest.java | 58 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/src/android/server/wm/ |
D | DialogFrameTestActivity.java | 155 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()
|
D | WindowManager_LayoutParamsTest.java | 146 params.gravity = Gravity.TOP; in testCopyFrom() 150 assertEquals(params.gravity, mLayoutParams.gravity); in testCopyFrom() 223 mLayoutParams.gravity = Gravity.TOP; in testWriteToParcel()
|
D | WindowInputTests.java | 89 p.gravity = Gravity.LEFT | Gravity.TOP; in testMoveWindowAndTap()
|
D | LocationInWindowTests.java | 93 mLayoutParams.gravity = Gravity.CENTER; in testLocationInWindow_floatingWindow()
|
D | LocationOnScreenTests.java | 106 mLayoutParams.gravity = Gravity.CENTER; in testLocationOnDisplay_floatingWindow()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | MotionEventTest.java | 101 wmlp.gravity = Gravity.TOP | Gravity.LEFT; in testActionOutsideDoesNotContainedObscuredInformation() 114 wmlp.gravity = Gravity.TOP | Gravity.RIGHT; in testActionOutsideDoesNotContainedObscuredInformation()
|
/cts/tests/framework/base/windowmanager/alertwindowappsdk25/src/android/server/wm/alertwindowappsdk25/ |
D | AlertWindowTestBaseActivity.java | 62 params.gravity = TOP | LEFT; in createAlertWindow()
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
D | AccessibilityWindowReportingTest.java | 318 params.gravity = Gravity.TOP; in layoutParmsForWindowOnTop() 328 params.gravity = Gravity.BOTTOM; in layoutParmsForWindowOnBottom()
|
/cts/tests/framework/base/windowmanager/alertwindowservice/src/android/server/wm/alertwindowservice/ |
D | AlertWindowService.java | 91 params.gravity = TOP | LEFT; in addAlertWindow()
|
/cts/hostsidetests/statsd/apps/statsdapp/src/com/android/server/cts/device/statsd/ |
D | StatsdCtsForegroundActivity.java | 119 wmlp.gravity = Gravity.CENTER | Gravity.LEFT; in doShowApplicationOverlay()
|
/cts/tests/sensor/src/android/hardware/cts/ |
D | SensorManagerStaticTest.java | 256 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/ |
D | GravityTest.java | 54 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/ |
D | ClipDrawableTest.java | 380 public MockClipDrawable(Drawable drawable, int gravity, int orientation) { in MockClipDrawable() argument 381 super(drawable, gravity, orientation); in MockClipDrawable()
|
D | ScaleDrawableTest.java | 552 public MockScaleDrawable(Drawable drawable, int gravity, in MockScaleDrawable() argument 554 super(drawable, gravity, scaleWidth, scaleHeight); in MockScaleDrawable()
|