Home
last modified time | relevance | path

Searched refs:getShadowUserManager (Results 1 – 25 of 26) sorted by relevance

12

/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/users/
DUserDetailsBaseFragmentTest.java103 getShadowUserManager().setUserRestriction( in testRemoveUserButtonVisible_whenAllowedToRemoveUsers()
112 getShadowUserManager().setUserRestriction( in testRemoveUserButtonHidden_whenNotAllowedToRemoveUsers()
121 getShadowUserManager().setUserRestriction( in testRemoveUserButtonHidden_whenUserIsSystemUser()
131 getShadowUserManager().setUserRestriction( in testRemoveUserButtonHidden_demoUser()
141 getShadowUserManager().setUserRestriction( in testRemoveUserButtonClick_createsRemovalDialog()
159 getShadowUserManager().addUser(testUser.id, "testUser", /* flags= */ 0); in createUserDetailsBaseFragment()
172 getShadowUserManager().addUser(userInfo.id, userInfo.name, userInfo.flags); in setCurrentUserWithFlags()
175 private ShadowUserManager getShadowUserManager() { in getShadowUserManager() method in UserDetailsBaseFragmentTest
DPermissionsPreferenceControllerTest.java96 getShadowUserManager().setUserRestriction( in testRefreshUi_setToFalse()
107 getShadowUserManager().setUserRestriction( in testRefreshUi_setToTrue()
117 getShadowUserManager().setUserRestriction( in testOnPreferenceChange_changeToFalse()
128 getShadowUserManager().setUserRestriction( in testOnPreferenceChange_changeToTrue()
147 private ShadowUserManager getShadowUserManager() { in getShadowUserManager() method in PermissionsPreferenceControllerTest
DUserIconProviderTest.java74 assertThat(getShadowUserManager().getUserIcon(mUserInfo.id)).isNotNull(); in getRoundedUserIcon_AssignsIconIfNotPresent()
85 assertThat(getShadowUserManager().getUserIcon(mUserInfo.id)).isNotNull(); in assignDefaultIcon_AssignsIconForNonGuest()
98 assertThat(getShadowUserManager().getUserIcon(guestUserInfo.id)).isNotNull(); in assignDefaultIcon_AssignsIconForGuest()
101 private ShadowUserManager getShadowUserManager() { in getShadowUserManager() method in UserIconProviderTest
DUsersListPreferenceControllerTest.java76 getShadowUserManager().addUser(TEST_CURRENT_USER.id, TEST_CURRENT_USER.name, in setUp()
78 getShadowUserManager().switchUser(TEST_CURRENT_USER.id); in setUp()
117 private ShadowUserManager getShadowUserManager() { in getShadowUserManager() method in UsersListPreferenceControllerTest
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/network/
DMobileNetworkEntryPreferenceControllerTest.java102 getShadowUserManager().setIsAdminUser(true); in setUp()
103 getShadowUserManager().setUserRestriction( in setUp()
125 getShadowUserManager().setIsAdminUser(false); in getAvailabilityStatus_notAdmin_disabledForUser()
134 getShadowUserManager().setIsAdminUser(true); in getAvailabilityStatus_hasRestriction_disabledForUser()
135 getShadowUserManager().setUserRestriction( in getAvailabilityStatus_hasRestriction_disabledForUser()
145 getShadowUserManager().setIsAdminUser(true); in getAvailabilityStatus_hasMobileNetwork_isAdmin_noRestriction_available()
146 getShadowUserManager().setUserRestriction( in getAvailabilityStatus_hasMobileNetwork_isAdmin_noRestriction_available()
289 private ShadowUserManager getShadowUserManager() { in getShadowUserManager() method in MobileNetworkEntryPreferenceControllerTest
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/system/
DResetNetworkEntryPreferenceControllerTest.java63 getShadowUserManager().setIsAdminUser(false); in getAvailabilityStatus_nonAdminUser_disabledForUser()
70 getShadowUserManager().setIsAdminUser(true); in getAvailabilityStatus_adminUser_available()
77 getShadowUserManager().setIsAdminUser(true); in getAvailabilityStatus_adminUser_restricted_disabledForUser()
78 getShadowUserManager().setUserRestriction( in getAvailabilityStatus_adminUser_restricted_disabledForUser()
84 private ShadowUserManager getShadowUserManager() { in getShadowUserManager() method in ResetNetworkEntryPreferenceControllerTest
DMasterClearEntryPreferenceControllerTest.java87 getShadowUserManager().setUserRestriction( in getAvailabilityStatus_adminUser_restricted_disabledForUser()
105 getShadowUserManager().setUserRestriction( in getAvailabilityStatus_demoMode_demoUser_restricted_disabledForUser()
114 getShadowUserManager().addUser(SECONDARY_USER_ID, "test name", flags); in createAndSwitchToSecondaryUserWithFlags()
115 getShadowUserManager().switchUser(SECONDARY_USER_ID); in createAndSwitchToSecondaryUserWithFlags()
118 private ShadowUserManager getShadowUserManager() { in getShadowUserManager() method in MasterClearEntryPreferenceControllerTest
DMasterClearAccountsPreferenceControllerTest.java64 getShadowUserManager().addProfile(mUserId, mUserId, in setUp()
106 getShadowUserManager().addProfile(mUserId, profileId1, in refreshUi_multipleProfiles_showsAllAccounts()
112 getShadowUserManager().addProfile(mUserId, profileId2, in refreshUi_multipleProfiles_showsAllAccounts()
178 private ShadowUserManager getShadowUserManager() { in getShadowUserManager() method in MasterClearAccountsPreferenceControllerTest
DDeveloperOptionsEntryPreferenceControllerTest.java68 getShadowUserManager().addUser(UserHandle.myUserId(), "test name", UserInfo.FLAG_ADMIN); in setUp()
86 getShadowUserManager().setUserRestriction( in testGetAvailabilityStatus_devOptionsEnabled_hasUserRestriction_isUnavailable()
103 private ShadowUserManager getShadowUserManager() { in getShadowUserManager() method in DeveloperOptionsEntryPreferenceControllerTest
DBuildNumberPreferenceControllerTest.java66 getShadowUserManager() in setUp()
177 getShadowUserManager().addUser(userInfo.id, userInfo.name, userInfo.flags); in setCurrentUserWithFlags()
180 private ShadowUserManager getShadowUserManager() { in getShadowUserManager() method in BuildNumberPreferenceControllerTest
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/development/
DDevelopmentSettingsUtilTest.java87 getShadowUserManager().setUserRestriction( in isEnabled_hasDisallowDebuggingRestriction_shouldReturnFalse()
103 getShadowUserManager().setUserRestriction( in isEnabled_doesNotHaveDisallowDebuggingRestriction_shouldReturnTrue()
149 getShadowUserManager().addUser(UserHandle.myUserId(), "test name", flags); in setCurrentUserWithFlags()
152 private ShadowUserManager getShadowUserManager() { in getShadowUserManager() method in DevelopmentSettingsUtilTest
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/security/
DSecurityEntryPreferenceControllerTest.java57 getShadowUserManager().addUser(UserHandle.myUserId(), "name", UserInfo.FLAG_GUEST); in getAvailabilityStatus_guestUser_disabledForUser()
64 getShadowUserManager().addUser(UserHandle.myUserId(), "name", /* flags= */ 0); in getAvailabilityStatus_nonGuestUser_available()
69 private ShadowUserManager getShadowUserManager() { in getShadowUserManager() method in SecurityEntryPreferenceControllerTest
DCredentialsResetPreferenceControllerTest.java62 getShadowUserManager().setUserRestriction( in getAvailabilityStatus_noRestrictions_returnsAvailable()
70 getShadowUserManager().setUserRestriction(mMyUserHandle, DISALLOW_CONFIG_CREDENTIALS, true); in getAvailabilityStatus_userRestricted_returnsDisabledForUser()
77 private ShadowUserManager getShadowUserManager() { in getShadowUserManager() method in CredentialsResetPreferenceControllerTest
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/
DApplicationDetailsFragmentTest.java103 getShadowUserManager().addUser(userId, "userName", /* flags= */ 0); in setUp()
104 getShadowUserManager().addProfile(userId, userId, "profileName", /* profileFlags= */ 0); in setUp()
155 getShadowUserManager().setUserRestriction( in onStart_appsControlUserRestriction_disablesForceStopButton()
434 getShadowUserManager().setUserRestriction( in onStart_appsControlUserRestriction_disablesUninstallButton()
446 getShadowUserManager().setUserRestriction( in onStart_uninstallAppsRestriction_disablesUninstallButton()
593 private ShadowUserManager getShadowUserManager() { in getShadowUserManager() method in ApplicationDetailsFragmentTest
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/bluetooth/
DPairNewDevicePreferenceControllerTest.java121 getShadowUserManager().setUserRestriction( in getAvailabilityStatus_disallowBluetoothUserRestriction_disabledForUser()
131 getShadowUserManager().setUserRestriction( in getAvailabilityStatus_disallowConfigBluetoothUserRestriction_disabledForUser()
192 private ShadowUserManager getShadowUserManager() { in getShadowUserManager() method in PairNewDevicePreferenceControllerTest
DBluetoothSettingsFragmentTest.java170 getShadowUserManager().setUserRestriction( in stateChanged_on_userRestricted_setsSwitchDisabled()
217 getShadowUserManager().setUserRestriction( in stateChanged_off_userRestricted_setsSwitchDisabled()
252 private ShadowUserManager getShadowUserManager() { in getShadowUserManager() method in BluetoothSettingsFragmentTest
DBluetoothBondedDevicesPreferenceControllerTest.java174 getShadowUserManager().setUserRestriction(mMyUserHandle, DISALLOW_CONFIG_BLUETOOTH, false); in devicePreferenceButtonClicked_noUserRestrictions_launchesDetailsFragment()
188 getShadowUserManager().setUserRestriction(mMyUserHandle, DISALLOW_CONFIG_BLUETOOTH, true); in devicePreferenceButton_disallowConfigBluetooth_actionStaysHidden()
230 private ShadowUserManager getShadowUserManager() { in getShadowUserManager() method in BluetoothBondedDevicesPreferenceControllerTest
DBluetoothEntryPreferenceControllerTest.java71 getShadowUserManager().setUserRestriction(mMyUserHandle, DISALLOW_BLUETOOTH, true); in getAvailabilityStatus_bluetoothAvailable_disallowBluetooth_disabledForUser()
84 private ShadowUserManager getShadowUserManager() { in getShadowUserManager() method in BluetoothEntryPreferenceControllerTest
DBluetoothDevicePreferenceControllerTest.java102 getShadowUserManager().setUserRestriction( in getAvailabilityStatus_disallowConfigBluetooth_disabledForUser()
147 private ShadowUserManager getShadowUserManager() { in getShadowUserManager() method in BluetoothDevicePreferenceControllerTest
DBluetoothNamePreferenceControllerTest.java106 getShadowUserManager().setUserRestriction( in refreshUi_userHasConfigRestriction_setsNotSelectable()
163 private ShadowUserManager getShadowUserManager() { in getShadowUserManager() method in BluetoothNamePreferenceControllerTest
DBluetoothPreferenceControllerTest.java104 getShadowUserManager().setUserRestriction( in getAvailabilityStatus_disallowBluetoothUserRestriction_disabledForUser()
158 private ShadowUserManager getShadowUserManager() { in getShadowUserManager() method in BluetoothPreferenceControllerTest
DBluetoothUnbondedDevicesPreferenceControllerTest.java203 getShadowUserManager().setUserRestriction( in getAvailabilityStatus_disallowConfigBluetooth_disabledForUser()
214 private ShadowUserManager getShadowUserManager() { in getShadowUserManager() method in BluetoothUnbondedDevicesPreferenceControllerTest
DBluetoothScanningDevicesGroupPreferenceControllerTest.java121 getShadowUserManager().setUserRestriction( in disallowConfigBluetooth_doesNotStartScanning()
315 private ShadowUserManager getShadowUserManager() { in getShadowUserManager() method in BluetoothScanningDevicesGroupPreferenceControllerTest
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/accounts/
DAccountSettingsFragmentTest.java124 getShadowUserManager().addProfile(mUserId, mUserId, in clickAddAccountButton_shouldNotOpenChooseAccountFragmentWhenOneType()
140 getShadowUserManager().addProfile(mUserId, mUserId, in clickAddAccountButton_shouldOpenChooseAccountFragmentWhenTwoTypes()
169 private ShadowUserManager getShadowUserManager() { in getShadowUserManager() method in AccountSettingsFragmentTest
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/managedomainurls/
DDomainAppPreferenceControllerTest.java84 getShadowUserManager().addProfile(mUserId, mUserId, "Test Name", /* profileFlags= */ in setUp()
159 private ShadowUserManager getShadowUserManager() { in getShadowUserManager() method in DomainAppPreferenceControllerTest

12