Home
last modified time | relevance | path

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

/cts/tests/tests/widget/src/android/widget/cts/
DRelativeLayoutTest.java139 assertEquals(Gravity.BOTTOM | Gravity.RIGHT, relativeLayout.getGravity()); in testAccessGravity()
148 assertEquals(Gravity.BOTTOM | Gravity.START, relativeLayout.getGravity()); in testAccessGravity()
158 relativeLayout.getGravity()); in testAccessGravity()
167 assertEquals(Gravity.CENTER_VERTICAL | Gravity.START, relativeLayout.getGravity()); in testAccessGravity()
193 assertEquals(Gravity.RIGHT, Gravity.HORIZONTAL_GRAVITY_MASK & relativeLayout.getGravity()); in testSetHorizontalGravity()
203 Gravity.HORIZONTAL_GRAVITY_MASK & relativeLayout.getGravity()); in testSetHorizontalGravity()
227 assertEquals(Gravity.BOTTOM, Gravity.VERTICAL_GRAVITY_MASK & relativeLayout.getGravity()); in testSetVerticalGravity()
237 Gravity.VERTICAL_GRAVITY_MASK & relativeLayout.getGravity()); in testSetVerticalGravity()
DSpinnerTest.java300 assertEquals(Gravity.LEFT, spinner.getGravity()); in verifyGravity()
303 assertEquals(Gravity.CENTER_HORIZONTAL, spinner.getGravity()); in verifyGravity()
306 assertEquals(Gravity.RIGHT, spinner.getGravity()); in verifyGravity()
309 assertEquals(Gravity.START, spinner.getGravity()); in verifyGravity()
312 assertEquals(Gravity.END, spinner.getGravity()); in verifyGravity()
DPopupMenuTest.java169 assertEquals(Gravity.NO_GRAVITY, mPopupMenu.getGravity()); in testAccessGravity()
171 assertEquals(Gravity.TOP, mPopupMenu.getGravity()); in testAccessGravity()
179 assertEquals(Gravity.TOP, mPopupMenu.getGravity()); in testConstructorWithGravity()
DToastTest.java581 if (Gravity.CENTER == mToast.getGravity()) { in testAccessMargin_whenCustomToast()
602 assertEquals(Gravity.CENTER, mToast.getGravity());
617 assertEquals(Gravity.BOTTOM, mToast.getGravity());
639 assertEquals(Gravity.BOTTOM, mToast.getGravity());
DGridViewTest.java238 assertEquals(Gravity.CENTER_HORIZONTAL, mGridView.getGravity()); in testSetGravity()
247 assertEquals(Gravity.LEFT, mGridView.getGravity()); in testSetGravity()
257 assertEquals(Gravity.RIGHT, mGridView.getGravity()); in testSetGravity()
DLinearLayoutTest.java462 assertEquals(Gravity.CENTER_VERTICAL, parent.getGravity() & Gravity.VERTICAL_GRAVITY_MASK); in testVerticalCenterGravityOnHorizontalLayout()
509 assertEquals(Gravity.BOTTOM, parent.getGravity() & Gravity.VERTICAL_GRAVITY_MASK); in testBottomGravityOnHorizontalLayout()
556 parent.getGravity() & Gravity.HORIZONTAL_GRAVITY_MASK); in testHorizontalCenterGravityOnVerticalLayout()
603 assertEquals(Gravity.RIGHT, parent.getGravity() & Gravity.HORIZONTAL_GRAVITY_MASK); in testRightGravityOnVerticalLayout()
DTextViewTest.java515 assertEquals(Gravity.TOP | Gravity.START, mTextView.getGravity()); in testAccessGravity()
518 assertEquals(Gravity.BOTTOM | Gravity.START, mTextView.getGravity()); in testAccessGravity()
521 assertEquals(Gravity.TOP | Gravity.RIGHT, mTextView.getGravity()); in testAccessGravity()
524 assertEquals(Gravity.CENTER, mTextView.getGravity()); in testAccessGravity()
527 assertEquals(Gravity.FILL, mTextView.getGravity()); in testAccessGravity()
530 assertEquals(Gravity.CENTER_VERTICAL | Gravity.RIGHT, mTextView.getGravity()); in testAccessGravity()
533 assertEquals(Gravity.BOTTOM | Gravity.CENTER_HORIZONTAL, mTextView.getGravity()); in testAccessGravity()
535 assertEquals(Gravity.FILL, mTextView.getGravity()); in testAccessGravity()
537 assertEquals(Gravity.CENTER, mTextView.getGravity()); in testAccessGravity()
540 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/app/src/android/app/cts/
DWearableExtenderTest.java96 assertEquals(gravity, extender.getGravity()); in testWearableExtender()
258 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()