Lines Matching full:test
17 package android.test;
45 * @param test The test case that is being run
47 * @deprecated {@link android.test.ActivityInstrumentationTestCase} is deprecated in favor of
48 * {@link android.test.ActivityInstrumentationTestCase2}, which provides more options for
49 * configuring the Activity under test
52 public static void dragQuarterScreenDown(ActivityInstrumentationTestCase test) { in dragQuarterScreenDown() argument
53 dragQuarterScreenDown(test, test.getActivity()); in dragQuarterScreenDown()
58 * @param test The test case that is being run
59 * @param activity The activity that is in the foreground of the test case
61 public static void dragQuarterScreenDown(InstrumentationTestCase test, Activity activity) { in dragQuarterScreenDown() argument
70 drag(test, x, x, fromY, toY, 4); in dragQuarterScreenDown()
75 * @param test The test case that is being run
77 * @deprecated {@link android.test.ActivityInstrumentationTestCase} is deprecated in favor of
78 * {@link android.test.ActivityInstrumentationTestCase2}, which provides more options for
79 * configuring the Activity under test
82 public static void dragQuarterScreenUp(ActivityInstrumentationTestCase test) { in dragQuarterScreenUp() argument
83 dragQuarterScreenUp(test, test.getActivity()); in dragQuarterScreenUp()
88 * @param test The test case that is being run
89 * @param activity The activity that is in the foreground of the test case
91 public static void dragQuarterScreenUp(InstrumentationTestCase test, Activity activity) { in dragQuarterScreenUp() argument
100 drag(test, x, x, fromY, toY, 4); in dragQuarterScreenUp()
107 * @param test The test case that is being run
110 * @deprecated {@link android.test.ActivityInstrumentationTestCase} is deprecated in favor of
111 * {@link android.test.ActivityInstrumentationTestCase2}, which provides more options for
112 * configuring the Activity under test
115 public static void scrollToBottom(ActivityInstrumentationTestCase test, ViewGroup v) { in scrollToBottom() argument
116 scrollToBottom(test, test.getActivity(), v); in scrollToBottom()
123 * @param test The test case that is being run
124 * @param activity The activity that is in the foreground of the test case
127 public static void scrollToBottom(InstrumentationTestCase test, Activity activity, in scrollToBottom() argument
133 TouchUtils.dragQuarterScreenUp(test, activity); in scrollToBottom()
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) { in scrollToTop() argument
151 scrollToTop(test, test.getActivity(), v); in scrollToTop()
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) { in scrollToTop() argument
167 TouchUtils.dragQuarterScreenDown(test, activity); in scrollToTop()
175 * @param test The test case that is being run
178 * @deprecated {@link android.test.ActivityInstrumentationTestCase} is deprecated in favor of
179 * {@link android.test.ActivityInstrumentationTestCase2}, which provides more options for
180 * configuring the Activity under test
183 public static void dragViewToBottom(ActivityInstrumentationTestCase test, View v) { in dragViewToBottom() argument
184 dragViewToBottom(test, test.getActivity(), v, 4); in dragViewToBottom()
190 * @param test The test case that is being run
191 * @param activity The activity that is in the foreground of the test case
194 public static void dragViewToBottom(InstrumentationTestCase test, Activity activity, View v) { in dragViewToBottom() argument
195 dragViewToBottom(test, activity, v, 4); in dragViewToBottom()
201 * @param test The test case that is being run
205 * @deprecated {@link android.test.ActivityInstrumentationTestCase} is deprecated in favor of
206 * {@link android.test.ActivityInstrumentationTestCase2}, which provides more options for
207 * configuring the Activity under test
210 public static void dragViewToBottom(ActivityInstrumentationTestCase test, View v, in dragViewToBottom() argument
212 dragViewToBottom(test, test.getActivity(), v, stepCount); in dragViewToBottom()
218 * @param test The test case that is being run
219 * @param activity The activity that is in the foreground of the test case
223 public static void dragViewToBottom(InstrumentationTestCase test, Activity activity, View v, in dragViewToBottom() argument
237 drag(test, x, x, fromY, toY, stepCount); in dragViewToBottom()
243 * @param test The test case that is being run
246 public static void tapView(InstrumentationTestCase test, View v) { in tapView() argument
256 Instrumentation inst = test.getInstrumentation(); in tapView()
283 * @param test The test case that is being run
286 public static void touchAndCancelView(InstrumentationTestCase test, View v) { in touchAndCancelView() argument
296 Instrumentation inst = test.getInstrumentation(); in touchAndCancelView()
318 * @param test The test case that is being run
321 public static void clickView(InstrumentationTestCase test, View v) { in clickView() argument
331 Instrumentation inst = test.getInstrumentation(); in clickView()
364 * @param test The test case that is being run
367 * @deprecated {@link android.test.ActivityInstrumentationTestCase} is deprecated in favor of
368 * {@link android.test.ActivityInstrumentationTestCase2}, which provides more options for
369 * configuring the Activity under test
372 public static void longClickView(ActivityInstrumentationTestCase test, View v) { in longClickView() argument
373 longClickView((InstrumentationTestCase) test, v); in longClickView()
379 * @param test The test case that is being run
382 public static void longClickView(InstrumentationTestCase test, View v) { in longClickView() argument
392 Instrumentation inst = test.getInstrumentation(); in longClickView()
424 * @param test The test case that is being run
427 * @deprecated {@link android.test.ActivityInstrumentationTestCase} is deprecated in favor of
428 * {@link android.test.ActivityInstrumentationTestCase2}, which provides more options for
429 * configuring the Activity under test
432 public static void dragViewToTop(ActivityInstrumentationTestCase test, View v) { in dragViewToTop() argument
433 dragViewToTop((InstrumentationTestCase) test, v, 4); in dragViewToTop()
439 * @param test The test case that is being run
443 * @deprecated {@link android.test.ActivityInstrumentationTestCase} is deprecated in favor of
444 * {@link android.test.ActivityInstrumentationTestCase2}, which provides more options for
445 * configuring the Activity under test
448 public static void dragViewToTop(ActivityInstrumentationTestCase test, View v, int stepCount) { in dragViewToTop() argument
449 dragViewToTop((InstrumentationTestCase) test, v, stepCount); in dragViewToTop()
455 * @param test The test case that is being run
458 public static void dragViewToTop(InstrumentationTestCase test, View v) { in dragViewToTop() argument
459 dragViewToTop(test, v, 4); in dragViewToTop()
465 * @param test The test case that is being run
469 public static void dragViewToTop(InstrumentationTestCase test, View v, int stepCount) { in dragViewToTop() argument
480 drag(test, x, x, fromY, toY, stepCount); in dragViewToTop()
528 * @param test The test case that is being run
537 * @deprecated {@link android.test.ActivityInstrumentationTestCase} is deprecated in favor of
538 * {@link android.test.ActivityInstrumentationTestCase2}, which provides more options for
539 * configuring the Activity under test
542 public static int dragViewBy(ActivityInstrumentationTestCase test, View v, int gravity, in dragViewBy() argument
544 return dragViewBy((InstrumentationTestCase) test, v, gravity, deltaX, deltaY); in dragViewBy()
550 * @param test The test case that is being run
559 * @deprecated {@link android.test.ActivityInstrumentationTestCase} is deprecated in favor of
560 * {@link android.test.ActivityInstrumentationTestCase2}, which provides more options for
561 * configuring the Activity under test
564 public static int dragViewBy(InstrumentationTestCase test, View v, int gravity, int deltaX, in dragViewBy() argument
575 drag(test, fromX, fromX + deltaX, fromY, fromY + deltaY, distance); in dragViewBy()
583 * @param test The test case that is being run
592 * @deprecated {@link android.test.ActivityInstrumentationTestCase} is deprecated in favor of
593 * {@link android.test.ActivityInstrumentationTestCase2}, which provides more options for
594 * configuring the Activity under test
597 public static int dragViewTo(ActivityInstrumentationTestCase test, View v, int gravity, int toX, in dragViewTo() argument
599 return dragViewTo((InstrumentationTestCase) test, v, gravity, toX, toY); in dragViewTo()
605 * @param test The test case that is being run
614 public static int dragViewTo(InstrumentationTestCase test, View v, int gravity, int toX, in dragViewTo() argument
627 drag(test, fromX, toX, fromY, toY, distance); in dragViewTo()
635 * @param test The test case that is being run
643 * @deprecated {@link android.test.ActivityInstrumentationTestCase} is deprecated in favor of
644 * {@link android.test.ActivityInstrumentationTestCase2}, which provides more options for
645 * configuring the Activity under test
648 public static int dragViewToX(ActivityInstrumentationTestCase test, View v, int gravity, in dragViewToX() argument
650 return dragViewToX((InstrumentationTestCase) test, v, gravity, toX); in dragViewToX()
656 * @param test The test case that is being run
664 public static int dragViewToX(InstrumentationTestCase test, View v, int gravity, int toX) { in dragViewToX() argument
674 drag(test, fromX, toX, fromY, fromY, deltaX); in dragViewToX()
682 * @param test The test case that is being run
690 * @deprecated {@link android.test.ActivityInstrumentationTestCase} is deprecated in favor of
691 * {@link android.test.ActivityInstrumentationTestCase2}, which provides more options for
692 * configuring the Activity under test
695 public static int dragViewToY(ActivityInstrumentationTestCase test, View v, int gravity, in dragViewToY() argument
697 return dragViewToY((InstrumentationTestCase) test, v, gravity, toY); in dragViewToY()
703 * @param test The test case that is being run
711 public static int dragViewToY(InstrumentationTestCase test, View v, int gravity, int toY) { in dragViewToY() argument
721 drag(test, fromX, fromX, fromY, toY, deltaY); in dragViewToY()
730 * @param test The test case that is being run
737 * @deprecated {@link android.test.ActivityInstrumentationTestCase} is deprecated in favor of
738 * {@link android.test.ActivityInstrumentationTestCase2}, which provides more options for
739 * configuring the Activity under test
742 public static void drag(ActivityInstrumentationTestCase test, float fromX, float toX, in drag() argument
744 drag((InstrumentationTestCase) test, fromX, toX, fromY, toY, stepCount); in drag()
750 * @param test The test case that is being run
757 public static void drag(InstrumentationTestCase test, float fromX, float toX, float fromY, in drag() argument
759 Instrumentation inst = test.getInstrumentation(); in drag()