Home
last modified time | relevance | path

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

123

/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.java157 data.gravity, data.textAlignment, data.scrollToMiddle); in testFadingEdge()
167 int gravity, int textAlignment, boolean scrollToMiddle) throws Throwable { in createTextView() argument
177 textView.setGravity(gravity); in createTextView()
204 final int gravity; field in TextViewFadingEdgeTest.TestCase
210 TestCase(String errorMsg, String text, boolean horizontalFadingEnabled, int gravity, in TestCase() argument
216 this.gravity = gravity; in TestCase()
223 TestCase(String errorMsg, String text, boolean horizontalFadingEnabled, int gravity, in TestCase() argument
225 this(errorMsg, text, horizontalFadingEnabled, gravity, textAlignment, false, in TestCase()
DGridLayoutTest.java64 int gravity; field in GridLayoutTest.Alignment
68 protected Alignment(String name, int gravity) { in Alignment() argument
70 this.gravity = gravity; in Alignment()
226 lp.setGravity(va.gravity | Gravity.CENTER_HORIZONTAL); in populate()
237 lp.setGravity(Gravity.CENTER_VERTICAL | ha.gravity); in populate()
251 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()
/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/animations/
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()
/cts/tests/tests/notification/src/android/app/notification/current/cts/
DWearableExtenderTest.java71 final int gravity = Gravity.LEFT; in testWearableExtender() local
85 .setGravity(gravity) in testWearableExtender()
87 .setContentIconGravity(gravity) in testWearableExtender()
107 assertEquals(gravity, extender.getGravity()); in testWearableExtender()
109 assertEquals(gravity, extender.getContentIconGravity()); in testWearableExtender()
227 final int gravity = Gravity.LEFT; in testWriteToParcel() local
245 .setGravity(gravity) in testWriteToParcel()
247 .setContentIconGravity(gravity) in testWriteToParcel()
273 assertEquals(gravity, extender.getGravity()); in testWriteToParcel()
275 assertEquals(gravity, extender.getContentIconGravity()); in testWriteToParcel()
/cts/tests/framework/base/windowmanager/src/android/server/wm/other/
DWindowManager_LayoutParamsTest.java148 params.gravity = Gravity.TOP; in testCopyFrom()
152 assertEquals(params.gravity, mLayoutParams.gravity); in testCopyFrom()
232 mLayoutParams.gravity = Gravity.TOP; in testWriteToParcel()
/cts/tests/input/src/android/input/cts/
DTwoWindowsActivity.kt73 wmlp.gravity = Gravity.TOP or Gravity.LEFT in launchTwoWindows()
91 wmlp.gravity = Gravity.TOP or Gravity.RIGHT in launchTwoWindows()
/cts/tests/framework/base/windowmanager/src/android/server/wm/activity/
DCloseOnOutsideTestActivity.java52 params.gravity = Gravity.LEFT | Gravity.TOP; in setupWindowSize()
/cts/common/device-side/interactive/src/main/java/com/android/interactive/
DStep.java383 params.gravity = Gravity.TOP; // TMP in showWithArrayAdapter()
410 if (params.gravity == Gravity.TOP) { in swap()
411 params.gravity = Gravity.BOTTOM; in swap()
413 params.gravity = Gravity.TOP; in swap()
/cts/tests/surfacecontrol/src/android/view/cts/util/
DSyncValidatorSCVHTestCase.java146 layoutParams.gravity = Gravity.CENTER;
155 txtParams.gravity = Gravity.TOP | Gravity.LEFT;
/cts/hostsidetests/securitybulletin/test-apps/CVE-2022-20501/src/android/security/cts/CVE_2022_20501/
DPocService.java44 layoutParams.gravity = Gravity.LEFT | Gravity.TOP; in onCreate()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-20913/src/android/security/cts/CVE_2023_20913/
DPocService.java46 layoutParams.gravity = Gravity.LEFT | Gravity.TOP; in onCreate()
/cts/tests/framework/base/windowmanager/alertwindowappsdk25/src/android/server/wm/alertwindowappsdk25/
DAlertWindowTestBaseActivity.java62 params.gravity = TOP | LEFT; in createAlertWindow()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-0315/src/android/security/cts/CVE_2021_0315/
DPocService.java53 mLayoutParams.gravity = Gravity.LEFT | Gravity.TOP; in onCreate()
/cts/tests/surfacecontrol/src/android/view/surfacecontrol/cts/
DSurfaceSyncGroupActivity.java66 layoutParams.gravity = Gravity.CENTER; in setupEmbeddedSCVH()
/cts/hostsidetests/securitybulletin/test-apps/TestOverlayRequestManageCredentials/src/android/security/cts/overlay/RequestManageCredentials/
DPocService.java48 layoutParams.gravity = Gravity.LEFT | Gravity.TOP; in onStartCommand()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-39796/src/android/security/cts/CVE_2021_39796/
DPocService.java53 mLayoutParams.gravity = Gravity.LEFT | Gravity.TOP; in onCreate()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-39692/src/android/security/cts/CVE_2021_39692/
DPocService.java55 mLayoutParams.gravity = Gravity.LEFT | 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/CVE-2021-0523/src/android/security/cts/CVE_2021_0523/
DPocService.java52 mLayoutParams.gravity = Gravity.LEFT | Gravity.TOP; in onCreate()
/cts/tests/tests/car/apps/overlaywindowappsdk22/src/android/car/app/cts/overlaywindowappsdk22/
DOverlayWindowTestActivitySdk22.java82 params.gravity = TOP | LEFT; in createOverlayWindowOnDisplay()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2020-0015/src/android/security/cts/CVE_2020_0015/
DPocService.java55 mLayoutParams.gravity = Gravity.LEFT | Gravity.TOP; in onCreate()
/cts/hostsidetests/securitybulletin/test-apps/BUG-183411279/src/android/security/cts/BUG_183411279/
DOverlayService.java54 mLayoutParams.gravity = Gravity.CENTER; in onCreate()

123