Home
last modified time | relevance | path

Searched refs:ShadowUserManager (Results 1 – 25 of 86) sorted by relevance

1234

/packages/apps/Settings/tests/robotests/src/com/android/settings/location/
DLocationInjectedServicesPreferenceControllerTest.java46 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 …]
DRecentLocationRequestPreferenceControllerTest.java38 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/
DMultiUserPreferenceControllerTest.java24 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()
DMultiUserSwitchBarControllerTest.java29 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()
DAddUserWhenLockedPreferenceControllerTest.java30 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()
DGuestTelephonyPreferenceControllerTest.java35 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()
DUserCapabilitiesTest.java29 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/
DProfileIconProviderTest.java26 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()
DProfileHelperTest.java45 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/
DCommunalPreferenceControllerTest.java31 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/
DFactoryResetDemoUserPreferenceControllerTest.java25 import com.android.settings.testutils.shadow.ShadowUserManager;
37 @Config(shadows = ShadowUserManager.class)
42 private ShadowUserManager mShadowUserManager;
50 mShadowUserManager = ShadowUserManager.getShadow(); in setUp()
DSystemDashboardFragmentTest.java28 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/
DRestrictedEncryptionPreferenceControllerTest.java26 import com.android.settings.testutils.shadow.ShadowUserManager;
37 @Config(shadows = ShadowUserManager.class)
41 private ShadowUserManager mUserManager;
68 mUserManager = ShadowUserManager.getShadow(); in setUp()
DEncryptionStatusPreferenceControllerTest.java32 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/
DProfileSelectLocationFragmentTest.java35 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/
DActionDisabledByAdminDialogHelperTest.java47 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/
DInteractAcrossProfilesDetailsTest.java34 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/
DRestrictedListPreferenceTest.java32 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/
DDevelopmentTilesTest.java30 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/
DTopLevelNetworkEntryPreferenceControllerTest.java32 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/
DShadowUserManager.java36 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/
DExternalSourcesDetailsTest.java36 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/
DAccountDetailDashboardFragmentTest.java48 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/
DRestrictedButtonTest.java34 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/
DAppDashboardFragmentTest.java35 import com.android.settings.testutils.shadow.ShadowUserManager;
70 @Config(shadows = ShadowUserManager.class)
86 @Config(shadows = ShadowUserManager.class)

1234