/packages/apps/Settings/tests/robotests/src/com/android/settings/location/ |
D | LocationInjectedServicesPreferenceControllerTest.java | 46 import com.android.settings.testutils.shadow.ShadowUserManager; 67 @Config(shadows = {ShadowUserManager.class, ShadowDevicePolicyManager.class}) 129 ShadowUserManager.getShadow().setProfileIdsWithDisabled( in workProfileDisallowShareLocationOn_getParentUserLocationServicesOnly() 131 ShadowUserManager.getShadow().addProfile(new UserInfo(UserHandle.myUserId(), "", 0)); in workProfileDisallowShareLocationOn_getParentUserLocationServicesOnly() 132 ShadowUserManager.getShadow().addProfile(new UserInfo(fakeWorkProfileId, "", in workProfileDisallowShareLocationOn_getParentUserLocationServicesOnly() 141 ShadowUserManager.getShadow().setUserRestrictionSources( in workProfileDisallowShareLocationOn_getParentUserLocationServicesOnly() 160 ShadowUserManager.getShadow().setProfileIdsWithDisabled( in workProfileDisallowShareLocationOff_getAllUserLocationServices() 162 ShadowUserManager.getShadow().addProfile(new UserInfo(UserHandle.myUserId(), "", 0)); in workProfileDisallowShareLocationOff_getAllUserLocationServices() 163 ShadowUserManager.getShadow().addProfile(new UserInfo(fakeWorkProfileId, "", in workProfileDisallowShareLocationOff_getAllUserLocationServices() 169 ShadowUserManager.getShadow().setUserRestrictionSources( in workProfileDisallowShareLocationOff_getAllUserLocationServices() [all …]
|
D | RecentLocationRequestPreferenceControllerTest.java | 38 import com.android.settings.testutils.shadow.ShadowUserManager; 57 @Config(shadows = {ShadowDeviceConfig.class, ShadowUserManager.class}) 65 private ShadowUserManager mUserManager; 75 mUserManager = ShadowUserManager.getShadow(); in setUp()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/users/ |
D | MultiUserPreferenceControllerTest.java | 24 import com.android.settings.testutils.shadow.ShadowUserManager; 36 @Config(shadows = {ShadowUserManager.class}) 40 private ShadowUserManager mUserManager; 47 mUserManager = ShadowUserManager.getShadow(); in setUp() 53 ShadowUserManager.reset(); in tearDown()
|
D | MultiUserSwitchBarControllerTest.java | 29 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 | GuestTelephonyPreferenceControllerTest.java | 35 import com.android.settings.testutils.shadow.ShadowUserManager; 50 ShadowUserManager.class, 60 private ShadowUserManager mUserManager; 67 mUserManager = ShadowUserManager.getShadow(); in setUp() 74 ShadowUserManager.reset(); in tearDown()
|
D | UserCapabilitiesTest.java | 29 import com.android.settings.testutils.shadow.ShadowUserManager; 41 @Config(shadows = {ShadowUserManager.class, ShadowDevicePolicyManager.class, 46 private ShadowUserManager mUserManager; 52 mUserManager = ShadowUserManager.getShadow(); in setUp()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/profiles/ |
D | ProfileIconProviderTest.java | 26 import com.android.car.settings.testutils.ShadowUserManager; 39 @Config(shadows = {ShadowUserManager.class}) 59 ShadowUserManager.reset(); in tearDown() 64 ShadowUserManager.setUserIcon(mUserInfo.id, null); in getRoundedUserIcon_AssignsIconIfNotPresent() 72 private ShadowUserManager getShadowUserManager() { in getShadowUserManager()
|
D | ProfileHelperTest.java | 45 import com.android.car.settings.testutils.ShadowUserManager; 59 @Config(shadows = {ShadowUserManager.class, ShadowUserIconProvider.class}) 87 ShadowUserManager.setIsHeadlessSystemUserMode(true); in setUp() 94 ShadowUserManager.reset(); in tearDown() 141 ShadowUserManager.setIsHeadlessSystemUserMode(false); in testGetAllUsers_notHeadless() 179 ShadowUserManager.setIsHeadlessSystemUserMode(false); in testGetAllSwitchableUsers_notHeadless() 218 ShadowUserManager.setIsHeadlessSystemUserMode(false); in testGetAllPersistentUsers_notHeadless() 258 ShadowUserManager.setIsHeadlessSystemUserMode(false); in testGetAllAdminUsers_notHeadless() 417 ShadowUserManager.setIsHeadlessSystemUserMode(true); in testGetMaxSupportedRealUsers_isHeadless() 435 ShadowUserManager.setIsHeadlessSystemUserMode(false); in testGetMaxSupportedRealUsers_isNotHeadless()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/communal/ |
D | CommunalPreferenceControllerTest.java | 31 import com.android.settings.testutils.shadow.ShadowUserManager; 41 @Config(shadows = {SettingsShadowResources.class, ShadowUserManager.class}) 43 private ShadowUserManager mShadowUserManager; 51 mShadowUserManager = ShadowUserManager.getShadow(); in setup()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/system/ |
D | FactoryResetDemoUserPreferenceControllerTest.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 | SystemDashboardFragmentTest.java | 28 import com.android.settings.testutils.shadow.ShadowUserManager; 41 @Config(shadows = {SettingsShadowResources.class, ShadowUserManager.class}) 51 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/dashboard/profileselector/ |
D | ProfileSelectLocationFragmentTest.java | 35 import com.android.settings.testutils.shadow.ShadowUserManager; 47 ShadowUserManager.class, 57 private ShadowUserManager mUserManager; 62 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; 65 ShadowUserManager.class, 143 final ShadowUserManager userManagerShadow = Shadow.extract(userManager); in testSetAdminSupportDetails() 164 final ShadowUserManager userManagerShadow = Shadow.extract(userManager); in testSetAdminSupportDetails_shortSupportMessageIsNull() 186 final ShadowUserManager userManagerShadow = Shadow.extract(userManager); in testSetAdminSupportDetailsNotAdmin() 208 ShadowUserManager userManagerShadow = Shadow.extract(userManager); in testMaybeSetLearnMoreButton() 240 private static void createShadowWorkProfile(final ShadowUserManager userManagerShadow) { in createShadowWorkProfile()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/specialaccess/interactacrossprofiles/ |
D | InteractAcrossProfilesDetailsTest.java | 34 import com.android.settings.testutils.shadow.ShadowUserManager; 49 ShadowUserManager.class, 61 private ShadowUserManager mShadowUserManager; 67 mShadowUserManager = (ShadowUserManager) shadowOf( 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/development/qstile/ |
D | DevelopmentTilesTest.java | 30 import com.android.settings.testutils.shadow.ShadowUserManager; 46 ShadowUserManager.class, 61 final ShadowUserManager um = Shadow.extract( in setUp()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/ |
D | TopLevelNetworkEntryPreferenceControllerTest.java | 32 import com.android.settings.testutils.shadow.ShadowUserManager; 51 ShadowUserManager.class, 65 final ShadowUserManager um = Shadow.extract( in setUp()
|
/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 105 org.robolectric.shadows.ShadowUserManager.reset(); in reset()
|
/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()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/accounts/ |
D | AccountDetailDashboardFragmentTest.java | 48 import com.android.settings.testutils.shadow.ShadowUserManager; 68 ShadowUserManager.class, 186 ShadowUserManager userManager = in onResume_accountMissing_shouldFinish() 198 ShadowUserManager userManager = in onResume_accountPresentOneProfile_shouldNotFinish() 210 ShadowUserManager userManager = in onResume_accountPresentTwoProfiles_shouldNotFinish()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/ |
D | RestrictedButtonTest.java | 34 import com.android.settings.testutils.shadow.ShadowUserManager; 47 @Config(shadows = {ShadowUserManager.class, ShadowDevicePolicyManager.class}) 65 ShadowUserManager.getShadow().setUserRestrictionSources( in setUp()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/ |
D | AppDashboardFragmentTest.java | 35 import com.android.settings.testutils.shadow.ShadowUserManager; 70 @Config(shadows = ShadowUserManager.class) 86 @Config(shadows = ShadowUserManager.class)
|