Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/src/com/android/systemui/util/leak/
DGarbageMonitor.java276 final ProcessMemInfo pmi = mData.get(pid); in dump() local
277 if (pmi != null) { in dump()
278 pmi.dump(fd, pw, args); in dump()
400 private ProcessMemInfo pmi; field in GarbageMonitor.MemoryTile
469 pmi = gm.getMemInfo(Process.myPid()); in handleUpdateState()
476 if (pmi != null) { in handleUpdateState()
477 icon.setRss(pmi.currentRss); in handleUpdateState()
481 formatBytes(pmi.currentRss * 1024), in handleUpdateState()
495 return pmi != null ? pmi.currentRss : 0; in getRss()
/frameworks/base/services/core/java/com/android/server/backup/
DBackupUtils.java40 PackageManagerInternal pmi) { in signaturesMatch() argument
78 return pmi.isDataRestoreSafe(storedSigHashes.get(0), target.packageName); in signaturesMatch()
/frameworks/base/services/core/java/com/android/server/wm/
DActivityStartInterceptor.java254 final PackageManagerInternal pmi = mService.getPackageManagerInternalLocked(); in interceptSuspendedPackageIfNeeded() local
255 if (pmi == null) { in interceptSuspendedPackageIfNeeded()
259 final String suspendingPackage = pmi.getSuspendingPackage(suspendedPackage, mUserId); in interceptSuspendedPackageIfNeeded()
263 final SuspendDialogInfo dialogInfo = pmi.getSuspendedDialogInfo(suspendedPackage, in interceptSuspendedPackageIfNeeded()
DLaunchParamsPersister.java116 PackageManagerInternal pmi = LocalServices.getService(PackageManagerInternal.class); in onSystemReady() local
117 mPackageList = pmi.getPackageList(new PackageListObserver()); in onSystemReady()
/frameworks/base/services/core/java/com/android/server/rollback/
DRollback.java480 PackageManagerInternal pmi = LocalServices.getService(PackageManagerInternal.class); in commit() local
481 if (extensionVersionReductionWouldViolateConstraint(mExtensionVersions, pmi)) { in commit()
869 SparseIntArray rollbackExtVers, PackageManagerInternal pmi) { in extensionVersionReductionWouldViolateConstraint() argument
873 List<String> packages = pmi.getPackageList().getPackageNames(); in extensionVersionReductionWouldViolateConstraint()
875 AndroidPackage pkg = pmi.getPackage(packages.get(i)); in extensionVersionReductionWouldViolateConstraint()
DRollbackPackageHealthObserver.java325 PackageManagerInternal pmi = LocalServices.getService(PackageManagerInternal.class); in isModule() local
326 AndroidPackage apkPackage = pmi.getPackage(packageName); in isModule()
DRollbackManagerServiceImpl.java831 final PackageManagerInternal pmi = LocalServices.getService( in enableRollbackForPackageSession() local
833 List<String> apksInApex = pmi.getApksInApex(packageName); in enableRollbackForPackageSession()
879 final PackageManagerInternal pmi = LocalServices.getService( in snapshotAndRestoreUserData() local
881 pmi.finishPackageInstall(token, false); in snapshotAndRestoreUserData()
/frameworks/base/services/backup/java/com/android/server/backup/utils/
DAppBackupUtils.java228 PackageManagerInternal pmi) { in signaturesMatch() argument
269 return pmi.isDataRestoreSafe(storedSigs[0], target.packageName); in signaturesMatch()
DRestoreUtils.java160 PackageManagerInternal pmi = LocalServices.getService( in installApk() local
162 if (AppBackupUtils.signaturesMatch(sigs, pkg, pmi)) { in installApk()
DTarBackupReader.java391 PackageManagerInternal pmi, int userId) { in chooseRestorePolicy() argument
416 if (AppBackupUtils.signaturesMatch(signatures, pkgInfo, pmi)) { in chooseRestorePolicy()
/frameworks/base/services/core/java/com/android/server/power/batterysaver/
DBatterySaverController.java475 final PowerManagerInternal pmi = LocalServices.getService(PowerManagerInternal.class); in handleBatterySaverStateChanged() local
476 if (pmi != null) { in handleBatterySaverStateChanged()
477 pmi.powerHint(PowerHint.LOW_POWER, isEnabled() ? 1 : 0); in handleBatterySaverStateChanged()
/frameworks/base/services/core/java/com/android/server/pm/
DShortcutPackageInfo.java144 PackageManagerInternal pmi = LocalServices.getService(PackageManagerInternal.class); in canRestoreTo() local
145 if (!BackupUtils.signaturesMatch(mSigHashes, currentPackage, pmi)) { in canRestoreTo()
DUserRestrictionsUtils.java665 final PackageManagerInternal pmi = LocalServices.getService( in applyUserRestriction() local
667 pmi.removeAllNonSystemPackageSuspensions(userId); in applyUserRestriction()
668 pmi.removeAllDistractingPackageRestrictions(userId); in applyUserRestriction()
669 pmi.flushPackageRestrictions(userId); in applyUserRestriction()
DLauncherAppsService.java385 final PackageManagerInternal pmi = LocalServices.getService( in shouldHideFromSuggestions() local
387 int flags = pmi.getDistractingPackageRestrictions(packageName, user.getIdentifier()); in shouldHideFromSuggestions()
628 final PackageManagerInternal pmi = in getSuspendedPackageLauncherExtras() local
630 return pmi.getSuspendedPackageLauncherExtras(packageName, user.getIdentifier()); in getSuspendedPackageLauncherExtras()
1326 PackageManagerInternal pmi = LocalServices.getService(PackageManagerInternal.class); in onPackagesSuspended() local
1330 final Bundle launcherExtras = pmi.getSuspendedPackageLauncherExtras(pkg, in onPackagesSuspended()
DPackageInstallerSession.java1319 final PackageManagerInternal pmi = LocalServices.getService(PackageManagerInternal.class); in isSecureFrpInstallAllowed() local
1320 final String[] systemInstaller = pmi.getKnownPackageNames( in isSecureFrpInstallAllowed()
1322 final AndroidPackage callingInstaller = pmi.getPackage(callingUid); in isSecureFrpInstallAllowed()
1338 final PackageManagerInternal pmi = LocalServices.getService(PackageManagerInternal.class); in isIncrementalInstallationAllowed() local
1339 final PackageSetting existingPkgSetting = pmi.getPackageSetting(packageName); in isIncrementalInstallationAllowed()
/frameworks/base/services/core/java/com/android/server/connectivity/
DPermissionMonitor.java154 PackageManagerInternal pmi = LocalServices.getService(PackageManagerInternal.class); in startMonitoring() local
155 if (pmi != null) { in startMonitoring()
156 pmi.getPackageList(new PackageListObserver()); in startMonitoring()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DSystemServicesTestRule.java220 final PowerManagerInternal pmi = mock(PowerManagerInternal.class);
222 doReturn(state).when(pmi).getLowPowerState(anyInt());
223 doReturn(pmi).when(() -> LocalServices.getService(eq(PowerManagerInternal.class)));
/frameworks/base/services/backup/java/com/android/server/backup/restore/
DFullRestoreEngine.java222 PackageManagerInternal pmi = LocalServices.getService( in restoreOneFile() local
226 pmi, mUserId); in restoreOneFile()
DPerformUnifiedRestoreTask.java642 PackageManagerInternal pmi = LocalServices.getService(PackageManagerInternal.class); in restoreKeyValue() local
643 if (!BackupUtils.signaturesMatch(metaInfo.sigHashes, mCurrentPackage, pmi)) { in restoreKeyValue()
/frameworks/base/services/backup/java/com/android/server/backup/
DPackageManagerBackupAgent.java269 PackageManagerInternal pmi = LocalServices.getService(PackageManagerInternal.class); in onBackup() local
273 && !BackupUtils.signaturesMatch(mStoredHomeSigHashes, homeInfo, pmi)); in onBackup()
/frameworks/base/core/java/com/android/internal/util/
DStateMachine.java671 LogRec pmi = mLogRecVector.get(mOldestIndex); in add() local
676 pmi.update(sm, msg, messageInfo, state, orgState, transToState); in add()
/frameworks/base/services/core/java/com/android/server/accounts/
DAccountManagerService.java4779 PackageManagerInternal pmi = LocalServices.getService(PackageManagerInternal.class);
4781 && !pmi.hasSignatureCapability(
5527 PackageManagerInternal pmi = LocalServices.getService(PackageManagerInternal.class);
5534 if (pmi.hasSignatureCapability(
5573 PackageManagerInternal pmi = LocalServices.getService(PackageManagerInternal.class);
5576 if (isOtherwisePermitted || pmi.hasSignatureCapability(
/frameworks/base/services/core/java/com/android/server/appop/
DAppOpsService.java3993 final PackageManagerInternal pmi = LocalServices.getService(PackageManagerInternal.class); in isOpRestrictedDueToSuspend() local
3994 return pmi.isPackageSuspended(packageName, UserHandle.getUserId(uid)); in isOpRestrictedDueToSuspend()
/frameworks/base/services/core/java/com/android/server/am/
DActivityManagerService.java9617 final PowerManagerInternal pmi = LocalServices.getService(PowerManagerInternal.class); in systemReady() local
9618 if (pmi != null) { in systemReady()
9619 pmi.registerLowPowerModeObserver(ServiceType.FORCE_BACKGROUND_CHECK, in systemReady()
9622 pmi.getLowPowerState(ServiceType.FORCE_BACKGROUND_CHECK).batterySaverEnabled); in systemReady()
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationManagerService.java6413 final PackageManagerInternal pmi = LocalServices.getService(
6415 int flags = pmi.getDistractingPackageRestrictions(