/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | NetworkManagementServiceTest.java | 89 BaseNetworkObserver observer = mock(BaseNetworkObserver.class); in testNetworkObservers() local 90 doReturn(new Binder()).when(observer).asBinder(); // Used by registerObserver. in testNetworkObservers() 91 mNMService.registerObserver(observer); in testNetworkObservers() 95 reset(observer); in testNetworkObservers() 105 expectSoon(observer).interfaceAdded("rmnet12"); in testNetworkObservers() 108 expectSoon(observer).interfaceRemoved("eth1"); in testNetworkObservers() 120 expectSoon(observer).interfaceStatusChanged("clat4", true); in testNetworkObservers() 123 expectSoon(observer).interfaceLinkStateChanged("rmnet0", false); in testNetworkObservers() 132 expectSoon(observer).limitReached("data", "rmnet_usb0"); in testNetworkObservers() 146 expectSoon(observer).interfaceClassDataActivityChanged("rmnet0", true, 0); in testNetworkObservers() [all …]
|
D | MountServiceTests.java | 144 final ObbObserver observer = new ObbObserver(); in mountObb() local 146 sm.mountObb(file.getPath(), null, observer)); in mountObb() 149 observer.waitForCompletion()); in mountObb() 156 file.getPath(), observer.getPath()); in mountObb() 158 assertEquals(expectedState, observer.getState()); in mountObb() 165 final ObbObserver observer = new ObbObserver(); in mountObbWithoutWait() local 167 .getPath(), null, observer)); in mountObbWithoutWait() 169 return observer; in mountObbWithoutWait() 173 final ObbObserver observer, int expectedState, boolean checkPath) { in waitForObbActionCompletion() argument 174 assertTrue("Mount should have completed", observer.waitForCompletion()); in waitForObbActionCompletion() [all …]
|
/frameworks/base/core/java/android/database/ |
D | Observable.java | 43 public void registerObserver(T observer) { in registerObserver() argument 44 if (observer == null) { in registerObserver() 48 if (mObservers.contains(observer)) { in registerObserver() 49 throw new IllegalStateException("Observer " + observer + " is already registered."); in registerObserver() 51 mObservers.add(observer); in registerObserver() 62 public void unregisterObserver(T observer) { in unregisterObserver() argument 63 if (observer == null) { in unregisterObserver() 67 int index = mObservers.indexOf(observer); in unregisterObserver() 69 throw new IllegalStateException("Observer " + observer + " was not registered."); in unregisterObserver()
|
D | ContentObservable.java | 31 public void registerObserver(ContentObserver observer) { in registerObserver() argument 32 super.registerObserver(observer); in registerObserver() 68 for (ContentObserver observer : mObservers) { in dispatchChange() 69 if (!selfChange || observer.deliverSelfNotifications()) { in dispatchChange() 70 observer.dispatchChange(selfChange, uri); in dispatchChange() 86 for (ContentObserver observer : mObservers) { in notifyChange() 87 observer.onChange(selfChange, null); in notifyChange()
|
D | CursorWrapper.java | 177 public void registerContentObserver(ContentObserver observer) { in registerContentObserver() argument 178 mCursor.registerContentObserver(observer); in registerContentObserver() 181 public void registerDataSetObserver(DataSetObserver observer) { in registerDataSetObserver() argument 182 mCursor.registerDataSetObserver(observer); in registerDataSetObserver() 201 public void unregisterContentObserver(ContentObserver observer) { in unregisterContentObserver() argument 202 mCursor.unregisterContentObserver(observer); in unregisterContentObserver() 205 public void unregisterDataSetObserver(DataSetObserver observer) { in unregisterDataSetObserver() argument 206 mCursor.unregisterDataSetObserver(observer); in unregisterDataSetObserver()
|
D | MergeCursor.java | 181 public void registerContentObserver(ContentObserver observer) { in registerContentObserver() argument 185 mCursors[i].registerContentObserver(observer); in registerContentObserver() 190 public void unregisterContentObserver(ContentObserver observer) { in unregisterContentObserver() argument 194 mCursors[i].unregisterContentObserver(observer); in unregisterContentObserver() 200 public void registerDataSetObserver(DataSetObserver observer) { in registerDataSetObserver() argument 204 mCursors[i].registerDataSetObserver(observer); in registerDataSetObserver() 210 public void unregisterDataSetObserver(DataSetObserver observer) { in unregisterDataSetObserver() argument 214 mCursors[i].unregisterDataSetObserver(observer); in unregisterDataSetObserver()
|
D | Cursor.java | 390 void registerContentObserver(ContentObserver observer); in registerContentObserver() argument 399 void unregisterContentObserver(ContentObserver observer); in unregisterContentObserver() argument 409 void registerDataSetObserver(DataSetObserver observer); in registerDataSetObserver() argument 418 void unregisterDataSetObserver(DataSetObserver observer); in unregisterDataSetObserver() argument
|
D | CursorToBulkCursorAdaptor.java | 88 public CursorToBulkCursorAdaptor(Cursor cursor, IContentObserver observer, in CursorToBulkCursorAdaptor() argument 98 createAndRegisterObserverProxyLocked(observer); in CursorToBulkCursorAdaptor() 219 public int requery(IContentObserver observer) { in requery() argument 237 createAndRegisterObserverProxyLocked(observer); in requery() 248 private void createAndRegisterObserverProxyLocked(IContentObserver observer) { in createAndRegisterObserverProxyLocked() argument 252 mObserver = new ContentObserverProxy(observer, this); in createAndRegisterObserverProxyLocked()
|
D | AbstractCursor.java | 312 public void registerContentObserver(ContentObserver observer) { in registerContentObserver() argument 313 mContentObservable.registerObserver(observer); in registerContentObserver() 316 public void unregisterContentObserver(ContentObserver observer) { in unregisterContentObserver() argument 319 mContentObservable.unregisterObserver(observer); in unregisterContentObserver() 323 public void registerDataSetObserver(DataSetObserver observer) { in registerDataSetObserver() argument 324 mDataSetObservable.registerObserver(observer); in registerDataSetObserver() 327 public void unregisterDataSetObserver(DataSetObserver observer) { in unregisterDataSetObserver() argument 328 mDataSetObservable.unregisterObserver(observer); in unregisterDataSetObserver()
|
/frameworks/base/core/java/android/view/ |
D | ViewTreeObserver.java | 313 void merge(ViewTreeObserver observer) { in merge() argument 314 if (observer.mOnWindowAttachListeners != null) { in merge() 316 mOnWindowAttachListeners.addAll(observer.mOnWindowAttachListeners); in merge() 318 mOnWindowAttachListeners = observer.mOnWindowAttachListeners; in merge() 322 if (observer.mOnWindowFocusListeners != null) { in merge() 324 mOnWindowFocusListeners.addAll(observer.mOnWindowFocusListeners); in merge() 326 mOnWindowFocusListeners = observer.mOnWindowFocusListeners; in merge() 330 if (observer.mOnGlobalFocusListeners != null) { in merge() 332 mOnGlobalFocusListeners.addAll(observer.mOnGlobalFocusListeners); in merge() 334 mOnGlobalFocusListeners = observer.mOnGlobalFocusListeners; in merge() [all …]
|
D | WindowId.java | 131 public void registerFocusObserver(FocusObserver observer) { in registerFocusObserver() argument 132 synchronized (observer.mRegistrations) { in registerFocusObserver() 133 if (observer.mRegistrations.containsKey(mToken.asBinder())) { in registerFocusObserver() 137 observer.mRegistrations.put(mToken.asBinder(), this); in registerFocusObserver() 139 mToken.registerFocusObserver(observer.mIObserver); in registerFocusObserver() 148 public void unregisterFocusObserver(FocusObserver observer) { in unregisterFocusObserver() argument 149 synchronized (observer.mRegistrations) { in unregisterFocusObserver() 150 if (observer.mRegistrations.remove(mToken.asBinder()) == null) { in unregisterFocusObserver() 154 mToken.unregisterFocusObserver(observer.mIObserver); in unregisterFocusObserver()
|
/frameworks/base/core/java/android/os/ |
D | FileObserver.java | 88 public int startWatching(String path, int mask, FileObserver observer) { in startWatching() argument 94 m_observers.put(i, new WeakReference(observer)); in startWatching() 107 FileObserver observer = null; in onEvent() local 112 observer = (FileObserver) weak.get(); in onEvent() 113 if (observer == null) { in onEvent() 120 if (observer != null) { in onEvent() 122 observer.onEvent(mask, path); in onEvent() 124 Log.wtf(LOG_TAG, "Unhandled exception in FileObserver " + observer, throwable); in onEvent()
|
D | UEventObserver.java | 198 final UEventObserver observer = in sendEvent() local 200 mTempObserversToSignal.add(observer); in sendEvent() 209 final UEventObserver observer = mTempObserversToSignal.get(i); in sendEvent() local 210 observer.onUEvent(event); in sendEvent() 216 public void addObserver(String match, UEventObserver observer) { in addObserver() argument 219 mKeysAndObservers.add(observer); in addObserver() 225 public void removeObserver(UEventObserver observer) { in removeObserver() argument 228 if (mKeysAndObservers.get(i + 1) == observer) { in removeObserver()
|
/frameworks/base/services/core/java/com/android/server/content/ |
D | ContentService.java | 170 IContentObserver observer, int userHandle) { in registerContentObserver() argument 171 if (observer == null || uri == null) { in registerContentObserver() 188 mRootNode.addObserverLocked(uri, observer, notifyForDescendants, mRootNode, in registerContentObserver() 190 if (false) Log.v(TAG, "Registered observer " + observer + " at " + uri + in registerContentObserver() 196 IContentObserver observer) { in registerContentObserver() argument 197 registerContentObserver(uri, notifyForDescendants, observer, in registerContentObserver() 201 public void unregisterContentObserver(IContentObserver observer) { in unregisterContentObserver() argument 202 if (observer == null) { in unregisterContentObserver() 206 mRootNode.removeObserverLocked(observer); in unregisterContentObserver() 207 if (false) Log.v(TAG, "Unregistered observer " + observer); in unregisterContentObserver() [all …]
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
D | AppCacheTest.java | 464 PackageDataObserver observer = new PackageDataObserver(); in invokePMDeleteAppCacheFiles() local 466 synchronized(observer) { in invokePMDeleteAppCacheFiles() 467 getPm().deleteApplicationCacheFiles(packageName, observer); in invokePMDeleteAppCacheFiles() 469 while(!observer.isDone() || (waitTime > MAX_WAIT_TIME)) { in invokePMDeleteAppCacheFiles() 470 observer.wait(WAIT_TIME_INCR); in invokePMDeleteAppCacheFiles() 473 if(!observer.isDone()) { in invokePMDeleteAppCacheFiles() 477 return observer.retValue; in invokePMDeleteAppCacheFiles() 490 PackageDataObserver observer = new PackageDataObserver(); in invokePMFreeApplicationCache() local 492 synchronized(observer) { in invokePMFreeApplicationCache() 493 getPm().freeStorageAndNotify(idealStorageSize, observer); in invokePMFreeApplicationCache() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/ |
D | ScreenshotTest.java | 53 NewScreenshotObserver observer = new NewScreenshotObserver( in testScreenshot() local 55 observer.startWatching(); in testScreenshot() 58 if (observer.getCreatedPath() == null) { in testScreenshot() 60 synchronized(observer) { in testScreenshot() 61 observer.wait(SCREEN_WAIT_TIME_SEC*1000); in testScreenshot() 65 SCREEN_WAIT_TIME_SEC), observer.getCreatedPath()); in testScreenshot() 67 File screenshotFile = new File(screenshotDir, observer.getCreatedPath()); in testScreenshot()
|
/frameworks/base/core/java/android/app/backup/ |
D | IRestoreSession.aidl | 37 int getAvailableRestoreSets(IRestoreObserver observer); in getAvailableRestoreSets() argument 52 int restoreAll(long token, IRestoreObserver observer); in restoreAll() argument 71 int restoreSome(long token, IRestoreObserver observer, in String[] packages); in restoreSome() argument 88 int restorePackage(in String packageName, IRestoreObserver observer); in restorePackage() argument
|
D | RestoreSession.java | 52 public int getAvailableRestoreSets(RestoreObserver observer) { in getAvailableRestoreSets() argument 54 RestoreObserverWrapper obsWrapper = new RestoreObserverWrapper(mContext, observer); in getAvailableRestoreSets() 76 public int restoreAll(long token, RestoreObserver observer) { in restoreAll() argument 82 mObserver = new RestoreObserverWrapper(mContext, observer); in restoreAll() 110 public int restoreSome(long token, RestoreObserver observer, String[] packages) { in restoreSome() argument 116 mObserver = new RestoreObserverWrapper(mContext, observer); in restoreSome() 140 public int restorePackage(String packageName, RestoreObserver observer) { in restorePackage() argument 146 mObserver = new RestoreObserverWrapper(mContext, observer); in restorePackage()
|
/frameworks/base/core/tests/coretests/src/android/os/storage/ |
D | AsecTests.java | 564 StorageListener observer = new StorageListener(); in unmountMedia() local 566 sm.registerListener(observer); in unmountMedia() 569 synchronized(observer) { in unmountMedia() 572 while((!observer.isDone()) && (waitTime < MAX_WAIT_TIME) ) { in unmountMedia() 573 observer.wait(WAIT_TIME_INCR); in unmountMedia() 576 if(!observer.isDone()) { in unmountMedia() 581 sm.unregisterListener(observer); in unmountMedia() 626 MultipleStorageLis observer = new MultipleStorageLis(); in testUnmountMultiple() local 633 sm.registerListener(observer); in testUnmountMultiple() 635 synchronized(observer) { in testUnmountMultiple() [all …]
|
/frameworks/base/core/java/android/widget/ |
D | BaseExpandableListAdapter.java | 37 public void registerDataSetObserver(DataSetObserver observer) { in registerDataSetObserver() argument 38 mDataSetObservable.registerObserver(observer); in registerDataSetObserver() 41 public void unregisterDataSetObserver(DataSetObserver observer) { in unregisterDataSetObserver() argument 42 mDataSetObservable.unregisterObserver(observer); in unregisterDataSetObserver()
|
D | BaseAdapter.java | 37 public void registerDataSetObserver(DataSetObserver observer) { in registerDataSetObserver() argument 38 mDataSetObservable.registerObserver(observer); in registerDataSetObserver() 41 public void unregisterDataSetObserver(DataSetObserver observer) { in unregisterDataSetObserver() argument 42 mDataSetObservable.unregisterObserver(observer); in unregisterDataSetObserver()
|
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/ |
D | ColumnAdapter.java | 129 public void registerDataSetObserver(DataSetObserver observer) { in registerDataSetObserver() argument 130 super.registerDataSetObserver(observer); in registerDataSetObserver() 131 mWrapped.registerDataSetObserver(observer); in registerDataSetObserver() 135 public void unregisterDataSetObserver(DataSetObserver observer) { in unregisterDataSetObserver() argument 136 super.unregisterDataSetObserver(observer); in unregisterDataSetObserver() 137 mWrapped.unregisterDataSetObserver(observer); in unregisterDataSetObserver()
|
/frameworks/base/core/java/android/print/ |
D | IPrintManager.aidl | 50 void createPrinterDiscoverySession(in IPrinterDiscoveryObserver observer, int userId); in createPrinterDiscoverySession() argument 51 void startPrinterDiscovery(in IPrinterDiscoveryObserver observer, in startPrinterDiscovery() argument 53 void stopPrinterDiscovery(in IPrinterDiscoveryObserver observer, int userId); in stopPrinterDiscovery() argument 57 void destroyPrinterDiscoverySession(in IPrinterDiscoveryObserver observer, in destroyPrinterDiscoverySession() argument
|
/frameworks/base/cmds/bmgr/src/com/android/commands/bmgr/ |
D | Bmgr.java | 284 RestoreObserver observer = new RestoreObserver(); in doListRestoreSets() local 285 int err = mRestore.getAvailableRestoreSets(observer); in doListRestoreSets() 289 observer.waitForCompletion(); in doListRestoreSets() 290 printRestoreSets(observer.sets); in doListRestoreSets() 387 RestoreObserver observer = new RestoreObserver(); in doRestorePackage() local 388 int err = mRestore.restorePackage(pkg, observer); in doRestorePackage() 391 observer.waitForCompletion(); in doRestorePackage() 405 RestoreObserver observer = new RestoreObserver(); in doRestoreAll() local 415 int err = mRestore.getAvailableRestoreSets(observer); in doRestoreAll() 417 observer.waitForCompletion(); in doRestoreAll() [all …]
|
/frameworks/support/v4/java/android/support/v4/view/ |
D | PagerAdapter.java | 284 public void registerDataSetObserver(DataSetObserver observer) { in registerDataSetObserver() argument 285 mObservable.registerObserver(observer); in registerDataSetObserver() 293 public void unregisterDataSetObserver(DataSetObserver observer) { in unregisterDataSetObserver() argument 294 mObservable.unregisterObserver(observer); in unregisterDataSetObserver()
|