Home
last modified time | relevance | path

Searched refs:hasUserRestrictionByUm (Results 1 – 25 of 29) sorted by relevance

12

/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/enterprise/
DEnterpriseUtilsTest.java26 import static com.android.car.settings.enterprise.EnterpriseUtils.hasUserRestrictionByUm;
133 assertThat(hasUserRestrictionByUm(mSpiedContext, TEST_RESTRICTION)).isFalse(); in testUserRestriction_notBaseRestricted_notUmRestricted()
141 assertThat(hasUserRestrictionByUm(mSpiedContext, TEST_RESTRICTION)).isTrue(); in testUserRestriction_baseRestricted_umRestricted()
150 assertThat(hasUserRestrictionByUm(mSpiedContext, TEST_RESTRICTION)).isFalse(); in testUserRestriction_notBaseRestricted_umRestricted()
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/
DAddWifiPreferenceController.java22 import static com.android.car.settings.enterprise.EnterpriseUtils.hasUserRestrictionByUm;
65 if (hasUserRestrictionByUm(context, DISALLOW_ADD_WIFI_CONFIG) in getDefaultAvailabilityStatus()
DWifiUtil.java26 import static com.android.car.settings.enterprise.EnterpriseUtils.hasUserRestrictionByUm;
134 return hasUserRestrictionByUm(context, DISALLOW_CONFIG_WIFI); in isConfigWifiRestrictedByUm()
/packages/apps/Car/Settings/src/com/android/car/settings/accounts/
DAccountGroupPreferenceController.java21 import static com.android.car.settings.enterprise.EnterpriseUtils.hasUserRestrictionByUm;
67 || hasUserRestrictionByUm(getContext(), DISALLOW_MODIFY_ACCOUNTS)) { in getDefaultAvailabilityStatus()
DAddAccountPreferenceController.java22 import static com.android.car.settings.enterprise.EnterpriseUtils.hasUserRestrictionByUm;
142 || hasUserRestrictionByUm(getContext(), DISALLOW_MODIFY_ACCOUNTS)) { in getDefaultAvailabilityStatus()
DAccountDetailsPreferenceController.java23 import static com.android.car.settings.enterprise.EnterpriseUtils.hasUserRestrictionByUm;
153 || hasUserRestrictionByUm(getContext(), DISALLOW_MODIFY_ACCOUNTS)) { in getSecondaryActionAvailabilityStatus()
DAccountListPreferenceController.java21 import static com.android.car.settings.enterprise.EnterpriseUtils.hasUserRestrictionByUm;
119 || hasUserRestrictionByUm(getContext(), DISALLOW_MODIFY_ACCOUNTS)) { in getDefaultAvailabilityStatus()
/packages/apps/Car/Settings/src/com/android/car/settings/language/
DLanguageSettingsEntryPreferenceController.java21 import static com.android.car.settings.enterprise.EnterpriseUtils.hasUserRestrictionByUm;
59 if (hasUserRestrictionByUm(getContext(), DISALLOW_CONFIG_LOCALE)) { in getDefaultAvailabilityStatus()
/packages/apps/Car/Settings/src/com/android/car/settings/system/
DFactoryResetEntryPreferenceController.java23 import static com.android.car.settings.enterprise.EnterpriseUtils.hasUserRestrictionByUm;
69 || hasUserRestrictionByUm(getContext(), DISALLOW_FACTORY_RESET) in getDefaultAvailabilityStatus()
DResetNetworkEntryPreferenceController.java23 import static com.android.car.settings.enterprise.EnterpriseUtils.hasUserRestrictionByUm;
67 || hasUserRestrictionByUm(getContext(), DISALLOW_NETWORK_RESET)) { in getDefaultAvailabilityStatus()
/packages/apps/Car/Settings/src/com/android/car/settings/display/
DAdaptiveBrightnessTogglePreferenceController.java23 import static com.android.car.settings.enterprise.EnterpriseUtils.hasUserRestrictionByUm;
106 if (hasUserRestrictionByUm(getContext(), DISALLOW_CONFIG_BRIGHTNESS) in getDefaultAvailabilityStatus()
DBrightnessLevelPreferenceController.java23 import static com.android.car.settings.enterprise.EnterpriseUtils.hasUserRestrictionByUm;
137 if (hasUserRestrictionByUm(getContext(), DISALLOW_CONFIG_BRIGHTNESS) in getDefaultAvailabilityStatus()
/packages/apps/Car/Settings/src/com/android/car/settings/enterprise/
DEnterpriseUtils.java128 if (hasUserRestrictionByUm(context, restriction)) { in getAvailabilityStatusRestricted()
145 if (hasUserRestrictionByUm(context, restriction)) { in hasUserRestrictionByDpm()
155 public static boolean hasUserRestrictionByUm(Context context, String restriction) { in hasUserRestrictionByUm() method in EnterpriseUtils
/packages/apps/Car/Settings/src/com/android/car/settings/profiles/
DRemoveProfileHandler.java26 import static com.android.car.settings.enterprise.EnterpriseUtils.hasUserRestrictionByUm;
149 || hasUserRestrictionByUm(context, DISALLOW_REMOVE_USER)) { in getAvailabilityStatus()
DAddProfileHandler.java26 import static com.android.car.settings.enterprise.EnterpriseUtils.hasUserRestrictionByUm;
174 if (hasUserRestrictionByUm(context, DISALLOW_ADD_USER)) { in getAddProfilePreferenceAvailabilityStatus()
DProfileDetailsActionButtonsPreferenceController.java23 import static com.android.car.settings.enterprise.EnterpriseUtils.hasUserRestrictionByUm;
137 && !hasUserRestrictionByUm(getContext(), DISALLOW_ADD_USER); in onStartInternal()
/packages/apps/Car/Settings/src/com/android/car/settings/security/
DCredentialsResetPreferenceController.java62 if (EnterpriseUtils.hasUserRestrictionByUm(getContext(), DISALLOW_CONFIG_CREDENTIALS)) { in getDefaultAvailabilityStatus()
/packages/apps/Car/Settings/src/com/android/car/settings/qc/
DWifiTile.java63 boolean hasUmRestrictions = EnterpriseUtils.hasUserRestrictionByUm(getContext(), in getQCItem()
DMobileDataTile.java68 boolean hasUmRestrictions = EnterpriseUtils.hasUserRestrictionByUm(getContext(), in getQCItem()
DBluetoothSwitch.java57 boolean hasUmRestrictions = EnterpriseUtils.hasUserRestrictionByUm(getContext(), in getQCItem()
DHotspotTile.java66 boolean hasUmRestrictions = EnterpriseUtils.hasUserRestrictionByUm(getContext(), in getQCItem()
DAdaptiveBrightnessSwitch.java60 boolean hasUmRestrictions = EnterpriseUtils.hasUserRestrictionByUm(getContext(), in getQCItem()
DWifiRow.java70 boolean hasUmRestrictions = EnterpriseUtils.hasUserRestrictionByUm(getContext(), in getQCItem()
DHotspotRow.java73 boolean hasUmRestrictions = EnterpriseUtils.hasUserRestrictionByUm(getContext(), in getQCItem()
/packages/apps/Car/Settings/src/com/android/car/settings/sound/
DVolumeSettingsPreferenceController.java31 import static com.android.car.settings.enterprise.EnterpriseUtils.hasUserRestrictionByUm;
300 if (hasUserRestrictionByUm(getContext(), DISALLOW_ADJUST_VOLUME) in getDefaultAvailabilityStatus()

12