Home
last modified time | relevance | path

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

1234

/frameworks/base/services/core/java/com/android/server/pm/
DPackageHandler.java62 private final PackageManagerService mPm; field in PackageHandler
66 mPm = pm; in PackageHandler()
81 mPm.sendPendingBroadcasts(); in doHandleMessage()
87 InstallRequest request = mPm.mRunningInstalls.get(msg.arg1); in doHandleMessage()
89 mPm.mRunningInstalls.delete(msg.arg1); in doHandleMessage()
102 mPm.handlePackagePostInstall(request, didRestore); in doHandleMessage()
113 mPm.cleanUpResources(args.getPackageName(), args.getCodeFile(), in doHandleMessage()
122 mPm.notifyInstallObserver(packageName, killApp); in doHandleMessage()
126 mPm.writeSettings(/*sync=*/false); in doHandleMessage()
129 mPm.writePackageList(msg.arg1); in doHandleMessage()
[all …]
DStorageEventHelper.java63 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 …]
DRemovePackageHelper.java65 private final PackageManagerService mPm; field in RemovePackageHelper
76 mPm = pm; in RemovePackageHelper()
77 mIncrementalManager = mPm.mInjector.getIncrementalManager(); in RemovePackageHelper()
78 mInstaller = mPm.mInjector.getInstaller(); in RemovePackageHelper()
79 mPermissionManager = mPm.mInjector.getPermissionManagerServiceInternal(); in RemovePackageHelper()
80 mSharedLibraries = mPm.mInjector.getSharedLibrariesImpl(); in RemovePackageHelper()
86 try (PackageManagerTracedLock installLock = mPm.mInstallLock.acquireLock()) { in removeCodePath()
125 if (mPm.getCacheDir() == null) { in removeCachedResult()
129 final PackageCacher cacher = new PackageCacher(mPm.getCacheDir()); in removeCachedResult()
136 try (PackageManagerTracedLock installLock = mPm.mInstallLock.acquireLock()) { in removePackage()
[all …]
DInstallPackageHelper.java213 private final PackageManagerService mPm; field in InstallPackageHelper
235 mPm = pm; in InstallPackageHelper()
267 parsedPackage.setVersionCode(mPm.getSdkVersion()) in commitReconciledScanResultLocked()
277 SharedUserSetting requestSharedUserSetting = mPm.mSettings.getSharedUserSettingLPr( in commitReconciledScanResultLocked()
279 SharedUserSetting resultSharedUserSetting = mPm.mSettings.getSharedUserSettingLPr( in commitReconciledScanResultLocked()
286 if (mPm.mSettings.checkAndPruneSharedUserLPw(requestSharedUserSetting, false)) { in commitReconciledScanResultLocked()
298 mPm.mSettings.addRenamedPackageLPw( in commitReconciledScanResultLocked()
302 mPm.mTransferredPackages.add(originalPkgSetting.getPackageName()); in commitReconciledScanResultLocked()
304 mPm.mSettings.removeRenamedPackageLPw(parsedPackage.getPackageName()); in commitReconciledScanResultLocked()
307 SharedUserSetting sharedUserSetting = mPm.mSettings.getSharedUserSettingLPr(pkgSetting); in commitReconciledScanResultLocked()
[all …]
DPreferredActivityHelper.java71 private final PackageManagerService mPm; field in PreferredActivityHelper
76 mPm = pm; in PreferredActivityHelper()
95 if (Thread.holdsLock(mPm.mLock)) { in findPreferredActivityNotLocked()
99 if (!mPm.mUserManager.exists(userId)) return null; in findPreferredActivityNotLocked()
109 mPm.scheduleWritePackageRestrictions(userId); in findPreferredActivityNotLocked()
120 synchronized (mPm.mLock) { in clearPackagePreferredActivities()
121 mPm.clearPackagePreferredActivitiesLPw(packageName, changedUsers, userId); in clearPackagePreferredActivities()
124 updateDefaultHomeNotLocked(mPm.snapshotComputer(), changedUsers); in clearPackagePreferredActivities()
126 mPm.scheduleWritePackageRestrictions(userId); in clearPackagePreferredActivities()
136 if (Thread.holdsLock(mPm.mLock)) { in updateDefaultHomeNotLocked()
[all …]
DPackageFreezer.java42 private final PackageManagerService mPm; field in PackageFreezer
52 mPm = pm; in PackageFreezer()
71 mPm = pm; in PackageFreezer()
79 synchronized (mPm.mLock) { in PackageFreezer()
80 final int refCounts = mPm.mFrozenPackages in PackageFreezer()
82 mPm.mFrozenPackages.put(mPackageName, refCounts); in PackageFreezer()
83 ps = mPm.mSettings.getPackageLPr(mPackageName); in PackageFreezer()
87 mPm.killApplicationSync(ps.getPackageName(), ps.getAppId(), userId, killReason, in PackageFreezer()
90 mPm.killApplication(ps.getPackageName(), ps.getAppId(), userId, killReason, in PackageFreezer()
111 synchronized (mPm.mLock) { in close()
[all …]
DDeletePackageHelper.java86 private final PackageManagerService mPm; field in DeletePackageHelper
94 mPm = pm; in DeletePackageHelper()
95 mUserManagerInternal = mPm.mInjector.getUserManagerInternal(); in DeletePackageHelper()
137 synchronized (mPm.mLock) { in deletePackageX()
138 final Computer computer = mPm.snapshotComputer(); in deletePackageX()
139 uninstalledPs = mPm.mSettings.getPackageLPr(packageName); in deletePackageX()
164 disabledSystemPs = mPm.mSettings.getDisabledSystemPkgLPr(packageName); in deletePackageX()
167 pkg = mPm.mPackages.get(packageName); in deletePackageX()
241 isInstallerPackage = mPm.mSettings.isInstallerPackage(packageName); in deletePackageX()
244 try (PackageManagerTracedLock installLock = mPm.mInstallLock.acquireLock()) { in deletePackageX()
[all …]
DDomainVerificationConnection.java36 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 …]
DPackageManagerNative.java38 private final PackageManagerService mPm; field in PackageManagerNative
41 mPm = pm; in PackageManagerNative()
52 names = mPm.snapshotComputer().getNamesForUids(uids); in getNamesForUids()
73 return mPm.snapshotComputer().getPackageUid(packageName, flags, userId); in getPackageUid()
79 final Computer snapshot = mPm.snapshotComputer(); in getInstallerForPackage()
99 PackageInfo pInfo = mPm.snapshotComputer() in getVersionCodeForPackage()
111 int targetSdk = mPm.snapshotComputer().getTargetSdkVersion(packageName); in getTargetSdkVersionForPackage()
122 ApplicationInfo appInfo = mPm.snapshotComputer() in isPackageDebuggable()
135 final Computer snapshot = mPm.snapshotComputer(); in isAudioPlaybackCaptureAllowed()
147 ApplicationInfo appInfo = mPm.snapshotComputer().getApplicationInfo(packageName, in getLocationFlags()
[all …]
DFreeStorageHelper.java61 private final PackageManagerService mPm; field in FreeStorageHelper
69 mPm = pm; in FreeStorageHelper()
99 mPm.deletePreloadsFileCache(); in freeStorage()
105 FileUtils.deleteContents(mPm.getCacheDir()); in freeStorage()
110 try (PackageManagerTracedLock installLock = mPm.mInstallLock.acquireLock()) { in freeStorage()
111 mPm.mInstaller.freeCache(volumeUuid, bytes, Installer.FLAG_FREE_CACHE_V2); in freeStorage()
116 final Computer computer = mPm.snapshotComputer(); in freeStorage()
117 final SharedLibrariesImpl sharedLibraries = mPm.mInjector.getSharedLibrariesImpl(); in freeStorage()
131 if (mPm.mInstantAppRegistry.pruneInstalledInstantApps(computer, bytes, in freeStorage()
142 try (PackageManagerTracedLock installLock = mPm.mInstallLock.acquireLock()) { in freeStorage()
[all …]
DIncrementalProgressListener.java28 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()
50 mPm.commitPackageStateMutation(null, mPackageName, in onPackageLoadingProgressChanged()
53 mPm.mIncrementalManager in onPackageLoadingProgressChanged()
56 mPm.scheduleWriteSettings(); in onPackageLoadingProgressChanged()
DInstallingSession.java97 final PackageManagerService mPm; field in InstallingSession
112 mPm = pm; in InstallingSession()
148 mPm = pm; in InstallingSession()
208 Computer snapshot = mPm.snapshotComputer(); in overrideInstallLocation()
244 PackageInfoLite pkgLite = PackageManagerServiceUtils.getMinimalPackageInfo(mPm.mContext, in handleStartCopy()
251 Pair<Integer, String> ret = mPm.verifyReplacingVersionCode( in handleStartCopy()
269 pkgLite.recommendedInstallLocation = mPm.freeCacheForInstallation( in handleStartCopy()
290 mPm.mContext.getContentResolver(), new File(installRequest.getCodePath())); in processPendingInstall()
297 mPm.mHandler.post(() -> processInstallRequests( in processPendingInstall()
326 mPm.mInstallerService.allocateStageDirLegacy(mVolumeUuid, isEphemeral)); in copyApkForFileInstall()
[all …]
DVerifyingSession.java142 private final PackageManagerService mPm; field in VerifyingSession
150 mPm = pm; in VerifyingSession()
183 PackageInfoLite pkgLite = PackageManagerServiceUtils.getMinimalPackageInfo(mPm.mContext, in handleStartVerify()
186 Pair<Integer, String> ret = mPm.verifyReplacingVersionCode( in handleStartVerify()
214 final int verificationId = mPm.mPendingVerificationToken++; in sendApkVerificationRequest()
218 mPm.mPendingVerification.append(verificationId, verificationState); in sendApkVerificationRequest()
226 mPm.mPendingVerification.remove(verificationId); in sendApkVerificationRequest()
231 final int enableRollbackToken = mPm.mPendingEnableRollbackToken++; in sendEnableRollbackRequest()
234 mPm.mPendingEnableRollback.append(enableRollbackToken, this); in sendEnableRollbackRequest()
254 mPm.mContext.sendBroadcastAsUser(enableRollbackIntent, UserHandle.SYSTEM, in sendEnableRollbackRequest()
[all …]
DMovePackageHelper.java73 final PackageManagerService mPm; field in MovePackageHelper
77 mPm = pm; in MovePackageHelper()
83 final StorageManager storage = mPm.mInjector.getSystemService(StorageManager.class); in movePackageInternal()
84 final PackageManager pm = mPm.mContext.getPackageManager(); in movePackageInternal()
86 Computer snapshot = mPm.snapshotComputer(); in movePackageInternal()
93 mPm.mUserManager.getUserIds(), true); in movePackageInternal()
114 final boolean allow3rdPartyOnInternal = mPm.mContext.getResources().getBoolean( in movePackageInternal()
133 && mPm.isPackageDeviceAdminOnAnyUser(snapshot, packageName)) { in movePackageInternal()
161 synchronized (mPm.mLock) { in movePackageInternal()
162 freezer = mPm.freezePackage(packageName, UserHandle.USER_ALL, in movePackageInternal()
[all …]
DAppDataHelper.java70 private final PackageManagerService mPm; field in AppDataHelper
77 mPm = pm; in AppDataHelper()
78 mInjector = mPm.mInjector; in AppDataHelper()
97 synchronized (mPm.mLock) { in prepareAppDataAfterInstallLIF()
98 ps = mPm.mSettings.getPackageLPr(pkg.getPackageName()); in prepareAppDataAfterInstallLIF()
125 synchronized (mPm.mLock) { in prepareAppDataPostCommitLIF()
126 mPm.mSettings.writeKernelMappingLPr(ps); in prepareAppDataPostCommitLIF()
186 synchronized (mPm.mLock) { in prepareAppDataAndMigrate()
187 ps = mPm.mSettings.getPackageLPr(pkg.getPackageName()); in prepareAppDataAndMigrate()
224 synchronized (mPm.mLock) { in prepareAppData()
[all …]
DInitAppsHelper.java69 private final PackageManagerService mPm; field in InitAppsHelper
102 mPm = pm; in InitAppsHelper()
107 mIsDeviceUpgrading = mPm.isDeviceUpgrading(); in InitAppsHelper()
110 if (mIsDeviceUpgrading || mPm.isFirstBoot()) { in InitAppsHelper()
115 mSystemParseFlags = mPm.getDefParseFlags() | ParsingPackageUtils.PARSE_IS_SYSTEM_DIR; in InitAppsHelper()
190 consumer -> mPm.forEachPackageState(mPm.snapshotComputer(), in initSystemApps()
213 mPm.mSettings.pruneSharedUsersLPw(); in logSystemAppsScanningTime()
215 mSystemPackagesCount = mPm.mPackages.size(); in logSystemAppsScanningTime()
235 try (var files = Files.newDirectoryStream(mPm.getAppInstallDir().toPath())) { in fixInstalledAppDirMode()
261 scanDirTracedLI(mPm.getAppInstallDir(), 0, in initNonSystemApps()
[all …]
DDistractingPackageHelper.java41 private final PackageManagerService mPm; field in DistractingPackageHelper
51 mPm = pm; in DistractingPackageHelper()
114 mPm.commitPackageStateMutation(null /* initialState */, mutator -> { in setDistractingPackageRestrictionsAsUser()
126 mBroadcastHelper.sendDistractingPackagesChanged(mPm.snapshotComputer(), in setDistractingPackageRestrictionsAsUser()
128 mPm.scheduleWritePackageRestrictions(userId); in setDistractingPackageRestrictionsAsUser()
190 mPm.commitPackageStateMutation(null /* initialState */, mutator -> { in removeDistractingPackageRestrictions()
201 mBroadcastHelper.sendDistractingPackagesChanged(mPm.snapshotComputer(), in removeDistractingPackageRestrictions()
203 mPm.scheduleWritePackageRestrictions(userId); in removeDistractingPackageRestrictions()
/frameworks/base/tests/permission/src/com/android/framework/permission/tests/
DPmPermissionsTests.java29 private PackageManager mPm; field in PmPermissionsTests
35 mPm = getContext().getPackageManager(); in setUp()
45 mPm.getPackageSizeInfo(mPkgName, null); in testGetPackageSize()
60 mPm.deleteApplicationCacheFiles(mPkgName, null); in testDeleteApplicationCacheFiles()
82 mPm.freeStorage(100000, null); in testFreeStorage1()
97 mPm.freeStorageAndNotify(100000, null); in testFreeStorage2()
112 mPm.clearApplicationUserData(mPkgName, null); in testClearApplicationUserData()
127 mPm.deletePackage(mPkgName, null, 0); in testDeletePackage()
/frameworks/base/core/tests/coretests/src/android/os/
DPowerManagerTest.java60 private PowerManager mPm; field in PowerManagerTest
102 mPm = (PowerManager) mContext.getSystemService(Context.POWER_SERVICE); in setUp()
122 assertNotNull(mPm); in testPreconditions()
133 PowerManager.WakeLock wl = mPm.newWakeLock(PowerManager.FULL_WAKE_LOCK, "FULL_WAKE_LOCK"); in testNewWakeLock()
136 wl = mPm.newWakeLock(PowerManager.SCREEN_BRIGHT_WAKE_LOCK, "SCREEN_BRIGHT_WAKE_LOCK"); in testNewWakeLock()
139 wl = mPm.newWakeLock(PowerManager.SCREEN_DIM_WAKE_LOCK, "SCREEN_DIM_WAKE_LOCK"); in testNewWakeLock()
142 wl = mPm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "PARTIAL_WAKE_LOCK"); in testNewWakeLock()
161 PowerManager.WakeLock wl = mPm.newWakeLock(badFlags, "foo"); in testBadNewWakeLock()
177 PowerManager.WakeLock wakeLock = mPm.newWakeLock( in testWakeLockWithWorkChains()
231 assertEquals(status, mPm.getCurrentThermalStatus()); in testGetThermalStatus()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
DDefaultAppInfo.java43 protected final PackageManager mPm; field in DefaultAppInfo
58 mPm = pm; in DefaultAppInfo()
69 mPm = pm; in DefaultAppInfo()
82 return componentInfo.loadLabel(mPm); in loadLabel()
84 final ApplicationInfo appInfo = mPm.getApplicationInfoAsUser( in loadLabel()
86 return appInfo.loadLabel(mPm); in loadLabel()
92 return packageItemInfo.loadLabel(mPm); in loadLabel()
109 final ApplicationInfo appInfo = mPm.getApplicationInfoAsUser( in loadIcon()
122 final ApplicationInfo appInfo = mPm.getApplicationInfoAsUser( in loadIcon()
/frameworks/base/core/java/android/content/pm/
DLauncherActivityInfo.java43 private final PackageManager mPm; field in LauncherActivityInfo
57 mPm = context.getPackageManager(); in LauncherActivityInfo()
93 return getActivityInfo().loadLabel(mPm); in getLabel()
96 CharSequence label = trim(getActivityInfo().loadLabel(mPm)); in getLabel()
99 label = trim(getApplicationInfo().loadLabel(mPm)); in getLabel()
131 final Resources resources = mPm.getResourcesForApplication( in getIcon()
139 icon = getActivityInfo().loadIcon(mPm); in getIcon()
180 return mPm.getPackageInfo(getActivityInfo().packageName, in getFirstInstallTime()
206 return mPm.getUserBadgedIcon(originalIcon, mInternal.getUser()); in getBadgedIcon()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/
DControlsServiceInfo.kt78 val resolveInfos = mPm.queryIntentActivitiesAsUser( in resolvePanelActivity()
109 return when (mPm.getComponentEnabledSetting(activityInfo.componentName)) { in isComponentActuallyEnabled()
120 val appInfo = mPm.getApplicationInfoAsUser(componentName.packageName, 0, userId) in loadLabel()
121 appInfo.loadLabel(mPm) in loadLabel()
123 ?: packageItemInfo?.loadLabel(mPm) in loadLabel()
134 val appInfo = mPm.getApplicationInfoAsUser(packageName, 0, userId) in loadIcon()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/
DShellTestCase.java41 private PackageManager mPm; field in ShellTestCase
52 mPm = context.getPackageManager(); in shellSetup()
86 return mPm.hasSystemFeature(PackageManager.FEATURE_LEANBACK) in isTelevision()
87 || mPm.hasSystemFeature(PackageManager.FEATURE_LEANBACK_ONLY); in isTelevision()
/frameworks/base/packages/SystemUI/src/com/android/systemui/plugins/
DPluginEnablerImpl.java33 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/
DActivityIntentHelper.java38 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()

1234