Home
last modified time | relevance | path

Searched refs:getGravity (Results 1 – 6 of 6) 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.getGravity;
32 assertEquals(GRAVITY_BOTTOM, GravityHelper.getGravity("bottom", 0)); in testGravity()
33 assertEquals(GRAVITY_BOTTOM | GRAVITY_LEFT, GravityHelper.getGravity("bottom|left", 0)); in testGravity()
35 GravityHelper.getGravity("center", 0)); in testGravity()
39 assertEquals("left", getGravity(GRAVITY_LEFT)); in testGravityString()
40 assertEquals("right", getGravity(GRAVITY_RIGHT)); in testGravityString()
41 assertEquals("top", getGravity(GRAVITY_TOP)); in testGravityString()
42 assertEquals("bottom", getGravity(GRAVITY_BOTTOM)); in testGravityString()
43 assertEquals("center_horizontal", getGravity(GRAVITY_CENTER_HORIZ)); in testGravityString()
44 assertEquals("center_vertical", getGravity(GRAVITY_CENTER_VERT)); in testGravityString()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/
DGravityHelper.java73 public static int getGravity(Element element) { in getGravity() method in GravityHelper
75 return getGravity(gravityString, GRAVITY_LEFT | GRAVITY_TOP); in getGravity()
85 public static int getGravity(String gravityString, int defaultMask) { in getGravity() method in GravityHelper
164 public static String getGravity(int gravity) { in getGravity() method in GravityHelper
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/
DRelativeLayoutConversionHelper.java529 if ((childView.getGravity() & GRAVITY_VERT_MASK) == in analyzeLinearLayout()
530 (baselineRef.getGravity() & GRAVITY_VERT_MASK)) { in analyzeLinearLayout()
548 int gravity = childView.getGravity(); in analyzeGravity()
1318 mGravity = GravityHelper.getGravity(element); in View()
1325 public int getGravity() { in getGravity() method in RelativeLayoutConversionHelper.View
DGridLayoutConverter.java185 int gravity = GravityHelper.getGravity(view.mGravity, 0); in insertStretchableSpans()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/grid/
DGridDropHandler.java18 import static com.android.ide.common.layout.GravityHelper.getGravity;
684 mGrid.setGridAttribute(newChild, ATTR_LAYOUT_GRAVITY, getGravity(gravity));
DGridModel.java1830 gravity = GravityHelper.getGravity(getGridAttribute(n, ATTR_LAYOUT_GRAVITY), 0); in ViewData()