DevicePolicyIdentifiers
public
final
class
DevicePolicyIdentifiers
extends Object
java.lang.Object | |
↳ | android.app.admin.DevicePolicyIdentifiers |
Class containing identifiers for policy APIs in DevicePolicyManager
, for example they
will be passed in PolicyUpdateReceiver.onPolicySetResult
and
PolicyUpdateReceiver.onPolicyChanged
to communicate updates of a certain policy back
to the admin.
Summary
Public methods | |
---|---|
static
String
|
getIdentifierForUserRestriction(String restriction)
Returns a string identifier for the provided user restrictions, see
|
Inherited methods | |
---|---|
Constants
ACCOUNT_MANAGEMENT_DISABLED_POLICY
public static final String ACCOUNT_MANAGEMENT_DISABLED_POLICY
String identifier for DevicePolicyManager.setAccountManagementDisabled
.
Constant Value: "accountManagementDisabled"
APPLICATION_HIDDEN_POLICY
public static final String APPLICATION_HIDDEN_POLICY
String identifier for DevicePolicyManager.setApplicationHidden
.
Constant Value: "applicationHidden"
APPLICATION_RESTRICTIONS_POLICY
public static final String APPLICATION_RESTRICTIONS_POLICY
String identifier for DevicePolicyManager.setApplicationRestrictions
.
Constant Value: "applicationRestrictions"
AUTO_TIMEZONE_POLICY
public static final String AUTO_TIMEZONE_POLICY
String identifier for DevicePolicyManager.setAutoTimeZoneEnabled
.
Constant Value: "autoTimezone"
AUTO_TIME_POLICY
public static final String AUTO_TIME_POLICY
String identifier for DevicePolicyManager.setAutoTimeEnabled
.
Constant Value: "autoTime"
BACKUP_SERVICE_POLICY
public static final String BACKUP_SERVICE_POLICY
String identifier for DevicePolicyManager.setBackupServiceEnabled
.
Constant Value: "backupService"
CAMERA_DISABLED_POLICY
public static final String CAMERA_DISABLED_POLICY
String identifier for DevicePolicyManager.setCameraDisabled
.
Constant Value: "cameraDisabled"
CONTENT_PROTECTION_POLICY
public static final String CONTENT_PROTECTION_POLICY
String identifier for DevicePolicyManager.setContentProtectionPolicy
.
Constant Value: "contentProtection"
KEYGUARD_DISABLED_FEATURES_POLICY
public static final String KEYGUARD_DISABLED_FEATURES_POLICY
String identifier for DevicePolicyManager.setKeyguardDisabledFeatures
.
Constant Value: "keyguardDisabledFeatures"
LOCK_TASK_POLICY
public static final String LOCK_TASK_POLICY
String identifier for DevicePolicyManager.setLockTaskPackages
.
Constant Value: "lockTask"
PACKAGES_SUSPENDED_POLICY
public static final String PACKAGES_SUSPENDED_POLICY
String identifier for DevicePolicyManager.setPackagesSuspended
.
Constant Value: "packagesSuspended"
PACKAGE_UNINSTALL_BLOCKED_POLICY
public static final String PACKAGE_UNINSTALL_BLOCKED_POLICY
String identifier for DevicePolicyManager.setUninstallBlocked
.
Constant Value: "packageUninstallBlocked"
PASSWORD_COMPLEXITY_POLICY
public static final String PASSWORD_COMPLEXITY_POLICY
String identifier for DevicePolicyManager.setRequiredPasswordComplexity
.
Constant Value: "passwordComplexity"
PERMISSION_GRANT_POLICY
public static final String PERMISSION_GRANT_POLICY
String identifier for DevicePolicyManager.setPermissionGrantState
.
Constant Value: "permissionGrant"
PERSISTENT_PREFERRED_ACTIVITY_POLICY
public static final String PERSISTENT_PREFERRED_ACTIVITY_POLICY
String identifier for DevicePolicyManager.addPersistentPreferredActivity
.
Constant Value: "persistentPreferredActivity"
RESET_PASSWORD_TOKEN_POLICY
public static final String RESET_PASSWORD_TOKEN_POLICY
String identifier for DevicePolicyManager.setResetPasswordToken
.
Constant Value: "resetPasswordToken"
SECURITY_LOGGING_POLICY
public static final String SECURITY_LOGGING_POLICY
String identifier for DevicePolicyManager.setSecurityLoggingEnabled
.
Constant Value: "securityLogging"
STATUS_BAR_DISABLED_POLICY
public static final String STATUS_BAR_DISABLED_POLICY
String identifier for DevicePolicyManager.setStatusBarDisabled
.
Constant Value: "statusBarDisabled"
USB_DATA_SIGNALING_POLICY
public static final String USB_DATA_SIGNALING_POLICY
String identifier for DevicePolicyManager.setUsbDataSignalingEnabled
.
Constant Value: "usbDataSignaling"
USER_CONTROL_DISABLED_PACKAGES_POLICY
public static final String USER_CONTROL_DISABLED_PACKAGES_POLICY
String identifier for DevicePolicyManager.setUserControlDisabledPackages
.
Constant Value: "userControlDisabledPackages"
Public methods
getIdentifierForUserRestriction
public static String getIdentifierForUserRestriction (String restriction)
Returns a string identifier for the provided user restrictions, see
DevicePolicyManager.addUserRestriction
and UserManager
for the list of
available restrictions.
Returns | |
---|---|
String |
This value cannot be null . |