Searched refs:getGravity (Results 1 – 7 of 7) sorted by relevance
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/common/layout/ |
D | GravityHelperTest.java | 28 import static com.android.ide.common.layout.GravityHelper.getGravity; 40 assertEquals(GRAVITY_BOTTOM, GravityHelper.getGravity("bottom", 0)); in testGravity() 41 assertEquals(GRAVITY_BOTTOM | GRAVITY_LEFT, GravityHelper.getGravity("bottom|left", 0)); in testGravity() 43 GravityHelper.getGravity("bottom|left|start", 0)); in testGravity() 45 GravityHelper.getGravity("bottom|start|left", 0)); in testGravity() 47 GravityHelper.getGravity("bottom|right|end", 0)); in testGravity() 49 GravityHelper.getGravity("bottom|end|right", 0)); in testGravity() 51 GravityHelper.getGravity("center", 0)); in testGravity() 55 assertEquals("left", getGravity(GRAVITY_LEFT)); in testGravityString() 56 assertEquals("start", getGravity(GRAVITY_START)); in testGravityString() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/ |
D | GravityHelper.java | 84 public static int getGravity(Element element) { in getGravity() method in GravityHelper 86 return getGravity(gravityString, GRAVITY_LEFT | GRAVITY_TOP); in getGravity() 96 public static int getGravity(String gravityString, int defaultMask) { in getGravity() method in GravityHelper 177 public static String getGravity(int gravity) { in getGravity() method in GravityHelper
|
D | GridLayoutRule.java | 470 int gravity = GravityHelper.getGravity(gravityString, 0); in setNewSizeBounds() 489 gravityString = GravityHelper.getGravity(gravity); in setNewSizeBounds() 507 int gravity = GravityHelper.getGravity(gravityString, 0); in setNewSizeBounds() 516 gravityString = GravityHelper.getGravity(gravity); in setNewSizeBounds()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/grid/ |
D | GridDropHandler.java | 24 import static com.android.ide.common.layout.GravityHelper.getGravity; 738 mGrid.setGridAttribute(newChild, ATTR_LAYOUT_GRAVITY, getGravity(gravity)); in handleFreeFormDrop() 805 mGrid.setGridAttribute(newChild, ATTR_LAYOUT_GRAVITY, getGravity(gravity)); in handleGridModeDrop()
|
D | GridModel.java | 1854 gravity = GravityHelper.getGravity(getGridAttribute(n, ATTR_LAYOUT_GRAVITY), 0); in ViewData()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/ |
D | RelativeLayoutConversionHelper.java | 527 if ((childView.getGravity() & GRAVITY_VERT_MASK) == in analyzeLinearLayout() 528 (baselineRef.getGravity() & GRAVITY_VERT_MASK)) { in analyzeLinearLayout() 546 int gravity = childView.getGravity(); in analyzeGravity() 1316 mGravity = GravityHelper.getGravity(element); in View() 1323 public int getGravity() { in getGravity() method in RelativeLayoutConversionHelper.View
|
D | GridLayoutConverter.java | 185 int gravity = GravityHelper.getGravity(view.mGravity, 0); in insertStretchableSpans()
|