Home | History | Annotate | Download | only in util

Lines Matching refs:activity

25 import android.app.Activity;
58 * Find a view by a given resource id, from the given activity, and click it, iff it is
61 public void clickButton(final Activity activity, final int buttonResourceId) throws Throwable {
65 View view = activity.findViewById(buttonResourceId);
140 public List<TextView> getTextViewsWithString(final Activity activity, final String text)
146 for (TextView textView : getAllViews(TextView.class, getRootView(activity))) {
156 /** Find the root view for a given activity. */
157 public static View getRootView(Activity activity) {
158 return activity.findViewById(android.R.id.content).getRootView();