Home
last modified time | relevance | path

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

/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/
DGravityHelper.java47 public static final int GRAVITY_CENTER_HORIZ = 1 << 2; field in GravityHelper
71 public static final int GRAVITY_HORIZ_MASK = GRAVITY_CENTER_HORIZ | GRAVITY_FILL_HORIZ
102 gravity = GRAVITY_CENTER_HORIZ | GRAVITY_CENTER_VERT; in getGravity()
108 gravity = (gravity & GRAVITY_VERT_MASK) | GRAVITY_CENTER_HORIZ; in getGravity()
182 if ((gravity & (GRAVITY_CENTER_HORIZ | GRAVITY_CENTER_VERT)) == in getGravity()
183 (GRAVITY_CENTER_HORIZ | GRAVITY_CENTER_VERT)) { in getGravity()
211 } else if ((horizontal & GRAVITY_CENTER_HORIZ) != 0) { in getGravity()
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/common/layout/
DGravityHelperTest.java19 import static com.android.ide.common.layout.GravityHelper.GRAVITY_CENTER_HORIZ;
50 assertEquals(GRAVITY_CENTER_HORIZ | GRAVITY_CENTER_VERT, in testGravity()
61 assertEquals("center_horizontal", getGravity(GRAVITY_CENTER_HORIZ)); in testGravityString()
66 assertEquals("center", getGravity(GRAVITY_CENTER_HORIZ|GRAVITY_CENTER_VERT)); in testGravityString()
70 assertEquals("center_horizontal|top", getGravity(GRAVITY_CENTER_HORIZ|GRAVITY_TOP)); in testGravityString()
78 assertTrue(GravityHelper.isConstrainedHorizontally(GRAVITY_CENTER_HORIZ)); in testConstrained()
85 assertFalse(GravityHelper.isConstrainedVertically(GRAVITY_CENTER_HORIZ)); in testConstrained()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/grid/
DGridDropHandler.java704 gravity |= GravityHelper.GRAVITY_CENTER_HORIZ; in handleFreeFormDrop()
787 gravity |= GravityHelper.GRAVITY_CENTER_HORIZ; in handleGridModeDrop()
DGridModel.java42 import static com.android.ide.common.layout.GravityHelper.GRAVITY_CENTER_HORIZ;
849 && ((view.gravity & (GRAVITY_CENTER_HORIZ | GRAVITY_RIGHT)) == 0)) { in initializeMaxBounds()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/
DRelativeLayoutConversionHelper.java54 import static com.android.ide.common.layout.GravityHelper.GRAVITY_CENTER_HORIZ;
559 } else if ((gravity & GRAVITY_CENTER_HORIZ) != 0) { in analyzeGravity()