/frameworks/base/services/core/java/com/android/server/pm/ |
D | DeletePackageHelper.java | 86 private final PackageManagerService mPm; field in DeletePackageHelper 95 mPm = pm; in DeletePackageHelper() 96 mUserManagerInternal = mPm.mInjector.getUserManagerInternal(); in DeletePackageHelper() 97 mPermissionManager = mPm.mInjector.getPermissionManagerServiceInternal(); in DeletePackageHelper() 103 mPm = pm; in DeletePackageHelper() 104 mAppDataHelper = new AppDataHelper(mPm); in DeletePackageHelper() 105 mUserManagerInternal = mPm.mInjector.getUserManagerInternal(); in DeletePackageHelper() 106 mPermissionManager = mPm.mInjector.getPermissionManagerServiceInternal(); in DeletePackageHelper() 107 mRemovePackageHelper = new RemovePackageHelper(mPm, mAppDataHelper); in DeletePackageHelper() 129 final PackageRemovedInfo info = new PackageRemovedInfo(mPm); in deletePackageX() [all …]
|
D | PackageFreezer.java | 38 private final PackageManagerService mPm; field in PackageFreezer 47 mPm = pm; in PackageFreezer() 55 mPm = pm; in PackageFreezer() 58 synchronized (mPm.mLock) { in PackageFreezer() 59 final int refCounts = mPm.mFrozenPackages in PackageFreezer() 61 mPm.mFrozenPackages.put(mPackageName, refCounts); in PackageFreezer() 62 ps = mPm.mSettings.getPackageLPr(mPackageName); in PackageFreezer() 65 mPm.killApplication(ps.getPackageName(), ps.getAppId(), userId, killReason); in PackageFreezer() 84 synchronized (mPm.mLock) { in close() 85 final int refCounts = mPm.mFrozenPackages in close() [all …]
|
D | PackageManagerNative.java | 42 private final PackageManagerService mPm; field in PackageManagerNative 45 mPm = pm; in PackageManagerNative() 50 synchronized (mPm.mPackageChangeObservers) { in registerPackageChangeObserver() 57 mPm.mPackageChangeObservers.add(observer); in registerPackageChangeObserver() 59 + mPm.mPackageChangeObservers.size()); in registerPackageChangeObserver() 65 synchronized (mPm.mPackageChangeObservers) { in unregisterPackageChangeObserver() 66 mPm.mPackageChangeObservers.remove(observer); in unregisterPackageChangeObserver() 68 + mPm.mPackageChangeObservers.size()); in unregisterPackageChangeObserver() 74 return mPm.snapshotComputer().getAllPackages().toArray(new String[0]); in getAllPackages() 85 names = mPm.snapshotComputer().getNamesForUids(uids); in getNamesForUids() [all …]
|
D | PreferredActivityHelper.java | 72 private final PackageManagerService mPm; field in PreferredActivityHelper 76 mPm = pm; in PreferredActivityHelper() 94 if (Thread.holdsLock(mPm.mLock)) { in findPreferredActivityNotLocked() 98 if (!mPm.mUserManager.exists(userId)) return null; in findPreferredActivityNotLocked() 108 mPm.scheduleWritePackageRestrictions(userId); in findPreferredActivityNotLocked() 119 synchronized (mPm.mLock) { in clearPackagePreferredActivities() 120 mPm.clearPackagePreferredActivitiesLPw(packageName, changedUsers, userId); in clearPackagePreferredActivities() 123 updateDefaultHomeNotLocked(mPm.snapshotComputer(), changedUsers); in clearPackagePreferredActivities() 124 mPm.postPreferredActivityChangedBroadcast(userId); in clearPackagePreferredActivities() 125 mPm.scheduleWritePackageRestrictions(userId); in clearPackagePreferredActivities() [all …]
|
D | RemovePackageHelper.java | 58 private final PackageManagerService mPm; field in RemovePackageHelper 68 mPm = pm; in RemovePackageHelper() 69 mIncrementalManager = mPm.mInjector.getIncrementalManager(); in RemovePackageHelper() 70 mInstaller = mPm.mInjector.getInstaller(); in RemovePackageHelper() 71 mUserManagerInternal = mPm.mInjector.getUserManagerInternal(); in RemovePackageHelper() 72 mPermissionManager = mPm.mInjector.getPermissionManagerServiceInternal(); in RemovePackageHelper() 73 mSharedLibraries = mPm.mInjector.getSharedLibrariesImpl(); in RemovePackageHelper() 112 if (mPm.getCacheDir() == null) { in removeCachedResult() 116 final PackageCacher cacher = new PackageCacher(mPm.getCacheDir()); in removeCachedResult() 123 PackageStateInternal ps = mPm.snapshotComputer() in removePackageLI() [all …]
|
D | InstallPackageHelper.java | 194 private final PackageManagerService mPm; field in InstallPackageHelper 211 mPm = pm; in InstallPackageHelper() 247 parsedPackage.setVersionCode(mPm.getSdkVersion()) in commitReconciledScanResultLocked() 261 SharedUserSetting requestSharedUserSetting = mPm.mSettings.getSharedUserSettingLPr( in commitReconciledScanResultLocked() 263 SharedUserSetting resultSharedUserSetting = mPm.mSettings.getSharedUserSettingLPr( in commitReconciledScanResultLocked() 270 if (mPm.mSettings.checkAndPruneSharedUserLPw(requestSharedUserSetting, false)) { in commitReconciledScanResultLocked() 286 mPm.mSettings.addRenamedPackageLPw( in commitReconciledScanResultLocked() 289 mPm.mTransferredPackages.add(originalPkgSetting.getPackageName()); in commitReconciledScanResultLocked() 291 mPm.mSettings.removeRenamedPackageLPw(parsedPackage.getPackageName()); in commitReconciledScanResultLocked() 294 SharedUserSetting sharedUserSetting = mPm.mSettings.getSharedUserSettingLPr(pkgSetting); in commitReconciledScanResultLocked() [all …]
|
D | StorageEventHelper.java | 63 private final PackageManagerService mPm; field in StorageEventHelper 74 mPm = pm; in StorageEventHelper() 75 mBroadcastHelper = new BroadcastHelper(mPm.mInjector); in StorageEventHelper() 88 mPm.mUserManager.reconcileUsers(volumeUuid); in onVolumeStateChanged() 89 reconcileApps(mPm.snapshotComputer(), volumeUuid); in onVolumeStateChanged() 93 mPm.mInstallerService.onPrivateVolumeMounted(volumeUuid); in onVolumeStateChanged() 111 synchronized (mPm.mLock) { in onVolumeForgotten() 113 mPm.mSettings.getVolumePackagesLPr(fsUuid); in onVolumeForgotten() 117 mPm.deletePackageVersioned(new VersionedPackage(ps.getPackageName(), in onVolumeForgotten() 127 mPm.mSettings.onVolumeForgotten(fsUuid); in onVolumeForgotten() [all …]
|
D | PackageHandler.java | 64 private final PackageManagerService mPm; field in PackageHandler 69 mPm = pm; in PackageHandler() 70 mInstallPackageHelper = new InstallPackageHelper(mPm); in PackageHandler() 103 PostInstallData data = mPm.mRunningInstalls.get(msg.arg1); in doHandleMessage() 105 mPm.mRunningInstalls.delete(msg.arg1); in doHandleMessage() 123 synchronized (mPm.mInstallLock) { in doHandleMessage() 135 mPm.notifyInstallObserver(packageName, killApp); in doHandleMessage() 139 mPm.writeSettings(); in doHandleMessage() 142 mPm.writePendingRestrictions(); in doHandleMessage() 145 mPm.writePackageList(msg.arg1); in doHandleMessage() [all …]
|
D | DomainVerificationConnection.java | 36 final PackageManagerService mPm; field in DomainVerificationConnection 40 mPm = pm; in DomainVerificationConnection() 41 mUmInternal = mPm.mInjector.getLocalService(UserManagerInternal.class); in DomainVerificationConnection() 46 mPm.scheduleWriteSettings(); in scheduleWriteSettings() 62 Message message = mPm.mHandler.obtainMessage(DOMAIN_VERIFICATION); in schedule() 65 mPm.mHandler.sendMessage(message); in schedule() 70 return VerificationUtils.getDefaultVerificationTimeout(mPm.mContext); in getPowerSaveTempWhitelistAppDuration() 75 return mPm.mInjector.getLocalService(DeviceIdleInternal.class); in getDeviceIdleInternal() 81 return callingUid == mPm.snapshotComputer().getPackageUid(packageName, 0, callingUserId); in isCallerPackage() 87 return mPm.snapshotComputer().getPackage(packageName); in getPackage() [all …]
|
D | DexOptHelper.java | 83 private final PackageManagerService mPm; field in DexOptHelper 98 mPm = pm; in DexOptHelper() 128 if ((mPm.isFirstBoot() || mPm.isDeviceUpgrading()) && pkg.isSystem()) { in performDexOptUpgrade() 138 if (!mPm.mInstaller.copySystemProfile(profileFile.getAbsolutePath(), in performDexOptUpgrade() 152 PackageSetting disabledPs = mPm.mSettings.getDisabledSystemPkgLPr( in performDexOptUpgrade() 175 if (!mPm.mInstaller.copySystemProfile(profileFile.getAbsolutePath(), in performDexOptUpgrade() 191 if (!mPm.mPackageDexOptimizer.canOptimizePackage(pkg)) { in performDexOptUpgrade() 207 mPm.mContext.getResources().getString(R.string.android_upgrading_apk, in performDexOptUpgrade() 223 if (SystemProperties.getBoolean(mPm.PRECOMPILE_LAYOUTS, false)) { in performDexOptUpgrade() 224 mPm.mArtManagerService.compileLayouts(pkg); in performDexOptUpgrade() [all …]
|
D | IncrementalProgressListener.java | 28 private final PackageManagerService mPm; field in IncrementalProgressListener 31 mPm = pm; in IncrementalProgressListener() 36 PackageStateInternal packageState = mPm.snapshotComputer() in onPackageLoadingProgressChanged() 46 mPm.commitPackageStateMutation(null, mPackageName, in onPackageLoadingProgressChanged() 51 mPm.mIncrementalManager in onPackageLoadingProgressChanged() 54 mPm.scheduleWriteSettings(); in onPackageLoadingProgressChanged()
|
D | VerificationParams.java | 166 PackageInfoLite pkgLite = PackageManagerServiceUtils.getMinimalPackageInfo(mPm.mContext, in handleStartCopy() 190 final int verificationId = mPm.mPendingVerificationToken++; in sendApkVerificationRequest() 194 mPm.mPendingVerification.append(verificationId, verificationState); in sendApkVerificationRequest() 202 mPm.mPendingVerification.remove(verificationId); in sendApkVerificationRequest() 207 final int enableRollbackToken = mPm.mPendingEnableRollbackToken++; in sendEnableRollbackRequest() 210 mPm.mPendingEnableRollback.append(enableRollbackToken, this); in sendEnableRollbackRequest() 229 mPm.mContext.sendBroadcastAsUser(enableRollbackIntent, UserHandle.SYSTEM, in sendEnableRollbackRequest() 242 final Message msg = mPm.mHandler.obtainMessage(ENABLE_ROLLBACK_TIMEOUT); in sendEnableRollbackRequest() 245 mPm.mHandler.sendMessageDelayed(msg, rollbackTimeout); in sendEnableRollbackRequest() 284 mPm.mContext.sendOrderedBroadcastAsUser(integrityVerification, UserHandle.SYSTEM, in sendIntegrityVerificationRequest() [all …]
|
D | MovePackageHelper.java | 69 final PackageManagerService mPm; field in MovePackageHelper 73 mPm = pm; in MovePackageHelper() 79 final StorageManager storage = mPm.mInjector.getSystemService(StorageManager.class); in movePackageInternal() 80 final PackageManager pm = mPm.mContext.getPackageManager(); in movePackageInternal() 82 Computer snapshot = mPm.snapshotComputer(); in movePackageInternal() 96 final boolean allow3rdPartyOnInternal = mPm.mContext.getResources().getBoolean( in movePackageInternal() 118 && mPm.isPackageDeviceAdminOnAnyUser(snapshot, packageName)) { in movePackageInternal() 138 mPm.mUserManager.getUserIds(), true); in movePackageInternal() 148 synchronized (mPm.mLock) { in movePackageInternal() 149 freezer = mPm.freezePackage(packageName, "movePackageInternal"); in movePackageInternal() [all …]
|
D | InitAppsHelper.java | 67 private final PackageManagerService mPm; field in InitAppsHelper 101 mPm = pm; in InitAppsHelper() 106 mIsDeviceUpgrading = mPm.isDeviceUpgrading(); in InitAppsHelper() 107 mIsOnlyCoreApps = mPm.isOnlyCoreApps(); in InitAppsHelper() 110 if (mIsDeviceUpgrading || mPm.isFirstBoot()) { in InitAppsHelper() 115 mSystemParseFlags = mPm.getDefParseFlags() | ParsingPackageUtils.PARSE_IS_SYSTEM_DIR; in InitAppsHelper() 125 mPm.mApexManager.getActiveApexInfos(); in getFrameworkResApkSplitFiles() 202 consumer -> mPm.forEachPackage(mPm.snapshotComputer(), in initSystemApps() 222 mPm.mSettings.pruneSharedUsersLPw(); in logSystemAppsScanningTime() 224 mSystemPackagesCount = mPm.mPackages.size(); in logSystemAppsScanningTime() [all …]
|
D | AppDataHelper.java | 67 private final PackageManagerService mPm; field in AppDataHelper 74 mPm = pm; in AppDataHelper() 75 mInjector = mPm.mInjector; in AppDataHelper() 102 synchronized (mPm.mLock) { in prepareAppDataPostCommitLIF() 103 ps = mPm.mSettings.getPackageLPr(pkg.getPackageName()); in prepareAppDataPostCommitLIF() 104 mPm.mSettings.writeKernelMappingLPr(ps); in prepareAppDataPostCommitLIF() 205 synchronized (mPm.mLock) { in prepareAppDataLeaf() 206 ps = mPm.mSettings.getPackageLPr(pkg.getPackageName()); in prepareAppDataLeaf() 264 if (mPm.isDeviceUpgrading() || mPm.isFirstBoot() in prepareAppDataLeaf() 272 synchronized (mPm.mLock) { in prepareAppDataLeaf() [all …]
|
D | InstallParams.java | 161 synchronized (mPm.mLock) { in overrideInstallLocation() 163 AndroidPackage installedPkg = mPm.mPackages.get(packageName); in overrideInstallLocation() 198 PackageInfoLite pkgLite = PackageManagerServiceUtils.getMinimalPackageInfo(mPm.mContext, in handleStartCopy() 222 pkgLite.recommendedInstallLocation = mPm.freeCacheForInstallation( in handleStartCopy() 242 mPm.mContext.getContentResolver(), new File(args.getCodePath())); in processPendingInstall() 265 mPm.mHandler.post(() -> { in processInstallRequestsAsync() 292 if (mPm.snapshotComputer().checkUidPermission(android.Manifest.permission.INSTALL_PACKAGES, in fixUpInstallReason() 298 final String ownerPackage = mPm.mProtectedPackages.getDeviceOwnerOrProfileOwnerPackage( in fixUpInstallReason() 321 final Message msg = mPm.mHandler.obtainMessage(INIT_COPY); in installStage() 330 mPm.mHandler.sendMessage(msg); in installStage() [all …]
|
D | MoveInstallArgs.java | 49 synchronized (mPm.mInstaller) { in copyApk() 51 mPm.mInstaller.moveCompleteApp(mMoveInfo.mFromUuid, mMoveInfo.mToUuid, in copyApk() 103 final int[] userIds = mPm.mUserManager.getUserIds(); in cleanUp() 104 synchronized (mPm.mInstallLock) { in cleanUp() 116 mPm.mInstaller.destroyAppData(volumeUuid, mMoveInfo.mPackageName, userId, flags, in cleanUp()
|
D | HandlerParams.java | 32 final PackageManagerService mPm; field in HandlerParams 38 mPm = pm; in HandlerParams() 39 mInstallPackageHelper = new InstallPackageHelper(mPm); in HandlerParams()
|
/frameworks/base/tests/permission/src/com/android/framework/permission/tests/ |
D | PmPermissionsTests.java | 28 private PackageManager mPm; field in PmPermissionsTests 34 mPm = getContext().getPackageManager(); in setUp() 44 mPm.getPackageSizeInfo(mPkgName, null); in testGetPackageSize() 59 mPm.deleteApplicationCacheFiles(mPkgName, null); in testDeleteApplicationCacheFiles() 81 mPm.freeStorage(100000, null); in testFreeStorage1() 96 mPm.freeStorageAndNotify(100000, null); in testFreeStorage2() 111 mPm.clearApplicationUserData(mPkgName, null); in testClearApplicationUserData() 126 mPm.deletePackage(mPkgName, null, 0); in testDeletePackage()
|
/frameworks/base/core/java/android/content/pm/ |
D | LauncherActivityInfo.java | 36 private final PackageManager mPm; field in LauncherActivityInfo 47 mPm = context.getPackageManager(); in LauncherActivityInfo() 83 return getActivityInfo().loadLabel(mPm); in getLabel() 108 final Resources resources = mPm.getResourcesForApplication( in getIcon() 116 icon = getActivityInfo().loadIcon(mPm); in getIcon() 157 return mPm.getPackageInfo(getActivityInfo().packageName, in getFirstInstallTime() 183 return mPm.getUserBadgedIcon(originalIcon, mUser); in getBadgedIcon()
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | PowerManagerTest.java | 44 private PowerManager mPm; field in PowerManagerTest 78 mPm = (PowerManager) mContext.getSystemService(Context.POWER_SERVICE); in setUp() 97 assertNotNull(mPm); in testPreconditions() 107 PowerManager.WakeLock wl = mPm.newWakeLock(PowerManager.FULL_WAKE_LOCK, "FULL_WAKE_LOCK"); in testNewWakeLock() 110 wl = mPm.newWakeLock(PowerManager.SCREEN_BRIGHT_WAKE_LOCK, "SCREEN_BRIGHT_WAKE_LOCK"); in testNewWakeLock() 113 wl = mPm.newWakeLock(PowerManager.SCREEN_DIM_WAKE_LOCK, "SCREEN_DIM_WAKE_LOCK"); in testNewWakeLock() 116 wl = mPm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "PARTIAL_WAKE_LOCK"); in testNewWakeLock() 134 PowerManager.WakeLock wl = mPm.newWakeLock(badFlags, "foo"); in testBadNewWakeLock() 149 PowerManager.WakeLock wakeLock = mPm.newWakeLock( in testWakeLockWithWorkChains() 203 assertEquals(status, mPm.getCurrentThermalStatus()); in testGetThermalStatus() [all …]
|
D | PowerManagerVrTest.java | 35 private PowerManager mPm; field in PowerManagerVrTest 50 mPm = (PowerManager) getInstrumentation().getTargetContext().getSystemService( in setUp() 75 assertNotNull(mPm); in testPreconditions() 129 PowerManager.WakeLock wl = mPm.newWakeLock( in wakeUpDevice()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/ |
D | DefaultAppInfo.java | 41 protected final PackageManager mPm; field in DefaultAppInfo 56 mPm = pm; in DefaultAppInfo() 67 mPm = pm; in DefaultAppInfo() 80 return componentInfo.loadLabel(mPm); in loadLabel() 82 final ApplicationInfo appInfo = mPm.getApplicationInfoAsUser( in loadLabel() 84 return appInfo.loadLabel(mPm); in loadLabel() 90 return packageItemInfo.loadLabel(mPm); in loadLabel() 103 final ApplicationInfo appInfo = mPm.getApplicationInfoAsUser( in loadIcon() 116 final ApplicationInfo appInfo = mPm.getApplicationInfoAsUser( in loadIcon()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/plugins/ |
D | PluginEnablerImpl.java | 33 private final PackageManager mPm; field in PluginEnablerImpl 44 mPm = pm; in PluginEnablerImpl() 57 mPm.setComponentEnabledSetting(component, desiredState, PackageManager.DONT_KILL_APP); in setDisabled() 67 return mPm.getComponentEnabledSetting(component) in isEnabled()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | ActivityIntentHelper.java | 38 private final PackageManager mPm; field in ActivityIntentHelper 43 mPm = context.getPackageManager(); in ActivityIntentHelper() 86 final List<ResolveInfo> appList = mPm.queryIntentActivitiesAsUser( in getTargetActivityInfo() 94 ResolveInfo resolved = mPm.resolveActivityAsUser(intent, flags, currentUserId); in getTargetActivityInfo() 119 ResolveInfo resolved = mPm.resolveActivityAsUser(intent.getIntent(), flags, currentUserId); in getPendingTargetActivityInfo()
|