Home
last modified time | relevance | path

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

/cts/tests/tests/database/src/android/database/cts/
DObservableTest.java33 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()
DMergeCursorTest.java188 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 …]
DCursorWrapperTest.java122 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/
DSQLiteCursorTest.java95 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/
DContentQueryMapTest.java171 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/
DStorageManagerTest.java363 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/
DCursorTreeAdapterTest.java202 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 …]
DHeaderViewListAdapterTest.java337 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 …]
DGridViewTest.java750 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()
DAbsSpinnerTest.java317 public void registerDataSetObserver(DataSetObserver observer) { in registerDataSetObserver() argument
320 public void unregisterDataSetObserver(DataSetObserver observer) { in unregisterDataSetObserver() argument
DExpandableListViewTest.java397 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/
DViewTestUtils.java49 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/
DViewTestUtils.java50 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/
DJDiffClassDescriptionTest.java81 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/
DListActivityTest.java122 final ViewTreeObserver observer = view.getViewTreeObserver(); in runOnMainAndDrawSync()
126 observer.removeOnDrawListener(this); in runOnMainAndDrawSync()
131 observer.addOnDrawListener(listener); in runOnMainAndDrawSync()
DAlertDialog_BuilderTest.java678 android.database.DataSetObserver observer) { in registerDataSetObserver() argument
682 android.database.DataSetObserver observer) { in unregisterDataSetObserver() argument
/cts/tests/tests/view/src/android/view/animation/cts/
DGridLayoutAnimCtsActivity.java67 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/
DTestListAdapter.java164 TestResultContentObserver observer = new TestResultContentObserver(); in TestListAdapter() local
166 …resolver.registerContentObserver(TestResultsProvider.getResultContentUri(context), true, observer); in TestListAdapter() local
/cts/tools/dex-tools/dex/
Dclasses.out.dex18637 public android.database.IContentObserver observer