Home
last modified time | relevance | path

Searched refs:mSpinner (Results 1 – 7 of 7) sorted by relevance

/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/
DSpinnerPreference.java39 @VisibleForTesting Spinner mSpinner; field in SpinnerPreference
56 if (mSpinner != null) { in onBindViewHolder()
60 mSpinner = (Spinner) view.findViewById(R.id.spinner); in onBindViewHolder()
61 mSpinner.setAdapter(new SpinnerAdapter(getContext(), mItems)); in onBindViewHolder()
62 mSpinner.setSelection(mSavedSpinnerPosition); in onBindViewHolder()
63 mSpinner.setLongClickable(false); in onBindViewHolder()
65 mSpinner.setOnItemSelectedListener(mOnItemSelectedListener); in onBindViewHolder()
71 if (mSpinner == null) { in onSaveInstanceState()
74 Log.d(TAG, "onSaveInstanceState() spinnerPosition=" + mSpinner.getSelectedItemPosition()); in onSaveInstanceState()
75 return new SavedState(super.onSaveInstanceState(), mSpinner.getSelectedItemPosition()); in onSaveInstanceState()
/packages/apps/Settings/src/com/android/settings/datausage/
DCycleAdapter.java26 private final SpinnerInterface mSpinner; field in CycleAdapter
30 mSpinner = spinner; in CycleAdapter()
31 mSpinner.setAdapter(this); in CycleAdapter()
56 mSpinner.setSelection(i); in setInitialCycleList()
68 mSpinner.getSelectedItem(); in updateCycleList()
79 mSpinner.setSelection(position); in updateCycleList()
/packages/services/Car/tests/LaunchOnPrivateDisplayTestApp/src/com/example/android/launchonprivatedisplay/
DMainActivity.java43 private Spinner mSpinner; field in MainActivity
55 mSpinner = findViewById(R.id.spinner_view); in onCreate()
62 mSpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() { in onCreate()
75 int selectedItemPosition = mSpinner.getSelectedItemPosition(); in onCreate()
93 mSpinner.setAdapter(adapter); in createSpinnerView()
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DPhotoCarousel.java56 private View mSpinner; field in PhotoCarousel
70 mSpinner.setVisibility(View.VISIBLE); in run()
72 mSpinner.setVisibility(View.GONE); in run()
273 mSpinner = findViewById(R.id.spinner); in onAttachedToWindow()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/users/
DProfileUserFragment.java503 private final Spinner mSpinner; field in ProfileUserFragment.SpinnerWrapper
515 mSpinner = spinner; in SpinnerWrapper()
523 mSpinner.setAdapter(mAdapter); in init()
534 return (String) mSpinner.getSelectedItem(); in getSelectedEntry()
DSimpleUserPickerFragment.java510 private final Spinner mSpinner; field in SimpleUserPickerFragment.SpinnerWrapper
522 mSpinner = spinner; in SpinnerWrapper()
530 mSpinner.setAdapter(mAdapter); in init()
541 return (String) mSpinner.getSelectedItem(); in getSelectedEntry()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/
DSpinnerPreferenceTest.java69 mSpinnerPreference.mSpinner = mMockSpinner; in onSaveInstanceState_returnExpectedResult()