Searched refs:shadowContentResolver (Results 1 – 4 of 4) sorted by relevance
64 ShadowContentResolver shadowContentResolver = Shadow.extract(mContentResolver); in register_shouldRegisterContentObserverForDefaultKeys() local65 assertObserverToUri(shadowContentResolver, in register_shouldRegisterContentObserverForDefaultKeys()67 assertObserverToUri(shadowContentResolver, in register_shouldRegisterContentObserverForDefaultKeys()77 ShadowContentResolver shadowContentResolver = Shadow.extract(mContentResolver); in unregister_shouldUnregisterContentObserver() local78 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() local90 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()
336 ShadowContentResolver shadowContentResolver = Shadows.shadowOf( in onResume_flagEnabled_haveRegisterToSpecificUris() local351 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() local380 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()
482 ShadowContentResolver shadowContentResolver = shadowOf(mContext.getContentResolver()); in assertUriObserversContainsClazz() local484 shadowContentResolver.getContentObservers( in assertUriObserversContainsClazz()
124 ShadowContentResolver shadowContentResolver = Shadow.extract(mContentResolver); in onStart_shouldRegisterObserver() local128 assertThat(shadowContentResolver.getContentObservers( in onStart_shouldRegisterObserver()136 ShadowContentResolver shadowContentResolver = Shadow.extract(mContext.getContentResolver()); in onStop_shouldUnregisterObserver() local142 assertThat(shadowContentResolver.getContentObservers( in onStop_shouldUnregisterObserver()