Searched refs:oldAdapter (Results 1 - 10 of 10) sorted by relevance

/frameworks/data-binding/extensions/baseAdapters/src/main/java/android/databinding/adapters/
H A DAbsSpinnerBindingAdapter.java30 SpinnerAdapter oldAdapter = view.getAdapter();
32 if (oldAdapter != null && oldAdapter.getCount() == entries.length) {
35 if (!entries[i].equals(oldAdapter.getItem(i))) {
56 SpinnerAdapter oldAdapter = view.getAdapter();
57 if (oldAdapter instanceof ObservableListAdapter) {
58 ((ObservableListAdapter) oldAdapter).setList(entries);
/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/
H A DRecycledViewPoolTest.java130 TestAdapter oldAdapter = null;
132 oldAdapter = new TestAdapter();
135 pool.onAdapterChanged(oldAdapter, null, !notCompatibleWithPrevious);
H A DRecyclerViewBasicTest.java603 public void onAdapterChanged(RecyclerView.Adapter oldAdapter, argument
605 super.onAdapterChanged(oldAdapter, newAdapter);
606 mPrevAdapter = oldAdapter;
H A DRecyclerViewLayoutTest.java5193 public void onAdapterChanged(RecyclerView.Adapter oldAdapter, argument
5195 super.onAdapterChanged(oldAdapter, newAdapter);
/frameworks/support/viewpager/src/main/java/androidx/viewpager/widget/
H A DPagerTitleStrip.java313 void updateAdapter(PagerAdapter oldAdapter, PagerAdapter newAdapter) { argument
314 if (oldAdapter != null) {
315 oldAdapter.unregisterDataSetObserver(mPageListener);
504 public void onAdapterChanged(ViewPager viewPager, PagerAdapter oldAdapter, argument
506 updateAdapter(oldAdapter, newAdapter);
H A DViewPager.java367 * @param oldAdapter the previously set adapter
371 @Nullable PagerAdapter oldAdapter, @Nullable PagerAdapter newAdapter);
520 final PagerAdapter oldAdapter = mAdapter;
549 mAdapterChangeListeners.get(i).onAdapterChanged(this, oldAdapter, adapter);
370 onAdapterChanged(@onNull ViewPager viewPager, @Nullable PagerAdapter oldAdapter, @Nullable PagerAdapter newAdapter) argument
/frameworks/base/core/java/com/android/internal/widget/
H A DViewPager.java316 public void onAdapterChanged(PagerAdapter oldAdapter, PagerAdapter newAdapter); argument
404 final PagerAdapter oldAdapter = mAdapter;
430 if (mAdapterChangeListener != null && oldAdapter != adapter) {
431 mAdapterChangeListener.onAdapterChanged(oldAdapter, adapter);
H A DRecyclerView.java1013 final Adapter oldAdapter = mAdapter;
1020 mLayout.onAdapterChanged(oldAdapter, mAdapter);
1022 mRecycler.onAdapterChanged(oldAdapter, mAdapter, compatibleWithPrevious);
5065 * adapter uses a different ViewHolder than the oldAdapter.
5067 * @param oldAdapter The previous adapter instance. Will be detached.
5069 * @param compatibleWithPrevious True if both oldAdapter and newAdapter are using the same
5072 void onAdapterChanged(Adapter oldAdapter, Adapter newAdapter, argument
5074 if (oldAdapter != null) {
6009 void onAdapterChanged(Adapter oldAdapter, Adapter newAdapter, argument
6012 getRecycledViewPool().onAdapterChanged(oldAdapter, newAdapte
9017 onAdapterChanged(Adapter oldAdapter, Adapter newAdapter) argument
[all...]
/frameworks/support/v7/recyclerview/src/main/java/androidx/recyclerview/widget/
H A DRecyclerView.java1154 final Adapter oldAdapter = mAdapter;
1161 mLayout.onAdapterChanged(oldAdapter, mAdapter);
1163 mRecycler.onAdapterChanged(oldAdapter, mAdapter, compatibleWithPrevious);
5489 * adapter uses a different ViewHolder than the oldAdapter.
5491 * @param oldAdapter The previous adapter instance. Will be detached.
5493 * @param compatibleWithPrevious True if both oldAdapter and newAdapter are using the same
5496 void onAdapterChanged(Adapter oldAdapter, Adapter newAdapter, argument
5498 if (oldAdapter != null) {
6447 void onAdapterChanged(Adapter oldAdapter, Adapter newAdapter, argument
6450 getRecycledViewPool().onAdapterChanged(oldAdapter, newAdapte
9723 onAdapterChanged(@ullable Adapter oldAdapter, @Nullable Adapter newAdapter) argument
[all...]
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/
H A DGridLayoutManager.java3558 public void onAdapterChanged(RecyclerView.Adapter oldAdapter, argument
3561 if (oldAdapter != null) {
3572 super.onAdapterChanged(oldAdapter, newAdapter);

Completed in 144 milliseconds