/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/accounts/ |
D | AccountSyncDetailsPreferenceControllerTest.java | 46 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 …]
|
D | AccountSyncPreferenceControllerTest.java | 37 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()
|
D | AccountDetailsWithSyncStatusPreferenceControllerTest.java | 42 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()
|
D | AccountSyncDetailsFragmentTest.java | 40 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()
|
D | ChooseAccountPreferenceControllerTest.java | 45 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()
|
D | AccountDetailsPreferenceControllerTest.java | 37 import com.android.car.settings.testutils.ShadowContentResolver; 49 @Config(shadows = {ShadowAccountManager.class, ShadowContentResolver.class, 76 ShadowContentResolver.reset(); in tearDown()
|
D | AccountDetailsFragmentTest.java | 40 import com.android.car.settings.testutils.ShadowContentResolver; 57 ShadowContentResolver.class}) 86 ShadowContentResolver.reset(); in tearDown()
|
D | AccountListPreferenceControllerTest.java | 43 import com.android.car.settings.testutils.ShadowContentResolver; 56 @Config(shadows = {ShadowCarUserManagerHelper.class, ShadowContentResolver.class, 97 ShadowContentResolver.reset(); in reset()
|
D | AccountSettingsFragmentTest.java | 33 import com.android.car.settings.testutils.ShadowContentResolver; 49 ShadowContentResolver.class})
|
D | AccountAutoSyncPreferenceControllerTest.java | 41 import com.android.car.settings.testutils.ShadowContentResolver; 54 @Config(shadows = {ShadowContentResolver.class, ShadowCarUserManagerHelper.class})
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/accounts/ |
D | AccountSyncPreferenceControllerTest.java | 38 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 …]
|
D | ChooseAccountPreferenceControllerTest.java | 42 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()
|
D | AccountSyncSettingsTest.java | 28 import com.android.settings.testutils.shadow.ShadowContentResolver; 39 @Config(shadows = {ShadowContentResolver.class}) 44 ShadowContentResolver.reset(); in tearDown()
|
D | RemoveAccountPreferenceControllerTest.java | 55 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})
|
D | AccountTypePreferenceLoaderTest.java | 40 import com.android.settings.testutils.shadow.ShadowContentResolver; 87 ShadowContentResolver.reset(); in tearDown() 91 @Config(shadows = {ShadowAccountManager.class, ShadowContentResolver.class})
|
D | EmergencyInfoPreferenceControllerTest.java | 41 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/ |
D | ShadowContentResolver.java | 45 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/ |
D | AssistConfigBasePreferenceControllerTest.java | 55 import org.robolectric.shadows.ShadowContentResolver; 183 private ShadowContentResolver getShadowContentResolver() { in getShadowContentResolver() 184 return (ShadowContentResolver) Shadows.shadowOf(mContext.getContentResolver()); in getShadowContentResolver()
|
D | DefaultVoiceInputPickerEntryPreferenceControllerTest.java | 59 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/ |
D | BrightnessLevelPreferenceControllerTest.java | 47 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/ |
D | VibrateWhenRingPreferenceControllerTest.java | 51 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/ |
D | RoamingPreferenceControllerTest.java | 55 import org.robolectric.shadows.ShadowContentResolver; 216 private ShadowContentResolver getShadowContentResolver() { in getShadowContentResolver() 217 return (ShadowContentResolver) Shadows.shadowOf(mContext.getContentResolver()); in getShadowContentResolver()
|
D | MobileDataTogglePreferenceControllerTest.java | 54 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/ |
D | UserDictionaryCursorLoaderTest.java | 34 import org.robolectric.shadows.ShadowContentResolver; 47 ShadowContentResolver.registerProviderInternal(UserDictionary.AUTHORITY, mContentProvider); in setUp()
|
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/model/ |
D | BaseGridChangesTestCase.java | 15 import org.robolectric.shadows.ShadowContentResolver; 40 ShadowContentResolver.registerProviderInternal(LauncherProvider.AUTHORITY, mProvider); in setUpBaseCase()
|