Home
last modified time | relevance | path

Searched refs:dpm (Results 1 – 25 of 46) sorted by relevance

12

/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
H A DDevicePolicyManagerTest.java2767 dpm.reboot(admin1); in testReboot()
4480 dpm.setTime(admin1, 0); in testSetTime()
5004 dpm.wipeData(0); in testWipeDataManagedProfile()
5043 dpm.wipeData(0); in testWipeDataManagedProfileOnOrganizationOwnedDevice()
5118 dpm.wipeDevice(0); in testWipeDevice_DeviceOwner()
6345 dpm -> dpm.setCertInstallerPackage(admin1, caller.packageName)); in testGetOwnerInstalledCaCertsForDelegate()
6479 (dpm) -> assertThat(dpm.getOwnerInstalledCaCerts(callerUser)) in verifyCanGetOwnerInstalledCaCerts()
6542 runAsCaller(admin1Context, dpms, dpm -> dpm.clearProfileOwner(admin1)); in verifyCantGetOwnerInstalledCaCertsProfileOwnerRemoval()
6817 dpm -> dpm.setDelegatedScopes(admin1, DpmMockContext.DELEGATE_PACKAGE_NAME, in testHasDeviceIdAccessUnchecked_delegateCaller()
6842 dpm -> dpm.setDelegatedScopes(admin1, DpmMockContext.DELEGATE_PACKAGE_NAME, in testHasDeviceIdAccessUnchecked_delegateCallerWithoutPermissions()
[all …]
H A DDevicePolicyManagerServiceMigrationTest.java177 runAsCaller(poContext, dpms, dpm -> { in testCompMigrationAffiliated()
179 .that(dpm.getParentProfileInstance(admin1).getPasswordHistoryLength(admin1)) in testCompMigrationAffiliated()
182 .that(dpm.getPasswordHistoryLength(admin1)).isEqualTo(0); in testCompMigrationAffiliated()
188 .that(dpm.getParentProfileInstance(admin1) in testCompMigrationAffiliated()
193 .that(dpm.getAccountTypesWithManagementDisabled()).asList() in testCompMigrationAffiliated()
201 dpm.getUserRestrictions(admin1).keySet()) in testCompMigrationAffiliated()
213 .that(dpm.getPersonalAppsSuspendedReasons(admin1)) in testCompMigrationAffiliated()
244 runAsCaller(poContext, dpms, dpm -> { in testCompMigration_keepSuspendedAppsWhenDpcIsRPlus()
246 .that(dpm.getPersonalAppsSuspendedReasons(admin1)) in testCompMigration_keepSuspendedAppsWhenDpcIsRPlus()
270 runAsCaller(poContext, dpms, dpm -> { in testCompMigration_unsuspendAppsWhenDpcNotRPlus()
[all …]
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
H A DRestrictedLockUtilsInternal.java96 if (dpm == null) { in checkIfRestrictionEnforced()
166 DevicePolicyManager dpm = in checkIfKeyguardFeaturesDisabled() local
168 return findEnforcedAdmin(dpm.getActiveAdminsAsUser(userId), dpm, userId, check); in checkIfKeyguardFeaturesDisabled()
265 if (dpm == null) { in checkIfInputMethodDisallowed()
309 if (dpm == null) { in checkIfRemoteContactSearchDisallowed()
328 if (dpm == null) { in checkIfAccessibilityServiceDisallowed()
412 if (dpm == null || dpm.isUsbDataSignalingEnabledForUser(userId)) { in checkIfUsbDataSignalingIsDisabled()
462 if (dpm == null) { in checkIfPasswordQualityIsSet()
542 if (dpm == null) { in checkForLockSetting()
596 if (dpm == null) { in getDeviceOwner()
[all …]
/aosp14/frameworks/base/services/accessibility/java/com/android/server/accessibility/
H A DRestrictedLockUtilsInternal.java43 final DevicePolicyManager dpm = context.getSystemService(DevicePolicyManager.class); in checkIfAccessibilityServiceDisallowed() local
44 if (dpm == null) { in checkIfAccessibilityServiceDisallowed()
51 permitted = dpm.isAccessibilityServicePermittedByAdmin(admin.component, in checkIfAccessibilityServiceDisallowed()
59 permittedByProfileAdmin = dpm.isAccessibilityServicePermittedByAdmin( in checkIfAccessibilityServiceDisallowed()
77 final DevicePolicyManager dpm = context.getSystemService(DevicePolicyManager.class); in checkIfInputMethodDisallowed() local
78 if (dpm == null) { in checkIfInputMethodDisallowed()
85 permitted = dpm.isInputMethodPermittedByAdmin(admin.component, in checkIfInputMethodDisallowed()
99 if (profileAdmin != null && dpm.isOrganizationOwnedDeviceWithManagedProfile()) { in checkIfInputMethodDisallowed()
100 final DevicePolicyManager parentDpm = dpm.getParentProfileInstance( in checkIfInputMethodDisallowed()
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/enterprise/
H A DActionDisabledByAdminControllerFactory.java79 DevicePolicyManager dpm = context.getSystemService(DevicePolicyManager.class); in doesBiometricRequireParentalConsent() local
80 return ParentalControlsUtilsInternal.parentConsentRequired(context, dpm, in doesBiometricRequireParentalConsent()
85 DevicePolicyManager dpm = context.getSystemService(DevicePolicyManager.class); in isFinancedDevice() local
90 return dpm.isFinancedDevice(); in isFinancedDevice()
92 return dpm.isDeviceManaged() && dpm.getDeviceOwnerType( in isFinancedDevice()
93 dpm.getDeviceOwnerComponentOnAnyUser()) == DEVICE_OWNER_TYPE_FINANCED; in isFinancedDevice()
H A DActionDisabledLearnMoreButtonLauncher.java112 DevicePolicyManager dpm = context.getSystemService(DevicePolicyManager.class); in isEnforcedByDeviceOwnerOnSystemUserMode() local
113 return enforcementAdminUserId == dpm.getDeviceOwnerUserId(); in isEnforcedByDeviceOwnerOnSystemUserMode()
/aosp14/frameworks/base/core/java/android/hardware/biometrics/
H A DParentalControlsUtilsInternal.java59 @NonNull DevicePolicyManager dpm, @BiometricAuthenticator.Modality int modality, in parentConsentRequired() argument
65 return parentConsentRequired(dpm, modality, userHandle); in parentConsentRequired()
71 public static boolean parentConsentRequired(@NonNull DevicePolicyManager dpm, in parentConsentRequired() argument
73 final ComponentName cn = getSupervisionComponentName(dpm, userHandle); in parentConsentRequired()
78 final int keyguardDisabledFeatures = dpm.getKeyguardDisabledFeatures(cn); in parentConsentRequired()
101 public static ComponentName getSupervisionComponentName(@NonNull DevicePolicyManager dpm, in getSupervisionComponentName() argument
103 return dpm.getProfileOwnerOrDeviceOwnerSupervisionComponent(userHandle); in getSupervisionComponentName()
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/drawable/
H A DUserIconDrawable.java101 DevicePolicyManager dpm = context.getSystemService(DevicePolicyManager.class); in getUpdatableManagedUserDrawable() local
102 return dpm.getResources().getDrawableForDensity( in getUpdatableManagedUserDrawable()
204 DevicePolicyManager dpm = context.getSystemService(DevicePolicyManager.class); in setBadgeIfManagedUser() local
206 dpm.getProfileOwnerAsUser(userId) != null // has an owner in setBadgeIfManagedUser()
207 && dpm.getProfileOwnerOrDeviceOwnerSupervisionComponent(UserHandle.of(userId)) in setBadgeIfManagedUser()
220 DevicePolicyManager dpm = context.getSystemService(DevicePolicyManager.class); in setBadgeIfManagedDevice() local
222 boolean deviceOwnerExists = dpm.getDeviceOwnerComponentOnAnyUser() != null; in setBadgeIfManagedDevice()
240 DevicePolicyManager dpm = context.getSystemService(DevicePolicyManager.class); in getUpdatableManagementBadge() local
241 return dpm.getResources().getDrawableForDensity( in getUpdatableManagementBadge()
/aosp14/frameworks/base/cmds/dpm/
H A DAndroid.bp22 name: "dpm",
23 src: "dpm.sh",
/aosp14/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
H A DNetworkLoggingHandler.java119 NetworkLoggingHandler(Looper looper, DevicePolicyManagerService dpm, int targetUserId) { in NetworkLoggingHandler() argument
120 this(looper, dpm, 0 /* event id */, targetUserId); in NetworkLoggingHandler()
124 NetworkLoggingHandler(Looper looper, DevicePolicyManagerService dpm, long id, in NetworkLoggingHandler() argument
127 this.mDpm = dpm; in NetworkLoggingHandler()
H A DNetworkLogger.java106 NetworkLogger(DevicePolicyManagerService dpm, PackageManagerInternal pm, int targetUserId) { in NetworkLogger() argument
107 mDpm = dpm; in NetworkLogger()
/aosp14/frameworks/base/packages/SettingsLib/RestrictedLockUtils/src/com/android/settingslib/
H A DRestrictedLockUtils.java56 final DevicePolicyManager dpm = (DevicePolicyManager) context.getSystemService( in getProfileOrDeviceOwner() local
58 if (dpm == null) { in getProfileOrDeviceOwner()
74 if (Objects.equals(dpm.getDeviceOwnerUser(), user)) { in getProfileOrDeviceOwner()
75 adminComponent = dpm.getDeviceOwnerComponentOnAnyUser(); in getProfileOrDeviceOwner()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
H A DScreenshotNotificationsController.java79 final DevicePolicyManager dpm = in notifyScreenshotError() local
82 dpm.createAdminSupportIntent(DevicePolicyManager.POLICY_DISABLE_SCREEN_CAPTURE); in notifyScreenshotError()
/aosp14/frameworks/base/core/java/android/provider/
H A DContactsInternal.java121 final DevicePolicyManager dpm = context.getSystemService(DevicePolicyManager.class); in maybeStartManagedQuickContact()
129 dpm.startManagedQuickContact(actualLookupKey, actualContactId, isContactIdIgnored, in maybeStartManagedQuickContact()
/aosp14/frameworks/base/services/core/java/com/android/server/pm/
H A DUserManagerServiceShellCommand.java207 final DevicePolicyManagerInternal dpm = LocalServices in runList() local
211 if (dpm != null) { in runList()
215 if (dpm.getDeviceOwnerUserId() == user.id) { in runList()
218 if (dpm.getProfileOwnerAsUser(user.id) != null) { in runList()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
H A DWorkModeTile.java113 DevicePolicyManager dpm = mContext.getSystemService(DevicePolicyManager.class); in getTileLabel() local
114 return dpm.getResources().getString(QS_WORK_PROFILE_LABEL, in getTileLabel()
/aosp14/frameworks/base/services/core/java/com/android/server/
H A DHardwarePropertiesManagerService.java171 final DevicePolicyManager dpm = mContext.getSystemService(DevicePolicyManager.class); in enforceHardwarePropertiesRetrievalAllowed() local
172 if (!dpm.isDeviceOwnerApp(callingPackage) in enforceHardwarePropertiesRetrievalAllowed()
H A DMasterClearReceiver.java171 final DevicePolicyManager dpm = context.getSystemService(DevicePolicyManager.class); in getWorkProfileDeletedTitle() local
172 return dpm.getResources().getString(WORK_PROFILE_DELETED_TITLE, in getWorkProfileDeletedTitle()
/aosp14/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/
H A DUninstallFinish.java108 DevicePolicyManager dpm = in onReceive() local
111 if (dpm.packageHasActiveAdmins(appInfo.packageName)) { in onReceive()
H A DInstallStart.java301 final DevicePolicyManager dpm = getSystemService(DevicePolicyManager.class); in checkDevicePolicyRestrictions() local
312 final Intent showAdminSupportDetailsIntent = dpm.createAdminSupportIntent(restriction); in checkDevicePolicyRestrictions()
/aosp14/frameworks/base/services/core/java/com/android/server/trust/
H A DTrustAgentWrapper.java620 DevicePolicyManager dpm = in updateDevicePolicyFeatures() local
623 if ((dpm.getKeyguardDisabledFeatures(null, mUserId) in updateDevicePolicyFeatures()
625 List<PersistableBundle> config = dpm.getTrustAgentConfiguration( in updateDevicePolicyFeatures()
640 final long maxTimeToLock = dpm.getMaximumTimeToLock(null, mUserId); in updateDevicePolicyFeatures()
/aosp14/frameworks/base/core/java/com/android/internal/notification/
H A DSystemNotificationChannels.java224 DevicePolicyManager dpm = context.getSystemService(DevicePolicyManager.class); in getDeviceAdminNotificationChannelName() local
225 return dpm.getResources().getString(NOTIFICATION_CHANNEL_DEVICE_ADMIN, in getDeviceAdminNotificationChannelName()
/aosp14/frameworks/base/core/java/android/content/pm/
H A DCrossProfileApps.java334 final DevicePolicyManager dpm = mContext.getSystemService(DevicePolicyManager.class); in getProfileSwitchingLabel() local
336 return dpm.getResources().getString( in getProfileSwitchingLabel()
/aosp14/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/television/
H A DUninstallAppProgress.java159 DevicePolicyManager dpm = ctx.createContextAsUser(otherUserHandle, 0) in handleMessage() local
161 if (dpm.packageHasActiveAdmins(packageName)) { in handleMessage()
/aosp14/frameworks/base/services/core/java/com/android/server/os/
H A DBugreportManagerServiceImpl.java404 DevicePolicyManager dpm = mContext.getSystemService(DevicePolicyManager.class); in isCurrentUserAffiliated() local
405 int deviceOwnerUid = dpm.getDeviceOwnerUserId(); in isCurrentUserAffiliated()
418 if (!dpm.isAffiliatedUser(currentUserId)) { in isCurrentUserAffiliated()

12