/packages/apps/Mms/src/com/android/mms/model/ |
D | Model.java | 26 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 …]
|
D | LayoutModel.java | 226 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()
|
D | SlideshowModel.java | 408 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 …]
|
D | SlideModel.java | 172 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/ |
D | MockObserverNode.java | 26 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 …]
|
D | MockContentResolver2.java | 102 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()
|
D | ProviderTestCase3.java | 172 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/ |
D | CompositeListAdapterTest.java | 215 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/ |
D | ExtendedCursor.java | 136 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/ |
D | Observable.java | 48 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/ |
D | SuggestionCursorWrapper.java | 63 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()
|
D | ListSuggestionCursor.java | 119 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()
|
D | SearchableCorpora.java | 143 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()
|
D | SuggestionCursor.java | 71 void registerDataSetObserver(DataSetObserver observer); in registerDataSetObserver() argument 79 void unregisterDataSetObserver(DataSetObserver observer); in unregisterDataSetObserver() argument
|
D | Corpora.java | 87 void registerDataSetObserver(DataSetObserver observer); in registerDataSetObserver() argument 95 void unregisterDataSetObserver(DataSetObserver observer); in unregisterDataSetObserver() argument
|
D | Suggestions.java | 227 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/ |
D | MockCorpora.java | 113 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/ |
D | SuggestionsProvider.java | 399 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/ |
D | SectionedAlbumDataAdapter.java | 160 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/ |
D | DateSortedExpandableListAdapter.java | 329 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/ |
D | SortCursor.java | 275 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/ |
D | DirectPresetCache.java | 79 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/ |
D | NotificationController.java | 355 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/ |
D | AbstractGoogleSourceResult.java | 72 public void registerDataSetObserver(DataSetObserver observer) { in registerDataSetObserver() argument 75 public void unregisterDataSetObserver(DataSetObserver observer) { in unregisterDataSetObserver() argument
|
/packages/apps/Calculator/src/com/android/calculator2/ |
D | History.java | 49 void setObserver(BaseAdapter observer) { in setObserver() argument 50 mObserver = observer; in setObserver()
|