Home
last modified time | relevance | path

Searched refs:oldAdapter (Results 1 – 8 of 8) sorted by relevance

/frameworks/data-binding/extensions/baseAdapters/src/main/java/android/databinding/adapters/
DAbsSpinnerBindingAdapter.java30 SpinnerAdapter oldAdapter = view.getAdapter(); in setEntries() local
32 if (oldAdapter != null && oldAdapter.getCount() == entries.length) { in setEntries()
35 if (!entries[i].equals(oldAdapter.getItem(i))) { in setEntries()
56 SpinnerAdapter oldAdapter = view.getAdapter(); in setEntries() local
57 if (oldAdapter instanceof ObservableListAdapter) { in setEntries()
58 ((ObservableListAdapter) oldAdapter).setList(entries); in setEntries()
/frameworks/support/v4/java/android/support/v4/view/
DPagerTitleStrip.java319 void updateAdapter(PagerAdapter oldAdapter, PagerAdapter newAdapter) { in updateAdapter() argument
320 if (oldAdapter != null) { in updateAdapter()
321 oldAdapter.unregisterDataSetObserver(mPageListener); in updateAdapter()
507 public void onAdapterChanged(ViewPager viewPager, PagerAdapter oldAdapter, in onAdapterChanged() argument
509 updateAdapter(oldAdapter, newAdapter); in onAdapterChanged()
DViewPager.java370 @Nullable PagerAdapter oldAdapter, @Nullable PagerAdapter newAdapter); in onAdapterChanged() argument
518 final PagerAdapter oldAdapter = mAdapter; in setAdapter() local
547 mAdapterChangeListeners.get(i).onAdapterChanged(this, oldAdapter, adapter); in setAdapter()
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
DRecyclerViewBasicTest.java359 public void onAdapterChanged(RecyclerView.Adapter oldAdapter, in onAdapterChanged() argument
361 super.onAdapterChanged(oldAdapter, newAdapter); in onAdapterChanged()
362 mPrevAdapter = oldAdapter; in onAdapterChanged()
/frameworks/base/core/java/com/android/internal/widget/
DViewPager.java342 public void onAdapterChanged(PagerAdapter oldAdapter, PagerAdapter newAdapter); in onAdapterChanged() argument
430 final PagerAdapter oldAdapter = mAdapter; in setAdapter() local
456 if (mAdapterChangeListener != null && oldAdapter != adapter) { in setAdapter()
457 mAdapterChangeListener.onAdapterChanged(oldAdapter, adapter); in setAdapter()
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
DRecyclerView.java940 final Adapter oldAdapter = mAdapter; in setAdapterInternal() local
947 mLayout.onAdapterChanged(oldAdapter, mAdapter); in setAdapterInternal()
949 mRecycler.onAdapterChanged(oldAdapter, mAdapter, compatibleWithPrevious); in setAdapterInternal()
4695 void onAdapterChanged(Adapter oldAdapter, Adapter newAdapter, in onAdapterChanged() argument
4697 if (oldAdapter != null) { in onAdapterChanged()
5476 void onAdapterChanged(Adapter oldAdapter, Adapter newAdapter, in onAdapterChanged() argument
5479 getRecycledViewPool().onAdapterChanged(oldAdapter, newAdapter, compatibleWithPrevious); in onAdapterChanged()
8353 public void onAdapterChanged(Adapter oldAdapter, Adapter newAdapter) { in onAdapterChanged() argument
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DGridLayoutManager.java3111 public void onAdapterChanged(RecyclerView.Adapter oldAdapter, in onAdapterChanged() argument
3114 if (oldAdapter != null) { in onAdapterChanged()
3125 super.onAdapterChanged(oldAdapter, newAdapter); in onAdapterChanged()
/frameworks/support/design/src/android/support/design/widget/
DTabLayout.java2199 @Nullable PagerAdapter oldAdapter, @Nullable PagerAdapter newAdapter) { in onAdapterChanged() argument