Home
last modified time | relevance | path

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

/frameworks/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/
DObservableArrayMapTest.java31 private ObservableArrayMap<String, String> mObservable; field in ObservableArrayMapTest
38 assertEquals(mObservable, observableMap);
50 mObservable = new ObservableArrayMap<>(); in setUp()
54 mObservable.put("Hello", "World"); in testAddListener()
56 mObservable.addOnMapChangedCallback(mListener); in testAddListener()
57 mObservable.put("Hello", "Goodbye"); in testAddListener()
63 mObservable.removeOnMapChangedCallback(mListener); in testRemoveListener()
65 mObservable.addOnMapChangedCallback(mListener); in testRemoveListener()
66 mObservable.put("Hello", "World"); in testRemoveListener()
68 mObservable.removeOnMapChangedCallback(mListener); in testRemoveListener()
[all …]
DObservableArrayListTest.java38 private ObservableList<String> mObservable; field in ObservableArrayListTest
105 mObservable = new ObservableArrayList<>(); in setUp()
109 mObservable.add("Hello"); in testAddListener()
111 mObservable.addOnListChangedCallback(mListener); in testAddListener()
112 mObservable.add("World"); in testAddListener()
118 mObservable.removeOnListChangedCallback(mListener); in testRemoveListener()
120 mObservable.addOnListChangedCallback(mListener); in testRemoveListener()
121 mObservable.add("Hello"); in testRemoveListener()
123 mObservable.removeOnListChangedCallback(mListener); in testRemoveListener()
124 mObservable.add("World"); in testRemoveListener()
[all …]
DBaseObservableTest.java27 private BaseObservable mObservable; field in BaseObservableTest
32 assertEquals(mObservable, observable);
44 mObservable = new BaseObservable(); in setUp()
49 mObservable.notifyChange(); in testAddCallback()
51 mObservable.addOnPropertyChangedCallback(mCallback); in testAddCallback()
52 mObservable.notifyChange(); in testAddCallback()
58 mObservable.removeOnPropertyChangedCallback(mCallback); in testRemoveCallback()
60 mObservable.addOnPropertyChangedCallback(mCallback); in testRemoveCallback()
61 mObservable.notifyChange(); in testRemoveCallback()
63 mObservable.removeOnPropertyChangedCallback(mCallback); in testRemoveCallback()
[all …]
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/
DObjectAdapter.java145 private final DataObservable mObservable = new DataObservable(); field in ObjectAdapter
207 mObservable.registerObserver(observer); in registerObserver()
214 mObservable.unregisterObserver(observer); in unregisterObserver()
222 return mObservable.hasObserver(); in hasObserver()
229 mObservable.unregisterAll(); in unregisterAllObservers()
239 mObservable.notifyItemRangeChanged(positionStart, itemCount); in notifyItemRangeChanged()
250 mObservable.notifyItemRangeChanged(positionStart, itemCount, payload); in notifyItemRangeChanged()
260 mObservable.notifyItemRangeInserted(positionStart, itemCount); in notifyItemRangeInserted()
270 mObservable.notifyItemRangeRemoved(positionStart, itemCount); in notifyItemRangeRemoved()
280 mObservable.notifyItemMoved(fromPosition, toPosition); in notifyItemMoved()
[all …]
/frameworks/base/core/java/com/android/internal/widget/
DPagerAdapter.java79 private DataSetObservable mObservable = new DataSetObservable(); field in PagerAdapter
276 mObservable.notifyChanged(); in notifyDataSetChanged()
285 mObservable.registerObserver(observer); in registerDataSetObserver()
294 mObservable.unregisterObserver(observer); in unregisterDataSetObserver()
DRecyclerView.java6225 private final AdapterDataObservable mObservable = new AdapterDataObservable(); field in RecyclerView.Adapter
6496 return mObservable.hasObservers(); in hasObservers()
6516 mObservable.registerObserver(observer); in registerAdapterDataObserver()
6530 mObservable.unregisterObserver(observer); in unregisterAdapterDataObserver()
6583 mObservable.notifyChanged(); in notifyDataSetChanged()
6599 mObservable.notifyItemRangeChanged(position, 1); in notifyItemChanged()
6627 mObservable.notifyItemRangeChanged(position, 1, payload); in notifyItemChanged()
6645 mObservable.notifyItemRangeChanged(positionStart, itemCount); in notifyItemRangeChanged()
6675 mObservable.notifyItemRangeChanged(positionStart, itemCount, payload); in notifyItemRangeChanged()
6692 mObservable.notifyItemRangeInserted(position, 1); in notifyItemInserted()
[all …]
/frameworks/support/viewpager/src/main/java/androidx/viewpager/widget/
DPagerAdapter.java82 private final DataSetObservable mObservable = new DataSetObservable(); field in PagerAdapter
294 mObservable.notifyChanged(); in notifyDataSetChanged()
303 mObservable.registerObserver(observer); in registerDataSetObserver()
312 mObservable.unregisterObserver(observer); in unregisterDataSetObserver()
/frameworks/data-binding/extensions/library/src/main/java/android/databinding/
DViewDataBinding.java1149 private final ObservableReference<T> mObservable; field in ViewDataBinding.WeakListener
1157 mObservable = observable; in WeakListener()
1164 mObservable.addListener(mTarget); in setTarget()
1171 mObservable.removeListener(mTarget); in unregister()
/frameworks/support/v7/recyclerview/src/main/java/androidx/recyclerview/widget/
DRecyclerView.java6655 private final AdapterDataObservable mObservable = new AdapterDataObservable(); field in RecyclerView.Adapter
6937 return mObservable.hasObservers(); in hasObservers()
6957 mObservable.registerObserver(observer); in registerAdapterDataObserver()
6971 mObservable.unregisterObserver(observer); in unregisterAdapterDataObserver()
7024 mObservable.notifyChanged(); in notifyDataSetChanged()
7040 mObservable.notifyItemRangeChanged(position, 1); in notifyItemChanged()
7068 mObservable.notifyItemRangeChanged(position, 1, payload); in notifyItemChanged()
7086 mObservable.notifyItemRangeChanged(positionStart, itemCount); in notifyItemRangeChanged()
7117 mObservable.notifyItemRangeChanged(positionStart, itemCount, payload); in notifyItemRangeChanged()
7134 mObservable.notifyItemRangeInserted(position, 1); in notifyItemInserted()
[all …]