Lines Matching defs:test

17 package android.test;
39 * @param test The test case that is being run
41 * @deprecated {@link android.test.ActivityInstrumentationTestCase} is deprecated in favor of
42 * {@link android.test.ActivityInstrumentationTestCase2}, which provides more options for
43 * configuring the Activity under test
46 public static void dragQuarterScreenDown(ActivityInstrumentationTestCase test) {
47 dragQuarterScreenDown(test, test.getActivity());
52 * @param test The test case that is being run
53 * @param activity The activity that is in the foreground of the test case
55 public static void dragQuarterScreenDown(InstrumentationTestCase test, Activity activity) {
64 drag(test, x, x, fromY, toY, 4);
69 * @param test The test case that is being run
71 * @deprecated {@link android.test.ActivityInstrumentationTestCase} is deprecated in favor of
72 * {@link android.test.ActivityInstrumentationTestCase2}, which provides more options for
73 * configuring the Activity under test
76 public static void dragQuarterScreenUp(ActivityInstrumentationTestCase test) {
77 dragQuarterScreenUp(test, test.getActivity());
82 * @param test The test case that is being run
83 * @param activity The activity that is in the foreground of the test case
85 public static void dragQuarterScreenUp(InstrumentationTestCase test, Activity activity) {
94 drag(test, x, x, fromY, toY, 4);
101 * @param test The test case that is being run
104 * @deprecated {@link android.test.ActivityInstrumentationTestCase} is deprecated in favor of
105 * {@link android.test.ActivityInstrumentationTestCase2}, which provides more options for
106 * configuring the Activity under test
109 public static void scrollToBottom(ActivityInstrumentationTestCase test, ViewGroup v) {
110 scrollToBottom(test, test.getActivity(), v);
117 * @param test The test case that is being run
118 * @param activity The activity that is in the foreground of the test case
121 public static void scrollToBottom(InstrumentationTestCase test, Activity activity,
131 TouchUtils.dragQuarterScreenUp(test, activity);
142 * @param test The test case that is being run
145 * @deprecated {@link android.test.ActivityInstrumentationTestCase} is deprecated in favor of
146 * {@link android.test.ActivityInstrumentationTestCase2}, which provides more options for
147 * configuring the Activity under test
150 public static void scrollToTop(ActivityInstrumentationTestCase test, ViewGroup v) {
151 scrollToTop(test, test.getActivity(), v);
158 * @param test The test case that is being run
159 * @param activity The activity that is in the foreground of the test case
162 public static void scrollToTop(InstrumentationTestCase test, Activity activity, ViewGroup v) {
171 TouchUtils.dragQuarterScreenDown(test, activity);
181 * @param test The test case that is being run
184 * @deprecated {@link android.test.ActivityInstrumentationTestCase} is deprecated in favor of
185 * {@link android.test.ActivityInstrumentationTestCase2}, which provides more options for
186 * configuring the Activity under test
189 public static void dragViewToBottom(ActivityInstrumentationTestCase test, View v) {
190 dragViewToBottom(test, test.getActivity(), v, 4);
196 * @param test The test case that is being run
197 * @param activity The activity that is in the foreground of the test case
200 public static void dragViewToBottom(InstrumentationTestCase test, Activity activity, View v) {
201 dragViewToBottom(test, activity, v, 4);
207 * @param test The test case that is being run
211 * @deprecated {@link android.test.ActivityInstrumentationTestCase} is deprecated in favor of
212 * {@link android.test.ActivityInstrumentationTestCase2}, which provides more options for
213 * configuring the Activity under test
216 public static void dragViewToBottom(ActivityInstrumentationTestCase test, View v,
218 dragViewToBottom(test, test.getActivity(), v, stepCount);
224 * @param test The test case that is being run
225 * @param activity The activity that is in the foreground of the test case
229 public static void dragViewToBottom(InstrumentationTestCase test, Activity activity, View v,
243 drag(test, x, x, fromY, toY, stepCount);
249 * @param test The test case that is being run
252 public static void tapView(InstrumentationTestCase test, View v) {
262 Instrumentation inst = test.getInstrumentation();
289 * @param test The test case that is being run
292 public static void touchAndCancelView(InstrumentationTestCase test, View v) {
302 Instrumentation inst = test.getInstrumentation();
324 * @param test The test case that is being run
327 public static void clickView(InstrumentationTestCase test, View v) {
337 Instrumentation inst = test.getInstrumentation();
370 * @param test The test case that is being run
373 * @deprecated {@link android.test.ActivityInstrumentationTestCase} is deprecated in favor of
374 * {@link android.test.ActivityInstrumentationTestCase2}, which provides more options for
375 * configuring the Activity under test
378 public static void longClickView(ActivityInstrumentationTestCase test, View v) {
379 longClickView((InstrumentationTestCase) test, v);
385 * @param test The test case that is being run
388 public static void longClickView(InstrumentationTestCase test, View v) {
398 Instrumentation inst = test.getInstrumentation();
430 * @param test The test case that is being run
433 * @deprecated {@link android.test.ActivityInstrumentationTestCase} is deprecated in favor of
434 * {@link android.test.ActivityInstrumentationTestCase2}, which provides more options for
435 * configuring the Activity under test
438 public static void dragViewToTop(ActivityInstrumentationTestCase test, View v) {
439 dragViewToTop((InstrumentationTestCase) test, v, 4);
445 * @param test The test case that is being run
449 * @deprecated {@link android.test.ActivityInstrumentationTestCase} is deprecated in favor of
450 * {@link android.test.ActivityInstrumentationTestCase2}, which provides more options for
451 * configuring the Activity under test
454 public static void dragViewToTop(ActivityInstrumentationTestCase test, View v, int stepCount) {
455 dragViewToTop((InstrumentationTestCase) test, v, stepCount);
461 * @param test The test case that is being run
464 public static void dragViewToTop(InstrumentationTestCase test, View v) {
465 dragViewToTop(test, v, 4);
471 * @param test The test case that is being run
475 public static void dragViewToTop(InstrumentationTestCase test, View v, int stepCount) {
486 drag(test, x, x, fromY, toY, stepCount);
534 * @param test The test case that is being run
543 * @deprecated {@link android.test.ActivityInstrumentationTestCase} is deprecated in favor of
544 * {@link android.test.ActivityInstrumentationTestCase2}, which provides more options for
545 * configuring the Activity under test
548 public static int dragViewBy(ActivityInstrumentationTestCase test, View v, int gravity,
550 return dragViewBy((InstrumentationTestCase) test, v, gravity, deltaX, deltaY);
556 * @param test The test case that is being run
565 * @deprecated {@link android.test.ActivityInstrumentationTestCase} is deprecated in favor of
566 * {@link android.test.ActivityInstrumentationTestCase2}, which provides more options for
567 * configuring the Activity under test
570 public static int dragViewBy(InstrumentationTestCase test, View v, int gravity, int deltaX,
581 drag(test, fromX, fromX + deltaX, fromY, fromY + deltaY, distance);
589 * @param test The test case that is being run
598 * @deprecated {@link android.test.ActivityInstrumentationTestCase} is deprecated in favor of
599 * {@link android.test.ActivityInstrumentationTestCase2}, which provides more options for
600 * configuring the Activity under test
603 public static int dragViewTo(ActivityInstrumentationTestCase test, View v, int gravity, int toX,
605 return dragViewTo((InstrumentationTestCase) test, v, gravity, toX, toY);
611 * @param test The test case that is being run
620 public static int dragViewTo(InstrumentationTestCase test, View v, int gravity, int toX,
633 drag(test, fromX, toX, fromY, toY, distance);
641 * @param test The test case that is being run
649 * @deprecated {@link android.test.ActivityInstrumentationTestCase} is deprecated in favor of
650 * {@link android.test.ActivityInstrumentationTestCase2}, which provides more options for
651 * configuring the Activity under test
654 public static int dragViewToX(ActivityInstrumentationTestCase test, View v, int gravity,
656 return dragViewToX((InstrumentationTestCase) test, v, gravity, toX);
662 * @param test The test case that is being run
670 public static int dragViewToX(InstrumentationTestCase test, View v, int gravity, int toX) {
680 drag(test, fromX, toX, fromY, fromY, deltaX);
688 * @param test The test case that is being run
696 * @deprecated {@link android.test.ActivityInstrumentationTestCase} is deprecated in favor of
697 * {@link android.test.ActivityInstrumentationTestCase2}, which provides more options for
698 * configuring the Activity under test
701 public static int dragViewToY(ActivityInstrumentationTestCase test, View v, int gravity,
703 return dragViewToY((InstrumentationTestCase) test, v, gravity, toY);
709 * @param test The test case that is being run
717 public static int dragViewToY(InstrumentationTestCase test, View v, int gravity, int toY) {
727 drag(test, fromX, fromX, fromY, toY, deltaY);
736 * @param test The test case that is being run
743 * @deprecated {@link android.test.ActivityInstrumentationTestCase} is deprecated in favor of
744 * {@link android.test.ActivityInstrumentationTestCase2}, which provides more options for
745 * configuring the Activity under test
748 public static void drag(ActivityInstrumentationTestCase test, float fromX, float toX,
750 drag((InstrumentationTestCase) test, fromX, toX, fromY, toY, stepCount);
756 * @param test The test case that is being run
763 public static void drag(InstrumentationTestCase test, float fromX, float toX, float fromY,
765 Instrumentation inst = test.getInstrumentation();