Home
last modified time | relevance | path

Searched refs:observer (Results 1 – 25 of 77) sorted by relevance

1234

/packages/apps/Browser/tests/src/com/android/browser/tests/utils/
DMockObserverNode.java26 public final ContentObserver observer; field in MockObserverNode.MockObserverEntry
30 observer = o; in MockObserverEntry()
66 public void addObserver(Uri uri, ContentObserver observer, in addObserver() argument
68 addObserver(uri, 0, observer, notifyForDescendents); in addObserver()
71 private void addObserver(Uri uri, int index, ContentObserver observer, in addObserver() argument
75 mObservers.add(new MockObserverEntry(observer, notifyForDescendents)); in addObserver()
88 node.addObserver(uri, index + 1, observer, notifyForDescendents); in addObserver()
96 node.addObserver(uri, index + 1, observer, notifyForDescendents); in addObserver()
99 public boolean removeObserver(ContentObserver observer) { in removeObserver() argument
102 boolean empty = mChildren.get(i).removeObserver(observer); in removeObserver()
[all …]
DMockContentResolver2.java102 public void notifyChange(Uri uri, ContentObserver observer, in notifyChange() argument
104 mRootNode.notifyMyObservers(uri, 0, observer, false); in notifyChange()
108 ContentObserver observer) { in safeRegisterContentObserver() argument
109 mRootNode.addObserver(uri, observer, notifyForDescendents); in safeRegisterContentObserver()
112 public void safeUnregisterContentObserver(ContentObserver observer) { in safeUnregisterContentObserver() argument
113 mRootNode.removeObserver(observer); in safeUnregisterContentObserver()
DProviderTestCase3.java172 ContentObserver observer) { in registerContentObserver() argument
173 mResolver.safeRegisterContentObserver(uri, notifyForDescendents, observer); in registerContentObserver()
176 public void unregisterContentObserver(ContentObserver observer) { in unregisterContentObserver() argument
177 mResolver.safeUnregisterContentObserver(observer); in unregisterContentObserver()
/packages/apps/Contacts/tests/src/com/android/contacts/widget/
DCompositeListAdapterTest.java215 TestDataSetObserver observer = new TestDataSetObserver(); in testNotifyDataSetChangedPropagated() local
216 adapter.registerDataSetObserver(observer); in testNotifyDataSetChangedPropagated()
219 assertEquals(1, observer.changeCount); in testNotifyDataSetChangedPropagated()
220 assertEquals(0, observer.invalidationCount); in testNotifyDataSetChangedPropagated()
227 assertEquals(2, observer.changeCount); in testNotifyDataSetChangedPropagated()
228 assertEquals(0, observer.invalidationCount); in testNotifyDataSetChangedPropagated()
241 TestDataSetObserver observer = new TestDataSetObserver(); in testNotifyDataSetChangedOnAddingAdapter() local
242 adapter.registerDataSetObserver(observer); in testNotifyDataSetChangedOnAddingAdapter()
245 assertEquals(1, observer.changeCount); in testNotifyDataSetChangedOnAddingAdapter()
246 assertEquals(0, observer.invalidationCount); in testNotifyDataSetChangedOnAddingAdapter()
[all …]
/packages/apps/Mms/src/com/android/mms/model/
DModel.java26 public void registerModelChangedObserver(IModelChangedObserver observer) { in registerModelChangedObserver() argument
27 if (!mModelChangedObservers.contains(observer)) { in registerModelChangedObserver()
28 mModelChangedObservers.add(observer); in registerModelChangedObserver()
29 registerModelChangedObserverInDescendants(observer); in registerModelChangedObserver()
33 public void unregisterModelChangedObserver(IModelChangedObserver observer) { in unregisterModelChangedObserver() argument
34 mModelChangedObservers.remove(observer); in unregisterModelChangedObserver()
35 unregisterModelChangedObserverInDescendants(observer); in unregisterModelChangedObserver()
44 for (IModelChangedObserver observer : mModelChangedObservers) { in notifyModelChanged()
45 observer.onModelChanged(this, dataChanged); in notifyModelChanged()
50 IModelChangedObserver observer) { in registerModelChangedObserverInDescendants() argument
[all …]
DSlideshowModel.java411 for (IModelChangedObserver observer : mModelChangedObservers) { in add()
412 object.registerModelChangedObserver(observer); in add()
428 for (IModelChangedObserver observer : mModelChangedObservers) { in clear()
429 slide.unregisterModelChangedObserver(observer); in clear()
493 for (IModelChangedObserver observer : mModelChangedObservers) { in add()
494 object.registerModelChangedObserver(observer); in add()
558 for (IModelChangedObserver observer : mModelChangedObservers) { in set()
559 object.registerModelChangedObserver(observer); in set()
573 IModelChangedObserver observer) { in registerModelChangedObserverInDescendants() argument
574 mLayout.registerModelChangedObserver(observer); in registerModelChangedObserverInDescendants()
[all …]
DLayoutModel.java231 IModelChangedObserver observer) { in registerModelChangedObserverInDescendants() argument
233 mRootLayout.registerModelChangedObserver(observer); in registerModelChangedObserverInDescendants()
237 mImageRegion.registerModelChangedObserver(observer); in registerModelChangedObserverInDescendants()
241 mTextRegion.registerModelChangedObserver(observer); in registerModelChangedObserverInDescendants()
247 IModelChangedObserver observer) { in unregisterModelChangedObserverInDescendants() argument
249 mRootLayout.unregisterModelChangedObserver(observer); in unregisterModelChangedObserverInDescendants()
253 mImageRegion.unregisterModelChangedObserver(observer); in unregisterModelChangedObserverInDescendants()
257 mTextRegion.unregisterModelChangedObserver(observer); in unregisterModelChangedObserverInDescendants()
DSlideModel.java173 for (IModelChangedObserver observer : mModelChangedObservers) { in internalAddOrReplace()
174 media.registerModelChangedObserver(observer); in internalAddOrReplace()
442 IModelChangedObserver observer) { in registerModelChangedObserverInDescendants() argument
444 media.registerModelChangedObserver(observer); in registerModelChangedObserverInDescendants()
450 IModelChangedObserver observer) { in unregisterModelChangedObserverInDescendants() argument
452 media.unregisterModelChangedObserver(observer); in unregisterModelChangedObserverInDescendants()
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DConversationCheckedSet.java95 public void addObserver(ConversationSetObserver observer) { in addObserver() argument
97 mObservers.add(observer); in addObserver()
148 for (ConversationSetObserver observer : observers) { in dispatchOnBecomeUnempty()
149 observer.onSetPopulated(this); in dispatchOnBecomeUnempty()
158 for (ConversationSetObserver observer : observers) { in dispatchOnChange()
159 observer.onSetChanged(this); in dispatchOnChange()
166 for (ConversationSetObserver observer : observers) { in dispatchOnEmpty()
167 observer.onSetEmpty(); in dispatchOnEmpty()
227 public void removeObserver(ConversationSetObserver observer) { in removeObserver() argument
229 mObservers.remove(observer); in removeObserver()
DFolderSelectionActivity.java76 public void registerAccountObserver(DataSetObserver observer) {
81 public void unregisterAccountObserver(DataSetObserver observer) {
91 public void registerAllAccountObserver(DataSetObserver observer) {
96 public void unregisterAllAccountObserver(DataSetObserver observer) {
118 public void registerFolderOrAccountChangedObserver(final DataSetObserver observer) {
119 mFolderOrAccountObservers.registerObserver(observer);
123 public void unregisterFolderOrAccountChangedObserver(final DataSetObserver observer) {
124 mFolderOrAccountObservers.unregisterObserver(observer);
DAccountController.java37 void registerAccountObserver(DataSetObserver observer); in registerAccountObserver() argument
42 void unregisterAccountObserver(DataSetObserver observer); in unregisterAccountObserver() argument
56 void registerAllAccountObserver(DataSetObserver observer); in registerAllAccountObserver() argument
61 void unregisterAllAccountObserver(DataSetObserver observer); in unregisterAllAccountObserver() argument
81 void registerFolderOrAccountChangedObserver(final DataSetObserver observer); in registerFolderOrAccountChangedObserver() argument
86 void unregisterFolderOrAccountChangedObserver(final DataSetObserver observer); in unregisterFolderOrAccountChangedObserver() argument
DAbstractActivityController.java770 public void registerAllAccountObserver(DataSetObserver observer) { in registerAllAccountObserver() argument
771 mAllAccountObservers.registerObserver(observer); in registerAllAccountObserver()
775 public void unregisterAllAccountObserver(DataSetObserver observer) { in unregisterAllAccountObserver() argument
776 mAllAccountObservers.unregisterObserver(observer); in unregisterAllAccountObserver()
790 public void registerFolderOrAccountChangedObserver(final DataSetObserver observer) { in registerFolderOrAccountChangedObserver() argument
791 mFolderOrAccountObservers.registerObserver(observer); in registerFolderOrAccountChangedObserver()
795 public void unregisterFolderOrAccountChangedObserver(final DataSetObserver observer) { in unregisterFolderOrAccountChangedObserver() argument
796 mFolderOrAccountObservers.unregisterObserver(observer); in unregisterFolderOrAccountChangedObserver()
2759 public void registerConversationListObserver(DataSetObserver observer) {
2760 mConversationListObservable.registerObserver(observer);
[all …]
DConversationListCallbacks.java75 void registerConversationLoadedObserver(DataSetObserver observer); in registerConversationLoadedObserver() argument
76 void unregisterConversationLoadedObserver(DataSetObserver observer); in unregisterConversationLoadedObserver() argument
83 void registerConversationListObserver(DataSetObserver observer); in registerConversationListObserver() argument
84 void unregisterConversationListObserver(DataSetObserver observer); in unregisterConversationListObserver() argument
DContactLoaderCallbacks.java80 public void registerObserver(DataSetObserver observer) { in registerObserver() argument
81 mObservable.registerObserver(observer); in registerObserver()
85 public void unregisterObserver(DataSetObserver observer) { in unregisterObserver() argument
86 mObservable.unregisterObserver(observer); in unregisterObserver()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/
DAccountImageChangeObserver.java139 ContactChangeContentObserver observer; in registerChangeUriIfPresent() local
142 observer = mObserverMap.get(thisAccount.name); in registerChangeUriIfPresent()
143 if (observer != null) { in registerChangeUriIfPresent()
144 observer.addUriToNotifyList(changeNotifUri); in registerChangeUriIfPresent()
151 observer = new ContactChangeContentObserver(context, thisAccount); in registerChangeUriIfPresent()
152 mObserverMap.put(thisAccount.name, observer); in registerChangeUriIfPresent()
153 observer.addUriToNotifyList(changeNotifUri); in registerChangeUriIfPresent()
155 observer); in registerChangeUriIfPresent()
/packages/apps/InCallUI/src/com/android/incallui/
DCallCardFragment.java276 final ViewTreeObserver observer = getView().getViewTreeObserver(); in setCallCardVisible() local
277 observer.addOnPreDrawListener(new ViewTreeObserver.OnPreDrawListener() { in setCallCardVisible()
281 if (observer.isAlive()) { in setCallCardVisible()
282 observer.removeOnPreDrawListener(this); in setCallCardVisible()
849 final ViewTreeObserver observer = getView().getViewTreeObserver(); in animateForNewOutgoingCall() local
853 observer.addOnGlobalLayoutListener(new OnGlobalLayoutListener() { in animateForNewOutgoingCall()
856 final ViewTreeObserver observer = getView().getViewTreeObserver(); in animateForNewOutgoingCall()
857 if (!observer.isAlive()) { in animateForNewOutgoingCall()
860 observer.removeOnGlobalLayoutListener(this); in animateForNewOutgoingCall()
930 final ViewTreeObserver observer = parent.getViewTreeObserver(); in onResume() local
[all …]
DVideoCallFragment.java337 final ViewTreeObserver observer = view.getViewTreeObserver(); in onCreateView() local
338 observer.addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() { in onCreateView()
351 ViewTreeObserver observer = view.getViewTreeObserver(); in onCreateView()
352 if (observer.isAlive()) { in onCreateView()
353 observer.removeOnGlobalLayoutListener(this); in onCreateView()
/packages/apps/Mms/src/com/android/mms/
DSuggestionsProvider.java399 public void registerContentObserver(ContentObserver observer) { in registerContentObserver() argument
400 mDatabaseCursor.registerContentObserver(observer); in registerContentObserver()
403 public void registerDataSetObserver(DataSetObserver observer) { in registerDataSetObserver() argument
404 mDatabaseCursor.registerDataSetObserver(observer); in registerDataSetObserver()
423 public void unregisterContentObserver(ContentObserver observer) { in unregisterContentObserver() argument
424 mDatabaseCursor.unregisterContentObserver(observer); in unregisterContentObserver()
427 public void unregisterDataSetObserver(DataSetObserver observer) { in unregisterDataSetObserver() argument
428 mDatabaseCursor.unregisterDataSetObserver(observer); in unregisterDataSetObserver()
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
DMailObservable.java35 public void registerObserver(DataSetObserver observer) { in registerObserver() argument
37 super.registerObserver(observer); in registerObserver()
39 mName, observer, count, mObservers.size()); in registerObserver()
43 public void unregisterObserver(DataSetObserver observer) { in unregisterObserver() argument
45 super.unregisterObserver(observer); in unregisterObserver()
47 mName, observer, count, mObservers.size()); in unregisterObserver()
/packages/apps/Email/src/com/android/email/
DEmailNotificationController.java281 ContentObserver observer = new MessageContentObserver( in registerMessageNotification() local
283 resolver.registerContentObserver(Message.NOTIFIER_URI, true, observer); in registerMessageNotification()
284 mNotificationMap.put(accountId, observer); in registerMessageNotification()
286 observer.onChange(true); in registerMessageNotification()
303 for (ContentObserver observer : mNotificationMap.values()) { in unregisterMessageNotification()
304 resolver.unregisterContentObserver(observer); in unregisterMessageNotification()
309 ContentObserver observer = mNotificationMap.remove(accountId); in unregisterMessageNotification() local
310 if (observer != null) { in unregisterMessageNotification()
311 resolver.unregisterContentObserver(observer); in unregisterMessageNotification()
/packages/apps/Gallery2/src/com/android/photos/views/
DHeaderGridView.java434 public void registerDataSetObserver(DataSetObserver observer) { in registerDataSetObserver() argument
435 mDataSetObservable.registerObserver(observer); in registerDataSetObserver()
437 mAdapter.registerDataSetObserver(observer); in registerDataSetObserver()
442 public void unregisterDataSetObserver(DataSetObserver observer) { in unregisterDataSetObserver() argument
443 mDataSetObservable.unregisterObserver(observer); in unregisterDataSetObserver()
445 mAdapter.unregisterDataSetObserver(observer); in unregisterDataSetObserver()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DMasterImage.java223 public void addObserver(ImageShow observer) { in addObserver() argument
224 if (mObservers.contains(observer)) { in addObserver()
227 mObservers.add(observer); in addObserver()
230 public void removeObserver(ImageShow observer) { in removeObserver() argument
231 mObservers.remove(observer); in removeObserver()
480 for (ImageShow observer : mObservers) { in notifyObservers()
481 observer.invalidate(); in notifyObservers()
/packages/apps/Mms/src/com/android/mms/transaction/
DObservable.java48 public void attach(Observer observer) { in attach() argument
49 mObservers.add(observer); in attach()
57 public void detach(Observer observer) { in detach() argument
61 mObservers.remove(observer); in detach()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DSuggestionCursorWrapper.java63 public void registerDataSetObserver(DataSetObserver observer) { in registerDataSetObserver() argument
65 mCursor.registerDataSetObserver(observer); in registerDataSetObserver()
69 public void unregisterDataSetObserver(DataSetObserver observer) { in unregisterDataSetObserver() argument
71 mCursor.unregisterDataSetObserver(observer); in unregisterDataSetObserver()
DSuggestions.java110 public void registerDataSetObserver(DataSetObserver observer) { in registerDataSetObserver() argument
114 mDataSetObservable.registerObserver(observer); in registerDataSetObserver()
121 public void unregisterDataSetObserver(DataSetObserver observer) { in unregisterDataSetObserver() argument
122 mDataSetObservable.unregisterObserver(observer); in unregisterDataSetObserver()

1234