/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/UnifiedEmail/src/com/android/mail/ui/ |
D | ConversationCheckedSet.java | 95 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()
|
D | FolderSelectionActivity.java | 76 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);
|
D | AccountController.java | 37 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
|
D | AbstractActivityController.java | 770 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 …]
|
D | ConversationListCallbacks.java | 75 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
|
D | ContactLoaderCallbacks.java | 80 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/ |
D | AccountImageChangeObserver.java | 139 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/ |
D | CallCardFragment.java | 335 final ViewTreeObserver observer = getView().getViewTreeObserver(); in setCallCardVisible() local 336 observer.addOnPreDrawListener(new ViewTreeObserver.OnPreDrawListener() { in setCallCardVisible() 340 if (observer.isAlive()) { in setCallCardVisible() 341 observer.removeOnPreDrawListener(this); in setCallCardVisible() 1035 final ViewTreeObserver observer = getView().getViewTreeObserver(); in animateForNewOutgoingCall() local 1039 observer.addOnGlobalLayoutListener(new OnGlobalLayoutListener() { in animateForNewOutgoingCall() 1042 final ViewTreeObserver observer = getView().getViewTreeObserver(); in animateForNewOutgoingCall() 1043 if (!observer.isAlive()) { in animateForNewOutgoingCall() 1046 observer.removeOnGlobalLayoutListener(this); in animateForNewOutgoingCall() 1133 final ViewTreeObserver observer = parent.getViewTreeObserver(); in onResume() local [all …]
|
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
D | MailObservable.java | 35 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/Messaging/src/com/android/messaging/ui/ |
D | BugleActionBarActivity.java | 155 for (final ImeUtil.ImeStateObserver observer : mImeStateObservers) { in onDisplayHeightChanged() 156 observer.onImeStateChanged(mImeOpen); in onDisplayHeightChanged() 162 public void registerImeStateObserver(final ImeUtil.ImeStateObserver observer) { in registerImeStateObserver() argument 163 mImeStateObservers.add(observer); in registerImeStateObserver() 167 public void unregisterImeStateObserver(final ImeUtil.ImeStateObserver observer) { in unregisterImeStateObserver() argument 168 mImeStateObservers.remove(observer); in unregisterImeStateObserver()
|
/packages/apps/Email/src/com/android/email/ |
D | EmailNotificationController.java | 281 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/ |
D | HeaderGridView.java | 434 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/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 | Suggestions.java | 110 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()
|
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()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
D | MasterImage.java | 223 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/Messaging/src/com/android/messaging/datamodel/ |
D | ParticipantRefresh.java | 171 final ContactContentObserver observer = Factory.get().getContactContentObserver(); in getNeedFullRefresh() local 172 if (observer == null) { in getNeedFullRefresh() 180 observer.initialize(); in getNeedFullRefresh() 186 return observer.getContactChanged(); in getNeedFullRefresh() 190 final ContactContentObserver observer = Factory.get().getContactContentObserver(); in resetNeedFullRefresh() local 191 if (observer != null) { in resetNeedFullRefresh() 192 observer.resetContactChanged(); in resetNeedFullRefresh()
|
/packages/apps/ManagedProvisioning/tests/src/com/android/managedprovisioning/task/ |
D | InstallPackageTaskTest.java | 103 IPackageInstallObserver observer = (IPackageInstallObserver) in testInstall_OnePackage() 108 observer.packageInstalled(TEST_PACKAGE_NAME, in testInstall_OnePackage() 129 IPackageInstallObserver observer = (IPackageInstallObserver) in testInstall_InstallFailedVersionDowngrade() 131 observer.packageInstalled(null, in testInstall_InstallFailedVersionDowngrade()
|
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
D | SectionedAlbumDataAdapter.java | 167 public void registerDataSetObserver(DataSetObserver observer) { in registerDataSetObserver() argument 168 mAlbumData.registerDataSetObserver(observer); in registerDataSetObserver() 172 public void unregisterDataSetObserver(DataSetObserver observer) { in unregisterDataSetObserver() argument 173 mAlbumData.unregisterDataSetObserver(observer); in unregisterDataSetObserver()
|
/packages/apps/UnifiedEmail/src/com/android/mail/browse/ |
D | ConversationPagerController.java | 260 public void registerConversationLoadedObserver(DataSetObserver observer) { in registerConversationLoadedObserver() argument 261 mLoadedObservable.registerObserver(observer); in registerConversationLoadedObserver() 264 public void unregisterConversationLoadedObserver(DataSetObserver observer) { in unregisterConversationLoadedObserver() argument 265 mLoadedObservable.unregisterObserver(observer); in unregisterConversationLoadedObserver()
|
/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()
|