Lines Matching defs:gravity

478      * Get the location of a view. Use the gravity param to specify which part of the view to
482 * @param gravity A combination of (TOP, CENTER_VERTICAL, BOTTOM) and (LEFT, CENTER_HORIZONTAL,
486 private static void getStartLocation(View v, int gravity, int[] xy) {
492 switch (gravity & Gravity.VERTICAL_GRAVITY_MASK) {
505 switch (gravity & Gravity.HORIZONTAL_GRAVITY_MASK) {
524 * @param gravity Which part of the view to use for the initial down event. A combination of
536 public static int dragViewBy(ActivityInstrumentationTestCase test, View v, int gravity,
538 return dragViewBy((InstrumentationTestCase) test, v, gravity, deltaX, deltaY);
546 * @param gravity Which part of the view to use for the initial down event. A combination of
558 public static int dragViewBy(InstrumentationTestCase test, View v, int gravity, int deltaX,
562 getStartLocation(v, gravity, xy);
579 * @param gravity Which part of the view to use for the initial down event. A combination of
591 public static int dragViewTo(ActivityInstrumentationTestCase test, View v, int gravity, int toX,
593 return dragViewTo((InstrumentationTestCase) test, v, gravity, toX, toY);
601 * @param gravity Which part of the view to use for the initial down event. A combination of
608 public static int dragViewTo(InstrumentationTestCase test, View v, int gravity, int toX,
612 getStartLocation(v, gravity, xy);
631 * @param gravity Which part of the view to use for the initial down event. A combination of
642 public static int dragViewToX(ActivityInstrumentationTestCase test, View v, int gravity,
644 return dragViewToX((InstrumentationTestCase) test, v, gravity, toX);
652 * @param gravity Which part of the view to use for the initial down event. A combination of
658 public static int dragViewToX(InstrumentationTestCase test, View v, int gravity, int toX) {
661 getStartLocation(v, gravity, xy);
678 * @param gravity Which part of the view to use for the initial down event. A combination of
689 public static int dragViewToY(ActivityInstrumentationTestCase test, View v, int gravity,
691 return dragViewToY((InstrumentationTestCase) test, v, gravity, toY);
699 * @param gravity Which part of the view to use for the initial down event. A combination of
705 public static int dragViewToY(InstrumentationTestCase test, View v, int gravity, int toY) {
708 getStartLocation(v, gravity, xy);