/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/profiles/ |
D | ProfileIconProviderTest.java | 29 import com.android.car.settings.testutils.ShadowUserManager; 42 @Config(shadows = {ShadowUserManager.class}) 62 ShadowUserManager.reset(); in tearDown() 67 ShadowUserManager.setUserIcon(mUserInfo.id, null); in getRoundedUserIcon_AssignsIconIfNotPresent() 77 ShadowUserManager.setUserIcon(mUserInfo.id, null); in assignDefaultIcon_AssignsIconForNonGuest() 90 ShadowUserManager.setUserIcon(guestUserInfo.id, null); in assignDefaultIcon_AssignsIconForGuest() 99 private ShadowUserManager getShadowUserManager() { in getShadowUserManager()
|
D | ProfileHelperTest.java | 44 import com.android.car.settings.testutils.ShadowUserManager; 59 @Config(shadows = {ShadowActivityManager.class, ShadowUserManager.class, 88 ShadowUserManager.setIsHeadlessSystemUserMode(true); in setUp() 95 ShadowUserManager.reset(); in tearDown() 142 ShadowUserManager.setIsHeadlessSystemUserMode(false); in testGetAllUsers_notHeadless() 180 ShadowUserManager.setIsHeadlessSystemUserMode(false); in testGetAllSwitchableUsers_notHeadless() 219 ShadowUserManager.setIsHeadlessSystemUserMode(false); in testGetAllPersistentUsers_notHeadless() 259 ShadowUserManager.setIsHeadlessSystemUserMode(false); in testGetAllAdminUsers_notHeadless() 418 ShadowUserManager.setIsHeadlessSystemUserMode(true); in testGetMaxSupportedRealUsers_isHeadless() 419 ShadowUserManager.setMaxSupportedUsers(7); in testGetMaxSupportedRealUsers_isHeadless() [all …]
|
D | PermissionsPreferenceControllerTest.java | 31 import com.android.car.settings.testutils.ShadowUserManager; 48 @Config(shadows = {ShadowUserManager.class}) 75 ShadowUserManager.reset(); in tearDown() 147 private ShadowUserManager getShadowUserManager() { in getShadowUserManager()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/location/ |
D | LocationInjectedServicesPreferenceControllerTest.java | 41 import com.android.settings.testutils.shadow.ShadowUserManager; 60 @Config(shadows = ShadowUserManager.class) 118 ShadowUserManager.getShadow().setProfileIdsWithDisabled( in workProfileDisallowShareLocationOn_getParentUserLocationServicesOnly() 127 ShadowUserManager.getShadow().setUserRestrictionSources( in workProfileDisallowShareLocationOn_getParentUserLocationServicesOnly() 141 ShadowUserManager.getShadow().setProfileIdsWithDisabled( in workProfileDisallowShareLocationOff_getAllUserLocationServices() 147 ShadowUserManager.getShadow().setUserRestrictionSources( in workProfileDisallowShareLocationOff_getAllUserLocationServices() 175 ShadowUserManager.getShadow().setProfileIdsWithDisabled(new int[]{UserHandle.myUserId()}); in withUserRestriction_shouldDisableLocationAccuracy() 183 ShadowUserManager.getShadow().setUserRestrictionSources( in withUserRestriction_shouldDisableLocationAccuracy()
|
D | RecentLocationRequestPreferenceControllerTest.java | 34 import com.android.settings.testutils.shadow.ShadowUserManager; 52 @Config(shadows = {ShadowUserManager.class}) 60 private ShadowUserManager mUserManager; 70 mUserManager = ShadowUserManager.getShadow(); in setUp()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/users/ |
D | MultiUserSwitchBarControllerTest.java | 28 import com.android.settings.testutils.shadow.ShadowUserManager; 41 @Config(shadows = {ShadowUserManager.class}) 45 private ShadowUserManager mUserManager; 52 mUserManager = ShadowUserManager.getShadow(); in setUp() 59 ShadowUserManager.reset(); in tearDown()
|
D | AddUserWhenLockedPreferenceControllerTest.java | 30 import com.android.settings.testutils.shadow.ShadowUserManager; 44 @Config(shadows = {ShadowUserManager.class}) 52 private ShadowUserManager mUserManager; 59 mUserManager = ShadowUserManager.getShadow(); in setUp() 66 ShadowUserManager.reset(); in tearDown()
|
D | UserCapabilitiesTest.java | 25 import com.android.settings.testutils.shadow.ShadowUserManager; 35 @Config(shadows = {ShadowUserManager.class}) 39 private ShadowUserManager mUserManager; 44 mUserManager = ShadowUserManager.getShadow(); in setUp()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/enterprise/ |
D | ActionDisabledByAdminDialogHelperTest.java | 47 import com.android.settings.testutils.shadow.ShadowUserManager; 64 ShadowUserManager.class, 141 final ShadowUserManager userManagerShadow = Shadow.extract(userManager); in testSetAdminSupportDetails() 162 final ShadowUserManager userManagerShadow = Shadow.extract(userManager); in testSetAdminSupportDetails_shortSupportMessageIsNull() 184 final ShadowUserManager userManagerShadow = Shadow.extract(userManager); in testSetAdminSupportDetailsNotAdmin() 205 ShadowUserManager userManagerShadow = Shadow.extract(userManager); in testMaybeSetLearnMoreButton() 237 private static void createShadowWorkProfile(final ShadowUserManager userManagerShadow) { in createShadowWorkProfile()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/system/ |
D | FactoryResetPreferenceControllerTest.java | 25 import com.android.settings.testutils.shadow.ShadowUserManager; 37 @Config(shadows = ShadowUserManager.class) 42 private ShadowUserManager mShadowUserManager; 50 mShadowUserManager = ShadowUserManager.getShadow(); in setUp()
|
D | SystemUpdatePreferenceControllerTest.java | 37 import com.android.settings.testutils.shadow.ShadowUserManager; 54 @Config(shadows = ShadowUserManager.class) 63 private ShadowUserManager mShadowUserManager; 71 mShadowUserManager = ShadowUserManager.getShadow(); in setUp()
|
D | SystemDashboardFragmentTest.java | 34 import com.android.settings.testutils.shadow.ShadowUserManager; 47 @Config(shadows = {SettingsShadowResources.class, ShadowUserManager.class}) 57 ShadowUserManager.getShadow().setIsAdminUser(true); in setup()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/security/ |
D | RestrictedEncryptionPreferenceControllerTest.java | 26 import com.android.settings.testutils.shadow.ShadowUserManager; 37 @Config(shadows = ShadowUserManager.class) 41 private ShadowUserManager mUserManager; 68 mUserManager = ShadowUserManager.getShadow(); in setUp()
|
D | EncryptionStatusPreferenceControllerTest.java | 32 import com.android.settings.testutils.shadow.ShadowUserManager; 42 @Config(shadows = {ShadowLockPatternUtils.class, ShadowUserManager.class}) 48 private ShadowUserManager mShadowUserManager; 55 mShadowUserManager = ShadowUserManager.getShadow(); in setUp()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/ |
D | RestrictedListPreferenceTest.java | 32 import com.android.settings.testutils.shadow.ShadowUserManager; 46 @Config(shadows = {ShadowUserManager.class, ShadowKeyguardManager.class}) 54 private ShadowUserManager mShadowUserManager; 65 mShadowUserManager = ShadowUserManager.getShadow(); in setUp()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/dashboard/profileselector/ |
D | ProfileSelectFragmentTest.java | 38 import com.android.settings.testutils.shadow.ShadowUserManager; 53 @Config(shadows = {ShadowUserManager.class}) 59 private ShadowUserManager mUserManager; 69 mUserManager = ShadowUserManager.getShadow(); in setUp()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/ |
D | ExternalSourcesDetailsTest.java | 36 import com.android.settings.testutils.shadow.ShadowUserManager; 52 @Config(shadows = {ShadowUserManager.class}) 115 final ShadowUserManager shadowUserManager = Shadow.extract(userManager); in refreshUi_userRestrictionsUnknownSources_disablesSwitchPreference() 154 final ShadowUserManager shadowUserManager = Shadow.extract(userManager); in refreshUi_userRestrictionsUnknownSourcesGlobally_disablesSwitchPreference() 193 final ShadowUserManager shadowUserManager = Shadow.extract(userManager); in refreshUi_bothUnknownSourcesUserRestrictions_disableSwitchPreference()
|
D | AppMemoryPreferenceControllerTest.java | 37 import com.android.settings.testutils.shadow.ShadowUserManager; 51 @Config(shadows = {ShadowUserManager.class}) 70 ShadowUserManager.getShadow().setIsAdminUser(true); in setUp()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/accounts/ |
D | AccountDetailDashboardFragmentTest.java | 49 import com.android.settings.testutils.shadow.ShadowUserManager; 67 @Config(shadows = {ShadowAccountManager.class, ShadowUserManager.class}) 182 ShadowUserManager userManager = in onResume_accountMissing_shouldFinish() 194 ShadowUserManager userManager = in onResume_accountPresentOneProfile_shouldNotFinish() 206 ShadowUserManager userManager = in onResume_accountPresentTwoProfiles_shouldNotFinish()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/ |
D | ShadowUserManager.java | 43 public class ShadowUserManager extends org.robolectric.shadows.ShadowUserManager { class 108 public static ShadowUserManager getShadow() { in getShadow() 109 return (ShadowUserManager) Shadow.extract( in getShadow()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/ |
D | ShadowUserManager.java | 36 public class ShadowUserManager extends org.robolectric.shadows.ShadowUserManager { class 115 org.robolectric.shadows.ShadowUserManager.reset(); in reset()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/ |
D | DevelopmentSwitchBarControllerTest.java | 30 import com.android.settings.testutils.shadow.ShadowUserManager; 50 @Config(shadows = {ShadowUtils.class, ShadowUserManager.class}) 63 ShadowUserManager.getShadow().setIsAdminUser(true); in setUp()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/ |
D | SpecialAppAccessPreferenceControllerTest.java | 40 import com.android.settings.testutils.shadow.ShadowUserManager; 55 @Config(shadows = {ShadowUserManager.class, ShadowApplicationsState.class}) 74 ShadowUserManager.getShadow().setProfileIdsWithDisabled(new int[]{0}); in setUp()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/ |
D | AccessibilitySettingsTest.java | 57 import com.android.settings.testutils.shadow.ShadowUserManager; 288 @Config(shadows = {ShadowFragment.class, ShadowUserManager.class}) 311 @Config(shadows = {ShadowFragment.class, ShadowUserManager.class}) 325 @Config(shadows = {ShadowFragment.class, ShadowUserManager.class}) 341 @Config(shadows = {ShadowFragment.class, ShadowUserManager.class})
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/dashboard/ |
D | DashboardFeatureProviderImplTest.java | 70 import com.android.settings.testutils.shadow.ShadowUserManager; 97 @Config(shadows = ShadowUserManager.class) 561 ShadowUserManager.getShadow().addUser(10, "Someone", 0); in openTileIntent_profileSelectionDialog_shouldShow() 577 ShadowUserManager.getShadow().addUser(10, "Someone", 0); in openTileIntent_profileSelectionDialog_explicitMetadataShouldShow() 594 ShadowUserManager.getShadow().addUser(10, "Someone", 0); in openTileIntent_profileSelectionDialog_shouldNotShow() 612 ShadowUserManager.getShadow().addUser(userId, "Someone", 0); in openTileIntent_profileSelectionDialog_validUserHandleShouldNotShow() 633 ShadowUserManager.getShadow().addUser(10, "Someone", 0); in openTileIntent_profileSelectionDialog_invalidUserHandleShouldShow() 652 ShadowUserManager.getShadow().addUser(userId, "Someone", 0); in openTileIntent_profileSelectionDialog_unresolvableWorkProfileIntentShouldNotShow()
|