Home
last modified time | relevance | path

Searched refs:GRAVITY_START (Results 1 – 2 of 2) sorted by relevance

/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/common/layout/
DGravityHelperTest.java26 import static com.android.ide.common.layout.GravityHelper.GRAVITY_START;
42 assertEquals(GRAVITY_BOTTOM | GRAVITY_LEFT | GRAVITY_START, in testGravity()
44 assertEquals(GRAVITY_BOTTOM | GRAVITY_LEFT | GRAVITY_START, in testGravity()
56 assertEquals("start", getGravity(GRAVITY_START)); in testGravityString()
69 assertEquals("left|start|bottom", getGravity(GRAVITY_LEFT|GRAVITY_START|GRAVITY_BOTTOM)); in testGravityString()
75 assertTrue(GravityHelper.isConstrainedHorizontally(GRAVITY_START)); in testConstrained()
82 assertFalse(GravityHelper.isConstrainedVertically(GRAVITY_START)); in testConstrained()
101 assertTrue(GravityHelper.isLeftAligned(GRAVITY_START|GRAVITY_TOP)); in testAligned()
103 assertTrue(GravityHelper.isLeftAligned(GRAVITY_START)); in testAligned()
108 assertTrue(GravityHelper.isTopAligned(GRAVITY_START|GRAVITY_TOP)); in testAligned()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/
DGravityHelper.java65 public static final int GRAVITY_START = 1 << 8; field in GravityHelper
72 | GRAVITY_LEFT | GRAVITY_RIGHT | GRAVITY_START | GRAVITY_END;
118 gravity = (gravity & (GRAVITY_VERT_MASK|GRAVITY_START)) | GRAVITY_LEFT; in getGravity()
122 gravity = (gravity & (GRAVITY_VERT_MASK|GRAVITY_LEFT)) | GRAVITY_START; in getGravity()
159 return (gravity & (GRAVITY_LEFT|GRAVITY_START)) != 0; in isLeftAligned()
191 if ((horizontal & (GRAVITY_LEFT|GRAVITY_START)) != 0) { in getGravity()
195 if ((horizontal & GRAVITY_START) != 0) { in getGravity()