Home
last modified time | relevance | path

Searched refs:ShadowContentResolver (Results 1 – 25 of 34) sorted by relevance

12

/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/accounts/
DAccountSyncDetailsPreferenceControllerTest.java46 import com.android.car.settings.testutils.ShadowContentResolver;
66 @Config(shadows = {ShadowContentResolver.class, ShadowApplicationPackageManager.class,
82 ShadowContentResolver.SyncListener mMockSyncListener;
91 ShadowContentResolver.setSyncListener(mMockSyncListener); in setUp()
108 ShadowContentResolver.reset(); in tearDown()
117 ShadowContentResolver.setSyncAdapterTypes(syncAdapters); in refreshUi_syncAdapterDoesNotHaveSameAccountType_shouldNotBeShown()
130 ShadowContentResolver.setSyncAdapterTypes(syncAdapters); in refreshUi_syncAdapterIsNotVisible_shouldNotBeShown()
143 ShadowContentResolver.setSyncAdapterTypes(syncAdapters); in refreshUi_syncAdapterIsNotSyncable_shouldNotBeShown()
145 ShadowContentResolver.setIsSyncable(mAccount, AUTHORITY, /* syncable= */ NOT_SYNCABLE); in refreshUi_syncAdapterIsNotSyncable_shouldNotBeShown()
158 ShadowContentResolver.setSyncAdapterTypes(syncAdapters); in refreshUi_syncAdapterDoesNotHaveProviderInfo_shouldNotBeShown()
[all …]
DAccountSyncPreferenceControllerTest.java37 import com.android.car.settings.testutils.ShadowContentResolver;
51 @Config(shadows = {ShadowContentResolver.class})
82 ShadowContentResolver.reset(); in tearDown()
92 ShadowContentResolver.setSyncAdapterTypes(syncAdapters); in refreshUi_notSameAccountType_shouldNotCount()
110 ShadowContentResolver.setSyncAdapterTypes(syncAdapters); in refreshUi_adapterInvisible_shouldNotCount()
128 ShadowContentResolver.setSyncAdapterTypes(syncAdapters); in refreshUi_notSyncable_shouldNotCount()
144 ShadowContentResolver.setSyncAdapterTypes(syncAdapters); in refreshUi_masterAutomaticSyncIgnoredAndAccountSyncDisabled_shouldNotCount()
163 ShadowContentResolver.setSyncAdapterTypes(syncAdapters); in refreshUi_masterAutomaticSyncUsed_shouldCount()
180 ShadowContentResolver.setSyncAdapterTypes(syncAdapters); in refreshUi_automaticSyncEnabled_shouldCount()
203 ShadowContentResolver.setSyncAdapterTypes(syncAdapters); in refreshUi_someEnabled_shouldSetSummary()
DAccountDetailsWithSyncStatusPreferenceControllerTest.java42 import com.android.car.settings.testutils.ShadowContentResolver;
53 @Config(shadows = {ShadowAccountManager.class, ShadowContentResolver.class,
84 ShadowContentResolver.reset(); in tearDown()
108 ShadowContentResolver.setSyncStatus(mAccount, AUTHORITY, status); in refreshUi_syncIsFailing_summaryShouldBeSet()
132 ShadowContentResolver.setSyncStatus(mAccount, AUTHORITY, status); in onSyncStatusChanged_summaryShouldUpdated()
134 SyncStatusObserver listener = ShadowContentResolver.getStatusChangeListener(); in onSyncStatusChanged_summaryShouldUpdated()
151 ShadowContentResolver.setIsSyncable(mAccount, authority, /* syncable= */ SYNCABLE); in setUpVisibleSyncAdapters()
166 ShadowContentResolver.setSyncAdapterTypes(syncAdapters); in setUpVisibleSyncAdapters()
DAccountSyncDetailsFragmentTest.java40 import com.android.car.settings.testutils.ShadowContentResolver;
59 @Config(shadows = {ShadowContentResolver.class, ShadowAccountManager.class})
72 ShadowContentResolver.SyncListener mMockSyncListener;
78 ShadowContentResolver.setSyncListener(mMockSyncListener); in setUp()
83 ShadowContentResolver.reset(); in tearDown()
100 ShadowContentResolver.setCurrentSyncs(syncs); in onInit_hasActiveSyncs_actionButtonShouldSayCancelSync()
177 ShadowContentResolver.setCurrentSyncs(syncs); in onButtonClicked_doesHaveActiveSyncs_shouldCancelSyncForSyncableAdapters()
210 ShadowContentResolver.setIsSyncable(mAccount, authority, /* syncable= */ 1); in setUpSyncAdapters()
212 ShadowContentResolver.setSyncAdapterTypes(syncAdapters); in setUpSyncAdapters()
DChooseAccountPreferenceControllerTest.java45 import com.android.car.settings.testutils.ShadowContentResolver;
63 @Config(shadows = {ShadowCarUserManagerHelper.class, ShadowContentResolver.class,
101 ShadowContentResolver.reset(); in tearDown()
154 ShadowContentResolver.setSyncAdapterTypes(syncAdapters); in refreshUi_doesNotHaveAuthoritiesInFilter_shouldNotBeShown()
175 ShadowContentResolver.setSyncAdapterTypes(syncAdapters); in refreshUi_hasAuthoritiesInFilter_shouldBeShown()
DAccountDetailsPreferenceControllerTest.java37 import com.android.car.settings.testutils.ShadowContentResolver;
49 @Config(shadows = {ShadowAccountManager.class, ShadowContentResolver.class,
76 ShadowContentResolver.reset(); in tearDown()
DAccountDetailsFragmentTest.java40 import com.android.car.settings.testutils.ShadowContentResolver;
57 ShadowContentResolver.class})
86 ShadowContentResolver.reset(); in tearDown()
DAccountListPreferenceControllerTest.java43 import com.android.car.settings.testutils.ShadowContentResolver;
56 @Config(shadows = {ShadowCarUserManagerHelper.class, ShadowContentResolver.class,
97 ShadowContentResolver.reset(); in reset()
DAccountSettingsFragmentTest.java33 import com.android.car.settings.testutils.ShadowContentResolver;
49 ShadowContentResolver.class})
DAccountAutoSyncPreferenceControllerTest.java41 import com.android.car.settings.testutils.ShadowContentResolver;
54 @Config(shadows = {ShadowContentResolver.class, ShadowCarUserManagerHelper.class})
/packages/apps/Settings/tests/robotests/src/com/android/settings/accounts/
DAccountSyncPreferenceControllerTest.java38 import com.android.settings.testutils.shadow.ShadowContentResolver;
52 @Config(shadows = {ShadowAccountManager.class, ShadowContentResolver.class})
81 ShadowContentResolver.reset(); in tearDown()
101 ShadowContentResolver.setSyncAdapterTypes(syncAdapters); in updateSummary_adapterInvisible_shouldNotCount()
114 ShadowContentResolver.setSyncAdapterTypes(syncAdapters); in updateSummary_notSameAccountType_shouldNotCount()
127 ShadowContentResolver.setSyncAdapterTypes(syncAdapters); in updateSummary_notSyncable_shouldNotCount()
128 ShadowContentResolver.setSyncable("authority", 0); in updateSummary_notSyncable_shouldNotCount()
141 ShadowContentResolver.setSyncAdapterTypes(syncAdapters); in updateSummary_syncDisabled_shouldNotCount()
142 ShadowContentResolver.setSyncAutomatically("authority", false); in updateSummary_syncDisabled_shouldNotCount()
143 ShadowContentResolver.setMasterSyncAutomatically(3, true); in updateSummary_syncDisabled_shouldNotCount()
[all …]
DChooseAccountPreferenceControllerTest.java42 import com.android.settings.testutils.shadow.ShadowContentResolver;
56 @Config(shadows = {ShadowAccountManager.class, ShadowContentResolver.class,
78 ShadowContentResolver.reset(); in tearDown()
116 ShadowContentResolver.setSyncAdapterTypes(syncAdapters); in updateAuthDescriptions_oneProvider_shouldNotAddPreference()
141 ShadowContentResolver.setSyncAdapterTypes(syncAdapters); in updateAuthDescriptions_oneAdminDisabledProvider_shouldNotAddPreference()
166 ShadowContentResolver.setSyncAdapterTypes(syncAdapters); in updateAuthDescriptions_noProvider_shouldNotAddPreference()
195 ShadowContentResolver.setSyncAdapterTypes(syncAdapters); in updateAuthDescriptions_twoProvider_shouldAddTwoPreference()
DAccountSyncSettingsTest.java28 import com.android.settings.testutils.shadow.ShadowContentResolver;
39 @Config(shadows = {ShadowContentResolver.class})
44 ShadowContentResolver.reset(); in tearDown()
DRemoveAccountPreferenceControllerTest.java55 import com.android.settings.testutils.shadow.ShadowContentResolver;
122 ShadowContentResolver.reset(); in tearDown()
172 @Config(shadows = {ShadowAccountManager.class, ShadowContentResolver.class})
204 @Config(shadows = {ShadowAccountManager.class, ShadowContentResolver.class})
DAccountTypePreferenceLoaderTest.java40 import com.android.settings.testutils.shadow.ShadowContentResolver;
87 ShadowContentResolver.reset(); in tearDown()
91 @Config(shadows = {ShadowAccountManager.class, ShadowContentResolver.class})
DEmergencyInfoPreferenceControllerTest.java41 import com.android.settings.testutils.shadow.ShadowContentResolver;
83 ShadowContentResolver.reset(); in tearDown()
138 @Config(shadows = {ShadowAccountManager.class, ShadowContentResolver.class})
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowContentResolver.java45 public class ShadowContentResolver extends org.robolectric.shadows.ShadowContentResolver { class
153 org.robolectric.shadows.ShadowContentResolver.reset(); in reset()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/assist/
DAssistConfigBasePreferenceControllerTest.java55 import org.robolectric.shadows.ShadowContentResolver;
183 private ShadowContentResolver getShadowContentResolver() { in getShadowContentResolver()
184 return (ShadowContentResolver) Shadows.shadowOf(mContext.getContentResolver()); in getShadowContentResolver()
DDefaultVoiceInputPickerEntryPreferenceControllerTest.java59 import org.robolectric.shadows.ShadowContentResolver;
247 private ShadowContentResolver getShadowContentResolver() { in getShadowContentResolver()
248 return (ShadowContentResolver) Shadows.shadowOf(mContext.getContentResolver()); in getShadowContentResolver()
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/
DBrightnessLevelPreferenceControllerTest.java47 import org.robolectric.shadows.ShadowContentResolver;
96 ShadowContentResolver shadowContentResolver = Shadow.extract(mContentResolver); in onStart_shouldRegisterObserver()
112 ShadowContentResolver shadowContentResolver = Shadow.extract(mContext.getContentResolver()); in onStop_shouldUnregisterObserver()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DVibrateWhenRingPreferenceControllerTest.java51 import org.robolectric.shadows.ShadowContentResolver;
193 final ShadowContentResolver shadowContentResolver = Shadow.extract(mContentResolver); in testObserver_onResume_shouldRegisterObserver()
204 final ShadowContentResolver shadowContentResolver = Shadow.extract(mContentResolver); in testObserver_onPause_shouldUnregisterObserver()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/network/
DRoamingPreferenceControllerTest.java55 import org.robolectric.shadows.ShadowContentResolver;
216 private ShadowContentResolver getShadowContentResolver() { in getShadowContentResolver()
217 return (ShadowContentResolver) Shadows.shadowOf(mContext.getContentResolver()); in getShadowContentResolver()
DMobileDataTogglePreferenceControllerTest.java54 import org.robolectric.shadows.ShadowContentResolver;
339 private ShadowContentResolver getShadowContentResolver() { in getShadowContentResolver()
340 return (ShadowContentResolver) Shadows.shadowOf(mContext.getContentResolver()); in getShadowContentResolver()
/packages/apps/Settings/tests/robotests/src/com/android/settings/inputmethod/
DUserDictionaryCursorLoaderTest.java34 import org.robolectric.shadows.ShadowContentResolver;
47 ShadowContentResolver.registerProviderInternal(UserDictionary.AUTHORITY, mContentProvider); in setUp()
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/model/
DBaseGridChangesTestCase.java15 import org.robolectric.shadows.ShadowContentResolver;
40 ShadowContentResolver.registerProviderInternal(LauncherProvider.AUTHORITY, mProvider); in setUpBaseCase()

12