Home
last modified time | relevance | path

Searched refs:dpmi (Results 1 – 16 of 16) sorted by relevance

/frameworks/base/core/java/android/app/admin/
DDeviceStateCache.java37 final DevicePolicyManagerInternal dpmi = in getInstance() local
39 return (dpmi != null) ? dpmi.getDeviceStateCache() : EmptyDeviceStateCache.INSTANCE; in getInstance()
DDevicePolicyCache.java42 final DevicePolicyManagerInternal dpmi = in getInstance() local
44 return (dpmi != null) ? dpmi.getDevicePolicyCache() : EmptyDevicePolicyCache.INSTANCE; in getInstance()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DOneTimeSafetyChecker.java83 DevicePolicyManagerLiteInternal dpmi = LocalServices in getUnsafeOperationReason() local
87 dpmi.notifyUnsafeOperationStateChanged(this, reason, /* isSafe= */ false); in getUnsafeOperationReason()
90 dpmi.notifyUnsafeOperationStateChanged(this, reason, /* isSafe= */ true); in getUnsafeOperationReason()
DPolicyEnforcerCallbacks.java155 final var dpmi = LocalServices.getService(DevicePolicyManagerInternal.class);
156 dpmi.enforceSecurityLoggingPolicy(Boolean.TRUE.equals(value));
163 final var dpmi = LocalServices.getService(DevicePolicyManagerInternal.class);
164 dpmi.enforceAuditLoggingPolicy(Boolean.TRUE.equals(value));
/frameworks/opt/car/services/builtInServices/src/com/android/internal/car/
DCarDevicePolicySafetyChecker.java88 DevicePolicyManagerLiteInternal dpmi) { in CarDevicePolicySafetyChecker() argument
91 mDpmi = Objects.requireNonNull(dpmi, "DevicePolicyManagerLiteInternal cannot be null"); in CarDevicePolicySafetyChecker()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageInstallerService.java1018 final var dpmi = LocalServices.getService(DevicePolicyManagerInternal.class);
1019 if (dpmi != null && dpmi.isUserOrganizationManaged(userId)) {
1428 DevicePolicyManagerInternal dpmi =
1431 (dpmi != null && dpmi.canSilentlyInstallPackage(callerPackageName, callingUid))
DInstallPackageHelper.java735 final var dpmi = mInjector.getLocalService(DevicePolicyManagerInternal.class); in installExistingPackageAsUser() local
737 dpmi != null && dpmi.isUserOrganizationManaged(userId); in installExistingPackageAsUser()
DPackageInstallerSession.java962 DevicePolicyManagerInternal dpmi = in isInstallerDeviceOwnerOrAffiliatedProfileOwner() local
966 return dpmi != null && dpmi.canSilentlyInstallPackage( in isInstallerDeviceOwnerOrAffiliatedProfileOwner()
DComputerEngine.java2273 final var dpmi = mInjector.getLocalService(DevicePolicyManagerInternal.class); in isCallerFromManagedUserOrProfile() local
2274 return dpmi != null && dpmi.isUserOrganizationManaged(userId); in isCallerFromManagedUserOrProfile()
DUserManagerService.java3427 final DevicePolicyManagerInternal dpmi = getDevicePolicyManagerInternal(); in getUserRestrictionSources() local
3428 if (dpmi != null) { in getUserRestrictionSources()
3429 result.addAll(dpmi.getUserRestrictionSources(restrictionKey, userId)); in getUserRestrictionSources()
/frameworks/base/services/print/java/com/android/server/print/
DPrintManagerService.java145 DevicePolicyManagerInternal dpmi = in print() local
150 disabledMessage = dpmi.getPrintingDisabledReasonForUser(callingUserId); in print()
/frameworks/base/services/core/java/com/android/server/accounts/
DAccountManagerService.java3861 final DevicePolicyManagerInternal dpmi = in showCantAddAccount() local
3864 if (dpmi == null) { in showCantAddAccount()
3867 intent = dpmi.createUserRestrictionSupportIntent(userId, in showCantAddAccount()
3870 intent = dpmi.createShowAdminSupportIntent(userId, false); in showCantAddAccount()
6069 final DevicePolicyManagerInternal dpmi =
6072 return (dpmi != null) && (dpmi.isActiveProfileOwner(uid) || dpmi.isActiveDeviceOwner(uid));
/frameworks/base/services/core/java/com/android/server/locksettings/
DLockSettingsService.java1361 final DevicePolicyManagerInternal dpmi = LocalServices.getService( in notifySeparateProfileChallengeChanged() local
1363 if (dpmi != null) { in notifySeparateProfileChallengeChanged()
1364 dpmi.reportSeparateProfileChallengeChanged(userId); in notifySeparateProfileChallengeChanged()
/frameworks/base/services/core/java/com/android/server/wallpaper/
DWallpaperManagerService.java3617 final DevicePolicyManagerInternal dpmi = in isSetWallpaperAllowed() local
3619 if (dpmi != null && dpmi.isDeviceOrProfileOwnerInCallingUser(callingPackage)) { in isSetWallpaperAllowed()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDevicePolicyManagerTest.java3355 final DevicePolicyManagerInternal dpmi = in verifySupervisionConfig() local
3367 assertThat(dpmi.isActiveSupervisionApp(uid)).isTrue(); in verifySupervisionConfig()
3372 assertThat(dpmi.isActiveSupervisionApp(uid)).isFalse(); in verifySupervisionConfig()
3386 final DevicePolicyManagerInternal dpmi = in testSetMaximumTimeToLockProfile() local
3404 dpmi.reportSeparateProfileChallengeChanged(PROFILE_USER); in testSetMaximumTimeToLockProfile()
3432 dpmi.reportSeparateProfileChallengeChanged(PROFILE_USER); in testSetMaximumTimeToLockProfile()
/frameworks/base/services/core/java/com/android/server/appop/
DAppOpsService.java285 @Nullable private final DevicePolicyManagerInternal dpmi = field in AppOpsService
2679 return dpmi != null && dpmi.supportsResetOp(op); in shouldDeferResetOpToDpm()
2686 dpmi.resetOp(op, packageName, userId); in deferResetOpToDpm()