Home
last modified time | relevance | path

Searched refs:shadowContentResolver (Results 1 – 4 of 4) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/
DAccessibilitySettingsContentObserverTest.java64 ShadowContentResolver shadowContentResolver = Shadow.extract(mContentResolver); in register_shouldRegisterContentObserverForDefaultKeys() local
65 assertObserverToUri(shadowContentResolver, in register_shouldRegisterContentObserverForDefaultKeys()
67 assertObserverToUri(shadowContentResolver, in register_shouldRegisterContentObserverForDefaultKeys()
77 ShadowContentResolver shadowContentResolver = Shadow.extract(mContentResolver); in unregister_shouldUnregisterContentObserver() local
78 assertNotObserverToUri(shadowContentResolver, Settings.Secure.ACCESSIBILITY_ENABLED); in unregister_shouldUnregisterContentObserver()
79 assertNotObserverToUri(shadowContentResolver, in unregister_shouldUnregisterContentObserver()
89 ShadowContentResolver shadowContentResolver = Shadow.extract(mContentResolver); in register_addSpecificKeys_shouldRegisterContentObserverForSpecificAndDefaultKeys() local
90 assertObserverToUri(shadowContentResolver, in register_addSpecificKeys_shouldRegisterContentObserverForSpecificAndDefaultKeys()
92 assertObserverToUri(shadowContentResolver, in register_addSpecificKeys_shouldRegisterContentObserverForSpecificAndDefaultKeys()
94 assertObserverToUri(shadowContentResolver, SPECIFIC_KEY_A_1, mObserver); in register_addSpecificKeys_shouldRegisterContentObserverForSpecificAndDefaultKeys()
DToggleScreenMagnificationPreferenceFragmentTest.java336 ShadowContentResolver shadowContentResolver = Shadows.shadowOf( in onResume_flagEnabled_haveRegisterToSpecificUris() local
351 assertThat(shadowContentResolver.getContentObservers(uri)).isEmpty(); in onResume_flagEnabled_haveRegisterToSpecificUris()
357 Collection<ContentObserver> observers = shadowContentResolver.getContentObservers(uri); in onResume_flagEnabled_haveRegisterToSpecificUris()
367 ShadowContentResolver shadowContentResolver = Shadows.shadowOf( in onResume_flagDisabled_haveRegisterToSpecificUris() local
380 assertThat(shadowContentResolver.getContentObservers(uri)).isEmpty(); in onResume_flagDisabled_haveRegisterToSpecificUris()
386 Collection<ContentObserver> observers = shadowContentResolver.getContentObservers(uri); in onResume_flagDisabled_haveRegisterToSpecificUris()
391 assertThat(shadowContentResolver.getContentObservers( in onResume_flagDisabled_haveRegisterToSpecificUris()
DAccessibilitySettingsTest.java482 ShadowContentResolver shadowContentResolver = shadowOf(mContext.getContentResolver()); in assertUriObserversContainsClazz() local
484 shadowContentResolver.getContentObservers( in assertUriObserversContainsClazz()
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/
DBrightnessLevelPreferenceControllerTest.java124 ShadowContentResolver shadowContentResolver = Shadow.extract(mContentResolver); in onStart_shouldRegisterObserver() local
128 assertThat(shadowContentResolver.getContentObservers( in onStart_shouldRegisterObserver()
136 ShadowContentResolver shadowContentResolver = Shadow.extract(mContext.getContentResolver()); in onStop_shouldUnregisterObserver() local
142 assertThat(shadowContentResolver.getContentObservers( in onStop_shouldUnregisterObserver()