Home | History | Annotate | Download | only in test

Lines Matching refs:spinner

17 package com.android.example.spinner.test;
19 import com.android.example.spinner.SpinnerActivity;
25 import android.widget.Spinner;
30 * Tests the example application Spinner. Uses the instrumentation test class
41 // Number of items in the spinner's backing mLocalAdapter
49 // Set the initial position of the spinner to zero
71 // String displayed in the spinner in the app under test
75 // The currently selected position in the spinner in the app under test
80 * The Spinner object in the app under test. Used with instrumentation to control the
84 private Spinner mSpinner;
87 * The data backing the Spinner in the app under test.
99 super("com.android.example.spinner", SpinnerActivity.class);
135 mSpinner = (Spinner)mActivity.findViewById(com.android.example.spinner.R.id.Spinner01);
156 * Test that the spinner's backing mLocalAdapter was initialized correctly.
170 * if the resulting spinner state is consistent with the attempted selection.
175 * Request focus for the spinner widget in the application under test,
192 // Activate the spinner by clicking the center keypad key
196 // send 5 down arrow keys to the spinner
203 // select the item at the current spinner position
212 * from the spinner's data mLocalAdapter, get the object at the selected position
219 * Get the TextView widget that displays the result of selecting an item from the spinner
223 (TextView) mActivity.findViewById(com.android.example.spinner.R.id.SpinnerResult);
237 * Tests that the activity under test maintains the spinner state when the activity halts
238 * and then restarts (for example, if the device reboots). Sets the spinner to a
240 * checks that the spinner has the same state.
247 * Set the position and value of the spinner in the Activity. The test runner's
280 * Tests that the activity under test maintains the spinner's state when the activity is
283 * Calls the activity's onResume() method. Changes the spinner's state by
301 * Set the activity's fields for the position and value of the spinner
317 * Set the spinner to a test position
332 * Get the current state of the spinner