Home
last modified time | relevance | path

Searched refs:mAdapters (Results 1 – 3 of 3) sorted by relevance

/packages/apps/Contacts/src/com/android/contacts/widget/
DCompositeListAdapter.java35 private ListAdapter[] mAdapters; field in CompositeListAdapter
64 mAdapters = new ListAdapter[INITIAL_CAPACITY]; in CompositeListAdapter()
71 if (mSize >= mAdapters.length) { in addAdapter()
74 System.arraycopy(mAdapters, 0, newAdapters, 0, mSize); in addAdapter()
75 mAdapters = newAdapters; in addAdapter()
91 mAdapters[mSize] = adapter; in addAdapter()
123 int count = mAdapters[i].getCount(); in ensureCacheValid()
124 int viewTypeCount = mAdapters[i].getViewTypeCount(); in ensureCacheValid()
127 mAllItemsEnabled &= mAdapters[i].areAllItemsEnabled(); in ensureCacheValid()
145 return mAdapters[i].getItem(position - start); in getItem()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/widget/picker/
DWidgetsFullSheet.java112 protected final SparseArray<AdapterHolder> mAdapters = new SparseArray(); field in WidgetsFullSheet
119 mAdapters.get(AdapterHolder.SEARCH).mWidgetsRecyclerView;
166 mAdapters.put(AdapterHolder.PRIMARY, new AdapterHolder(AdapterHolder.PRIMARY)); in WidgetsFullSheet()
167 mAdapters.put(AdapterHolder.WORK, new AdapterHolder(AdapterHolder.WORK)); in WidgetsFullSheet()
168 mAdapters.put(AdapterHolder.SEARCH, new AdapterHolder(AdapterHolder.SEARCH)); in WidgetsFullSheet()
225 mAdapters.get(AdapterHolder.PRIMARY).setup(findViewById(R.id.primary_widgets_list_view)); in setupViews()
226 mAdapters.get(AdapterHolder.SEARCH).setup(findViewById(R.id.search_widgets_list_view)); in setupViews()
239 mAdapters.get(AdapterHolder.WORK).setup(findViewById(R.id.work_widgets_list_view)); in setupViews()
265 AdapterHolder currentAdapterHolder = mAdapters.get(currentActivePage); in onActivePageChanged()
267 mAdapters.get(currentActivePage).mWidgetsRecyclerView; in onActivePageChanged()
[all …]
DWidgetsTwoPaneSheet.java96 mAdapters.get(AdapterHolder.PRIMARY) in setupSheet()
98 mAdapters.get(AdapterHolder.WORK) in setupSheet()
100 mAdapters.get(AdapterHolder.SEARCH) in setupSheet()
223 mAdapters.get(mActivePage).mWidgetsListAdapter.selectFirstHeaderEntry(); in onWidgetsBound()
224 mAdapters.get(mActivePage).mWidgetsRecyclerView.scrollToTop(); in onWidgetsBound()
327 mAdapters.get(currentActivePage).mWidgetsListAdapter.selectFirstHeaderEntry(); in onActivePageChanged()
328 mAdapters.get(currentActivePage).mWidgetsRecyclerView.scrollToTop(); in onActivePageChanged()
347 mAdapters.get(AdapterHolder.SEARCH).mWidgetsListAdapter.selectFirstHeaderEntry(); in onSearchResults()
348 mAdapters.get(AdapterHolder.SEARCH).mWidgetsRecyclerView.scrollToTop(); in onSearchResults()
370 mAdapters.get(mActivePage).mWidgetsListAdapter.selectFirstHeaderEntry(); in setViewVisibilityBasedOnSearch()