Home
last modified time | relevance | path

Searched refs:Adapter (Results 1 – 25 of 50) sorted by relevance

12

/frameworks/base/core/tests/coretests/src/android/widget/
DListViewTest.java46 Adapter<String> adapter = new Adapter<String>(context, 0, items); in testRequestLayout()
76 Adapter<String> adapter = new Adapter<String>(context, 0, items); in testNoSelectableItems()
130 private class Adapter<T> extends ArrayAdapter<T> { class in ListViewTest
132 public Adapter(Context context, int resource, List<T> objects) { in Adapter() method in ListViewTest.Adapter
/frameworks/opt/setupwizard/library/recyclerview/test/instrumentation/src/com/android/setupwizardlib/test/
DSetupWizardRecyclerLayoutTest.java30 import androidx.recyclerview.widget.RecyclerView.Adapter;
84 final Adapter adapter = createTestAdapter(1); in testAdapter()
87 final Adapter gotAdapter = layout.getAdapter(); in testAdapter()
158 private Adapter createTestAdapter(final int itemCount) { in createTestAdapter()
159 return new Adapter() { in createTestAdapter()
DGlifRecyclerLayoutTest.java30 import androidx.recyclerview.widget.RecyclerView.Adapter;
82 final RecyclerView.Adapter adapter = createTestAdapter(1); in testAdapter()
85 final RecyclerView.Adapter gotAdapter = layout.getAdapter(); in testAdapter()
155 private Adapter createTestAdapter(final int itemCount) { in createTestAdapter()
156 return new RecyclerView.Adapter() { in createTestAdapter()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DUserDetailView.java37 protected Adapter mAdapter;
49 mAdapter = new Adapter(mContext, controller); in createAndSetAdapter()
57 public static class Adapter extends UserSwitcherController.BaseUserAdapter class in UserDetailView
63 public Adapter(Context context, UserSwitcherController controller) { in Adapter() method in UserDetailView.Adapter
/frameworks/opt/setupwizard/library/recyclerview/src/com/android/setupwizardlib/view/
DHeaderRecyclerView.java63 extends RecyclerView.Adapter<ViewHolder> {
67 private final RecyclerView.Adapter<CVH> adapter;
115 public HeaderAdapter(RecyclerView.Adapter<CVH> adapter) { in HeaderAdapter()
196 public RecyclerView.Adapter<CVH> getWrappedAdapter() { in getWrappedAdapter()
267 public void setAdapter(Adapter adapter) { in setAdapter()
/frameworks/opt/setupwizard/library/recyclerview/src/com/android/setupwizardlib/template/
DRecyclerMixin.java28 import androidx.recyclerview.widget.RecyclerView.Adapter;
164 public Adapter<? extends ViewHolder> getAdapter() { in getAdapter()
166 final RecyclerView.Adapter<? extends ViewHolder> adapter = recyclerView.getAdapter(); in getAdapter()
174 public void setAdapter(Adapter<? extends ViewHolder> adapter) { in setAdapter()
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
DLockscreenFragment.java104 Adapter adapter = new Adapter(getContext(), item -> { in showSelectDialog()
230 public void toggleExpando(Adapter adapter) { in toggleExpando()
249 public void toggleExpando(Adapter adapter) { in toggleExpando()
253 public static class Adapter extends RecyclerView.Adapter<Holder> { class in LockscreenFragment
258 public Adapter(Context context, Consumer<Item> callback) { in Adapter() method in LockscreenFragment.Adapter
281 v -> mItems.get(holder.getAdapterPosition()).toggleExpando(Adapter.this)); in onBindViewHolder()
/frameworks/opt/setupwizard/library/recyclerview/src/com/android/setupwizardlib/
DSetupWizardRecyclerLayout.java22 import androidx.recyclerview.widget.RecyclerView.Adapter;
78 public Adapter<? extends ViewHolder> getAdapter() { in getAdapter()
83 public void setAdapter(Adapter<? extends ViewHolder> adapter) { in setAdapter()
DGlifRecyclerLayout.java24 import androidx.recyclerview.widget.RecyclerView.Adapter;
133 public void setAdapter(Adapter<? extends ViewHolder> adapter) { in setAdapter()
138 public Adapter<? extends ViewHolder> getAdapter() { in getAdapter()
/frameworks/base/tests/UsageStatsTest/src/com/android/tests/usagestats/
DUsageLogActivity.java36 private Adapter mAdapter;
46 mAdapter = new Adapter(); in onCreate()
73 private class Adapter extends BaseAdapter { class in UsageLogActivity
DUsageStatsActivity.java57 private Adapter mAdapter;
70 mAdapter = new Adapter(); in onCreate()
231 private class Adapter extends BaseAdapter { class in UsageStatsActivity
/frameworks/base/tests/UiBench/src/com/android/test/uibench/recyclerview/
DRvCompatListActivity.java35 RecyclerView.Adapter adapter;
66 protected abstract RecyclerView.Adapter createAdapter(); in createAdapter()
DRvArrayAdapter.java24 public class RvArrayAdapter extends RecyclerView.Adapter<RvArrayAdapter.ViewHolder> {
/frameworks/base/tests/UiBench/src/com/android/test/uibench/
DSlowNestedRecyclerViewActivity.java72 protected RecyclerView.Adapter createAdapter() { in createAdapter()
76 private class InnerAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> {
117 private class OuterAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> {
DTrivialRecyclerViewActivity.java25 protected RecyclerView.Adapter createAdapter() { in createAdapter()
DSlowBindRecyclerViewActivity.java43 protected RecyclerView.Adapter createAdapter() { in createAdapter()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DKeyguardUserSwitcher.java50 private final Adapter mAdapter;
71 mAdapter = new Adapter(context, userSwitcherController, this); in KeyguardUserSwitcher()
254 public static class Adapter extends UserSwitcherController.BaseUserAdapter implements class in KeyguardUserSwitcher
260 public Adapter(Context context, UserSwitcherController controller, in Adapter() method in KeyguardUserSwitcher.Adapter
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/
DUserDetailViewAdapterTest.kt52 private lateinit var adapter: UserDetailView.Adapter
61 adapter = UserDetailView.Adapter(mContext, mUserSwitcherController) in setUp()
/frameworks/base/core/java/android/widget/
DListAdapter.java26 public interface ListAdapter extends Adapter {
DSpinnerAdapter.java29 public interface SpinnerAdapter extends Adapter {
DAdapter.java34 public interface Adapter { interface
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSDetailItems.java50 private final Adapter mAdapter = new Adapter();
163 private class Adapter extends BaseAdapter { class in QSDetailItems
/frameworks/opt/setupwizard/library/recyclerview/test/instrumentation/src/com/android/setupwizardlib/template/
DRecyclerMixinTest.java34 import androidx.recyclerview.widget.RecyclerView.Adapter;
56 @Mock private Adapter mAdapter;
/frameworks/base/tests/UsageReportingTest/src/com/android/tests/usagereporter/
DUsageReporterActivity.java50 private Adapter mAdapter;
63 mAdapter = new Adapter(); in onCreate()
270 private class Adapter extends BaseAdapter { class in UsageReporterActivity
/frameworks/base/packages/CarSystemUI/src/com/android/systemui/volume/
DCarVolumeItemAdapter.java32 RecyclerView.Adapter<CarVolumeItem.CarVolumeItemViewHolder> {

12