Home
last modified time | relevance | path

Searched refs:pmi (Results 1 – 25 of 32) sorted by relevance

12

/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DPolicyEnforcerCallbacks.java226 PackageManagerInternal pmi =
230 pmi.setOwnerProtectedPackages(userId,
242 setBgUsageAppOp(packages, pmi, user, appOpsManager);
246 pmi.setPackageStoppedState(packageName, false, user);
265 private static void setBgUsageAppOp(Set<String> packages, PackageManagerInternal pmi,
269 final var appInfo = pmi.getApplicationInfo(pkg, packageFlags, Process.myUid(), userId);
DPackageSuspender.java54 PackageManagerInternal pmi, int userId) { in PackageSuspender() argument
60 mPackageManager = pmi; in PackageSuspender()
/frameworks/base/services/core/java/com/android/server/firewall/
DSenderFilter.java37 static boolean isPrivilegedApp(PackageManagerInternal pmi, int callerUid, int callerPid) { in isPrivilegedApp() argument
42 return pmi.isUidPrivileged(callerUid); in isPrivilegedApp()
/frameworks/base/services/core/java/com/android/server/pm/
DPreferredComponent.java208 final PackageManagerInternal pmi = LocalServices.getService(PackageManagerInternal.class); in sameSet() local
209 String setupWizardPackageName = pmi.getSetupWizardPackageName(); in sameSet()
224 final PackageStateInternal ps = pmi.getPackageStateInternal(ai.packageName); in sameSet()
312 final PackageManagerInternal pmi = LocalServices.getService(PackageManagerInternal.class); in isSuperset() local
313 String setupWizardPackageName = pmi.getSetupWizardPackageName(); in isSuperset()
DProcessLoggingHandler.java59 void logAppProcessStart(Context context, PackageManagerInternal pmi, String apkFile, in logAppProcessStart() argument
104 pmi.requestChecksums(packageName, false, 0, CHECKSUM_TYPE, null, in logAppProcessStart()
DShortcutPackageInfo.java145 PackageManagerInternal pmi = LocalServices.getService(PackageManagerInternal.class); in canRestoreTo() local
146 if (!BackupUtils.signaturesMatch(mSigHashes, currentPackage, pmi)) { in canRestoreTo()
DUserRestrictionsUtils.java772 final PackageManagerInternal pmi = LocalServices.getService( in applyUserRestriction() local
774 pmi.removeAllNonSystemPackageSuspensions(userId); in applyUserRestriction()
775 pmi.removeAllDistractingPackageRestrictions(userId); in applyUserRestriction()
776 pmi.flushPackageRestrictions(userId); in applyUserRestriction()
DPackageInstallerSession.java1686 final PackageManagerInternal pmi = LocalServices.getService(PackageManagerInternal.class); in setChecksums() local
1687 final AndroidPackage callingInstaller = pmi.getPackage(installerPackageName); in setChecksums()
2326 final PackageManagerInternal pmi = LocalServices.getService(PackageManagerInternal.class); in isSecureFrpInstallAllowed() local
2327 final String[] systemInstaller = pmi.getKnownPackageNames( in isSecureFrpInstallAllowed()
2329 final AndroidPackage callingInstaller = pmi.getPackage(callingUid); in isSecureFrpInstallAllowed()
3283 final PackageManagerInternal pmi = LocalServices.getService(PackageManagerInternal.class);
3284 final PackageStateInternal ps = pmi.getPackageStateInternal(packageName);
3570 final PackageManagerInternal pmi = LocalServices.getService(PackageManagerInternal.class);
3571 final PackageStateInternal existingPkgSetting = pmi.getPackageStateInternal(mPackageName);
/frameworks/base/services/core/java/com/android/server/backup/
DBackupUtils.java41 PackageManagerInternal pmi) { in signaturesMatch() argument
80 return pmi.isDataRestoreSafe(storedSigHashes.get(0), target.packageName); in signaturesMatch()
/frameworks/base/services/java/com/android/server/
DSystemConfigService.java118 PackageManagerInternal pmi = LocalServices.getService(PackageManagerInternal.class);
121 pmi.canQueryPackage(Binder.getCallingUid(), preventUserDisablePackage))
/frameworks/base/services/core/java/com/android/server/am/
DComponentAliasResolver.java433 PackageManagerInternal pmi = LocalServices.getService(PackageManagerInternal.class); in resolveService()
435 ResolveInfo rInfo = pmi.resolveService(service, in resolveService()
471 final PackageManagerInternal pmi = LocalServices.getService(PackageManagerInternal.class); in resolveReceiver() local
483 List<ResolveInfo> resolved = pmi.queryIntentReceivers( in resolveReceiver()
DAppPermissionTracker.java132 final PackageManagerInternal pmi = mInjector.getPackageManagerInternal(); in handlePermissionsInit() local
138 final List<ApplicationInfo> apps = pmi.getInstalledApplications(0, userId, SYSTEM_UID); in handlePermissionsInit()
/frameworks/base/services/core/java/com/android/server/rollback/
DRollback.java526 PackageManagerInternal pmi = LocalServices.getService(PackageManagerInternal.class); in commit() local
527 if (extensionVersionReductionWouldViolateConstraint(mExtensionVersions, pmi)) { in commit()
909 SparseIntArray rollbackExtVers, PackageManagerInternal pmi) { in extensionVersionReductionWouldViolateConstraint() argument
913 List<String> packages = pmi.getPackageList().getPackageNames(); in extensionVersionReductionWouldViolateConstraint()
915 AndroidPackage pkg = pmi.getPackage(packages.get(i)); in extensionVersionReductionWouldViolateConstraint()
DRollbackManagerServiceImpl.java956 final PackageManagerInternal pmi = LocalServices.getService(
958 List<String> apksInApex = pmi.getApksInApex(packageName);
1016 final PackageManagerInternal pmi = LocalServices.getService(
1018 pmi.finishPackageInstall(token, false);
/frameworks/base/services/backup/java/com/android/server/backup/utils/
DRestoreUtils.java166 PackageManagerInternal pmi = LocalServices.getService( in installApk() local
169 BackupEligibilityRules.forBackup(packageManager, pmi, userId, in installApk()
DTarBackupReader.java397 PackageManagerInternal pmi, int userId, Context context) { in chooseRestorePolicy() argument
398 return chooseRestorePolicy(packageManager, allowApks, info, signatures, pmi, userId, in chooseRestorePolicy()
399 BackupEligibilityRules.forBackup(packageManager, pmi, userId, context), context); in chooseRestorePolicy()
415 PackageManagerInternal pmi, int userId, BackupEligibilityRules eligibilityRules, in chooseRestorePolicy() argument
/frameworks/base/services/core/java/com/android/server/power/batterysaver/
DBatterySaverController.java452 final PowerManagerInternal pmi = LocalServices.getService(PowerManagerInternal.class); in handleBatterySaverStateChanged() local
453 if (pmi != null) { in handleBatterySaverStateChanged()
454 pmi.setPowerMode(Mode.LOW_POWER, isEnabled()); in handleBatterySaverStateChanged()
/frameworks/base/services/core/java/com/android/server/wm/
DActivityStartInterceptor.java337 final PackageManagerInternal pmi = mService.getPackageManagerInternalLocked(); in interceptSuspendedPackageIfNeeded() local
338 if (pmi == null) { in interceptSuspendedPackageIfNeeded()
342 final UserPackage suspender = pmi.getSuspendingPackage(suspendedPackage, mUserId); in interceptSuspendedPackageIfNeeded()
346 final SuspendDialogInfo dialogInfo = pmi.getSuspendedDialogInfo(suspendedPackage, in interceptSuspendedPackageIfNeeded()
DLaunchParamsPersister.java115 PackageManagerInternal pmi = LocalServices.getService(PackageManagerInternal.class); in onSystemReady() local
116 mPackageList = pmi.getPackageList(new PackageListObserver()); in onSystemReady()
/frameworks/base/services/core/java/com/android/server/appop/
DAppOpsCheckingServiceImpl.java601 final PackageManagerInternal pmi = LocalServices.getService(PackageManagerInternal.class); in upgradeScheduleExactAlarmLocked() local
609 final int uid = pmi.getPackageUid(pkg, 0, userId); in upgradeScheduleExactAlarmLocked()
638 final PackageManagerInternal pmi = LocalServices.getService(PackageManagerInternal.class); in resetUseFullScreenIntentLocked() local
649 final int uid = pmi.getPackageUid(pkg, 0, userId); in resetUseFullScreenIntentLocked()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DSystemServicesTestRule.java315 final PowerManagerInternal pmi = mock(PowerManagerInternal.class);
317 doReturn(state).when(pmi).getLowPowerState(anyInt());
318 doReturn(pmi).when(() -> LocalServices.getService(eq(PowerManagerInternal.class)));
/frameworks/base/services/core/java/com/android/server/power/
DLowPowerStandbyController.java822 final PowerManagerInternal pmi = LocalServices.getService(PowerManagerInternal.class); in notifyActiveChanged() local
826 pmi.setLowPowerStandbyActive(active); in notifyActiveChanged()
1361 final PowerManagerInternal pmi = LocalServices.getService(PowerManagerInternal.class); in notifyAllowlistChanged() local
1364 pmi.setLowPowerStandbyAllowlist(allowlistUids); in notifyAllowlistChanged()
/frameworks/base/services/backup/java/com/android/server/backup/restore/
DFullRestoreEngine.java269 PackageManagerInternal pmi = LocalServices.getService( in restoreOneFile() local
273 pmi, mUserId, mBackupEligibilityRules, in restoreOneFile()
/frameworks/libs/modules-utils/java/com/android/internal/util/
DStateMachine.java672 LogRec pmi = mLogRecVector.get(mOldestIndex); in add() local
677 pmi.update(sm, msg, messageInfo, state, orgState, transToState); in add()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/usage/
DAppStandbyController.java738 final PackageManagerInternal pmi = mInjector.getPackageManagerInternal(); in reportContentProviderUsage() local
746 final int appId = UserHandle.getAppId(pmi.getPackageUid(packageName, 0, userId)); in reportContentProviderUsage()
1568 final PackageManagerInternal pmi = mInjector.getPackageManagerInternal(); in getIdleUidsForUser() local
1569 final List<ApplicationInfo> apps = pmi.getInstalledApplications(0, userId, Process.myUid()); in getIdleUidsForUser()

12