Home
last modified time | relevance | path

Searched refs:hasUserRestrictionByDpm (Results 1 – 25 of 37) sorted by relevance

12

/packages/apps/Car/Settings/src/com/android/car/settings/location/
DLocationStateSwitchPreferenceController.java23 import static com.android.car.settings.enterprise.EnterpriseUtils.hasUserRestrictionByDpm;
55 if (hasUserRestrictionByDpm(getContext(), DISALLOW_CONFIG_LOCATION) in getDefaultAvailabilityStatus()
56 || hasUserRestrictionByDpm(getContext(), DISALLOW_SHARE_LOCATION) in getDefaultAvailabilityStatus()
71 && !hasUserRestrictionByDpm(getContext(), DISALLOW_SHARE_LOCATION)); in updateState()
97 if (hasUserRestrictionByDpm(getContext(), DISALLOW_SHARE_LOCATION)) { in onCreateInternal()
101 if (hasUserRestrictionByDpm(getContext(), DISALLOW_CONFIG_LOCATION)) { in onCreateInternal()
/packages/apps/Car/Settings/src/com/android/car/settings/system/
DFactoryResetEntryPreferenceController.java22 import static com.android.car.settings.enterprise.EnterpriseUtils.hasUserRestrictionByDpm;
57 if (hasUserRestrictionByDpm(getContext(), DISALLOW_FACTORY_RESET)) { in onCreateInternal()
70 || hasUserRestrictionByDpm(getContext(), DISALLOW_FACTORY_RESET)) { in getDefaultAvailabilityStatus()
DResetNetworkEntryPreferenceController.java22 import static com.android.car.settings.enterprise.EnterpriseUtils.hasUserRestrictionByDpm;
53 if (hasUserRestrictionByDpm(getContext(), DISALLOW_NETWORK_RESET)) { in onCreateInternal()
71 if (hasUserRestrictionByDpm(getContext(), DISALLOW_NETWORK_RESET)) { in getDefaultAvailabilityStatus()
DDeveloperOptionsEntryPreferenceController.java22 import static com.android.car.settings.enterprise.EnterpriseUtils.hasUserRestrictionByDpm;
57 if (hasUserRestrictionByDpm(getContext(), DISALLOW_DEBUGGING_FEATURES)) { in getDefaultAvailabilityStatus()
68 if (hasUserRestrictionByDpm(getContext(), DISALLOW_DEBUGGING_FEATURES)) { in onCreateInternal()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/enterprise/
DEnterpriseUtilsTest.java25 import static com.android.car.settings.enterprise.EnterpriseUtils.hasUserRestrictionByDpm;
134 assertThat(hasUserRestrictionByDpm(mSpiedContext, TEST_RESTRICTION)).isFalse(); in testUserRestriction_notBaseRestricted_notUmRestricted()
142 assertThat(hasUserRestrictionByDpm(mSpiedContext, TEST_RESTRICTION)).isFalse(); in testUserRestriction_baseRestricted_umRestricted()
151 assertThat(hasUserRestrictionByDpm(mSpiedContext, TEST_RESTRICTION)).isTrue(); in testUserRestriction_notBaseRestricted_umRestricted()
/packages/apps/Car/Settings/src/com/android/car/settings/display/
DAdaptiveBrightnessTogglePreferenceController.java22 import static com.android.car.settings.enterprise.EnterpriseUtils.hasUserRestrictionByDpm;
72 if (hasUserRestrictionByDpm(getContext(), DISALLOW_CONFIG_BRIGHTNESS)) { in onCreateInternal()
107 || hasUserRestrictionByDpm(getContext(), DISALLOW_CONFIG_BRIGHTNESS)) { in getDefaultAvailabilityStatus()
DBrightnessLevelPreferenceController.java22 import static com.android.car.settings.enterprise.EnterpriseUtils.hasUserRestrictionByDpm;
86 if (hasUserRestrictionByDpm(getContext(), DISALLOW_CONFIG_BRIGHTNESS)) { in onCreateInternal()
138 || hasUserRestrictionByDpm(getContext(), DISALLOW_CONFIG_BRIGHTNESS)) { in getDefaultAvailabilityStatus()
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/
DAddWifiPreferenceController.java21 import static com.android.car.settings.enterprise.EnterpriseUtils.hasUserRestrictionByDpm;
66 || hasUserRestrictionByDpm(context, DISALLOW_ADD_WIFI_CONFIG)) { in getDefaultAvailabilityStatus()
DWifiUtil.java25 import static com.android.car.settings.enterprise.EnterpriseUtils.hasUserRestrictionByDpm;
141 return hasUserRestrictionByDpm(context, DISALLOW_CONFIG_WIFI); in isConfigWifiRestrictedByDpm()
434 if (hasUserRestrictionByDpm(context, restriction)) { in runClickableWhileDisabled()
/packages/apps/Car/Settings/src/com/android/car/settings/security/
DCredentialsResetPreferenceController.java54 .hasUserRestrictionByDpm(getContext(), DISALLOW_CONFIG_CREDENTIALS)) { in onCreateInternal()
65 if (EnterpriseUtils.hasUserRestrictionByDpm(getContext(), DISALLOW_CONFIG_CREDENTIALS)) { in getDefaultAvailabilityStatus()
/packages/apps/Car/Settings/src/com/android/car/settings/datetime/
DDatetimeUtils.java23 import static com.android.car.settings.enterprise.EnterpriseUtils.hasUserRestrictionByDpm;
60 if (hasUserRestrictionByDpm(context, DISALLOW_CONFIG_DATE_TIME)) { in runClickableWhileDisabled()
/packages/apps/Car/Settings/src/com/android/car/settings/enterprise/
DEnterpriseUtils.java131 if (hasUserRestrictionByDpm(context, restriction)) { in getAvailabilityStatusRestricted()
144 public static boolean hasUserRestrictionByDpm(Context context, String restriction) { in hasUserRestrictionByDpm() method in EnterpriseUtils
163 if (hasUserRestrictionByDpm(context, restriction)) { in onClickWhileDisabled()
305 if (hasUserRestrictionByDpm(context, restriction)) { in getEnforcedAdmin()
/packages/apps/Car/Settings/src/com/android/car/settings/profiles/
DAddProfilePreferenceController.java19 import static com.android.car.settings.enterprise.EnterpriseUtils.hasUserRestrictionByDpm;
99 || hasUserRestrictionByDpm(getContext(), UserManager.DISALLOW_ADD_USER)) { in handlePreferenceClicked()
DRemoveProfileHandler.java25 import static com.android.car.settings.enterprise.EnterpriseUtils.hasUserRestrictionByDpm;
185 if (hasUserRestrictionByDpm(mContext, DISALLOW_REMOVE_USER)) { in runClickableWhileDisabled()
DAddProfileHandler.java25 import static com.android.car.settings.enterprise.EnterpriseUtils.hasUserRestrictionByDpm;
195 if (hasUserRestrictionByDpm(mContext, DISALLOW_ADD_USER)) { in runClickableWhileDisabled()
DProfileDetailsActionButtonsPreferenceController.java22 import static com.android.car.settings.enterprise.EnterpriseUtils.hasUserRestrictionByDpm;
139 && !hasUserRestrictionByDpm(getContext(), DISALLOW_ADD_USER); in onStartInternal()
/packages/apps/Car/Settings/src/com/android/car/settings/privacy/
DCameraTogglePreferenceController.java20 import static com.android.car.settings.enterprise.EnterpriseUtils.hasUserRestrictionByDpm;
87 if (hasUserRestrictionByDpm(getContext(), UserManager.DISALLOW_CAMERA_TOGGLE)) { in updateState()
DCameraInfotainmentAppsTogglePreferenceController.java20 import static com.android.car.settings.enterprise.EnterpriseUtils.hasUserRestrictionByDpm;
90 if (hasUserRestrictionByDpm(getContext(), UserManager.DISALLOW_CAMERA_TOGGLE)) { in updateState()
DMicTogglePreferenceController.java20 import static com.android.car.settings.enterprise.EnterpriseUtils.hasUserRestrictionByDpm;
105 if (hasUserRestrictionByDpm(getContext(), UserManager.DISALLOW_MICROPHONE_TOGGLE)) { in updateState()
DCameraRequiredAppsTogglePreferenceController.java20 import static com.android.car.settings.enterprise.EnterpriseUtils.hasUserRestrictionByDpm;
112 if (hasUserRestrictionByDpm(getContext(), UserManager.DISALLOW_CAMERA_TOGGLE)) { in updateState()
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
DBluetoothDeviceProfilesPreferenceController.java21 import static com.android.car.settings.enterprise.EnterpriseUtils.hasUserRestrictionByDpm;
81 if (hasUserRestrictionByDpm(getContext(), DISALLOW_CONFIG_BLUETOOTH)) { in updateState()
DBluetoothBondedDevicesPreferenceController.java21 import static com.android.car.settings.enterprise.EnterpriseUtils.hasUserRestrictionByDpm;
243 if (hasUserRestrictionByDpm(getContext(), DISALLOW_CONFIG_BLUETOOTH)) { in setButtonsCheckedAndListeners()
262 if (hasUserRestrictionByDpm(getContext(), DISALLOW_CONFIG_BLUETOOTH)) { in setButtonsCheckedAndListeners()
DPairNewDevicePreferenceController.java23 import static com.android.car.settings.enterprise.EnterpriseUtils.hasUserRestrictionByDpm;
111 if (hasUserRestrictionByDpm(getContext(), DISALLOW_CONFIG_BLUETOOTH)) { in getDefaultAvailabilityStatus()
/packages/apps/Car/Settings/src/com/android/car/settings/accounts/
DAccountDetailsPreferenceController.java22 import static com.android.car.settings.enterprise.EnterpriseUtils.hasUserRestrictionByDpm;
160 if (hasUserRestrictionByDpm(getContext(), DISALLOW_MODIFY_ACCOUNTS)) { in onRemoveAccountClicked()
/packages/apps/Car/Settings/src/com/android/car/settings/sound/
DVolumeSettingsPreferenceController.java30 import static com.android.car.settings.enterprise.EnterpriseUtils.hasUserRestrictionByDpm;
156 if (hasUserRestrictionByDpm(getContext(), DISALLOW_ADJUST_VOLUME)) { in generateVolumePreferences()
301 || hasUserRestrictionByDpm(getContext(), DISALLOW_ADJUST_VOLUME)) { in getDefaultAvailabilityStatus()

12