/packages/apps/Car/Settings/src/com/android/car/settings/location/ |
D | LocationStateSwitchPreferenceController.java | 23 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/ |
D | FactoryResetEntryPreferenceController.java | 22 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()
|
D | ResetNetworkEntryPreferenceController.java | 22 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()
|
D | DeveloperOptionsEntryPreferenceController.java | 22 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/ |
D | EnterpriseUtilsTest.java | 25 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/ |
D | AdaptiveBrightnessTogglePreferenceController.java | 22 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()
|
D | BrightnessLevelPreferenceController.java | 22 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/ |
D | AddWifiPreferenceController.java | 21 import static com.android.car.settings.enterprise.EnterpriseUtils.hasUserRestrictionByDpm; 66 || hasUserRestrictionByDpm(context, DISALLOW_ADD_WIFI_CONFIG)) { in getDefaultAvailabilityStatus()
|
D | WifiUtil.java | 25 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/ |
D | CredentialsResetPreferenceController.java | 54 .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/ |
D | DatetimeUtils.java | 23 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/ |
D | EnterpriseUtils.java | 131 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/ |
D | AddProfilePreferenceController.java | 19 import static com.android.car.settings.enterprise.EnterpriseUtils.hasUserRestrictionByDpm; 99 || hasUserRestrictionByDpm(getContext(), UserManager.DISALLOW_ADD_USER)) { in handlePreferenceClicked()
|
D | RemoveProfileHandler.java | 25 import static com.android.car.settings.enterprise.EnterpriseUtils.hasUserRestrictionByDpm; 185 if (hasUserRestrictionByDpm(mContext, DISALLOW_REMOVE_USER)) { in runClickableWhileDisabled()
|
D | AddProfileHandler.java | 25 import static com.android.car.settings.enterprise.EnterpriseUtils.hasUserRestrictionByDpm; 195 if (hasUserRestrictionByDpm(mContext, DISALLOW_ADD_USER)) { in runClickableWhileDisabled()
|
D | ProfileDetailsActionButtonsPreferenceController.java | 22 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/ |
D | CameraTogglePreferenceController.java | 20 import static com.android.car.settings.enterprise.EnterpriseUtils.hasUserRestrictionByDpm; 87 if (hasUserRestrictionByDpm(getContext(), UserManager.DISALLOW_CAMERA_TOGGLE)) { in updateState()
|
D | CameraInfotainmentAppsTogglePreferenceController.java | 20 import static com.android.car.settings.enterprise.EnterpriseUtils.hasUserRestrictionByDpm; 90 if (hasUserRestrictionByDpm(getContext(), UserManager.DISALLOW_CAMERA_TOGGLE)) { in updateState()
|
D | MicTogglePreferenceController.java | 20 import static com.android.car.settings.enterprise.EnterpriseUtils.hasUserRestrictionByDpm; 105 if (hasUserRestrictionByDpm(getContext(), UserManager.DISALLOW_MICROPHONE_TOGGLE)) { in updateState()
|
D | CameraRequiredAppsTogglePreferenceController.java | 20 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/ |
D | BluetoothDeviceProfilesPreferenceController.java | 21 import static com.android.car.settings.enterprise.EnterpriseUtils.hasUserRestrictionByDpm; 81 if (hasUserRestrictionByDpm(getContext(), DISALLOW_CONFIG_BLUETOOTH)) { in updateState()
|
D | BluetoothBondedDevicesPreferenceController.java | 21 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()
|
D | PairNewDevicePreferenceController.java | 23 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/ |
D | AccountDetailsPreferenceController.java | 22 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/ |
D | VolumeSettingsPreferenceController.java | 30 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()
|