Home
last modified time | relevance | path

Searched refs:GravityHelper (Results 1 – 7 of 7) sorted by relevance

/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/common/layout/
DGravityHelperTest.java18 import static com.android.ide.common.layout.GravityHelper.GRAVITY_BOTTOM;
19 import static com.android.ide.common.layout.GravityHelper.GRAVITY_CENTER_HORIZ;
20 import static com.android.ide.common.layout.GravityHelper.GRAVITY_CENTER_VERT;
21 import static com.android.ide.common.layout.GravityHelper.GRAVITY_END;
22 import static com.android.ide.common.layout.GravityHelper.GRAVITY_FILL_HORIZ;
23 import static com.android.ide.common.layout.GravityHelper.GRAVITY_FILL_VERT;
24 import static com.android.ide.common.layout.GravityHelper.GRAVITY_LEFT;
25 import static com.android.ide.common.layout.GravityHelper.GRAVITY_RIGHT;
26 import static com.android.ide.common.layout.GravityHelper.GRAVITY_START;
27 import static com.android.ide.common.layout.GravityHelper.GRAVITY_TOP;
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/
DGridLayoutRule.java470 int gravity = GravityHelper.getGravity(gravityString, 0); in setNewSizeBounds()
474 gravity &= ~GravityHelper.GRAVITY_HORIZ_MASK; in setNewSizeBounds()
475 gravity |= GravityHelper.GRAVITY_FILL_HORIZ; in setNewSizeBounds()
477 gravity &= ~GravityHelper.GRAVITY_HORIZ_MASK; in setNewSizeBounds()
478 gravity |= GravityHelper.GRAVITY_LEFT; in setNewSizeBounds()
483 gravity &= ~GravityHelper.GRAVITY_VERT_MASK; in setNewSizeBounds()
484 gravity |= GravityHelper.GRAVITY_FILL_VERT; in setNewSizeBounds()
486 gravity &= ~GravityHelper.GRAVITY_VERT_MASK; in setNewSizeBounds()
487 gravity |= GravityHelper.GRAVITY_TOP; in setNewSizeBounds()
489 gravityString = GravityHelper.getGravity(gravity); in setNewSizeBounds()
[all …]
DGravityHelper.java34 public class GravityHelper { class
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/grid/
DGridDropHandler.java24 import static com.android.ide.common.layout.GravityHelper.getGravity;
41 import com.android.ide.common.layout.GravityHelper;
702 gravity |= GravityHelper.GRAVITY_RIGHT; in handleFreeFormDrop()
704 gravity |= GravityHelper.GRAVITY_CENTER_HORIZ; in handleFreeFormDrop()
713 gravity |= GravityHelper.GRAVITY_BOTTOM; in handleFreeFormDrop()
715 gravity |= GravityHelper.GRAVITY_CENTER_VERT; in handleFreeFormDrop()
723 if (!GravityHelper.isConstrainedHorizontally(gravity)) { in handleFreeFormDrop()
724 gravity |= GravityHelper.GRAVITY_LEFT; in handleFreeFormDrop()
785 gravity |= GravityHelper.GRAVITY_RIGHT; in handleGridModeDrop()
787 gravity |= GravityHelper.GRAVITY_CENTER_HORIZ; in handleGridModeDrop()
[all …]
DGridModel.java41 import static com.android.ide.common.layout.GravityHelper.GRAVITY_BOTTOM;
42 import static com.android.ide.common.layout.GravityHelper.GRAVITY_CENTER_HORIZ;
43 import static com.android.ide.common.layout.GravityHelper.GRAVITY_CENTER_VERT;
44 import static com.android.ide.common.layout.GravityHelper.GRAVITY_RIGHT;
56 import com.android.ide.common.layout.GravityHelper;
1716 || GravityHelper.isConstrainedHorizontally(view.gravity) in splitColumn()
1717 && !GravityHelper.isLeftAligned(view.gravity))) { in splitColumn()
1801 || GravityHelper.isConstrainedVertically(view.gravity) in splitRow()
1802 && !GravityHelper.isTopAligned(view.gravity))) { in splitRow()
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/
DRelativeLayoutConversionHelper.java53 import static com.android.ide.common.layout.GravityHelper.GRAVITY_BOTTOM;
54 import static com.android.ide.common.layout.GravityHelper.GRAVITY_CENTER_HORIZ;
55 import static com.android.ide.common.layout.GravityHelper.GRAVITY_CENTER_VERT;
56 import static com.android.ide.common.layout.GravityHelper.GRAVITY_FILL_HORIZ;
57 import static com.android.ide.common.layout.GravityHelper.GRAVITY_FILL_VERT;
58 import static com.android.ide.common.layout.GravityHelper.GRAVITY_LEFT;
59 import static com.android.ide.common.layout.GravityHelper.GRAVITY_RIGHT;
60 import static com.android.ide.common.layout.GravityHelper.GRAVITY_TOP;
61 import static com.android.ide.common.layout.GravityHelper.GRAVITY_VERT_MASK;
63 import com.android.ide.common.layout.GravityHelper;
[all …]
DGridLayoutConverter.java53 import static com.android.ide.common.layout.GravityHelper.GRAVITY_HORIZ_MASK;
54 import static com.android.ide.common.layout.GravityHelper.GRAVITY_VERT_MASK;
58 import com.android.ide.common.layout.GravityHelper;
185 int gravity = GravityHelper.getGravity(view.mGravity, 0); in insertStretchableSpans()