Home
last modified time | relevance | path

Searched refs:isCurrentProcessUserHasRestriction (Results 1 – 25 of 34) sorted by relevance

12

/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/security/
DAddTrustedDevicePreferenceControllerTest.java97 when(mCarUserManagerHelper.isCurrentProcessUserHasRestriction( in refreshUi_hasPassword_preferenceEnabled()
108 when(mCarUserManagerHelper.isCurrentProcessUserHasRestriction( in refreshUi_noPassword_preferenceDisabled()
119 when(mCarUserManagerHelper.isCurrentProcessUserHasRestriction( in refreshUi_bluetoothAdapterEnabled_setsEmptySummary()
161 when(mCarUserManagerHelper.isCurrentProcessUserHasRestriction( in getAvailabilityStatus_disallowBluetoothUserRestriction_disabledForUser()
171 when(mCarUserManagerHelper.isCurrentProcessUserHasRestriction( in getAvailabilityStatus_disallowConfigBluetoothUserRestriction_disabledForUser()
DCredentialsResetPreferenceControllerTest.java72 when(mCarUserManagerHelper.isCurrentProcessUserHasRestriction( in getAvailabilityStatus_noRestrictions_returnsAvailable()
80 when(mCarUserManagerHelper.isCurrentProcessUserHasRestriction( in getAvailabilityStatus_userRestricted_returnsDisabledForUser()
/packages/services/Car/user/car-user-lib/src/android/car/userlib/
DCarUserManagerHelper.java701 public boolean isCurrentProcessUserHasRestriction(String restriction) { in isCurrentProcessUserHasRestriction() method in CarUserManagerHelper
710 return !isCurrentProcessUserHasRestriction(UserManager.DISALLOW_MODIFY_ACCOUNTS) in canCurrentProcessModifyAccounts()
719 return !isCurrentProcessUserHasRestriction(UserManager.DISALLOW_ADD_USER); in canCurrentProcessAddUsers()
726 return !isCurrentProcessUserHasRestriction(UserManager.DISALLOW_REMOVE_USER); in canCurrentProcessRemoveUsers()
739 isCurrentProcessUserHasRestriction(UserManager.DISALLOW_USER_SWITCH); in canCurrentProcessSwitchUsers()
/packages/apps/Car/Settings/src/com/android/car/settings/security/
DAddTrustedDevicePreferenceController.java60 return mCarUserManagerHelper.isCurrentProcessUserHasRestriction(DISALLOW_BLUETOOTH) in isUserRestricted()
61 || mCarUserManagerHelper.isCurrentProcessUserHasRestriction( in isUserRestricted()
DCredentialsResetPreferenceController.java48 return mCarUserManagerHelper.isCurrentProcessUserHasRestriction(DISALLOW_CONFIG_CREDENTIALS) in getAvailabilityStatus()
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
DPairNewDevicePreferenceController.java85 return mCarUserManagerHelper.isCurrentProcessUserHasRestriction(DISALLOW_BLUETOOTH) in isUserRestricted()
86 || mCarUserManagerHelper.isCurrentProcessUserHasRestriction( in isUserRestricted()
DBluetoothEntryPreferenceController.java55 return mCarUserManagerHelper.isCurrentProcessUserHasRestriction(DISALLOW_BLUETOOTH) in getAvailabilityStatus()
DBluetoothDevicePreferenceController.java78 return getCarUserManagerHelper().isCurrentProcessUserHasRestriction( in getAvailabilityStatus()
DBluetoothBondedDevicesPreferenceController.java50 if (!getCarUserManagerHelper().isCurrentProcessUserHasRestriction( in createDevicePreference()
DBluetoothNamePreferenceController.java72 preference.setSelectable(!getCarUserManagerHelper().isCurrentProcessUserHasRestriction( in updateState()
DBluetoothPreferenceController.java78 if (mCarUserManagerHelper.isCurrentProcessUserHasRestriction(DISALLOW_BLUETOOTH)) { in getAvailabilityStatus()
DBluetoothUnbondedDevicesPreferenceController.java77 && getCarUserManagerHelper().isCurrentProcessUserHasRestriction( in getAvailabilityStatus()
DBluetoothSettingsFragment.java115 return mCarUserManagerHelper.isCurrentProcessUserHasRestriction(DISALLOW_BLUETOOTH); in isUserRestricted()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/bluetooth/
DBluetoothEntryPreferenceControllerTest.java73 when(mCarUserManagerHelper.isCurrentProcessUserHasRestriction(any())).thenReturn(false); in getAvailabilityStatus_bluetoothAvailable_available()
82 when(mCarUserManagerHelper.isCurrentProcessUserHasRestriction( in getAvailabilityStatus_bluetoothAvailable_disallowBluetooth_disabledForUser()
DPairNewDevicePreferenceControllerTest.java125 when(mCarUserManagerHelper.isCurrentProcessUserHasRestriction( in getAvailabilityStatus_disallowBluetoothUserRestriction_disabledForUser()
135 when(mCarUserManagerHelper.isCurrentProcessUserHasRestriction( in getAvailabilityStatus_disallowConfigBluetoothUserRestriction_disabledForUser()
DBluetoothBondedDevicesPreferenceControllerTest.java174 when(mCarUserManagerHelper.isCurrentProcessUserHasRestriction( in devicePreferenceButtonClicked_noUserRestrictions_launchesDetailsFragment()
189 when(mCarUserManagerHelper.isCurrentProcessUserHasRestriction( in devicePreferenceButton_disallowConfigBluetooth_actionStaysHidden()
DBluetoothSettingsFragmentTest.java171 when(mCarUserManagerHelper.isCurrentProcessUserHasRestriction( in stateChanged_on_userRestricted_setsSwitchDisabled()
218 when(mCarUserManagerHelper.isCurrentProcessUserHasRestriction( in stateChanged_off_userRestricted_setsSwitchDisabled()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/network/
DMobileNetworkEntryPreferenceControllerTest.java107 when(mCarUserManagerHelper.isCurrentProcessUserHasRestriction( in setUp()
140 when(mCarUserManagerHelper.isCurrentProcessUserHasRestriction( in getAvailabilityStatus_hasRestriction_disabledForUser()
151 when(mCarUserManagerHelper.isCurrentProcessUserHasRestriction( in getAvailabilityStatus_hasMobileNetwork_isAdmin_noRestriction_available()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/system/
DMasterClearEntryPreferenceControllerTest.java92 when(mCarUserManagerHelper.isCurrentProcessUserHasRestriction( in getAvailabilityStatus_adminUser_restricted_disabledForUser()
112 when(mCarUserManagerHelper.isCurrentProcessUserHasRestriction( in getAvailabilityStatus_demoMode_demoUser_restricted_disabledForUser()
DResetNetworkEntryPreferenceControllerTest.java88 when(mCarUserManagerHelper.isCurrentProcessUserHasRestriction( in getAvailabilityStatus_adminUser_restricted_disabledForUser()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowCarUserManagerHelper.java157 protected boolean isCurrentProcessUserHasRestriction(String restriction) { in isCurrentProcessUserHasRestriction() method in ShadowCarUserManagerHelper
158 return sMockInstance.isCurrentProcessUserHasRestriction(restriction); in isCurrentProcessUserHasRestriction()
/packages/apps/Car/Settings/src/com/android/car/settings/applications/
DApplicationDetailsFragment.java242 enabled && !mCarUserManagerHelper.isCurrentProcessUserHasRestriction( in updateForceStopButtonInner()
297 if (mCarUserManagerHelper.isCurrentProcessUserHasRestriction( in shouldDisableUninstallButton()
303 if (mCarUserManagerHelper.isCurrentProcessUserHasRestriction( in shouldDisableUninstallButton()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/
DApplicationDetailsFragmentTest.java166 when(mCarUserManagerHelper.isCurrentProcessUserHasRestriction( in onStart_appsControlUserRestriction_disablesForceStopButton()
445 when(mCarUserManagerHelper.isCurrentProcessUserHasRestriction( in onStart_appsControlUserRestriction_disablesUninstallButton()
457 when(mCarUserManagerHelper.isCurrentProcessUserHasRestriction( in onStart_uninstallAppsRestriction_disablesUninstallButton()
/packages/apps/Car/Settings/src/com/android/car/settings/system/
DResetNetworkEntryPreferenceController.java53 || mCarUserManagerHelper.isCurrentProcessUserHasRestriction(DISALLOW_NETWORK_RESET); in isUserRestricted()
DMasterClearEntryPreferenceController.java57 || mCarUserManagerHelper.isCurrentProcessUserHasRestriction(DISALLOW_FACTORY_RESET); in isUserRestricted()

12