Home
last modified time | relevance | path

Searched refs:isCurrentProcessUserHasRestriction (Results 1 – 25 of 31) 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()
/packages/services/Car/user/car-user-lib/src/android/car/userlib/
DCarUserManagerHelper.java707 public boolean isCurrentProcessUserHasRestriction(String restriction) { in isCurrentProcessUserHasRestriction() method in CarUserManagerHelper
716 return !isCurrentProcessUserHasRestriction(UserManager.DISALLOW_MODIFY_ACCOUNTS) in canCurrentProcessModifyAccounts()
725 return !isCurrentProcessUserHasRestriction(UserManager.DISALLOW_ADD_USER); in canCurrentProcessAddUsers()
732 return !isCurrentProcessUserHasRestriction(UserManager.DISALLOW_REMOVE_USER); in canCurrentProcessRemoveUsers()
745 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()
/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()
DBluetoothUnbondedDevicesPreferenceController.java73 && getCarUserManagerHelper().isCurrentProcessUserHasRestriction( in getAvailabilityStatus()
DBluetoothNamePreferenceController.java72 preference.setSelectable(!getCarUserManagerHelper().isCurrentProcessUserHasRestriction( in updateState()
DBluetoothBondedDevicesPreferenceController.java50 if (!getCarUserManagerHelper().isCurrentProcessUserHasRestriction( in createDevicePreference()
DBluetoothPreferenceController.java78 if (mCarUserManagerHelper.isCurrentProcessUserHasRestriction(DISALLOW_BLUETOOTH)) { in getAvailabilityStatus()
DBluetoothSettingsFragment.java116 return mCarUserManagerHelper.isCurrentProcessUserHasRestriction(DISALLOW_BLUETOOTH); in isUserRestricted()
DBluetoothScanningDevicesGroupPreferenceController.java98 return !getCarUserManagerHelper().isCurrentProcessUserHasRestriction( in shouldEnableScanning()
/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()
DBluetoothSettingsFragmentTest.java169 when(mCarUserManagerHelper.isCurrentProcessUserHasRestriction( in stateChanged_on_userRestricted_setsSwitchDisabled()
216 when(mCarUserManagerHelper.isCurrentProcessUserHasRestriction( in stateChanged_off_userRestricted_setsSwitchDisabled()
DBluetoothBondedDevicesPreferenceControllerTest.java174 when(mCarUserManagerHelper.isCurrentProcessUserHasRestriction( in devicePreferenceButtonClicked_noUserRestrictions_launchesDetailsFragment()
189 when(mCarUserManagerHelper.isCurrentProcessUserHasRestriction( in devicePreferenceButton_disallowConfigBluetooth_actionStaysHidden()
/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.java246 enabled && !mCarUserManagerHelper.isCurrentProcessUserHasRestriction( in updateForceStopButtonInner()
301 if (mCarUserManagerHelper.isCurrentProcessUserHasRestriction( in shouldDisableUninstallButton()
307 if (mCarUserManagerHelper.isCurrentProcessUserHasRestriction( in shouldDisableUninstallButton()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/
DApplicationDetailsFragmentTest.java164 when(mCarUserManagerHelper.isCurrentProcessUserHasRestriction( in onStart_appsControlUserRestriction_disablesForceStopButton()
443 when(mCarUserManagerHelper.isCurrentProcessUserHasRestriction( in onStart_appsControlUserRestriction_disablesUninstallButton()
455 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()
/packages/apps/Car/Settings/src/com/android/car/settings/network/
DMobileNetworkEntryPreferenceController.java79 boolean hasRestriction = mCarUserManagerHelper.isCurrentProcessUserHasRestriction( in getAvailabilityStatus()

12