Lines Matching defs:gravity

490      * Get the location of a view. Use the gravity param to specify which part of the view to
494 * @param gravity A combination of (TOP, CENTER_VERTICAL, BOTTOM) and (LEFT, CENTER_HORIZONTAL,
498 private static void getStartLocation(View v, int gravity, int[] xy) {
504 switch (gravity & Gravity.VERTICAL_GRAVITY_MASK) {
517 switch (gravity & Gravity.HORIZONTAL_GRAVITY_MASK) {
536 * @param gravity Which part of the view to use for the initial down event. A combination of
548 public static int dragViewBy(ActivityInstrumentationTestCase test, View v, int gravity,
550 return dragViewBy((InstrumentationTestCase) test, v, gravity, deltaX, deltaY);
558 * @param gravity Which part of the view to use for the initial down event. A combination of
570 public static int dragViewBy(InstrumentationTestCase test, View v, int gravity, int deltaX,
574 getStartLocation(v, gravity, xy);
591 * @param gravity Which part of the view to use for the initial down event. A combination of
603 public static int dragViewTo(ActivityInstrumentationTestCase test, View v, int gravity, int toX,
605 return dragViewTo((InstrumentationTestCase) test, v, gravity, toX, toY);
613 * @param gravity Which part of the view to use for the initial down event. A combination of
620 public static int dragViewTo(InstrumentationTestCase test, View v, int gravity, int toX,
624 getStartLocation(v, gravity, xy);
643 * @param gravity Which part of the view to use for the initial down event. A combination of
654 public static int dragViewToX(ActivityInstrumentationTestCase test, View v, int gravity,
656 return dragViewToX((InstrumentationTestCase) test, v, gravity, toX);
664 * @param gravity Which part of the view to use for the initial down event. A combination of
670 public static int dragViewToX(InstrumentationTestCase test, View v, int gravity, int toX) {
673 getStartLocation(v, gravity, xy);
690 * @param gravity Which part of the view to use for the initial down event. A combination of
701 public static int dragViewToY(ActivityInstrumentationTestCase test, View v, int gravity,
703 return dragViewToY((InstrumentationTestCase) test, v, gravity, toY);
711 * @param gravity Which part of the view to use for the initial down event. A combination of
717 public static int dragViewToY(InstrumentationTestCase test, View v, int gravity, int toY) {
720 getStartLocation(v, gravity, xy);