Home
last modified time | relevance | path

Searched refs:admin (Results 1 – 25 of 486) sorted by relevance

12345678910>>...20

/frameworks/base/core/java/android/app/admin/
DIDevicePolicyManager.aidl18 package android.app.admin;
21 import android.app.admin.DevicePolicyDrawableResource;
22 import android.app.admin.DevicePolicyStringResource;
23 import android.app.admin.ParcelableResource;
24 import android.app.admin.NetworkEvent;
27 import android.app.admin.ParcelableGranteeMap;
28 import android.app.admin.PreferentialNetworkServiceConfig;
29 import android.app.admin.StartInstallingUpdateCallback;
30 import android.app.admin.SystemUpdateInfo;
31 import android.app.admin.SystemUpdatePolicy;
[all …]
DDevicePolicyManager.java17 package android.app.admin;
56 import static android.app.admin.DeviceAdminInfo.HEADLESS_DEVICE_OWNER_MODE_UNSUPPORTED;
57 import static android.app.admin.flags.Flags.FLAG_DEVICE_POLICY_SIZE_TRACKING_INTERNAL_BUG_FIX_ENABL…
58 import static android.app.admin.flags.Flags.FLAG_DEVICE_THEFT_API_ENABLED;
59 import static android.app.admin.flags.Flags.FLAG_ESIM_MANAGEMENT_ENABLED;
60 import static android.app.admin.flags.Flags.FLAG_DEVICE_POLICY_SIZE_TRACKING_ENABLED;
61 import static android.app.admin.flags.Flags.FLAG_HEADLESS_DEVICE_OWNER_PROVISIONING_FIX_ENABLED;
62 import static android.app.admin.flags.Flags.FLAG_HEADLESS_DEVICE_OWNER_SINGLE_USER_ENABLED;
63 import static android.app.admin.flags.Flags.FLAG_SECURITY_LOG_V2_ENABLED;
64 import static android.app.admin.flags.Flags.onboardingBugreportV2Enabled;
[all …]
DProvisioningIntentHelper.java17 package android.app.admin;
19 import static android.app.admin.DevicePolicyManager.ACTION_PROVISION_MANAGED_DEVICE_FROM_TRUSTED_SO…
20 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_ADMIN_EXTRAS_BUNDLE;
21 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_ALLOW_OFFLINE;
22 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_DEVICE_ADMIN_COMPONENT_NAME;
23 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_DEVICE_ADMIN_MINIMUM_VERSION…
24 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_NAME;
25 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_KEEP_ACCOUNT_ON_MIGRATION;
26 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_KEEP_SCREEN_ON;
27 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_LEAVE_ALL_SYSTEM_APPS_ENABLE…
[all …]
DPasswordPolicy.java17 package android.app.admin;
19 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;
DDelegatedAdminReceiver.java17 package android.app.admin;
19 import static android.app.admin.DeviceAdminReceiver.ACTION_CHOOSE_PRIVATE_KEY_ALIAS;
20 import static android.app.admin.DeviceAdminReceiver.ACTION_NETWORK_LOGS_AVAILABLE;
21 import static android.app.admin.DeviceAdminReceiver.ACTION_SECURITY_LOGS_AVAILABLE;
22 import static android.app.admin.DeviceAdminReceiver.EXTRA_CHOOSE_PRIVATE_KEY_ALIAS;
23 import static android.app.admin.DeviceAdminReceiver.EXTRA_CHOOSE_PRIVATE_KEY_SENDER_UID;
24 import static android.app.admin.DeviceAdminReceiver.EXTRA_CHOOSE_PRIVATE_KEY_URI;
25 import static android.app.admin.DeviceAdminReceiver.EXTRA_NETWORK_LOGS_COUNT;
26 import static android.app.admin.DeviceAdminReceiver.EXTRA_NETWORK_LOGS_TOKEN;
DPolicyState.java17 package android.app.admin;
65 EnforcingAdmin admin = source.readParcelable(EnforcingAdmin.class.getClassLoader()); in PolicyState() local
67 mPoliciesSetByAdmins.put(admin, policyValue); in PolicyState()
79 for (EnforcingAdmin admin : mPoliciesSetByAdmins.keySet()) { in getPoliciesSetByAdmins()
80 policies.put(admin, mPoliciesSetByAdmins.get(admin).getValue()); in getPoliciesSetByAdmins()
120 for (EnforcingAdmin admin : mPoliciesSetByAdmins.keySet()) { in writeToParcel()
121 dest.writeParcelable(admin, flags); in writeToParcel()
122 dest.writeParcelable(mPoliciesSetByAdmins.get(admin), flags); in writeToParcel()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DPolicyState.java21 import android.app.admin.PolicyValue;
71 boolean addPolicy(@NonNull EnforcingAdmin admin, @Nullable PolicyValue<V> policy) { in addPolicy() argument
72 Objects.requireNonNull(admin); in addPolicy()
76 mPoliciesSetByAdmins.remove(admin); in addPolicy()
77 mPoliciesSetByAdmins.put(admin, policy); in addPolicy()
92 @NonNull EnforcingAdmin admin, @Nullable PolicyValue<V> policy, in addPolicy()
94 mPoliciesSetByAdmins.put(Objects.requireNonNull(admin), policy); in addPolicy()
102 boolean removePolicy(@NonNull EnforcingAdmin admin) { in removePolicy() argument
103 Objects.requireNonNull(admin); in removePolicy()
105 if (mPoliciesSetByAdmins.remove(admin) == null) { in removePolicy()
[all …]
DDevicePolicyEngine.java19 import static android.app.admin.DevicePolicyIdentifiers.PACKAGES_SUSPENDED_POLICY;
20 import static android.app.admin.DevicePolicyIdentifiers.USER_CONTROL_DISABLED_PACKAGES_POLICY;
21 import static android.app.admin.PolicyUpdateReceiver.EXTRA_POLICY_TARGET_USER_ID;
22 import static android.app.admin.PolicyUpdateReceiver.EXTRA_POLICY_UPDATE_RESULT_KEY;
23 import static android.app.admin.PolicyUpdateResult.RESULT_FAILURE_CONFLICTING_ADMIN_POLICY;
24 import static android.app.admin.PolicyUpdateResult.RESULT_FAILURE_HARDWARE_LIMITATION;
25 import static android.app.admin.PolicyUpdateResult.RESULT_FAILURE_STORAGE_LIMIT_REACHED;
26 import static android.app.admin.PolicyUpdateResult.RESULT_POLICY_CLEARED;
27 import static android.app.admin.PolicyUpdateResult.RESULT_POLICY_SET;
35 import android.app.admin.BooleanPolicyValue;
[all …]
DOwnerShellData.java34 public final ComponentName admin; field in OwnerShellData
41 private OwnerShellData(@UserIdInt int userId, @UserIdInt int parentUserId, ComponentName admin, in OwnerShellData() argument
46 this.admin = Objects.requireNonNull(admin, "admin must not be null"); in OwnerShellData()
62 .append(",admin=").append(admin.flattenToShortString()); in toString()
81 static OwnerShellData forDeviceOwner(@UserIdInt int userId, ComponentName admin) { in forDeviceOwner() argument
82 return new OwnerShellData(userId, /* parentUserId= */ USER_NULL, admin, in forDeviceOwner()
87 static OwnerShellData forUserProfileOwner(@UserIdInt int userId, ComponentName admin) { in forUserProfileOwner() argument
88 return new OwnerShellData(userId, /* parentUserId= */ USER_NULL, admin, in forUserProfileOwner()
94 ComponentName admin) { in forManagedProfileOwner() argument
95 return new OwnerShellData(userId, parentUserId, admin, /* isDeviceOwner= */ false, in forManagedProfileOwner()
DDevicePolicyManagerService.java112 import static android.app.admin.DeviceAdminInfo.HEADLESS_DEVICE_OWNER_MODE_AFFILIATED;
113 import static android.app.admin.DeviceAdminInfo.HEADLESS_DEVICE_OWNER_MODE_SINGLE_USER;
114 import static android.app.admin.DeviceAdminInfo.HEADLESS_DEVICE_OWNER_MODE_UNSUPPORTED;
115 import static android.app.admin.DeviceAdminInfo.USES_POLICY_FORCE_LOCK;
116 import static android.app.admin.DeviceAdminInfo.USES_POLICY_WIPE_DATA;
117 import static android.app.admin.DeviceAdminReceiver.ACTION_COMPLIANCE_ACKNOWLEDGEMENT_REQUIRED;
118 import static android.app.admin.DeviceAdminReceiver.EXTRA_TRANSFER_OWNERSHIP_ADMIN_EXTRAS_BUNDLE;
119 import static android.app.admin.DevicePolicyManager.ACTION_CHECK_POLICY_COMPLIANCE;
120 import static android.app.admin.DevicePolicyManager.ACTION_DEVICE_FINANCING_STATE_CHANGED;
121 import static android.app.admin.DevicePolicyManager.ACTION_DEVICE_POLICY_RESOURCE_UPDATED;
[all …]
DEnforcingAdmin.java21 import android.app.admin.Authority;
22 import android.app.admin.DeviceAdminAuthority;
23 import android.app.admin.DpcAuthority;
24 import android.app.admin.PackagePermissionPolicyKey;
25 import android.app.admin.RoleAuthority;
26 import android.app.admin.UnknownAuthority;
80 ActiveAdmin admin) { in createEnforcingAdmin() argument
82 return new EnforcingAdmin(packageName, userId, admin); in createEnforcingAdmin()
109 static EnforcingAdmin createEnforcingAdmin(android.app.admin.EnforcingAdmin admin) { in createEnforcingAdmin() argument
110 Objects.requireNonNull(admin); in createEnforcingAdmin()
[all …]
DTopPriority.java20 import android.app.admin.Authority;
21 import android.app.admin.PolicyValue;
45 Optional<EnforcingAdmin> admin = adminPolicies.keySet().stream() in resolve() local
47 if (admin.isPresent()) { in resolve()
48 return adminPolicies.get(admin.get()); in resolve()
58 android.app.admin.TopPriority<V> getParcelableResolutionMechanism() { in getParcelableResolutionMechanism()
59 return new android.app.admin.TopPriority<>(getParcelableAuthorities()); in getParcelableResolutionMechanism()
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;
24 import android.app.admin.DevicePolicyManagerLiteInternal;
25 import android.app.admin.DevicePolicySafetyChecker;
DFlagUnion.java20 import android.app.admin.IntegerPolicyValue;
21 import android.app.admin.PolicyValue;
44 android.app.admin.FlagUnion getParcelableResolutionMechanism() { in getParcelableResolutionMechanism()
45 return android.app.admin.FlagUnion.FLAG_UNION; in getParcelableResolutionMechanism()
DOwnersData.java18 import static android.app.admin.DevicePolicyManager.DEVICE_OWNER_TYPE_DEFAULT;
21 import android.app.admin.SystemUpdateInfo;
22 import android.app.admin.SystemUpdatePolicy;
23 import android.app.admin.flags.Flags;
140 ComponentName admin = profileOwner != null ? profileOwner.admin : null; in load() local
141 if (mDeviceOwner != null && admin != null) { in load()
546 public final ComponentName admin; field in OwnersData.OwnerInfo
551 OwnerInfo(ComponentName admin, String remoteBugreportUri, in OwnerInfo() argument
553 this.admin = admin; in OwnerInfo()
554 this.packageName = admin.getPackageName(); in OwnerInfo()
[all …]
/frameworks/opt/car/services/builtInServices/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/SettingsLib/src/com/android/settingslib/
DRestrictedLockUtilsInternal.java19 import static android.app.admin.DevicePolicyManager.KEYGUARD_DISABLE_FEATURES_NONE;
20 import static android.app.admin.DevicePolicyManager.MTE_NOT_CONTROLLED_BY_POLICY;
21 import static android.app.admin.DevicePolicyManager.PROFILE_KEYGUARD_FEATURES_AFFECT_OWNER;
29 import android.app.admin.DevicePolicyManager;
31 import android.app.admin.PackagePolicy;
205 final EnforcedAdmin admin = in checkIfRestrictionEnforced() local
207 if (admin != null) { in checkIfRestrictionEnforced()
208 return admin; in checkIfRestrictionEnforced()
236 final LockSettingCheck check = (dpm, admin, checkUser) -> { in checkIfKeyguardFeaturesDisabled()
237 int effectiveFeatures = dpm.getKeyguardDisabledFeatures(admin, checkUser); in checkIfKeyguardFeaturesDisabled()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDpmTestBase.java29 import android.app.admin.DevicePolicyManager;
171 protected void setUpPackageManagerForAdmin(ComponentName admin, int packageUid) in setUpPackageManagerForAdmin() argument
173 setUpPackageManagerForAdmin(admin, packageUid, in setUpPackageManagerForAdmin()
177 protected void setUpPackageManagerForAdmin(ComponentName admin, int packageUid, in setUpPackageManagerForAdmin() argument
179 setUpPackageManagerForAdmin(admin, packageUid, enabledSetting, /* appTargetSdk = */ null); in setUpPackageManagerForAdmin()
182 protected void setUpPackageManagerForAdmin(ComponentName admin, int packageUid, in setUpPackageManagerForAdmin() argument
184 setUpPackageManagerForFakeAdmin(admin, packageUid, enabledSetting, appTargetSdk, in setUpPackageManagerForAdmin()
185 admin); in setUpPackageManagerForAdmin()
188 protected void setUpPackageManagerForFakeAdmin(ComponentName admin, int packageUid, in setUpPackageManagerForFakeAdmin() argument
191 setUpPackageManagerForFakeAdmin(admin, packageUid, in setUpPackageManagerForFakeAdmin()
[all …]
DSecurityEventTest.java18 import static android.app.admin.SecurityLog.TAG_ADB_SHELL_CMD;
19 import static android.app.admin.SecurityLog.TAG_APP_PROCESS_START;
20 import static android.app.admin.SecurityLog.TAG_CERT_AUTHORITY_INSTALLED;
21 import static android.app.admin.SecurityLog.TAG_CERT_AUTHORITY_REMOVED;
22 import static android.app.admin.SecurityLog.TAG_KEY_DESTRUCTION;
23 import static android.app.admin.SecurityLog.TAG_KEY_GENERATED;
24 import static android.app.admin.SecurityLog.TAG_KEY_IMPORT;
25 import static android.app.admin.SecurityLog.TAG_KEY_INTEGRITY_VIOLATION;
26 import static android.app.admin.SecurityLog.TAG_MEDIA_MOUNT;
27 import static android.app.admin.SecurityLog.TAG_MEDIA_UNMOUNT;
[all …]
/frameworks/base/packages/SettingsLib/RestrictedLockUtils/src/com/android/settingslib/
DRestrictedLockUtils.java19 import android.app.admin.DevicePolicyManager;
87 public static void sendShowAdminSupportDetailsIntent(Context context, EnforcedAdmin admin) { in sendShowAdminSupportDetailsIntent() argument
88 final Intent intent = getShowAdminSupportDetailsIntent(admin); in sendShowAdminSupportDetailsIntent()
90 if (admin != null) { in sendShowAdminSupportDetailsIntent()
91 if (admin.user != null in sendShowAdminSupportDetailsIntent()
92 && isCurrentUserOrProfile(context, admin.user.getIdentifier())) { in sendShowAdminSupportDetailsIntent()
93 targetUserId = admin.user.getIdentifier(); in sendShowAdminSupportDetailsIntent()
95 intent.putExtra(DevicePolicyManager.EXTRA_RESTRICTION, admin.enforcedRestriction); in sendShowAdminSupportDetailsIntent()
103 public static Intent getShowAdminSupportDetailsIntent(Context context, EnforcedAdmin admin) { in getShowAdminSupportDetailsIntent() argument
104 return getShowAdminSupportDetailsIntent(admin); in getShowAdminSupportDetailsIntent()
[all …]
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DRestrictedLockUtilsInternal.java22 import android.app.admin.DevicePolicyManager;
47 final EnforcedAdmin admin = in checkIfAccessibilityServiceDisallowed() local
50 if (admin != null) { in checkIfAccessibilityServiceDisallowed()
51 permitted = dpm.isAccessibilityServicePermittedByAdmin(admin.component, in checkIfAccessibilityServiceDisallowed()
65 return admin; in checkIfAccessibilityServiceDisallowed()
81 final EnforcedAdmin admin = in checkIfInputMethodDisallowed() local
84 if (admin != null) { in checkIfInputMethodDisallowed()
85 permitted = dpm.isInputMethodPermittedByAdmin(admin.component, in checkIfInputMethodDisallowed()
109 return admin; in checkIfInputMethodDisallowed()
/frameworks/base/packages/SystemUI/src/com/android/systemui/devicepolicy/
DDevicePolicyManagerExt.kt19 import android.app.admin.DevicePolicyManager
20 import android.app.admin.DevicePolicyManager.KEYGUARD_DISABLE_FEATURES_ALL
21 import android.app.admin.DevicePolicyManager.KEYGUARD_DISABLE_SHORTCUTS_ALL
26 admin: ComponentName? = null, in DevicePolicyManager()
29 val flags = getKeyguardDisabledFeatures(admin, userId) in DevicePolicyManager()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/devicepolicy/
DDevicePolicyManagerExtTest.kt19 import android.app.admin.DevicePolicyManager
20 import android.app.admin.DevicePolicyManager.KEYGUARD_DISABLE_FACE
21 import android.app.admin.DevicePolicyManager.KEYGUARD_DISABLE_FEATURES_ALL
22 import android.app.admin.DevicePolicyManager.KEYGUARD_DISABLE_FEATURES_NONE
23 import android.app.admin.DevicePolicyManager.KEYGUARD_DISABLE_SECURE_CAMERA
24 import android.app.admin.DevicePolicyManager.KEYGUARD_DISABLE_SHORTCUTS_ALL
/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;
35 import android.app.admin.PasswordMetrics;
36 import android.app.admin.PasswordPolicy;
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSSecurityFooterUtils.java18 import static android.app.admin.DevicePolicyManager.DEVICE_OWNER_TYPE_FINANCED;
19 import static android.app.admin.DevicePolicyResources.Strings.SystemUi.QS_DIALOG_MANAGEMENT;
20 import static android.app.admin.DevicePolicyResources.Strings.SystemUi.QS_DIALOG_MANAGEMENT_CA_CERT;
21 import static android.app.admin.DevicePolicyResources.Strings.SystemUi.QS_DIALOG_MANAGEMENT_NAMED_V…
22 import static android.app.admin.DevicePolicyResources.Strings.SystemUi.QS_DIALOG_MANAGEMENT_NETWORK;
23 import static android.app.admin.DevicePolicyResources.Strings.SystemUi.QS_DIALOG_MANAGEMENT_TITLE;
24 import static android.app.admin.DevicePolicyResources.Strings.SystemUi.QS_DIALOG_MANAGEMENT_TWO_NAM…
25 import static android.app.admin.DevicePolicyResources.Strings.SystemUi.QS_DIALOG_MONITORING_CA_CERT…
26 import static android.app.admin.DevicePolicyResources.Strings.SystemUi.QS_DIALOG_MONITORING_NETWORK…
27 import static android.app.admin.DevicePolicyResources.Strings.SystemUi.QS_DIALOG_MONITORING_VPN_SUB…
[all …]

12345678910>>...20