/frameworks/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/ |
D | ObservableArrayMapTest.java | 31 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 …]
|
D | ObservableArrayListTest.java | 38 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 …]
|
D | BaseObservableTest.java | 27 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/v17/leanback/src/android/support/v17/leanback/widget/ |
D | ObjectAdapter.java | 100 private final DataObservable mObservable = new DataObservable(); field in ObjectAdapter 162 mObservable.registerObserver(observer); in registerObserver() 169 mObservable.unregisterObserver(observer); in unregisterObserver() 176 mObservable.unregisterAll(); in unregisterAllObservers() 180 mObservable.notifyItemRangeChanged(positionStart, itemCount); in notifyItemRangeChanged() 184 mObservable.notifyItemRangeInserted(positionStart, itemCount); in notifyItemRangeInserted() 188 mObservable.notifyItemRangeRemoved(positionStart, itemCount); in notifyItemRangeRemoved() 192 mObservable.notifyChanged(); in notifyChanged()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | PagerAdapter.java | 79 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()
|
/frameworks/support/v4/java/android/support/v4/view/ |
D | PagerAdapter.java | 79 private final DataSetObservable mObservable = new DataSetObservable(); field in PagerAdapter 287 mObservable.notifyChanged(); in notifyDataSetChanged() 296 mObservable.registerObserver(observer); in registerDataSetObserver() 305 mObservable.unregisterObserver(observer); in unregisterDataSetObserver()
|
/frameworks/data-binding/extensions/library/src/main/java/android/databinding/ |
D | ViewDataBinding.java | 1077 private final ObservableReference<T> mObservable; field in ViewDataBinding.WeakListener 1085 mObservable = observable; in WeakListener() 1092 mObservable.addListener(mTarget); in setTarget() 1099 mObservable.removeListener(mTarget); in unregister()
|
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/ |
D | RecyclerView.java | 5690 private final AdapterDataObservable mObservable = new AdapterDataObservable(); field in RecyclerView.Adapter 5957 return mObservable.hasObservers(); in hasObservers() 5977 mObservable.registerObserver(observer); in registerAdapterDataObserver() 5991 mObservable.unregisterObserver(observer); in unregisterAdapterDataObserver() 6044 mObservable.notifyChanged(); in notifyDataSetChanged() 6060 mObservable.notifyItemRangeChanged(position, 1); in notifyItemChanged() 6088 mObservable.notifyItemRangeChanged(position, 1, payload); in notifyItemChanged() 6106 mObservable.notifyItemRangeChanged(positionStart, itemCount); in notifyItemRangeChanged() 6136 mObservable.notifyItemRangeChanged(positionStart, itemCount, payload); in notifyItemRangeChanged() 6153 mObservable.notifyItemRangeInserted(position, 1); in notifyItemInserted() [all …]
|