/cts/tests/tests/database/src/android/database/cts/ |
D | ObservableTest.java | 33 Object observer = new Object(); in testRegisterUnRegisterObserver() local 36 observable.unregisterObserver(observer); in testRegisterUnRegisterObserver() 49 observable.registerObserver(observer); in testRegisterUnRegisterObserver() 53 observable.registerObserver(observer); in testRegisterUnRegisterObserver() 59 observable.unregisterObserver(observer); in testRegisterUnRegisterObserver() 63 observable.unregisterObserver(observer); in testRegisterUnRegisterObserver() 67 observable.registerObserver(observer); in testRegisterUnRegisterObserver()
|
D | MergeCursorTest.java | 188 ContentObserver observer = new ContentObserver(null) {}; in testContentObsererOperations() local 192 mergeCursor.unregisterContentObserver(observer); in testContentObsererOperations() 198 mergeCursor.registerContentObserver(observer); in testContentObsererOperations() 202 mergeCursor.registerContentObserver(observer); in testContentObsererOperations() 208 mergeCursor.unregisterContentObserver(observer); in testContentObsererOperations() 210 mergeCursor.registerContentObserver(observer); in testContentObsererOperations() 212 mergeCursor.unregisterContentObserver(observer); in testContentObsererOperations() 215 mergeCursor.unregisterContentObserver(observer); in testContentObsererOperations() 225 MockObserver observer = new MockObserver(); in testDeactivate() local 229 mergeCursor.unregisterDataSetObserver(observer); in testDeactivate() [all …]
|
D | CursorWrapperTest.java | 122 MockObserver observer = new MockObserver(); in testDeactivate() local 126 cursorWrapper.unregisterDataSetObserver(observer); in testDeactivate() 132 assertFalse(observer.hasInvalidated()); in testDeactivate() 135 assertFalse(observer.hasInvalidated()); in testDeactivate() 139 cursorWrapper.registerDataSetObserver(observer); in testDeactivate() 140 assertFalse(observer.hasInvalidated()); in testDeactivate() 145 assertTrue(observer.hasInvalidated()); in testDeactivate() 155 cursorWrapper.registerDataSetObserver(observer); in testDeactivate() 161 cursorWrapper.unregisterDataSetObserver(observer); in testDeactivate() 162 observer.resetStatus(); in testDeactivate() [all …]
|
/cts/tests/tests/database/src/android/database/sqlite/cts/ |
D | SQLiteCursorTest.java | 95 MockObserver observer = new MockObserver(); in testRegisterDataSetObserver() local 99 assertFalse(observer.hasInvalidated()); in testRegisterDataSetObserver() 103 assertFalse(observer.hasInvalidated()); in testRegisterDataSetObserver() 109 cursor.registerDataSetObserver(observer); in testRegisterDataSetObserver() 110 assertFalse(observer.hasInvalidated()); in testRegisterDataSetObserver() 115 assertTrue(observer.hasInvalidated()); in testRegisterDataSetObserver() 129 cursor.registerDataSetObserver(observer); in testRegisterDataSetObserver() 135 cursor.unregisterDataSetObserver(observer); in testRegisterDataSetObserver() 136 observer.resetStatus(); in testRegisterDataSetObserver() 137 assertFalse(observer.hasInvalidated()); in testRegisterDataSetObserver() [all …]
|
/cts/tests/tests/content/src/android/content/cts/ |
D | ContentQueryMapTest.java | 171 MockObserver observer = new MockObserver(); in testSetKeepUpdated() local 175 mContentQueryMap.addObserver(observer); in testSetKeepUpdated() 176 assertFalse(observer.hadUpdated(0)); in testSetKeepUpdated() 192 assertFalse(observer.hadUpdated(0)); in testSetKeepUpdated() 201 assertTrue(observer.hadUpdated(0)); in testSetKeepUpdated() 202 assertSame(mContentQueryMap, observer.getObservable()); in testSetKeepUpdated() 210 observer.reset(); in testSetKeepUpdated() 235 assertTrue(observer.hadUpdated(TEST_TIME_OUT)); in testSetKeepUpdated() 236 assertSame(mContentQueryMap, observer.getObservable()); in testSetKeepUpdated() 241 observer.reset(); in testSetKeepUpdated() [all …]
|
/cts/tests/tests/os/src/android/os/storage/cts/ |
D | StorageManagerTest.java | 363 final ObbObserver observer = new ObbObserver(); in mountObb() local 365 mStorageManager.mountObb(file.getPath(), null, observer)); in mountObb() 368 observer.waitForCompletion()); in mountObb() 371 assertTrue("OBB should be mounted", mStorageManager.isObbMounted(observer.getPath())); in mountObb() 374 assertEquals(expectedState, observer.getState()); in mountObb() 376 return observer.getPath(); in mountObb() 382 final ObbObserver observer = new ObbObserver(); in mountObbWithoutWait() local 384 mStorageManager.mountObb(file.getPath(), null, observer)); in mountObbWithoutWait() 386 return observer; in mountObbWithoutWait() 389 private void waitForObbActionCompletion(final File file, final ObbObserver observer, in waitForObbActionCompletion() argument [all …]
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | CursorTreeAdapterTest.java | 202 MockDataSetObserver observer = new MockDataSetObserver(); in testNotifyDataSetChangedBoolean() local 203 adapter.registerDataSetObserver(observer); in testNotifyDataSetChangedBoolean() 206 assertFalse(observer.hasCalledOnChanged()); in testNotifyDataSetChangedBoolean() 208 assertTrue(observer.hasCalledOnChanged()); in testNotifyDataSetChangedBoolean() 214 observer.reset(); in testNotifyDataSetChangedBoolean() 215 assertFalse(observer.hasCalledOnChanged()); in testNotifyDataSetChangedBoolean() 218 assertTrue(observer.hasCalledOnChanged()); in testNotifyDataSetChangedBoolean() 226 observer.reset(); in testNotifyDataSetChangedBoolean() 227 assertFalse(observer.hasCalledOnChanged()); in testNotifyDataSetChangedBoolean() 230 assertTrue(observer.hasCalledOnChanged()); in testNotifyDataSetChangedBoolean() [all …]
|
D | HeaderViewListAdapterTest.java | 337 DataSetObserver observer = new HeaderViewDataSetObserver(); in testRegisterDataSetObserver() local 338 headerViewListAdapter.registerDataSetObserver(observer); in testRegisterDataSetObserver() 339 assertSame(observer, fullAdapter.getDataSetObserver()); in testRegisterDataSetObserver() 346 DataSetObserver observer = new HeaderViewDataSetObserver(); in testUnregisterDataSetObserver() local 347 headerViewListAdapter.registerDataSetObserver(observer); in testUnregisterDataSetObserver() 350 assertSame(observer, fullAdapter.getDataSetObserver()); in testUnregisterDataSetObserver() 351 headerViewListAdapter.unregisterDataSetObserver(observer); in testUnregisterDataSetObserver() 393 public void registerDataSetObserver(DataSetObserver observer) { in registerDataSetObserver() argument 396 public void unregisterDataSetObserver(DataSetObserver observer) { in unregisterDataSetObserver() argument 451 public void registerDataSetObserver(DataSetObserver observer) { in registerDataSetObserver() argument [all …]
|
D | GridViewTest.java | 750 public void registerDataSetObserver(DataSetObserver observer) { in registerDataSetObserver() argument 753 public void unregisterDataSetObserver(DataSetObserver observer) { in unregisterDataSetObserver() argument 867 public void registerDataSetObserver(DataSetObserver observer) { in registerDataSetObserver() argument 868 mDataSetObservable.registerObserver(observer); in registerDataSetObserver() 871 public void unregisterDataSetObserver(DataSetObserver observer) { in unregisterDataSetObserver() argument 872 mDataSetObservable.unregisterObserver(observer); in unregisterDataSetObserver()
|
D | AbsSpinnerTest.java | 317 public void registerDataSetObserver(DataSetObserver observer) { in registerDataSetObserver() argument 320 public void unregisterDataSetObserver(DataSetObserver observer) { in unregisterDataSetObserver() argument
|
D | ExpandableListViewTest.java | 397 public void registerDataSetObserver(DataSetObserver observer) { in registerDataSetObserver() argument 400 public void unregisterDataSetObserver(DataSetObserver observer) { in unregisterDataSetObserver() argument
|
/cts/tests/tests/view/src/android/view/cts/util/ |
D | ViewTestUtils.java | 49 final ViewTreeObserver observer = view.getViewTreeObserver(); in runOnMainAndDrawSync() local 53 observer.removeOnDrawListener(this); in runOnMainAndDrawSync() 58 observer.addOnDrawListener(listener); in runOnMainAndDrawSync()
|
/cts/tests/tests/widget/src/android/widget/cts/util/ |
D | ViewTestUtils.java | 50 final ViewTreeObserver observer = view.getViewTreeObserver(); in runOnMainAndDrawSync() local 54 observer.removeOnDrawListener(this); in runOnMainAndDrawSync() 59 observer.addOnDrawListener(listener); in runOnMainAndDrawSync()
|
/cts/tests/signature/tests/src/android/signature/cts/tests/ |
D | JDiffClassDescriptionTest.java | 81 private JDiffClassDescription createNormalClass(ResultObserver observer) { in createNormalClass() argument 83 "android.signature.cts.tests.data", "NormalClass", observer); in createNormalClass() 96 ExpectFailure observer = new ExpectFailure(FailureType.MISSING_CLASS); in testMissingClass() local 98 "android.signature.cts.tests.data", "NoSuchClass", observer); in testMissingClass() 101 observer.validate(); in testMissingClass() 341 ExpectFailure observer = new ExpectFailure(FailureType.MISMATCH_METHOD); in testAddingSync() local 342 JDiffClassDescription clz = createNormalClass(observer); in testAddingSync() 347 observer.validate(); in testAddingSync() 408 ExpectFailure observer = new ExpectFailure(FailureType.MISMATCH_CLASS); in testAddingAbstractToAClass() local 410 "android.signature.cts.tests.data", "AbstractClass", observer); in testAddingAbstractToAClass() [all …]
|
/cts/tests/app/src/android/app/cts/ |
D | ListActivityTest.java | 122 final ViewTreeObserver observer = view.getViewTreeObserver(); in runOnMainAndDrawSync() 126 observer.removeOnDrawListener(this); in runOnMainAndDrawSync() 131 observer.addOnDrawListener(listener); in runOnMainAndDrawSync()
|
D | AlertDialog_BuilderTest.java | 678 android.database.DataSetObserver observer) { in registerDataSetObserver() argument 682 android.database.DataSetObserver observer) { in unregisterDataSetObserver() argument
|
/cts/tests/tests/view/src/android/view/animation/cts/ |
D | GridLayoutAnimCtsActivity.java | 67 public void registerDataSetObserver(DataSetObserver observer) { in registerDataSetObserver() argument 70 public void unregisterDataSetObserver(DataSetObserver observer) { in unregisterDataSetObserver() argument
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/ |
D | TestListAdapter.java | 164 TestResultContentObserver observer = new TestResultContentObserver(); in TestListAdapter() local 166 …resolver.registerContentObserver(TestResultsProvider.getResultContentUri(context), true, observer); in TestListAdapter() local
|
/cts/tools/dex-tools/dex/ |
D | classes.out.dex | 18637 public android.database.IContentObserver observer
|