Home
last modified time | relevance | path

Searched refs:getGravity (Results 1 – 13 of 13) sorted by relevance

/cts/tests/tests/widget/src/android/widget/cts/
DRelativeLayoutTest.java147 assertEquals(Gravity.BOTTOM | Gravity.RIGHT, relativeLayout.getGravity()); in testAccessGravity()
156 assertEquals(Gravity.BOTTOM | Gravity.START, relativeLayout.getGravity()); in testAccessGravity()
166 relativeLayout.getGravity()); in testAccessGravity()
175 assertEquals(Gravity.CENTER_VERTICAL | Gravity.START, relativeLayout.getGravity()); in testAccessGravity()
201 assertEquals(Gravity.RIGHT, Gravity.HORIZONTAL_GRAVITY_MASK & relativeLayout.getGravity()); in testSetHorizontalGravity()
211 Gravity.HORIZONTAL_GRAVITY_MASK & relativeLayout.getGravity()); in testSetHorizontalGravity()
235 assertEquals(Gravity.BOTTOM, Gravity.VERTICAL_GRAVITY_MASK & relativeLayout.getGravity()); in testSetVerticalGravity()
245 Gravity.VERTICAL_GRAVITY_MASK & relativeLayout.getGravity()); in testSetVerticalGravity()
DSpinnerTest.java359 assertEquals(Gravity.LEFT, spinner.getGravity()); in verifyGravity()
362 assertEquals(Gravity.CENTER_HORIZONTAL, spinner.getGravity()); in verifyGravity()
365 assertEquals(Gravity.RIGHT, spinner.getGravity()); in verifyGravity()
368 assertEquals(Gravity.START, spinner.getGravity()); in verifyGravity()
371 assertEquals(Gravity.END, spinner.getGravity()); in verifyGravity()
DPopupMenuTest.java177 assertEquals(Gravity.NO_GRAVITY, mPopupMenu.getGravity()); in testAccessGravity()
179 assertEquals(Gravity.TOP, mPopupMenu.getGravity()); in testAccessGravity()
187 assertEquals(Gravity.TOP, mPopupMenu.getGravity()); in testConstructorWithGravity()
DGridViewTest.java248 assertEquals(Gravity.CENTER_HORIZONTAL, mGridView.getGravity()); in testSetGravity()
257 assertEquals(Gravity.LEFT, mGridView.getGravity()); in testSetGravity()
267 assertEquals(Gravity.RIGHT, mGridView.getGravity()); in testSetGravity()
DToastTest.java644 if (Gravity.CENTER == mToast.getGravity()) { in testAccessMargin_whenCustomToast()
665 assertEquals(Gravity.CENTER, mToast.getGravity());
680 assertEquals(Gravity.BOTTOM, mToast.getGravity());
702 assertEquals(Gravity.BOTTOM, mToast.getGravity());
DLinearLayoutTest.java471 assertEquals(Gravity.CENTER_VERTICAL, parent.getGravity() & Gravity.VERTICAL_GRAVITY_MASK); in testVerticalCenterGravityOnHorizontalLayout()
518 assertEquals(Gravity.BOTTOM, parent.getGravity() & Gravity.VERTICAL_GRAVITY_MASK); in testBottomGravityOnHorizontalLayout()
565 parent.getGravity() & Gravity.HORIZONTAL_GRAVITY_MASK); in testHorizontalCenterGravityOnVerticalLayout()
612 assertEquals(Gravity.RIGHT, parent.getGravity() & Gravity.HORIZONTAL_GRAVITY_MASK); in testRightGravityOnVerticalLayout()
DTextViewTest.java575 assertEquals(Gravity.TOP | Gravity.START, mTextView.getGravity()); in testAccessGravity()
578 assertEquals(Gravity.BOTTOM | Gravity.START, mTextView.getGravity()); in testAccessGravity()
581 assertEquals(Gravity.TOP | Gravity.RIGHT, mTextView.getGravity()); in testAccessGravity()
584 assertEquals(Gravity.CENTER, mTextView.getGravity()); in testAccessGravity()
587 assertEquals(Gravity.FILL, mTextView.getGravity()); in testAccessGravity()
590 assertEquals(Gravity.CENTER_VERTICAL | Gravity.RIGHT, mTextView.getGravity()); in testAccessGravity()
593 assertEquals(Gravity.BOTTOM | Gravity.CENTER_HORIZONTAL, mTextView.getGravity()); in testAccessGravity()
595 assertEquals(Gravity.FILL, mTextView.getGravity()); in testAccessGravity()
597 assertEquals(Gravity.CENTER, mTextView.getGravity()); in testAccessGravity()
600 assertEquals(Gravity.TOP | Gravity.START, mTextView.getGravity()); in testAccessGravity()
[all …]
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DBitmapDrawableTest.java128 assertEquals(Gravity.FILL, bitmapDrawable.getGravity()); in testAccessGravity()
131 assertEquals(Gravity.CENTER, bitmapDrawable.getGravity()); in testAccessGravity()
134 assertEquals(-1, bitmapDrawable.getGravity()); in testAccessGravity()
137 assertEquals(Integer.MAX_VALUE, bitmapDrawable.getGravity()); in testAccessGravity()
347 assertEquals(Gravity.FILL, bitmapDrawable.getGravity()); in testGetOpacity()
352 assertEquals(Gravity.FILL, bitmapDrawable.getGravity()); in testGetOpacity()
359 assertEquals(Gravity.FILL, bitmapDrawable.getGravity()); in testGetOpacity()
462 assertEquals(Gravity.TOP | Gravity.RIGHT, bitmapDrawable.getGravity()); in testInflate()
474 assertEquals(Gravity.CENTER, bitmapDrawable.getGravity()); in testInflate()
DThemedDrawableTest.java82 assertEquals(Gravity.TOP, d.getGravity()); in verifyBitmapDrawable()
/cts/tests/tests/widget29/src/android/widget/cts29/
DToastTest.java360 if (Gravity.CENTER == mToast.getGravity()) { in testAccessMargin()
381 assertEquals(Gravity.CENTER, mToast.getGravity());
396 assertEquals(Gravity.BOTTOM, mToast.getGravity());
418 assertEquals(Gravity.BOTTOM, mToast.getGravity());
/cts/tests/tests/notification/src/android/app/notification/current/cts/
DWearableExtenderTest.java107 assertEquals(gravity, extender.getGravity()); in testWearableExtender()
273 assertEquals(gravity, extender.getGravity()); in testWriteToParcel()
/cts/tests/tests/tools/processors/view_inspector/src/android/processor/view/inspector/cts/
DPlatformInspectableProcessorTest.java295 public int getGravity() { in getGravity() method in PlatformInspectableProcessorTest.ValueTypeTest
311 assertEquals(node.getGravity(), mPropertyReader.get("gravity")); in testValueTypeEquals()
/cts/common/device-side/bedstead/remoteframeworkclasses/java/apis/
Dcurrent.txt6893 method @Deprecated public int getGravity();
17411 method public int getGravity();
59399 method public int getGravity();
59559 method public int getGravity();
59870 method public int getGravity();
60112 method public int getGravity();
60622 method public int getGravity();
60879 method public int getGravity();
61155 method public int getGravity();