Home
last modified time | relevance | path

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

12

/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 …]
DLayoutModel.java226 IModelChangedObserver observer) { in registerModelChangedObserverInDescendants() argument
228 mRootLayout.registerModelChangedObserver(observer); in registerModelChangedObserverInDescendants()
232 mImageRegion.registerModelChangedObserver(observer); in registerModelChangedObserverInDescendants()
236 mTextRegion.registerModelChangedObserver(observer); in registerModelChangedObserverInDescendants()
242 IModelChangedObserver observer) { in unregisterModelChangedObserverInDescendants() argument
244 mRootLayout.unregisterModelChangedObserver(observer); in unregisterModelChangedObserverInDescendants()
248 mImageRegion.unregisterModelChangedObserver(observer); in unregisterModelChangedObserverInDescendants()
252 mTextRegion.unregisterModelChangedObserver(observer); in unregisterModelChangedObserverInDescendants()
DSlideshowModel.java408 for (IModelChangedObserver observer : mModelChangedObservers) { in add()
409 object.registerModelChangedObserver(observer); in add()
425 for (IModelChangedObserver observer : mModelChangedObservers) { in clear()
426 slide.unregisterModelChangedObserver(observer); in clear()
490 for (IModelChangedObserver observer : mModelChangedObservers) { in add()
491 object.registerModelChangedObserver(observer); in add()
555 for (IModelChangedObserver observer : mModelChangedObservers) { in set()
556 object.registerModelChangedObserver(observer); in set()
570 IModelChangedObserver observer) { in registerModelChangedObserverInDescendants() argument
571 mLayout.registerModelChangedObserver(observer); in registerModelChangedObserverInDescendants()
[all …]
DSlideModel.java172 for (IModelChangedObserver observer : mModelChangedObservers) { in internalAddOrReplace()
173 media.registerModelChangedObserver(observer); in internalAddOrReplace()
441 IModelChangedObserver observer) { in registerModelChangedObserverInDescendants() argument
443 media.registerModelChangedObserver(observer); in registerModelChangedObserverInDescendants()
449 IModelChangedObserver observer) { in unregisterModelChangedObserverInDescendants() argument
451 media.unregisterModelChangedObserver(observer); in unregisterModelChangedObserverInDescendants()
/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/Contacts/src/com/android/contacts/calllog/
DExtendedCursor.java136 public void registerContentObserver(ContentObserver observer) { in registerContentObserver() argument
137 mCursor.registerContentObserver(observer); in registerContentObserver()
141 public void unregisterContentObserver(ContentObserver observer) { in unregisterContentObserver() argument
142 mCursor.unregisterContentObserver(observer); in unregisterContentObserver()
146 public void registerDataSetObserver(DataSetObserver observer) { in registerDataSetObserver() argument
147 mCursor.registerDataSetObserver(observer); in registerDataSetObserver()
151 public void unregisterDataSetObserver(DataSetObserver observer) { in unregisterDataSetObserver() argument
152 mCursor.unregisterDataSetObserver(observer); in unregisterDataSetObserver()
/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()
DListSuggestionCursor.java119 public void registerDataSetObserver(DataSetObserver observer) { in registerDataSetObserver() argument
120 mDataSetObservable.registerObserver(observer); in registerDataSetObserver()
129 public void unregisterDataSetObserver(DataSetObserver observer) { in unregisterDataSetObserver() argument
130 mDataSetObservable.unregisterObserver(observer); in unregisterDataSetObserver()
DSearchableCorpora.java143 public void registerDataSetObserver(DataSetObserver observer) { in registerDataSetObserver() argument
144 mDataSetObservable.registerObserver(observer); in registerDataSetObserver()
147 public void unregisterDataSetObserver(DataSetObserver observer) { in unregisterDataSetObserver() argument
148 mDataSetObservable.unregisterObserver(observer); in unregisterDataSetObserver()
DSuggestionCursor.java71 void registerDataSetObserver(DataSetObserver observer); in registerDataSetObserver() argument
79 void unregisterDataSetObserver(DataSetObserver observer); in unregisterDataSetObserver() argument
DCorpora.java87 void registerDataSetObserver(DataSetObserver observer); in registerDataSetObserver() argument
95 void unregisterDataSetObserver(DataSetObserver observer); in unregisterDataSetObserver() argument
DSuggestions.java227 public void registerDataSetObserver(DataSetObserver observer) { in registerDataSetObserver() argument
231 mDataSetObservable.registerObserver(observer); in registerDataSetObserver()
238 public void unregisterDataSetObserver(DataSetObserver observer) { in unregisterDataSetObserver() argument
239 mDataSetObservable.unregisterObserver(observer); in unregisterDataSetObserver()
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/
DMockCorpora.java113 public void registerDataSetObserver(DataSetObserver observer) { in registerDataSetObserver() argument
114 mDataSetObservable.registerObserver(observer); in registerDataSetObserver()
117 public void unregisterDataSetObserver(DataSetObserver observer) { in unregisterDataSetObserver() argument
118 mDataSetObservable.unregisterObserver(observer); in unregisterDataSetObserver()
/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()
419 public void unregisterContentObserver(ContentObserver observer) { in unregisterContentObserver() argument
420 mDatabaseCursor.unregisterContentObserver(observer); in unregisterContentObserver()
423 public void unregisterDataSetObserver(DataSetObserver observer) { in unregisterDataSetObserver() argument
424 mDatabaseCursor.unregisterDataSetObserver(observer); in unregisterDataSetObserver()
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DSectionedAlbumDataAdapter.java160 public void registerDataSetObserver(DataSetObserver observer) { in registerDataSetObserver() argument
161 mAlbumData.registerDataSetObserver(observer); in registerDataSetObserver()
165 public void unregisterDataSetObserver(DataSetObserver observer) { in unregisterDataSetObserver() argument
166 mAlbumData.unregisterDataSetObserver(observer); in unregisterDataSetObserver()
/packages/providers/DownloadProvider/ui/src/com/android/providers/downloads/ui/
DDateSortedExpandableListAdapter.java329 public void registerDataSetObserver(DataSetObserver observer) { in registerDataSetObserver() argument
330 mObservers.add(observer); in registerDataSetObserver()
333 public void unregisterDataSetObserver(DataSetObserver observer) { in unregisterDataSetObserver() argument
334 mObservers.remove(observer); in unregisterDataSetObserver()
/packages/apps/Music/src/com/android/music/
DSortCursor.java275 public void registerDataSetObserver(DataSetObserver observer) { in registerDataSetObserver() argument
279 mCursors[i].registerDataSetObserver(observer); in registerDataSetObserver()
285 public void unregisterDataSetObserver(DataSetObserver observer) { in unregisterDataSetObserver() argument
289 mCursors[i].unregisterDataSetObserver(observer); in unregisterDataSetObserver()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/cache/
DDirectPresetCache.java79 public void addObserver(ImageShow observer) { in addObserver() argument
80 if (!mObservers.contains(observer)) { in addObserver()
81 mObservers.add(observer); in addObserver()
/packages/apps/Email/src/com/android/email/
DNotificationController.java355 ContentObserver observer = new MessageContentObserver( in registerMessageNotification() local
357 resolver.registerContentObserver(Message.NOTIFIER_URI, true, observer); in registerMessageNotification()
358 mNotificationMap.put(accountId, observer); in registerMessageNotification()
360 observer.onChange(true); in registerMessageNotification()
379 for (ContentObserver observer : mNotificationMap.values()) { in unregisterMessageNotification()
380 resolver.unregisterContentObserver(observer); in unregisterMessageNotification()
387 ContentObserver observer = mNotificationMap.remove(accountId); in unregisterMessageNotification() local
388 if (observer != null) { in unregisterMessageNotification()
389 resolver.unregisterContentObserver(observer); in unregisterMessageNotification()
828 ContentObserver observer = sInstance.mNotificationMap.get(mAccountId); in onChange() local
[all …]
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/google/
DAbstractGoogleSourceResult.java72 public void registerDataSetObserver(DataSetObserver observer) { in registerDataSetObserver() argument
75 public void unregisterDataSetObserver(DataSetObserver observer) { in unregisterDataSetObserver() argument
/packages/apps/Calculator/src/com/android/calculator2/
DHistory.java49 void setObserver(BaseAdapter observer) { in setObserver() argument
50 mObserver = observer; in setObserver()

12