Lines Matching refs:Activity
19 import android.app.Activity;
25 * This class provides functional testing of a single activity. The activity under test will
27 * and you will then be able to manipulate your Activity directly.
32 * <li>You can inject custom Intents into your Activity (see
47 public abstract class ActivityInstrumentationTestCase2<T extends Activity>
57 * @param activityClass The activity to test. This must be a class in the instrumentation
70 * @param activityClass The activity to test. This must be a class in the instrumentation
78 * Get the Activity under test, starting it if necessary.
80 * For each test method invocation, the Activity will not actually be created until the first
83 * <p>If you wish to provide custom setup values to your Activity, you may call
85 * before your first call to getActivity(). Calling them after your Activity has
89 * If your test method is annotated with {@link android.test.UiThreadTest}, then your Activity
91 * method in order to get the Activity under test.
93 * @return the Activity under test
97 Activity a = super.getActivity();
115 * into the Activity under test.
118 * your Activity has been started, it will have no effect.
129 * @param i The Intent to start the Activity with, or null to reset to the default Intent.
137 * mode for the Activity under test.
140 * your Activity has been started, it will have no effect.
146 * @param initialTouchMode true if the Activity should be placed into "touch mode" when started
162 // Finish the Activity off (unless was never launched anyway)
163 Activity a = super.getActivity();
179 * {@link android.test.UiThreadTest}, force the Activity to be created before switching to