Home
last modified time | relevance | path

Searched refs:mco (Results 1 – 2 of 2) sorted by relevance

/cts/tests/tests/content/src/android/content/cts/
DContentResolverTest.java1168 final MockContentObserver mco = new MockContentObserver(); in testRegisterContentObserver() local
1170 mContentResolver.registerContentObserver(TABLE1_URI, true, mco); in testRegisterContentObserver()
1171 assertFalse(mco.hadOnChanged()); in testRegisterContentObserver()
1180 return mco.hadOnChanged(); in testRegisterContentObserver()
1184 mco.reset(); in testRegisterContentObserver()
1185 mContentResolver.unregisterContentObserver(mco); in testRegisterContentObserver()
1186 assertFalse(mco.hadOnChanged()); in testRegisterContentObserver()
1189 assertFalse(mco.hadOnChanged()); in testRegisterContentObserver()
1192 mContentResolver.registerContentObserver(null, false, mco); in testRegisterContentObserver()
1217 final MockContentObserver mco = new MockContentObserver(); in testRegisterContentObserverForAllUsersWithoutPermission() local
[all …]
/cts/tests/tests/provider/src/android/provider/cts/settings/
DSettings_ConfigTest.java377 final MockContentObserver mco = new MockContentObserver(); in testRegisterContentObserver() local
379 Settings.Config.registerContentObserver(NAMESPACE1, true, mco); in testRegisterContentObserver()
380 assertFalse(mco.hadOnChanged()); in testRegisterContentObserver()
386 return mco.hadOnChanged(); in testRegisterContentObserver()
390 mco.reset(); in testRegisterContentObserver()
391 Settings.Config.unregisterContentObserver(mco); in testRegisterContentObserver()
392 assertFalse(mco.hadOnChanged()); in testRegisterContentObserver()
395 assertFalse(mco.hadOnChanged()); in testRegisterContentObserver()
398 Settings.Config.registerContentObserver(null, false, mco); in testRegisterContentObserver()