Home
last modified time | relevance | path

Searched refs:DevicePolicyManager (Results 1 – 25 of 142) sorted by relevance

123456

/frameworks/opt/car/services/tests/src/com/android/internal/car/
DCarDevicePolicySafetyCheckerTest.java18 import static android.app.admin.DevicePolicyManager.operationToString;
24 import android.app.admin.DevicePolicyManager;
25 import android.app.admin.DevicePolicyManager.DevicePolicyOperation;
67 { DevicePolicyManager.OPERATION_CLEAR_APPLICATION_USER_DATA, false }, in packageManagers()
68 { DevicePolicyManager.OPERATION_LOGOUT_USER, false }, in packageManagers()
69 { DevicePolicyManager.OPERATION_REBOOT, false }, in packageManagers()
70 { DevicePolicyManager.OPERATION_REQUEST_BUGREPORT, false }, in packageManagers()
71 { DevicePolicyManager.OPERATION_SET_APPLICATION_HIDDEN, false }, in packageManagers()
72 { DevicePolicyManager.OPERATION_SET_APPLICATION_RESTRICTIONS, false }, in packageManagers()
73 { DevicePolicyManager.OPERATION_SET_KEYGUARD_DISABLED, false }, in packageManagers()
[all …]
/frameworks/opt/car/services/src/com/android/internal/car/
DCarDevicePolicySafetyChecker.java18 import static android.app.admin.DevicePolicyManager.OPERATION_CLEAR_APPLICATION_USER_DATA;
19 import static android.app.admin.DevicePolicyManager.OPERATION_LOGOUT_USER;
20 import static android.app.admin.DevicePolicyManager.OPERATION_REBOOT;
21 import static android.app.admin.DevicePolicyManager.OPERATION_REQUEST_BUGREPORT;
22 import static android.app.admin.DevicePolicyManager.OPERATION_SAFETY_REASON_DRIVING_DISTRACTION;
23 import static android.app.admin.DevicePolicyManager.OPERATION_SET_APPLICATION_HIDDEN;
24 import static android.app.admin.DevicePolicyManager.OPERATION_SET_APPLICATION_RESTRICTIONS;
25 import static android.app.admin.DevicePolicyManager.OPERATION_SET_KEYGUARD_DISABLED;
26 import static android.app.admin.DevicePolicyManager.OPERATION_SET_LOCK_TASK_FEATURES;
27 import static android.app.admin.DevicePolicyManager.OPERATION_SET_LOCK_TASK_PACKAGES;
[all …]
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardSecurityModel.java20 import android.app.admin.DevicePolicyManager;
78 case DevicePolicyManager.PASSWORD_QUALITY_NUMERIC: in getSecurityMode()
79 case DevicePolicyManager.PASSWORD_QUALITY_NUMERIC_COMPLEX: in getSecurityMode()
82 case DevicePolicyManager.PASSWORD_QUALITY_ALPHABETIC: in getSecurityMode()
83 case DevicePolicyManager.PASSWORD_QUALITY_ALPHANUMERIC: in getSecurityMode()
84 case DevicePolicyManager.PASSWORD_QUALITY_COMPLEX: in getSecurityMode()
85 case DevicePolicyManager.PASSWORD_QUALITY_MANAGED: in getSecurityMode()
88 case DevicePolicyManager.PASSWORD_QUALITY_SOMETHING: in getSecurityMode()
90 case DevicePolicyManager.PASSWORD_QUALITY_UNSPECIFIED: in getSecurityMode()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DRestrictedLockUtilsInternal.java19 import static android.app.admin.DevicePolicyManager.KEYGUARD_DISABLE_FEATURES_NONE;
20 import static android.app.admin.DevicePolicyManager.PROFILE_KEYGUARD_FEATURES_AFFECT_OWNER;
26 import android.app.admin.DevicePolicyManager;
88 final DevicePolicyManager dpm = (DevicePolicyManager) context.getSystemService( in checkIfRestrictionEnforced()
162 DevicePolicyManager dpm = in checkIfKeyguardFeaturesDisabled()
163 (DevicePolicyManager) context.getSystemService(Context.DEVICE_POLICY_SERVICE); in checkIfKeyguardFeaturesDisabled()
195 @NonNull DevicePolicyManager dpm, @UserIdInt int userId, in findEnforcedAdmin()
259 DevicePolicyManager dpm = (DevicePolicyManager) context.getSystemService( in checkIfInputMethodDisallowed()
281 DevicePolicyManager parentDpm = sProxy.getParentProfileInstance(dpm, in checkIfInputMethodDisallowed()
303 DevicePolicyManager dpm = (DevicePolicyManager) context.getSystemService( in checkIfRemoteContactSearchDisallowed()
[all …]
/frameworks/base/core/java/android/app/admin/
DPasswordPolicy.java19 import static android.app.admin.DevicePolicyManager.PASSWORD_QUALITY_ALPHABETIC;
20 import static android.app.admin.DevicePolicyManager.PASSWORD_QUALITY_ALPHANUMERIC;
21 import static android.app.admin.DevicePolicyManager.PASSWORD_QUALITY_BIOMETRIC_WEAK;
22 import static android.app.admin.DevicePolicyManager.PASSWORD_QUALITY_COMPLEX;
23 import static android.app.admin.DevicePolicyManager.PASSWORD_QUALITY_NUMERIC;
24 import static android.app.admin.DevicePolicyManager.PASSWORD_QUALITY_NUMERIC_COMPLEX;
25 import static android.app.admin.DevicePolicyManager.PASSWORD_QUALITY_SOMETHING;
26 import static android.app.admin.DevicePolicyManager.PASSWORD_QUALITY_UNSPECIFIED;
DProvisioningException.java31 private final @DevicePolicyManager.ProvisioningResult int mProvisioningResult;
34 @DevicePolicyManager.ProvisioningResult int provisioningResult) { in ProvisioningException()
39 public @DevicePolicyManager.ProvisioningResult int getProvisioningResult() { in getProvisioningResult()
DUnsafeStateException.java18 import static android.app.admin.DevicePolicyManager.isValidOperationSafetyReason;
22 import android.app.admin.DevicePolicyManager.DevicePolicyOperation;
23 import android.app.admin.DevicePolicyManager.OperationSafetyReason;
77 return DevicePolicyManager.operationSafetyReasonToString(mReason); in getMessage()
DDevicePolicySafetyChecker.java19 import android.app.admin.DevicePolicyManager.DevicePolicyOperation;
20 import android.app.admin.DevicePolicyManager.OperationSafetyReason;
/frameworks/base/core/java/android/hardware/biometrics/
DParentalControlsUtilsInternal.java21 import android.app.admin.DevicePolicyManager;
47 @NonNull DevicePolicyManager dpm, @BiometricAuthenticator.Modality int modality, in parentConsentRequired()
59 public static boolean parentConsentRequired(@NonNull DevicePolicyManager dpm, in parentConsentRequired()
68 DevicePolicyManager.KEYGUARD_DISABLE_FINGERPRINT); in parentConsentRequired()
70 DevicePolicyManager.KEYGUARD_DISABLE_FACE); in parentConsentRequired()
72 DevicePolicyManager.KEYGUARD_DISABLE_IRIS); in parentConsentRequired()
89 public static ComponentName getSupervisionComponentName(@NonNull DevicePolicyManager dpm, in getSupervisionComponentName()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/enterprise/
DActionDisabledByAdminControllerFactory.java19 import static android.app.admin.DevicePolicyManager.DEVICE_OWNER_TYPE_FINANCED;
24 import android.app.admin.DevicePolicyManager;
66 DevicePolicyManager dpm = context.getSystemService(DevicePolicyManager.class); in doesBiometricRequireParentalConsent()
72 DevicePolicyManager dpm = context.getSystemService(DevicePolicyManager.class); in isFinancedDevice()
DManagedDeviceActionDisabledByAdminController.java21 import android.app.admin.DevicePolicyManager;
135 case DevicePolicyManager.POLICY_DISABLE_CAMERA: in getAdminSupportTitle()
137 case DevicePolicyManager.POLICY_DISABLE_SCREEN_CAPTURE: in getAdminSupportTitle()
139 case DevicePolicyManager.POLICY_SUSPEND_PACKAGES: in getAdminSupportTitle()
/frameworks/base/core/java/android/permission/
DAdminPermissionControlParams.java19 import static android.app.admin.DevicePolicyManager.PERMISSION_GRANT_STATE_DEFAULT;
20 import static android.app.admin.DevicePolicyManager.PERMISSION_GRANT_STATE_DENIED;
21 import static android.app.admin.DevicePolicyManager.PERMISSION_GRANT_STATE_GRANTED;
27 import android.app.admin.DevicePolicyManager;
48 private final @DevicePolicyManager.PermissionGrantState int mGrantState;
59 @DevicePolicyManager.PermissionGrantState int grantState, in AdminPermissionControlParams()
116 public @DevicePolicyManager.PermissionGrantState int getGrantState() { in getGrantState()
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/
DUtils.java26 import android.app.admin.DevicePolicyManager;
87 case DevicePolicyManager.PASSWORD_QUALITY_SOMETHING: in getCredentialType()
89 case DevicePolicyManager.PASSWORD_QUALITY_NUMERIC: in getCredentialType()
90 case DevicePolicyManager.PASSWORD_QUALITY_NUMERIC_COMPLEX: in getCredentialType()
92 case DevicePolicyManager.PASSWORD_QUALITY_ALPHABETIC: in getCredentialType()
93 case DevicePolicyManager.PASSWORD_QUALITY_ALPHANUMERIC: in getCredentialType()
94 case DevicePolicyManager.PASSWORD_QUALITY_COMPLEX: in getCredentialType()
95 case DevicePolicyManager.PASSWORD_QUALITY_MANAGED: in getCredentialType()
/frameworks/base/services/core/java/com/android/server/notification/
DVisibilityExtractor.java20 import android.app.admin.DevicePolicyManager;
33 private DevicePolicyManager mDpm;
37 mDpm = ctx.getSystemService(DevicePolicyManager.class); in initialize()
59 DevicePolicyManager.KEYGUARD_DISABLE_SECURE_NOTIFICATIONS); in process()
72 DevicePolicyManager.KEYGUARD_DISABLE_UNREDACTED_NOTIFICATIONS); in process()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/
DDevicePolicyManagerWrapper.java20 import android.app.admin.DevicePolicyManager;
28 private static final DevicePolicyManager sDevicePolicyManager =
29 AppGlobals.getInitialApplication().getSystemService(DevicePolicyManager.class);
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DOneTimeSafetyChecker.java18 import static android.app.admin.DevicePolicyManager.OPERATION_SAFETY_REASON_NONE;
19 import static android.app.admin.DevicePolicyManager.operationSafetyReasonToString;
20 import static android.app.admin.DevicePolicyManager.operationToString;
22 import android.app.admin.DevicePolicyManager.DevicePolicyOperation;
23 import android.app.admin.DevicePolicyManager.OperationSafetyReason;
DDevicePolicyManagerServiceShellCommand.java19 import android.app.admin.DevicePolicyManager;
168 boolean safe = reason == DevicePolicyManager.OPERATION_SAFETY_REASON_NONE; in runIsSafeOperation()
170 DevicePolicyManager.operationToString(operation), safeToString(safe), in runIsSafeOperation()
171 DevicePolicyManager.operationSafetyReasonToString(reason)); in runIsSafeOperation()
179 DevicePolicyManager.operationSafetyReasonToString(reason), safeToString(safe)); in runIsSafeOperationByReason()
192 DevicePolicyManager.operationToString(operation), in runSetSafeOperation()
193 DevicePolicyManager.operationSafetyReasonToString(reason)); in runSetSafeOperation()
267 DevicePolicyManager.STATE_USER_SETUP_FINALIZED, mUserId); in runSetDeviceOwner()
298 DevicePolicyManager.STATE_USER_SETUP_FINALIZED, mUserId); in runSetProfileOwner()
DRemoteBugreportManager.java19 import static android.app.admin.DevicePolicyManager.ACTION_BUGREPORT_SHARING_ACCEPTED;
20 import static android.app.admin.DevicePolicyManager.ACTION_BUGREPORT_SHARING_DECLINED;
21 import static android.app.admin.DevicePolicyManager.ACTION_REMOTE_BUGREPORT_DISPATCH;
22 import static android.app.admin.DevicePolicyManager.EXTRA_BUGREPORT_NOTIFICATION_TYPE;
23 import static android.app.admin.DevicePolicyManager.EXTRA_REMOTE_BUGREPORT_HASH;
24 import static android.app.admin.DevicePolicyManager.NOTIFICATION_BUGREPORT_ACCEPTED_NOT_FINISHED;
25 import static android.app.admin.DevicePolicyManager.NOTIFICATION_BUGREPORT_FINISHED_NOT_ACCEPTED;
26 import static android.app.admin.DevicePolicyManager.NOTIFICATION_BUGREPORT_STARTED;
DDevicePolicyCacheImpl.java20 import android.app.admin.DevicePolicyManager;
78 DevicePolicyManager.PASSWORD_QUALITY_UNSPECIFIED); in getPasswordQuality()
93 DevicePolicyManager.PERMISSION_POLICY_PROMPT); in getPermissionPolicy()
/frameworks/base/core/tests/coretests/src/android/app/admin/
DPasswordPolicyTest.java19 import static android.app.admin.DevicePolicyManager.PASSWORD_QUALITY_ALPHABETIC;
20 import static android.app.admin.DevicePolicyManager.PASSWORD_QUALITY_ALPHANUMERIC;
21 import static android.app.admin.DevicePolicyManager.PASSWORD_QUALITY_BIOMETRIC_WEAK;
22 import static android.app.admin.DevicePolicyManager.PASSWORD_QUALITY_COMPLEX;
23 import static android.app.admin.DevicePolicyManager.PASSWORD_QUALITY_NUMERIC;
24 import static android.app.admin.DevicePolicyManager.PASSWORD_QUALITY_NUMERIC_COMPLEX;
25 import static android.app.admin.DevicePolicyManager.PASSWORD_QUALITY_SOMETHING;
26 import static android.app.admin.DevicePolicyManager.PASSWORD_QUALITY_UNSPECIFIED;
/frameworks/base/packages/SettingsLib/RestrictedLockUtils/src/com/android/settingslib/
DRestrictedLockUtils.java19 import android.app.admin.DevicePolicyManager;
56 final DevicePolicyManager dpm = (DevicePolicyManager) context.getSystemService( in getProfileOrDeviceOwner()
70 DevicePolicyManager.class).getProfileOwner(); in getProfileOrDeviceOwner()
95 intent.putExtra(DevicePolicyManager.EXTRA_RESTRICTION, admin.enforcedRestriction); in sendShowAdminSupportDetailsIntent()
104 intent.putExtra(DevicePolicyManager.EXTRA_DEVICE_ADMIN, admin.component); in getShowAdminSupportDetailsIntent()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDevicePolicyManagerTest.java23 import static android.app.admin.DevicePolicyManager.ACTION_CHECK_POLICY_COMPLIANCE;
24 import static android.app.admin.DevicePolicyManager.DELEGATION_APP_RESTRICTIONS;
25 import static android.app.admin.DevicePolicyManager.DELEGATION_CERT_INSTALL;
26 import static android.app.admin.DevicePolicyManager.DEVICE_OWNER_TYPE_DEFAULT;
27 import static android.app.admin.DevicePolicyManager.DEVICE_OWNER_TYPE_FINANCED;
28 import static android.app.admin.DevicePolicyManager.ID_TYPE_BASE_INFO;
29 import static android.app.admin.DevicePolicyManager.ID_TYPE_IMEI;
30 import static android.app.admin.DevicePolicyManager.ID_TYPE_MEID;
31 import static android.app.admin.DevicePolicyManager.ID_TYPE_SERIAL;
32 import static android.app.admin.DevicePolicyManager.PASSWORD_COMPLEXITY_HIGH;
[all …]
DDevicePolicyManagerTestable.java18 import android.app.admin.DevicePolicyManager;
24 public class DevicePolicyManagerTestable extends DevicePolicyManager {
/frameworks/base/services/core/java/com/android/server/biometrics/
DPreAuthInfo.java27 import android.app.admin.DevicePolicyManager;
88 DevicePolicyManager devicePolicyManager, in create()
144 DevicePolicyManager devicePolicyManager, in getStatusForBiometricAuthenticator()
204 DevicePolicyManager devicePolicyManager, @BiometricAuthenticator.Modality int modality, in isBiometricDisabledByDevicePolicy()
207 if (biometricToCheck == DevicePolicyManager.KEYGUARD_DISABLE_FEATURES_NONE) { in isBiometricDisabledByDevicePolicy()
227 return DevicePolicyManager.KEYGUARD_DISABLE_FINGERPRINT; in mapModalityToDevicePolicyType()
229 return DevicePolicyManager.KEYGUARD_DISABLE_IRIS; in mapModalityToDevicePolicyType()
231 return DevicePolicyManager.KEYGUARD_DISABLE_FACE; in mapModalityToDevicePolicyType()
234 return DevicePolicyManager.KEYGUARD_DISABLE_FEATURES_NONE; in mapModalityToDevicePolicyType()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
DScreenshotNotificationsController.java24 import android.app.admin.DevicePolicyManager;
79 final DevicePolicyManager dpm = in notifyScreenshotError()
80 (DevicePolicyManager) mContext.getSystemService(Context.DEVICE_POLICY_SERVICE); in notifyScreenshotError()
82 dpm.createAdminSupportIntent(DevicePolicyManager.POLICY_DISABLE_SCREEN_CAPTURE); in notifyScreenshotError()

123456