Home
last modified time | relevance | path

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

1234

/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/profiles/
DProfileIconProviderTest.java29 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()
DProfileHelperTest.java44 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 …]
DPermissionsPreferenceControllerTest.java31 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/
DLocationInjectedServicesPreferenceControllerTest.java41 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()
DRecentLocationRequestPreferenceControllerTest.java34 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/
DMultiUserSwitchBarControllerTest.java28 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()
DUserCapabilitiesTest.java25 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/
DActionDisabledByAdminDialogHelperTest.java47 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/
DFactoryResetPreferenceControllerTest.java25 import com.android.settings.testutils.shadow.ShadowUserManager;
37 @Config(shadows = ShadowUserManager.class)
42 private ShadowUserManager mShadowUserManager;
50 mShadowUserManager = ShadowUserManager.getShadow(); in setUp()
DSystemUpdatePreferenceControllerTest.java37 import com.android.settings.testutils.shadow.ShadowUserManager;
54 @Config(shadows = ShadowUserManager.class)
63 private ShadowUserManager mShadowUserManager;
71 mShadowUserManager = ShadowUserManager.getShadow(); in setUp()
DSystemDashboardFragmentTest.java34 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/
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/
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/dashboard/profileselector/
DProfileSelectFragmentTest.java38 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/
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()
DAppMemoryPreferenceControllerTest.java37 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/
DAccountDetailDashboardFragmentTest.java49 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/
DShadowUserManager.java43 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/
DShadowUserManager.java36 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/
DDevelopmentSwitchBarControllerTest.java30 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/
DSpecialAppAccessPreferenceControllerTest.java40 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/
DAccessibilitySettingsTest.java57 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/
DDashboardFeatureProviderImplTest.java70 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()

1234