Home
last modified time | relevance | path

Searched refs:mShadowUserManager (Results 1 – 12 of 12) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/system/
DFactoryResetDemoUserPreferenceControllerTest.java42 private ShadowUserManager mShadowUserManager; field in FactoryResetDemoUserPreferenceControllerTest
50 mShadowUserManager = ShadowUserManager.getShadow(); in setUp()
59 mShadowUserManager.setIsAdminUser(false); in tearDown()
60 mShadowUserManager.setIsDemoUser(false); in tearDown()
66 mShadowUserManager.setIsAdminUser(true); in isAvailable_systemUser()
73 mShadowUserManager.setIsAdminUser(false); in isAvailable_nonSystemUser()
74 mShadowUserManager.setIsDemoUser(false); in isAvailable_nonSystemUser()
81 mShadowUserManager.setIsAdminUser(false); in isAvailable_demoUser()
87 mShadowUserManager.addUser(UserHandle.myUserId(), "test", UserInfo.FLAG_DEMO); in isAvailable_demoUser()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/specialaccess/interactacrossprofiles/
DInteractAcrossProfilesSettingsTest.java85 private ShadowUserManager mShadowUserManager; field in InteractAcrossProfilesSettingsTest
90 mShadowUserManager = (ShadowUserManager) shadowOf( in setUp()
103 mShadowUserManager.addUser( in collectConfigurableApps_fromPersonal_returnsCombinedPackages()
105 mShadowUserManager.addProfile( in collectConfigurableApps_fromPersonal_returnsCombinedPackages()
128 mShadowUserManager.addUser( in collectConfigurableApps_fromWork_returnsCombinedPackages()
130 mShadowUserManager.addProfile( in collectConfigurableApps_fromWork_returnsCombinedPackages()
154 mShadowUserManager.addUser( in collectConfigurableApps_onlyOneProfile_returnsEmpty()
169 mShadowUserManager.addUser( in getNumberOfEnabledApps_returnsNumberOfEnabledApps()
171 mShadowUserManager.addProfile( in getNumberOfEnabledApps_returnsNumberOfEnabledApps()
DInteractAcrossProfilesDetailsTest.java61 private ShadowUserManager mShadowUserManager; field in InteractAcrossProfilesDetailsTest
67 mShadowUserManager = (ShadowUserManager) shadowOf( in setUp()
79 mShadowUserManager.addUser( in getPreferenceSummary_appOpAllowed_returnsAllowed()
81 mShadowUserManager.addProfile( in getPreferenceSummary_appOpAllowed_returnsAllowed()
102 mShadowUserManager.addUser( in getPreferenceSummary_appOpNotAllowed_returnsNotAllowed()
104 mShadowUserManager.addProfile( in getPreferenceSummary_appOpNotAllowed_returnsNotAllowed()
125 mShadowUserManager.addUser( in getPreferenceSummary_noWorkProfile_returnsNotAllowed()
/packages/apps/Settings/tests/robotests/src/com/android/settings/communal/
DCommunalPreferenceControllerTest.java43 private ShadowUserManager mShadowUserManager; field in CommunalPreferenceControllerTest
51 mShadowUserManager = ShadowUserManager.getShadow(); in setup()
59 mShadowUserManager.setUserForeground(true); in isAvailable_communalEnabled_shouldBeTrueForDockUser()
66 mShadowUserManager.setUserForeground(false); in isAvailable_communalEnabled_shouldBeFalseForNonDockUser()
73 mShadowUserManager.setUserForeground(true); in isAvailable_communalDisabled_shouldBeFalseForDockUser()
/packages/apps/Settings/tests/robotests/src/com/android/settings/
DRestrictedListPreferenceTest.java54 private ShadowUserManager mShadowUserManager; field in RestrictedListPreferenceTest
65 mShadowUserManager = ShadowUserManager.getShadow(); in setUp()
76 mShadowUserManager.setQuietModeEnabled(false); in performClick_profileLocked()
94 mShadowUserManager.setQuietModeEnabled(true); in performClick_profileDisabled()
111 mShadowUserManager.setQuietModeEnabled(false); in performClick_profileAvailable()
123 mShadowUserManager.setQuietModeEnabled(true); in performClick_profileLockedAndUnlockedProfileNotRequired()
DMainClearTest.java105 private ShadowUserManager mShadowUserManager; field in MainClearTest
118 mShadowUserManager = Shadow.extract(userManager); in setUp()
119 mShadowUserManager.setIsAdminUser(true); in setUp()
129 mShadowUserManager.setIsAdminUser(false); in tearDown()
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/
DDevelopmentSettingsDashboardFragmentTest.java68 private ShadowUserManager mShadowUserManager; field in DevelopmentSettingsDashboardFragmentTest
78 mShadowUserManager = Shadow.extract(mContext.getSystemService(Context.USER_SERVICE)); in setUp()
79 mShadowUserManager.setIsAdminUser(true); in setUp()
126 mShadowUserManager.setIsAdminUser(false); in searchIndex_pageDisabledForNonAdmin_shouldAddAllKeysToNonIndexable()
127 mShadowUserManager.setIsDemoUser(false); in searchIndex_pageDisabledForNonAdmin_shouldAddAllKeysToNonIndexable()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/
DDefaultAppShortcutPreferenceControllerBaseTest.java68 private ShadowUserManager mShadowUserManager; field in DefaultAppShortcutPreferenceControllerBaseTest
78 mShadowUserManager = shadowOf(mActivity.getSystemService(UserManager.class)); in setUp()
91 mShadowUserManager.setManagedProfile(true); in getAvailabilityStatus_isManagedProfile_shouldReturnDisabled()
/packages/apps/Settings/tests/robotests/src/com/android/settings/security/
DEncryptionStatusPreferenceControllerTest.java48 private ShadowUserManager mShadowUserManager; field in EncryptionStatusPreferenceControllerTest
55 mShadowUserManager = ShadowUserManager.getShadow(); in setUp()
/packages/modules/DeviceLock/tests/unittests/src/com/android/server/devicelock/
DDeviceLockServiceImplTest.java120 private ShadowUserManager mShadowUserManager; field in DeviceLockServiceImplTest
161 mShadowUserManager = shadowOf(mContext.getSystemService(UserManager.class)); in setup()
162 mSystemUser = mShadowUserManager.addUser(USER_SYSTEM, SYSTEM_USER_NAME, /* flags= */ 0); in setup()
163 mSecondaryUser = mShadowUserManager.addUser(USER_SECONDARY, SECONDARY_USER_NAME, in setup()
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/
DPrivateDnsPreferenceControllerTest.java124 private ShadowUserManager mShadowUserManager; field in PrivateDnsPreferenceControllerTest
146 mShadowUserManager = ShadowUserManager.getShadow(); in setUp()
304 mShadowUserManager.setUserRestrictionSources( in isEnabled_canBeDisabledByAdmin()
/packages/apps/Settings/tests/robotests/src/com/android/settings/slices/
DSettingsSliceProviderTest.java123 private ShadowUserManager mShadowUserManager; field in SettingsSliceProviderTest
162 mShadowUserManager = ShadowUserManager.getShadow(); in setUp()
302 mShadowUserManager.setGuestUser(true); in onBindSlice_guestRestricted_returnsNull()