Home
last modified time | relevance | path

Searched refs:CycleAdapter (Results 1 – 9 of 9) sorted by relevance

/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datausage/
DCycleAdapter.java34 public class CycleAdapter extends SettingsSpinnerAdapter<CycleAdapter.CycleItem> { class
39 public CycleAdapter(Context context, SpinnerInterface spinner, in CycleAdapter() method in CycleAdapter
73 final CycleAdapter.CycleItem previousItem = (CycleAdapter.CycleItem) in updateCycleList()
109 add(new CycleAdapter.CycleItem(context, cycleStart, cycleEnd)); in updateCycleList()
130 add(new CycleAdapter.CycleItem(context, cycleStart, cycleEnd)); in updateCycleList()
143 final CycleAdapter.CycleItem selectedItem = getItem(position); in updateCycleList()
158 final CycleAdapter.CycleItem previousItem = (CycleAdapter.CycleItem) in updateCycleList()
164 add(new CycleAdapter.CycleItem(context, data.getStartTime(), data.getEndTime())); in updateCycleList()
174 final CycleAdapter.CycleItem selectedItem = getItem(position); in updateCycleList()
222 void setAdapter(CycleAdapter cycleAdapter); in setAdapter()
DSpinnerPreference.java28 public class SpinnerPreference extends Preference implements CycleAdapter.SpinnerInterface {
30 private CycleAdapter mAdapter;
41 public void setAdapter(CycleAdapter cycleAdapter) { in setAdapter()
DDataUsageList.java59 import com.android.car.developeroptions.datausage.CycleAdapter.SpinnerInterface;
116 private CycleAdapter mCycleAdapter;
161 mCycleAdapter = new CycleAdapter(mCycleSpinner.getContext(), new SpinnerInterface() { in onViewCreated()
163 public void setAdapter(CycleAdapter cycleAdapter) { in onViewCreated()
468 final CycleAdapter.CycleItem cycle = (CycleAdapter.CycleItem)
DAppDataUsage.java94 private CycleAdapter mCycleAdapter;
148 mCycleAdapter = new CycleAdapter(mContext, mCycle, mCycleListener); in onCreate()
/packages/apps/Settings/src/com/android/settings/datausage/
DCycleAdapter.java34 public class CycleAdapter extends SettingsSpinnerAdapter<CycleAdapter.CycleItem> { class
39 public CycleAdapter(Context context, SpinnerInterface spinner, in CycleAdapter() method in CycleAdapter
73 final CycleAdapter.CycleItem previousItem = (CycleAdapter.CycleItem) in updateCycleList()
109 add(new CycleAdapter.CycleItem(context, cycleStart, cycleEnd)); in updateCycleList()
130 add(new CycleAdapter.CycleItem(context, cycleStart, cycleEnd)); in updateCycleList()
143 final CycleAdapter.CycleItem selectedItem = getItem(position); in updateCycleList()
158 final CycleAdapter.CycleItem previousItem = (CycleAdapter.CycleItem) in updateCycleList()
164 add(new CycleAdapter.CycleItem(context, data.getStartTime(), data.getEndTime())); in updateCycleList()
174 final CycleAdapter.CycleItem selectedItem = getItem(position); in updateCycleList()
222 void setAdapter(CycleAdapter cycleAdapter); in setAdapter()
DSpinnerPreference.java28 public class SpinnerPreference extends Preference implements CycleAdapter.SpinnerInterface {
30 private CycleAdapter mAdapter;
41 public void setAdapter(CycleAdapter cycleAdapter) { in setAdapter()
DDataUsageList.java59 import com.android.settings.datausage.CycleAdapter.SpinnerInterface;
118 private CycleAdapter mCycleAdapter;
163 mCycleAdapter = new CycleAdapter(mCycleSpinner.getContext(), new SpinnerInterface() { in onViewCreated()
165 public void setAdapter(CycleAdapter cycleAdapter) { in onViewCreated()
471 final CycleAdapter.CycleItem cycle = (CycleAdapter.CycleItem)
DAppDataUsage.java94 private CycleAdapter mCycleAdapter;
148 mCycleAdapter = new CycleAdapter(mContext, mCycle, mCycleListener); in onCreate()
/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/
DAppDataUsageTest.java395 ReflectionHelpers.setField(mFragment, "mCycleAdapter", mock(CycleAdapter.class)); in onLoadFinished_hasSelectedCycleSpecified_shouldSelectSpecifiedCycle()