Home
last modified time | relevance | path

Searched refs:GRAVITY_LEFT (Results 1 – 5 of 5) sorted by relevance

/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/common/layout/
DGravityHelperTest.java24 import static com.android.ide.common.layout.GravityHelper.GRAVITY_LEFT;
41 assertEquals(GRAVITY_BOTTOM | GRAVITY_LEFT, GravityHelper.getGravity("bottom|left", 0)); in testGravity()
42 assertEquals(GRAVITY_BOTTOM | GRAVITY_LEFT | GRAVITY_START, in testGravity()
44 assertEquals(GRAVITY_BOTTOM | GRAVITY_LEFT | GRAVITY_START, in testGravity()
55 assertEquals("left", getGravity(GRAVITY_LEFT)); in testGravityString()
68 assertEquals("left|bottom", getGravity(GRAVITY_LEFT|GRAVITY_BOTTOM)); in testGravityString()
69 assertEquals("left|start|bottom", getGravity(GRAVITY_LEFT|GRAVITY_START|GRAVITY_BOTTOM)); in testGravityString()
74 assertTrue(GravityHelper.isConstrainedHorizontally(GRAVITY_LEFT)); in testConstrained()
81 assertFalse(GravityHelper.isConstrainedVertically(GRAVITY_LEFT)); in testConstrained()
100 assertTrue(GravityHelper.isLeftAligned(GRAVITY_LEFT|GRAVITY_TOP)); in testAligned()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/
DGravityHelper.java41 public static final int GRAVITY_LEFT = 1 << 0; field in GravityHelper
72 | GRAVITY_LEFT | GRAVITY_RIGHT | GRAVITY_START | GRAVITY_END;
86 return getGravity(gravityString, GRAVITY_LEFT | GRAVITY_TOP); in getGravity()
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()
192 if ((horizontal & GRAVITY_LEFT) != 0) { in getGravity()
DGridLayoutRule.java478 gravity |= GravityHelper.GRAVITY_LEFT; in setNewSizeBounds()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/grid/
DGridDropHandler.java724 gravity |= GravityHelper.GRAVITY_LEFT; in handleFreeFormDrop()
800 gravity |= GravityHelper.GRAVITY_LEFT; in handleGridModeDrop()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/
DRelativeLayoutConversionHelper.java58 import static com.android.ide.common.layout.GravityHelper.GRAVITY_LEFT;
584 } else if ((gravity & GRAVITY_LEFT) != 0) { in analyzeGravity()