/packages/apps/Settings/tests/robotests/src/com/android/settings/system/ |
D | FactoryResetDemoUserPreferenceControllerTest.java | 42 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/ |
D | InteractAcrossProfilesSettingsTest.java | 85 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()
|
D | InteractAcrossProfilesDetailsTest.java | 61 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/ |
D | CommunalPreferenceControllerTest.java | 43 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/ |
D | RestrictedListPreferenceTest.java | 54 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()
|
D | MainClearTest.java | 105 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/ |
D | DevelopmentSettingsDashboardFragmentTest.java | 68 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/ |
D | DefaultAppShortcutPreferenceControllerBaseTest.java | 68 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/ |
D | EncryptionStatusPreferenceControllerTest.java | 48 private ShadowUserManager mShadowUserManager; field in EncryptionStatusPreferenceControllerTest 55 mShadowUserManager = ShadowUserManager.getShadow(); in setUp()
|
/packages/modules/DeviceLock/tests/unittests/src/com/android/server/devicelock/ |
D | DeviceLockServiceImplTest.java | 120 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/ |
D | PrivateDnsPreferenceControllerTest.java | 124 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/ |
D | SettingsSliceProviderTest.java | 123 private ShadowUserManager mShadowUserManager; field in SettingsSliceProviderTest 162 mShadowUserManager = ShadowUserManager.getShadow(); in setUp() 302 mShadowUserManager.setGuestUser(true); in onBindSlice_guestRestricted_returnsNull()
|