Home
last modified time | relevance | path

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

12

/frameworks/base/tests/permission/src/com/android/framework/permission/tests/
DPmPermissionsTests.java28 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()
78 mPm.installPackage(null, observer, 0, null); in testInstallPackage()
93 mPm.freeStorage(100000, null); in testFreeStorage1()
108 mPm.freeStorageAndNotify(100000, null); in testFreeStorage2()
123 mPm.clearApplicationUserData(mPkgName, null); in testClearApplicationUserData()
138 mPm.deletePackage(mPkgName, null, 0); in testDeletePackage()
/frameworks/base/core/tests/coretests/src/android/os/
DPowerManagerTest.java25 private PowerManager mPm; field in PowerManagerTest
33 mPm = (PowerManager) mContext.getSystemService(Context.POWER_SERVICE); in setUp()
43 assertNotNull(mPm); in testPreconditions()
53 PowerManager.WakeLock wl = mPm.newWakeLock(PowerManager.FULL_WAKE_LOCK, "FULL_WAKE_LOCK"); in testNewWakeLock()
56 wl = mPm.newWakeLock(PowerManager.SCREEN_BRIGHT_WAKE_LOCK, "SCREEN_BRIGHT_WAKE_LOCK"); in testNewWakeLock()
59 wl = mPm.newWakeLock(PowerManager.SCREEN_DIM_WAKE_LOCK, "SCREEN_DIM_WAKE_LOCK"); in testNewWakeLock()
62 wl = mPm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "PARTIAL_WAKE_LOCK"); in testNewWakeLock()
83 PowerManager.WakeLock wl = mPm.newWakeLock(badFlags, "foo"); in testBadNewWakeLock()
134 mPm.setBacklightBrightness(0); in doTestSetBacklightBrightness()
/frameworks/base/core/java/android/content/pm/
DLauncherActivityInfo.java38 private final PackageManager mPm; field in LauncherActivityInfo
59 mPm = context.getPackageManager(); in LauncherActivityInfo()
92 return mActivityInfo.loadLabel(mPm); in getLabel()
110 = mPm.getResourcesForApplication(mActivityInfo.applicationInfo); in getIcon()
117 icon = mActivityInfo.loadIcon(mPm); in getIcon()
147 return mPm.getPackageInfo(mActivityInfo.packageName, in getFirstInstallTime()
174 return mPm.getUserBadgedIcon(originalIcon, mUser); in getBadgedIcon()
DPackageInstaller.java260 private final PackageManager mPm; field in PackageInstaller
271 mPm = pm; in PackageInstaller()
DLauncherApps.java65 private PackageManager mPm; field in LauncherApps
268 mPm = context.getPackageManager(); in LauncherApps()
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/misc/
DSystemServicesProxy.java119 PackageManager mPm; field in SystemServicesProxy
206 mPm = context.getPackageManager(); in SystemServicesProxy()
214 mPm.hasSystemFeature(PackageManager.FEATURE_FREEFORM_WINDOW_MANAGEMENT) || in SystemServicesProxy()
217 mIsSafeMode = mPm.isSafeMode(); in SystemServicesProxy()
678 if (mPm == null) return null; in getActivityInfo()
682 return mPm.getActivityInfo(cn, PackageManager.GET_META_DATA); in getActivityInfo()
693 if (mPm == null) return null; in getBadgedActivityLabel()
700 return getBadgedLabel(info.loadLabel(mPm).toString(), userId); in getBadgedActivityLabel()
707 if (mPm == null) return null; in getBadgedApplicationLabel()
714 return getBadgedLabel(appInfo.loadLabel(mPm).toString(), userId); in getBadgedApplicationLabel()
[all …]
/frameworks/base/cmds/pm/src/com/android/commands/pm/
DPm.java80 IPackageManager mPm; field in Pm
113 mPm = IPackageManager.Stub.asInterface(ServiceManager.getService("package")); in run()
115 if (mPm == null) { in run()
119 mInstaller = mPm.getPackageInstaller(); in run()
760 final PackageInfo info = mPm.getPackageInfo(pkg, 0, userId); in runSetAppLink()
771 if (!mPm.updateIntentVerificationStatus(pkg, newMode, userId)) { in runSetAppLink()
810 final PackageInfo info = mPm.getPackageInfo(pkg, 0, userId); in runGetAppLink()
821 System.out.println(linkStateToString(mPm.getIntentVerificationStatus(pkg, userId))); in runGetAppLink()
857 if (!mPm.setInstallLocation(loc)) { in runSetInstallLocation()
871 int loc = mPm.getInstallLocation(); in runGetInstallLocation()
[all …]
/frameworks/base/core/java/android/widget/
DAppSecurityPermissions.java72 private final PackageManager mPm; field in AppSecurityPermissions
255 mPm = mContext.getPackageManager(); in AppSecurityPermissions()
266 pkgInfo = mPm.getPackageInfo(packageName, PackageManager.GET_PERMISSIONS); in AppSecurityPermissions()
292 installedPkgInfo = mPm.getPackageInfo(info.packageName, in AppSecurityPermissions()
302 sharedUid = mPm.getUidForSharedUser(info.sharedUserId); in AppSecurityPermissions()
329 String sharedPkgList[] = mPm.getPackagesForUid(sharedUid); in getAllUsedPermissions()
340 PackageInfo pkgInfo = mPm.getPackageInfo(packageName, PackageManager.GET_PERMISSIONS); in getPermissionsForPackage()
357 PermissionInfo tmpPermInfo = mPm.getPermissionInfo(permName, 0); in extractPerms()
388 grp = mPm.getPermissionGroupInfo(origGroupName, 0); in extractPerms()
594 pInfo.mLabel = pInfo.loadLabel(mPm); in addPermToList()
[all …]
/frameworks/base/tests/StatusBar/src/com/android/statusbartest/
DPowerTest.java35 PowerManager mPm; field in PowerTest
46 mPm = (PowerManager)getSystemService("power"); in tests()
47 mProx = mPm.newWakeLock(PowerManager.PROXIMITY_SCREEN_OFF_WAKE_LOCK, "PowerTest-prox"); in tests()
/frameworks/base/core/java/com/android/internal/app/
DResolverComparator.java59 private final PackageManager mPm; field in ResolverComparator
73 mPm = context.getPackageManager(); in ResolverComparator()
198 CharSequence sa = lhs.loadLabel(mPm); in compare()
200 CharSequence sb = rhs.loadLabel(mPm); in compare()
DResolverActivity.java97 private PackageManager mPm; field in ResolverActivity
256 mPm = getPackageManager(); in onCreate()
305 ai = mPm.getApplicationInfo(referrerPackage, 0); in onCreate()
312 titleIcon.setImageDrawable(ai.loadIcon(mPm)); in onCreate()
511 dr = getIcon(mPm.getResourcesForApplication(ri.resolvePackageName), ri.icon); in loadIconForResolveInfo()
518 dr = getIcon(mPm.getResourcesForApplication(ri.activityInfo.packageName), iconRes); in loadIconForResolveInfo()
526 return ri.loadIcon(mPm); in loadIconForResolveInfo()
1029 mBadge = mResolveInfo.activityInfo.applicationInfo.loadIcon(mPm); in getBadgeIcon()
1298 final List<ResolveInfo> infos = mPm.queryIntentActivities(intent, in rebuildList()
1405 CharSequence r0Label = r0.loadLabel(mPm); in rebuildList()
[all …]
/frameworks/base/services/core/java/com/android/server/pm/
DPackageInstallerService.java157 private final PackageManagerService mPm; field in PackageInstallerService
205 mPm = pm; in PackageInstallerService()
260 synchronized (mPm.mInstallLock) { in reconcileStagesLocked()
261 mPm.removeCodePathLI(stage); in reconcileStagesLocked()
385 final int installerUid = readIntAttribute(in, ATTR_INSTALLER_UID, mPm.getPackageUid( in readSessionLocked()
417 return new PackageInstallerSession(mInternalCallback, mContext, mPm, in readSessionLocked()
575 mPm.enforceCrossUserPermission(callingUid, userId, true, true, "createSession"); in createSessionInternal()
577 if (mPm.isUserRestricted(userId, UserManager.DISALLOW_INSTALL_APPS)) { in createSessionInternal()
683 session = new PackageInstallerSession(mInternalCallback, mContext, mPm, in createSessionInternal()
828mPm.enforceCrossUserPermission(Binder.getCallingUid(), userId, true, false, "getAllSessions"); in getAllSessions()
[all …]
DPackageInstallerSession.java102 private final PackageManagerService mPm; field in PackageInstallerSession
227 mPm = pm; in PackageInstallerSession()
252 (mPm.checkUidPermission(android.Manifest.permission.INSTALL_PACKAGES, installerUid) in PackageInstallerSession()
441 mPm.freeStorage(params.volumeUuid, deltaBytes); in openWriteInternal()
637 mPm.installStage(mPackageName, stageDir, stageCid, localObserver, params, in commitLocked()
733 final PackageInfo pkg = mPm.getPackageInfo(params.appPackageName, flags, userId); in validateInstallLocked()
760 final ApplicationInfo app = mPm.getApplicationInfo(mPackageName, 0, userId); in validateInstallLocked()
924 mPm.mInstaller.createOatDir(fromDir.getAbsolutePath(), instructionSet); in createOatDirs()
936 mPm.mInstaller.linkFile(relativePath, fromDir.getAbsolutePath(), in linkFiles()
1038 final int uid = mPm.getPackageUid(PackageManagerService.DEFAULT_CONTAINER_PACKAGE, in finalizeAndFixContainer()
[all …]
DLauncherAppsService.java99 private final PackageManager mPm; field in LauncherAppsService.LauncherAppsImpl
111 mPm = mContext.getPackageManager(); in LauncherAppsImpl()
243 packageUid = mPm.getPackageUidAsUser(callingPackage, in verifyCallingPackage()
286 List<ResolveInfo> apps = mPm.queryIntentActivitiesAsUser(mainIntent, in getLauncherActivities()
518 List<ResolveInfo> apps = mPm.queryIntentActivitiesAsUser(launchIntent, in startActivityAsUser()
DUserManagerService.java203 private final PackageManagerService mPm; field in UserManagerService
416 mPm = pm; in UserManagerService()
2268 mPm.prepareUserData(userId, userInfo.serialNumber, in createUserInternalUnchecked()
2270 mPm.createNewUser(userId); in createUserInternalUnchecked()
2519 mPm.cleanUpUser(this, userHandle); in removeUserState()
2522 mPm.destroyUserData(userHandle, in removeUserState()
2848 mPm.prepareUserData(userId, userSerial, StorageManager.FLAG_STORAGE_DE); in onBeforeStartUser()
2849 mPm.reconcileAppsData(userId, StorageManager.FLAG_STORAGE_DE); in onBeforeStartUser()
2857 mPm.onBeforeUserStartUninitialized(userId); in onBeforeStartUser()
2868 mPm.prepareUserData(userId, userSerial, StorageManager.FLAG_STORAGE_CE); in onBeforeUnlockUser()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DAccessPointPreference.java208 private final PackageManager mPm; field in AccessPointPreference.UserBadgeCache
211 mPm = pm; in UserBadgeCache()
217 Drawable badge = mPm.getUserBadgeForDensity(new UserHandle(userId), 0 /* dpi */); in getUserBadge()
/frameworks/base/core/java/com/android/internal/inputmethod/
DInputMethodSubtypeSwitchingController.java166 private final PackageManager mPm; field in InputMethodSubtypeSwitchingController.InputMethodAndSubtypeList
173 mPm = context.getPackageManager(); in InputMethodAndSubtypeList()
187 if (mPm == null) {
190 CharSequence imiId1 = imi1.loadLabel(mPm) + "/" + imi1.getId();
191 CharSequence imiId2 = imi2.loadLabel(mPm) + "/" + imi2.getId();
222 final CharSequence imeLabel = imi.loadLabel(mPm); in getSortedInputMethodAndSubtypeList()
/frameworks/base/services/core/java/com/android/server/search/
DSearchables.java76 final private IPackageManager mPm; field in Searchables
87 mPm = AppGlobals.getPackageManager(); in Searchables()
132 ai = mPm.getActivityInfo(activity, PackageManager.GET_META_DATA, mUserId); in getSearchableInfo()
411 mPm.queryIntentActivities(intent, in queryIntentActivities()
/frameworks/base/services/core/java/com/android/server/
DServiceWatcher.java58 private final PackageManager mPm; field in ServiceWatcher
113 mPm = mContext.getPackageManager(); in ServiceWatcher()
191 final List<ResolveInfo> rInfos = mPm.queryIntentServicesAsUser(intent, in bindBestPackageLocked()
205 pInfo = mPm.getPackageInfo(packageName, PackageManager.GET_SIGNATURES in bindBestPackageLocked()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DAccessibilityInputFilter.java109 private final PowerManager mPm; field in AccessibilityInputFilter
145 mPm = (PowerManager) context.getSystemService(Context.POWER_SERVICE); in AccessibilityInputFilter()
319 mPm.userActivity(event.getEventTime(), false); in handleMotionEvent()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
DApplicationsState.java91 final PackageManager mPm; field in ApplicationsState
125 mPm = mContext.getPackageManager(); in ApplicationsState()
312 entry.ensureIconLocked(mContext, mPm); in ensureIcon()
321mPm.getPackageSizeInfoAsUser(packageName, userId, mBackgroundHandler.mStatsObserver); in requestSize()
850 List<ResolveInfo> intents = mPm.queryIntentActivitiesAsUser( in handleMessage()
888 if (entry.ensureIconLocked(mContext, mPm)) { in handleMessage()
936 mPm.getPackageSizeInfoAsUser(mCurComputingSizePkg, in handleMessage()
/frameworks/base/cmds/bmgr/src/com/android/commands/bmgr/
DBmgr.java275 IPackageManager mPm = in backupNowAllPackages() local
277 if (mPm == null) { in backupNowAllPackages()
283 installedPackages = mPm.getInstalledPackages(0, userId).getList(); in backupNowAllPackages()
/frameworks/base/services/core/java/com/android/server/notification/
DZenModeHelper.java105 private PackageManager mPm; field in ZenModeHelper
189 mPm = mContext.getPackageManager(); in onSystemReady()
395 String[] packages = mPm.getPackagesForUid(Binder.getCallingUid()); in canManageAutomaticZenRule()
415 List<ResolveInfo> installedServices = mPm.queryIntentServicesAsUser( in getServiceInfo()
594 mPm.getPackageInfo(rule.component.getPackageName(), in cleanUpZenRules()
/frameworks/base/services/core/java/com/android/server/clipboard/
DClipboardService.java63 private final PackageManager mPm; field in ClipboardService
100 mPm = context.getPackageManager(); in ClipboardService()
/frameworks/base/tests/FrameworkPerf/src/com/android/frameworkperf/
DTestService.java569 PackageManager mPm; field in TestService.IpcOp
577 mPm = context.getPackageManager(); in onInit()
584 mPm.queryContentProviders(mProcessName, Process.myUid(), 0); in onRun()

12