/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/ |
D | ShadowDevicePolicyManager.java | 19 import static android.app.admin.DevicePolicyManager.DEVICE_OWNER_TYPE_DEFAULT; 20 import static android.app.admin.DevicePolicyManager.PASSWORD_QUALITY_UNSPECIFIED; 25 import android.app.admin.DevicePolicyManager; 26 import android.app.admin.DevicePolicyManager.DeviceOwnerType; 27 import android.app.admin.IDevicePolicyManager; 28 import android.app.admin.ManagedSubscriptionsPolicy; 29 import android.app.admin.PasswordMetrics; 30 import android.app.admin.PasswordPolicy; 72 public void setShortSupportMessageForUser(ComponentName admin, int userHandle, String message) { in setShortSupportMessageForUser() argument 73 mSupportMessagesMap.put(Objects.hash(admin, userHandle), message); in setShortSupportMessageForUser() [all …]
|
/packages/apps/Settings/src/com/android/settings/enterprise/ |
D | EnterprisePrivacySettings.java | 19 import static android.app.admin.DevicePolicyResources.Strings.Settings.ADMIN_ACTION_ACCESS_CAMERA; 20 import static android.app.admin.DevicePolicyResources.Strings.Settings.ADMIN_ACTION_ACCESS_LOCATION; 21 import static android.app.admin.DevicePolicyResources.Strings.Settings.ADMIN_ACTION_ACCESS_MICROPHO… 22 import static android.app.admin.DevicePolicyResources.Strings.Settings.ADMIN_ACTION_APPS_INSTALLED; 23 import static android.app.admin.DevicePolicyResources.Strings.Settings.ADMIN_ACTION_SET_CURRENT_INP… 24 import static android.app.admin.DevicePolicyResources.Strings.Settings.ADMIN_ACTION_SET_DEFAULT_APP… 25 import static android.app.admin.DevicePolicyResources.Strings.Settings.ADMIN_ACTION_SET_HTTP_PROXY; 26 import static android.app.admin.DevicePolicyResources.Strings.Settings.ADMIN_CAN_LOCK_DEVICE; 27 import static android.app.admin.DevicePolicyResources.Strings.Settings.ADMIN_CAN_SEE_APPS_WARNING; 28 import static android.app.admin.DevicePolicyResources.Strings.Settings.ADMIN_CAN_SEE_BUG_REPORT_WAR… [all …]
|
D | ActionDisabledByAdminDialog.java | 20 import android.app.admin.DevicePolicyManager; 49 final EnforcedAdmin admin = getAdminDetailsFromIntent(intent); in onNewIntent() local 51 mDialogHelper.updateDialog(restriction, admin); in onNewIntent() 56 final EnforcedAdmin admin = new EnforcedAdmin(null, UserHandle.of(UserHandle.myUserId())); in getAdminDetailsFromIntent() local 58 return admin; in getAdminDetailsFromIntent() 60 admin.component = intent.getParcelableExtra(DevicePolicyManager.EXTRA_DEVICE_ADMIN); in getAdminDetailsFromIntent() 64 if (admin.component == null) { in getAdminDetailsFromIntent() 69 admin.component = adminDetails.getParcelable( in getAdminDetailsFromIntent() 75 admin.user = intent.getParcelableExtra(Intent.EXTRA_USER); in getAdminDetailsFromIntent() 81 admin.user = null; in getAdminDetailsFromIntent() [all …]
|
D | ActionDisabledByAdminDialogHelper.java | 19 import static android.app.admin.DevicePolicyResources.Strings.Settings.DISABLED_BY_IT_ADMIN_TITLE; 23 import android.app.admin.DevicePolicyManager; 82 private @UserIdInt int getEnforcementAdminUserId(@NonNull EnforcedAdmin admin) { in getEnforcementAdminUserId() argument 83 return admin.user == null ? UserHandle.USER_NULL : admin.user.getIdentifier(); in getEnforcementAdminUserId() 115 public void updateDialog(String restriction, EnforcedAdmin admin) { in updateDialog() argument 116 if (mEnforcedAdmin.equals(admin) && Objects.equals(mRestriction, restriction)) { in updateDialog() 119 mEnforcedAdmin = admin; in updateDialog() 127 ComponentName admin = enforcedAdmin.component; in initializeDialogViews() local 128 if (admin == null) { in initializeDialogViews() 133 setAdminSupportIcon(root, admin, userId); in initializeDialogViews() [all …]
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/parser/ |
D | ExtrasProvisioningDataParser.java | 19 import static android.app.admin.DevicePolicyManager.ACTION_ESTABLISH_NETWORK_CONNECTION; 20 import static android.app.admin.DevicePolicyManager.ACTION_PROVISION_FINANCED_DEVICE; 21 import static android.app.admin.DevicePolicyManager.ACTION_PROVISION_MANAGED_DEVICE; 22 import static android.app.admin.DevicePolicyManager.ACTION_PROVISION_MANAGED_DEVICE_FROM_TRUSTED_SO… 23 import static android.app.admin.DevicePolicyManager.ACTION_PROVISION_MANAGED_PROFILE; 24 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_ACCOUNT_TO_MIGRATE; 25 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_ADMIN_EXTRAS_BUNDLE; 26 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_ALLOW_OFFLINE; 27 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_DEVICE_ADMIN_COMPONENT_NAME; 28 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_DEVICE_ADMIN_MINIMUM_VERSION… [all …]
|
D | ParserUtils.java | 19 import static android.app.admin.DevicePolicyManager.ACTION_ESTABLISH_NETWORK_CONNECTION; 20 import static android.app.admin.DevicePolicyManager.ACTION_PROVISION_FINANCED_DEVICE; 21 import static android.app.admin.DevicePolicyManager.ACTION_PROVISION_MANAGED_DEVICE; 22 import static android.app.admin.DevicePolicyManager.ACTION_PROVISION_MANAGED_DEVICE_FROM_TRUSTED_SO… 23 import static android.app.admin.DevicePolicyManager.ACTION_PROVISION_MANAGED_PROFILE; 24 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_TRIGGER; 25 import static android.app.admin.DevicePolicyManager.FLAG_SUPPORTED_MODES_DEVICE_OWNER; 26 import static android.app.admin.DevicePolicyManager.FLAG_SUPPORTED_MODES_ORGANIZATION_OWNED; 27 import static android.app.admin.DevicePolicyManager.FLAG_SUPPORTED_MODES_PERSONALLY_OWNED; 28 import static android.app.admin.DevicePolicyManager.MIME_TYPE_PROVISIONING_NFC; [all …]
|
/packages/modules/Bluetooth/system/gd/rust/linux/stack/src/ |
D | bluetooth_admin.rs | 73 let mut admin = BluetoothAdmin { in new() localVariable 82 if admin.load_config().is_err() { in new() 85 admin in new() 288 let mut admin = BluetoothAdmin::new(String::from(""), tx.clone()); in test_set_service_allowed() localVariable 295 assert!(admin.is_service_allowed(uuid1)); in test_set_service_allowed() 296 assert!(admin.is_service_allowed(uuid2)); in test_set_service_allowed() 297 assert!(admin.is_service_allowed(uuid3)); in test_set_service_allowed() 298 assert_eq!(admin.get_blocked_services(&uuids), Vec::<Uuid>::new()); in test_set_service_allowed() 300 admin.set_allowed_services(vec![uuid1, uuid3]); in test_set_service_allowed() 303 assert!(admin.is_service_allowed(uuid1)); in test_set_service_allowed() [all …]
|
/packages/apps/Car/Settings/src/com/android/car/settings/enterprise/ |
D | EnterpriseUtils.java | 26 import android.app.admin.DeviceAdminInfo; 27 import android.app.admin.DevicePolicyManager; 91 public static DeviceAdminInfo getDeviceAdminInfo(Context context, ComponentName admin) { in getDeviceAdminInfo() argument 92 LOG.d("getDeviceAdminInfo()(): " + admin.flattenToShortString()); in getDeviceAdminInfo() 96 ai = context.getPackageManager().getReceiverInfo(admin, PackageManager.GET_META_DATA); in getDeviceAdminInfo() 98 LOG.v("Unable to get activity info for " + admin.flattenToShortString() + ": " + e); in getDeviceAdminInfo() 105 LOG.v("Unable to retrieve device policy for " + admin.flattenToShortString() + ": ", in getDeviceAdminInfo() 259 EnforcedAdmin admin = new EnforcedAdmin(null, context.getUser()); in getEnforcedAdminFromIntent() local 261 return admin; in getEnforcedAdminFromIntent() 263 admin.component = intent.getParcelableExtra(DevicePolicyManager.EXTRA_DEVICE_ADMIN); in getEnforcedAdminFromIntent() [all …]
|
D | DeviceAdminAddFragment.java | 26 import android.app.admin.DeviceAdminInfo; 27 import android.app.admin.DeviceAdminReceiver; 28 import android.app.admin.DevicePolicyManager; 102 ComponentName admin = (ComponentName) in onAttach() local 104 LOG.d("Admin using " + DevicePolicyManager.EXTRA_DEVICE_ADMIN + ": " + admin); in onAttach() 105 if (admin == null) { in onAttach() 117 admin = getAdminWithinPackage(context, adminPackage); in onAttach() 118 if (admin == null) { in onAttach() 126 setPackageToUninstall(adminPackage, admin); in onAttach() 131 if (!isValidAdmin(context, admin)) { in onAttach() [all …]
|
D | ActionDisabledByAdminDialogFragment.java | 22 import android.app.admin.DevicePolicyManager; 159 private static @UserIdInt int getEnforcementAdminUserId(@Nullable EnforcedAdmin admin) { in getEnforcementAdminUserId() argument 160 return admin == null || admin.user == null ? UserHandle.USER_NULL in getEnforcementAdminUserId() 161 : admin.user.getIdentifier(); in getEnforcementAdminUserId() 166 ComponentName admin = null; in initializeDialogViews() local 169 admin = enforcedAdmin.component; in initializeDialogViews() 170 if (admin == null) { in initializeDialogViews() 178 admin = null; in initializeDialogViews() 193 ComponentName admin = enforcedAdmin.component; in isNotValidEnforcedAdmin() local 195 if (isNotCurrentUserOrProfile(context, admin, userId) in isNotValidEnforcedAdmin() [all …]
|
/packages/apps/TvSettings/unbundle/java/com/android/tv/settings/unbundle/sdklib/ |
D | DevicePolicyManagerCompat.java | 19 import android.app.admin.DevicePolicyManager; 89 public int getMaximumFailedPasswordsForWipe(@Nullable ComponentName admin, int userHandle) { in getMaximumFailedPasswordsForWipe() argument 90 return this.mManager.getMaximumFailedPasswordsForWipe(admin, userHandle); in getMaximumFailedPasswordsForWipe() 121 @NonNull ComponentName admin, int userHandle) { in getShortSupportMessageForUser() 122 return this.mManager.getShortSupportMessageForUser(admin, userHandle); in getShortSupportMessageForUser() 130 public boolean isRemovingAdmin(@NonNull ComponentName admin, int userId) { in isRemovingAdmin() argument 131 return this.mManager.isRemovingAdmin(admin, userId); in isRemovingAdmin() 138 public boolean setProfileOwner(@NonNull ComponentName admin, int userHandle) in setProfileOwner() argument 140 return this.mManager.setProfileOwner(admin, userHandle); in setProfileOwner() 151 public void getRemoveWarning(@Nullable ComponentName admin, onResultListener listener, in getRemoveWarning() argument [all …]
|
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/settingslib/ |
D | RestrictedLockUtilsInternal.java | 19 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; 144 final LockSettingCheck check = (dpm, admin, checkUser) -> { in checkIfKeyguardFeaturesDisabled() 145 int effectiveFeatures = dpm.getKeyguardDisabledFeatures(admin, checkUser); in checkIfKeyguardFeaturesDisabled() 191 for (ComponentName admin : admins) { in findEnforcedAdmin() 192 if (check.isEnforcing(dpm, admin, userId)) { in findEnforcedAdmin() 194 enforcedAdmin = new EnforcedAdmin(admin, user); in findEnforcedAdmin() 251 EnforcedAdmin admin = getProfileOrDeviceOwner(context, getUserHandleOf(userId)); in checkIfInputMethodDisallowed() local 253 if (admin != null) { in checkIfInputMethodDisallowed() [all …]
|
D | RestrictedLockUtils.java | 19 import android.app.admin.DevicePolicyManager; 76 public static void sendShowAdminSupportDetailsIntent(Context context, EnforcedAdmin admin) { in sendShowAdminSupportDetailsIntent() argument 77 final Intent intent = getShowAdminSupportDetailsIntent(context, admin); in sendShowAdminSupportDetailsIntent() 79 if (admin != null) { in sendShowAdminSupportDetailsIntent() 80 if (admin.user != null in sendShowAdminSupportDetailsIntent() 81 && isCurrentUserOrProfile(context, admin.user.getIdentifier())) { in sendShowAdminSupportDetailsIntent() 82 targetUserId = admin.user.getIdentifier(); in sendShowAdminSupportDetailsIntent() 84 intent.putExtra(DevicePolicyManager.EXTRA_RESTRICTION, admin.enforcedRestriction); in sendShowAdminSupportDetailsIntent() 89 public static Intent getShowAdminSupportDetailsIntent(Context context, EnforcedAdmin admin) { in getShowAdminSupportDetailsIntent() argument 91 if (admin != null) { in getShowAdminSupportDetailsIntent() [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/ |
D | ActionDisabledByAdminDialog.java | 20 import android.app.admin.DevicePolicyManager; 52 final EnforcedAdmin admin = getAdminDetailsFromIntent(intent); in onNewIntent() local 54 mDialogHelper.updateDialog(restriction, admin); in onNewIntent() 59 final EnforcedAdmin admin = new EnforcedAdmin(null, UserHandle.of(UserHandle.myUserId())); in getAdminDetailsFromIntent() local 61 return admin; in getAdminDetailsFromIntent() 63 admin.component = intent.getParcelableExtra(DevicePolicyManager.EXTRA_DEVICE_ADMIN); in getAdminDetailsFromIntent() 67 if (admin.component == null) { in getAdminDetailsFromIntent() 72 admin.component = adminDetails.getParcelable( in getAdminDetailsFromIntent() 78 admin.user = intent.getParcelableExtra(Intent.EXTRA_USER); in getAdminDetailsFromIntent() 84 admin.user = null; in getAdminDetailsFromIntent() [all …]
|
/packages/modules/IntentResolver/java/src/com/android/intentresolver/data/repository/ |
D | DevicePolicyResources.kt | 18 import android.app.admin.DevicePolicyManager 19 import android.app.admin.DevicePolicyResources.Strings.Core.FORWARD_INTENT_TO_PERSONAL 20 import android.app.admin.DevicePolicyResources.Strings.Core.FORWARD_INTENT_TO_WORK 21 import android.app.admin.DevicePolicyResources.Strings.Core.RESOLVER_CANT_ACCESS_PERSONAL 22 import android.app.admin.DevicePolicyResources.Strings.Core.RESOLVER_CANT_ACCESS_WORK 23 import android.app.admin.DevicePolicyResources.Strings.Core.RESOLVER_CANT_SHARE_WITH_PERSONAL 24 import android.app.admin.DevicePolicyResources.Strings.Core.RESOLVER_CANT_SHARE_WITH_WORK 25 import android.app.admin.DevicePolicyResources.Strings.Core.RESOLVER_CROSS_PROFILE_BLOCKED_TITLE 26 import android.app.admin.DevicePolicyResources.Strings.Core.RESOLVER_NO_PERSONAL_APPS 27 import android.app.admin.DevicePolicyResources.Strings.Core.RESOLVER_NO_WORK_APPS [all …]
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/networkconnection/ |
D | EstablishNetworkConnectionViewModelTest.java | 19 import static android.app.admin.DevicePolicyManager.ACTION_PROVISION_MANAGED_DEVICE_FROM_TRUSTED_SO… 20 import static android.app.admin.DevicePolicyManager.ACTION_PROVISION_MANAGED_PROFILE; 21 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_DEVICE_ADMIN_COMPONENT_NAME; 22 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_NAME; 23 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_USE_MOBILE_DATA; 24 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_WIFI_ANONYMOUS_IDENTITY; 25 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_WIFI_DOMAIN; 26 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_WIFI_EAP_METHOD; 27 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_WIFI_HIDDEN; 28 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_WIFI_IDENTITY; [all …]
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/parser/ |
D | ExtrasProvisioningDataParserTest.java | 18 import static android.app.admin.DevicePolicyManager.ACTION_PROVISION_FINANCED_DEVICE; 19 import static android.app.admin.DevicePolicyManager.ACTION_PROVISION_MANAGED_DEVICE; 20 import static android.app.admin.DevicePolicyManager.ACTION_PROVISION_MANAGED_DEVICE_FROM_TRUSTED_SO… 21 import static android.app.admin.DevicePolicyManager.ACTION_PROVISION_MANAGED_PROFILE; 22 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_ACCOUNT_TO_MIGRATE; 23 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_ADMIN_EXTRAS_BUNDLE; 24 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_DEVICE_ADMIN_COMPONENT_NAME; 25 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_DEVICE_ADMIN_MINIMUM_VERSION… 26 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_CHECKSU… 27 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_DOWNLOA… [all …]
|
/packages/apps/ManagedProvisioning/tests/robotests/src/com/android/managedprovisioning/parser/ |
D | ParserUtilsTest.java | 19 import static android.app.admin.DevicePolicyManager.ACTION_PROVISION_FINANCED_DEVICE; 20 import static android.app.admin.DevicePolicyManager.ACTION_PROVISION_MANAGED_DEVICE; 21 import static android.app.admin.DevicePolicyManager.ACTION_PROVISION_MANAGED_DEVICE_FROM_TRUSTED_SO… 22 import static android.app.admin.DevicePolicyManager.ACTION_PROVISION_MANAGED_PROFILE; 23 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_TRIGGER; 24 import static android.app.admin.DevicePolicyManager.FLAG_SUPPORTED_MODES_DEVICE_OWNER; 25 import static android.app.admin.DevicePolicyManager.FLAG_SUPPORTED_MODES_ORGANIZATION_OWNED; 26 import static android.app.admin.DevicePolicyManager.FLAG_SUPPORTED_MODES_PERSONALLY_OWNED; 27 import static android.app.admin.DevicePolicyManager.MIME_TYPE_PROVISIONING_NFC; 28 import static android.app.admin.DevicePolicyManager.PROVISIONING_MODE_FULLY_MANAGED_DEVICE; [all …]
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/model/ |
D | WifiInfo.java | 19 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_WIFI_ANONYMOUS_IDENTITY; 20 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_WIFI_CA_CERTIFICATE; 21 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_WIFI_DOMAIN; 22 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_WIFI_EAP_METHOD; 23 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_WIFI_HIDDEN; 24 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_WIFI_IDENTITY; 25 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_WIFI_PAC_URL; 26 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_WIFI_PASSWORD; 27 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_WIFI_PHASE2_AUTH; 28 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_WIFI_PROXY_BYPASS; [all …]
|
/packages/apps/Settings/src/com/android/settings/safetycenter/ |
D | SafetyCenterUtils.java | 19 import static android.app.admin.DevicePolicyResources.Strings.Settings.CONNECTED_WORK_AND_PERSONAL_… 20 import static android.app.admin.DevicePolicyResources.Strings.Settings.FINGERPRINT_FOR_WORK; 21 import static android.app.admin.DevicePolicyResources.Strings.Settings.MANAGED_DEVICE_INFO; 22 import static android.app.admin.DevicePolicyResources.Strings.Settings.MANAGE_DEVICE_ADMIN_APPS; 23 import static android.app.admin.DevicePolicyResources.Strings.Settings.WORK_PROFILE_LOCKED_NOTIFICA… 24 import static android.app.admin.DevicePolicyResources.Strings.Settings.WORK_PROFILE_NOTIFICATIONS_S… 25 import static android.app.admin.DevicePolicyResources.Strings.Settings.WORK_PROFILE_PRIVACY_POLICY_… 26 import static android.app.admin.DevicePolicyResources.Strings.Settings.WORK_PROFILE_PRIVACY_POLICY_… 27 import static android.app.admin.DevicePolicyResources.Strings.Settings.WORK_PROFILE_SECURITY_TITLE; 28 import static android.app.admin.DevicePolicyResources.Strings.Settings.WORK_PROFILE_SET_UNLOCK_LAUN… [all …]
|
/packages/apps/Settings/src/com/android/settings/display/ |
D | ScreenTimeoutPreferenceController.java | 19 import static android.app.admin.DevicePolicyResources.Strings.Settings.DISABLED_BY_IT_ADMIN_TITLE; 24 import android.app.admin.DevicePolicyManager; 63 final RestrictedLockUtils.EnforcedAdmin admin = getPreferenceDisablingAdmin(maxTimeout); in updateState() local 64 if (admin != null) { in updateState() 70 ((RestrictedPreference) preference).setDisabledByAdmin(admin); in updateState() 106 RestrictedLockUtils.EnforcedAdmin admin = null; in getPreferenceDisablingAdmin() local 108 admin = RestrictedLockUtilsInternal.checkIfRestrictionEnforced( in getPreferenceDisablingAdmin() 111 if (admin == null && getLargestTimeout(maxTimeout) == null) { in getPreferenceDisablingAdmin() 112 admin = RestrictedLockUtilsInternal.checkIfMaximumTimeToLockIsSet(mContext); in getPreferenceDisablingAdmin() 115 return admin; in getPreferenceDisablingAdmin()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/safetycenter/ui/model/ |
D | PrivacyControlsViewModel.kt | 76 data class PrefState(val visible: Boolean, val checked: Boolean, val admin: EnforcedAdmin?) constant in com.android.permissioncontroller.safetycenter.ui.model.PrivacyControlsViewModel.PrefState 98 PrefState(visible = true, checked = isClipboardEnabled(), admin = null) in onUpdate() 103 admin = null in onUpdate() 125 fun handlePrefClick(fragment: Fragment, pref: Pref, admin: EnforcedAdmin?) { in handlePrefClick() 127 Pref.MIC -> toggleSensorOrShowAdmin(fragment, Sensors.MICROPHONE, admin) in handlePrefClick() 128 Pref.CAMERA -> toggleSensorOrShowAdmin(fragment, Sensors.CAMERA, admin) in handlePrefClick() 135 private fun toggleSensorOrShowAdmin(fragment: Fragment, sensor: Int, admin: EnforcedAdmin?) { in toggleSensorOrShowAdmin() 136 if (admin != null) { in toggleSensorOrShowAdmin() 137 RestrictedLockUtils.sendShowAdminSupportDetailsIntent(fragment.context, admin) in toggleSensorOrShowAdmin() 153 val admin = RestrictedLockUtils.getProfileOrDeviceOwner(app, Process.myUserHandle()) in getSensorToggleState() constant [all …]
|
/packages/apps/ManagedProvisioning/tests/robotests/src/com/android/managedprovisioning/ota/ |
D | ExtendsShadowDevicePolicyManager.java | 25 import android.app.admin.DeviceAdminReceiver; 26 import android.app.admin.DevicePolicyManager; 27 import android.app.admin.IDevicePolicyManager; 65 private void enforceProfileOwner(ComponentName admin) { in enforceProfileOwner() argument 66 if (!admin.equals(getProfileOwner())) { in enforceProfileOwner() 67 throw new SecurityException("[" + admin + "] is not a profile owner"); in enforceProfileOwner() 78 public void setCrossProfileCalendarPackages(ComponentName admin, Set<String> packageNames) { in setCrossProfileCalendarPackages() argument 79 enforceProfileOwner(admin); in setCrossProfileCalendarPackages()
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/finalization/ |
D | UserProvisioningStateHelperTest.java | 19 import static android.app.admin.DeviceAdminInfo.HEADLESS_DEVICE_OWNER_MODE_AFFILIATED; 20 import static android.app.admin.DevicePolicyManager.ACTION_PROVISION_MANAGED_DEVICE; 21 import static android.app.admin.DevicePolicyManager.ACTION_PROVISION_MANAGED_PROFILE; 22 import static android.app.admin.DevicePolicyManager.STATE_USER_PROFILE_COMPLETE; 23 import static android.app.admin.DevicePolicyManager.STATE_USER_PROFILE_FINALIZED; 24 import static android.app.admin.DevicePolicyManager.STATE_USER_SETUP_COMPLETE; 25 import static android.app.admin.DevicePolicyManager.STATE_USER_SETUP_FINALIZED; 26 import static android.app.admin.DevicePolicyManager.STATE_USER_SETUP_INCOMPLETE; 27 import static android.app.admin.DevicePolicyManager.STATE_USER_UNMANAGED; 35 import android.app.admin.DevicePolicyManager;
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/finalization/ |
D | UserProvisioningStateHelper.java | 19 import static android.app.admin.DeviceAdminInfo.HEADLESS_DEVICE_OWNER_MODE_AFFILIATED; 20 import static android.app.admin.DevicePolicyManager.ACTION_PROVISION_MANAGED_PROFILE; 21 import static android.app.admin.DevicePolicyManager.STATE_USER_PROFILE_COMPLETE; 22 import static android.app.admin.DevicePolicyManager.STATE_USER_PROFILE_FINALIZED; 23 import static android.app.admin.DevicePolicyManager.STATE_USER_SETUP_COMPLETE; 24 import static android.app.admin.DevicePolicyManager.STATE_USER_SETUP_FINALIZED; 25 import static android.app.admin.DevicePolicyManager.STATE_USER_UNMANAGED; 30 import android.app.admin.DevicePolicyManager; 31 import android.app.admin.flags.Flags;
|