Home
last modified time | relevance | path

Searched refs:gravity (Results 1 – 25 of 43) 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.java472 final int gravity = Gravity.TOP | Gravity.START; in testShowAsDropDown_ClipToScreen_Overlap_Offset() local
476 offsetX, offsetY, gravity); in testShowAsDropDown_ClipToScreen_Overlap_Offset()
479 offsetX, offsetY, gravity); in testShowAsDropDown_ClipToScreen_Overlap_Offset()
482 offsetX, offsetY, gravity); in testShowAsDropDown_ClipToScreen_Overlap_Offset()
486 offsetX, offsetY, gravity); in testShowAsDropDown_ClipToScreen_Overlap_Offset()
489 offsetX, offsetY, gravity); in testShowAsDropDown_ClipToScreen_Overlap_Offset()
492 offsetX, offsetY, gravity); in testShowAsDropDown_ClipToScreen_Overlap_Offset()
496 offsetX, offsetY, gravity); in testShowAsDropDown_ClipToScreen_Overlap_Offset()
499 offsetX, offsetY, gravity); in testShowAsDropDown_ClipToScreen_Overlap_Offset()
502 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()
/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.java140 params.gravity = Gravity.TOP | Gravity.LEFT; in testExplicitSizeTopLeftGravity()
148 params.gravity = Gravity.BOTTOM | Gravity.RIGHT; in testExplicitSizeBottomRightGravity()
164 params.gravity = Gravity.LEFT | Gravity.TOP; in testOversizedDimensionsNoLimits()
181 params.gravity = Gravity.LEFT | Gravity.TOP; in testExplicitPositionMatchParentNoLimits()
194 params.gravity = Gravity.LEFT | Gravity.TOP; in testWithMargins()
DWindowInputTests.java131 p.gravity = Gravity.LEFT | Gravity.TOP; in testMoveWindowAndTap()
207 p.gravity = Gravity.LEFT | Gravity.CENTER_VERTICAL; in testTouchModalWindow()
215 p.gravity = Gravity.RIGHT | Gravity.CENTER_VERTICAL; in testTouchModalWindow()
239 p.gravity = Gravity.CENTER; in testFilterTouchesWhenObscuredByWindowFromSameUid()
256 p.gravity = Gravity.CENTER; in testFilterTouchesWhenObscuredByWindowFromSameUid()
285 p.gravity = Gravity.CENTER; in testFilterTouchesWhenObscuredByWindowFromDifferentUid()
339 p.gravity = Gravity.CENTER; in testFlagTouchesWhenObscuredByWindowFromDifferentUid()
394 p.gravity = Gravity.CENTER; in testDoNotFlagTouchesWhenObscuredByZeroOpacityWindow()
441 p.gravity = Gravity.CENTER; in testFlagTouchesWhenObscuredByMinPositiveOpacityWindow()
496 p.gravity = Gravity.CENTER; in testFlagTouchesWhenPartiallyObscuredByZeroOpacityWindow()
[all …]
DWindowManager_LayoutParamsTest.java148 params.gravity = Gravity.TOP; in testCopyFrom()
152 assertEquals(params.gravity, mLayoutParams.gravity); in testCopyFrom()
232 mLayoutParams.gravity = Gravity.TOP; in testWriteToParcel()
DPrivacyIndicatorBoundsTests.java148 attrs.gravity = Gravity.LEFT | Gravity.TOP; in addChildWindow()
DLocationInWindowTests.java93 mLayoutParams.gravity = Gravity.CENTER; in testLocationInWindow_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/permission3/UsePermissionAppWithOverlay/src/android/permission3/cts/usepermission/
DOverlayActivity.kt24 params.gravity = Gravity.LEFT or Gravity.TOP in onCreate()
/cts/tests/app/app/src/android/app/stubs/
DLocalAlertService.java69 params.gravity = TOP | LEFT; in showAlertWindow()
/cts/hostsidetests/securitybulletin/test-apps/BUG-183613671/src/android/security/cts/BUG_183613671/
DOverlayService.java54 mLayoutParams.gravity = Gravity.CENTER; in onCreate()
/cts/hostsidetests/securitybulletin/test-apps/BUG-183963253/src/android/security/cts/BUG_183963253/
DOverlayService.java54 mLayoutParams.gravity = Gravity.CENTER; in onCreate()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-0586/src/android/security/cts/CVE_2021_0586/
DPocService.java58 mLayoutParams.gravity = Gravity.LEFT | Gravity.TOP; in onCreate()
/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/hostsidetests/securitybulletin/test-apps/CVE-2021-0523/src/android/security/cts/CVE_2021_0523/
DPocService.java58 mLayoutParams.gravity = Gravity.LEFT | Gravity.TOP; in onCreate()
/cts/tests/framework/base/windowmanager/alertwindowservice/src/android/server/wm/alertwindowservice/
DAlertWindowService.java98 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/hostsidetests/statsdatom/apps/statsdapp/src/com/android/server/cts/device/statsdatom/
DStatsdCtsForegroundActivity.java146 wmlp.gravity = Gravity.CENTER | Gravity.LEFT; in doShowApplicationOverlay()
/cts/tests/tests/packageinstaller/uninstall/src/android/packageinstaller/uninstall/cts/
DUninstallTest.java118 layoutParams.gravity = Gravity.CENTER_HORIZONTAL | Gravity.CENTER_VERTICAL; in overlaysAreSuppressedWhenConfirmingUninstall()

12