android.test
Class TouchUtils

java.lang.Object
  extended by android.test.TouchUtils

public class TouchUtils
extends Object


Constructor Summary
TouchUtils()
           
 
Method Summary
static void clickView(InstrumentationTestCase test, android.view.View v)
           
static void drag(ActivityInstrumentationTestCase test, float fromX, float toX, float fromY, float toY, int stepCount)
           
static void drag(InstrumentationTestCase test, float fromX, float toX, float fromY, float toY, int stepCount)
           
static void dragQuarterScreenDown(ActivityInstrumentationTestCase test)
           
static void dragQuarterScreenDown(InstrumentationTestCase test, android.app.Activity activity)
           
static void dragQuarterScreenUp(ActivityInstrumentationTestCase test)
           
static void dragQuarterScreenUp(InstrumentationTestCase test, android.app.Activity activity)
           
static int dragViewBy(ActivityInstrumentationTestCase test, android.view.View v, int gravity, int deltaX, int deltaY)
           
static int dragViewBy(InstrumentationTestCase test, android.view.View v, int gravity, int deltaX, int deltaY)
           
static int dragViewTo(ActivityInstrumentationTestCase test, android.view.View v, int gravity, int toX, int toY)
           
static int dragViewTo(InstrumentationTestCase test, android.view.View v, int gravity, int toX, int toY)
           
static void dragViewToBottom(ActivityInstrumentationTestCase test, android.view.View v)
           
static void dragViewToBottom(ActivityInstrumentationTestCase test, android.view.View v, int stepCount)
           
static void dragViewToBottom(InstrumentationTestCase test, android.app.Activity activity, android.view.View v)
           
static void dragViewToBottom(InstrumentationTestCase test, android.app.Activity activity, android.view.View v, int stepCount)
           
static void dragViewToTop(ActivityInstrumentationTestCase test, android.view.View v)
           
static void dragViewToTop(ActivityInstrumentationTestCase test, android.view.View v, int stepCount)
           
static void dragViewToTop(InstrumentationTestCase test, android.view.View v)
           
static void dragViewToTop(InstrumentationTestCase test, android.view.View v, int stepCount)
           
static int dragViewToX(ActivityInstrumentationTestCase test, android.view.View v, int gravity, int toX)
           
static int dragViewToX(InstrumentationTestCase test, android.view.View v, int gravity, int toX)
           
static int dragViewToY(ActivityInstrumentationTestCase test, android.view.View v, int gravity, int toY)
           
static int dragViewToY(InstrumentationTestCase test, android.view.View v, int gravity, int toY)
           
static void longClickView(ActivityInstrumentationTestCase test, android.view.View v)
           
static void longClickView(InstrumentationTestCase test, android.view.View v)
           
static void scrollToBottom(ActivityInstrumentationTestCase test, android.view.ViewGroup v)
           
static void scrollToBottom(InstrumentationTestCase test, android.app.Activity activity, android.view.ViewGroup v)
           
static void scrollToTop(ActivityInstrumentationTestCase test, android.view.ViewGroup v)
           
static void scrollToTop(InstrumentationTestCase test, android.app.Activity activity, android.view.ViewGroup v)
           
static void tapView(InstrumentationTestCase test, android.view.View v)
           
static void touchAndCancelView(InstrumentationTestCase test, android.view.View v)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TouchUtils

public TouchUtils()
Method Detail

dragQuarterScreenDown

public static void dragQuarterScreenDown(ActivityInstrumentationTestCase test)

dragQuarterScreenDown

public static void dragQuarterScreenDown(InstrumentationTestCase test,
                                         android.app.Activity activity)

dragQuarterScreenUp

public static void dragQuarterScreenUp(ActivityInstrumentationTestCase test)

dragQuarterScreenUp

public static void dragQuarterScreenUp(InstrumentationTestCase test,
                                       android.app.Activity activity)

scrollToBottom

public static void scrollToBottom(ActivityInstrumentationTestCase test,
                                  android.view.ViewGroup v)

scrollToBottom

public static void scrollToBottom(InstrumentationTestCase test,
                                  android.app.Activity activity,
                                  android.view.ViewGroup v)

scrollToTop

public static void scrollToTop(ActivityInstrumentationTestCase test,
                               android.view.ViewGroup v)

scrollToTop

public static void scrollToTop(InstrumentationTestCase test,
                               android.app.Activity activity,
                               android.view.ViewGroup v)

dragViewToBottom

public static void dragViewToBottom(ActivityInstrumentationTestCase test,
                                    android.view.View v)

dragViewToBottom

public static void dragViewToBottom(InstrumentationTestCase test,
                                    android.app.Activity activity,
                                    android.view.View v)

dragViewToBottom

public static void dragViewToBottom(ActivityInstrumentationTestCase test,
                                    android.view.View v,
                                    int stepCount)

dragViewToBottom

public static void dragViewToBottom(InstrumentationTestCase test,
                                    android.app.Activity activity,
                                    android.view.View v,
                                    int stepCount)

tapView

public static void tapView(InstrumentationTestCase test,
                           android.view.View v)

touchAndCancelView

public static void touchAndCancelView(InstrumentationTestCase test,
                                      android.view.View v)

clickView

public static void clickView(InstrumentationTestCase test,
                             android.view.View v)

longClickView

public static void longClickView(ActivityInstrumentationTestCase test,
                                 android.view.View v)

longClickView

public static void longClickView(InstrumentationTestCase test,
                                 android.view.View v)

dragViewToTop

public static void dragViewToTop(ActivityInstrumentationTestCase test,
                                 android.view.View v)

dragViewToTop

public static void dragViewToTop(ActivityInstrumentationTestCase test,
                                 android.view.View v,
                                 int stepCount)

dragViewToTop

public static void dragViewToTop(InstrumentationTestCase test,
                                 android.view.View v)

dragViewToTop

public static void dragViewToTop(InstrumentationTestCase test,
                                 android.view.View v,
                                 int stepCount)

dragViewBy

public static int dragViewBy(ActivityInstrumentationTestCase test,
                             android.view.View v,
                             int gravity,
                             int deltaX,
                             int deltaY)

dragViewBy

public static int dragViewBy(InstrumentationTestCase test,
                             android.view.View v,
                             int gravity,
                             int deltaX,
                             int deltaY)

dragViewTo

public static int dragViewTo(ActivityInstrumentationTestCase test,
                             android.view.View v,
                             int gravity,
                             int toX,
                             int toY)

dragViewTo

public static int dragViewTo(InstrumentationTestCase test,
                             android.view.View v,
                             int gravity,
                             int toX,
                             int toY)

dragViewToX

public static int dragViewToX(ActivityInstrumentationTestCase test,
                              android.view.View v,
                              int gravity,
                              int toX)

dragViewToX

public static int dragViewToX(InstrumentationTestCase test,
                              android.view.View v,
                              int gravity,
                              int toX)

dragViewToY

public static int dragViewToY(ActivityInstrumentationTestCase test,
                              android.view.View v,
                              int gravity,
                              int toY)

dragViewToY

public static int dragViewToY(InstrumentationTestCase test,
                              android.view.View v,
                              int gravity,
                              int toY)

drag

public static void drag(ActivityInstrumentationTestCase test,
                        float fromX,
                        float toX,
                        float fromY,
                        float toY,
                        int stepCount)

drag

public static void drag(InstrumentationTestCase test,
                        float fromX,
                        float toX,
                        float fromY,
                        float toY,
                        int stepCount)


Copyright © 2008-2011. All Rights Reserved.