/frameworks/base/tests/permission/src/com/android/framework/permission/tests/ |
PmPermissionsTests.java | 28 private PackageManager mPm; 34 mPm = getContext().getPackageManager(); 44 mPm.getPackageSizeInfo(mPkgName, null); 59 mPm.deleteApplicationCacheFiles(mPkgName, null); 74 mPm.installPackage(null, null, 0, null); 89 mPm.freeStorage(100000, null); 104 mPm.freeStorageAndNotify(100000, null); 119 mPm.clearApplicationUserData(mPkgName, null); 134 mPm.deletePackage(mPkgName, null, 0);
|
/frameworks/base/core/tests/coretests/src/android/os/ |
PowerManagerTest.java | 25 private PowerManager mPm; 33 mPm = (PowerManager) mContext.getSystemService(Context.POWER_SERVICE); 43 assertNotNull(mPm); 53 PowerManager.WakeLock wl = mPm.newWakeLock(PowerManager.FULL_WAKE_LOCK, "FULL_WAKE_LOCK"); 56 wl = mPm.newWakeLock(PowerManager.SCREEN_BRIGHT_WAKE_LOCK, "SCREEN_BRIGHT_WAKE_LOCK"); 59 wl = mPm.newWakeLock(PowerManager.SCREEN_DIM_WAKE_LOCK, "SCREEN_DIM_WAKE_LOCK"); 62 wl = mPm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "PARTIAL_WAKE_LOCK"); 83 PowerManager.WakeLock wl = mPm.newWakeLock(badFlags, "foo"); 134 mPm.setBacklightBrightness(0);
|
/development/apps/Development/src/com/android/development/ |
AppHwConfigList.java | 42 PackageManager mPm; 48 mPm = getPackageManager(); 82 List<ApplicationInfo> appList = mPm.getInstalledApplications(0); 86 pkgInfo = mPm.getPackageInfo(app.packageName, 0); 136 text.setText(info != null ? info.applicationInfo.loadLabel(mPm) : "(none)"); 147 CharSequence sa = ((PackageInfo) a).applicationInfo.loadLabel(mPm); 148 CharSequence sb = ((PackageInfo) b).applicationInfo.loadLabel(mPm);
|
ProcessInfo.java | 28 PackageManager mPm; 36 mPm = getPackageManager();
|
PermissionDetails.java | 59 PackageManager mPm; 158 List<PackageInfo> list = mPm.getInstalledPackages(PackageManager.GET_PERMISSIONS); 191 mPm = getPackageManager(); 195 pInfo = mPm.getPermissionInfo(permName, 207 appInfo = mPm.getApplicationInfo(pInfo.packageName, 0); 208 String uidStr = mPm.getNameForUid(appInfo.uid); 216 String[] sharedList = mPm.getPackagesForUid(appInfo.uid);
|
AppHwPref.java | 52 PackageManager mPm; 68 mPm = getPackageManager(); 71 pInfo = mPm.getPackageInfo(pkgName, PackageManager.GET_CONFIGURATIONS); 83 displayTextView(R.id.attr_package, pInfo.applicationInfo.loadLabel(mPm));
|
RunningProcesses.java | 39 PackageManager mPm; 45 mPm = getPackageManager();
|
/frameworks/base/tests/StatusBar/src/com/android/statusbartest/ |
PowerTest.java | 35 PowerManager mPm; 46 mPm = (PowerManager)getSystemService("power"); 47 mProx = mPm.newWakeLock(PowerManager.PROXIMITY_SCREEN_OFF_WAKE_LOCK, "PowerTest-prox");
|
/packages/apps/PackageInstaller/src/com/android/packageinstaller/ |
GrantActivity.java | 46 private PackageManager mPm; 53 mPm = getPackageManager(); 77 PackageUtil.AppSnippet as = new PackageUtil.AppSnippet(mPm.getApplicationLabel(pkgInfo.applicationInfo), 78 mPm.getApplicationIcon(pkgInfo.applicationInfo)); 107 PackageInfo pkgInfo = mPm.getPackageInfo(mRequestingPackage, PackageManager.GET_PERMISSIONS); 160 PackageInfo pkgInfo = mPm.getPackageInfo(mRequestingPackage, PackageManager.GET_PERMISSIONS); 202 PermissionInfo pInfo = mPm.getPermissionInfo(permission, 0); 220 mPm.grantPermission(mRequestingPackage, permission);
|
UninstallerActivity.java | 55 PackageManager mPm; 83 CharSequence appTitle = mPm.getApplicationLabel(mAppInfo); 131 mPm = getPackageManager(); 134 mAppInfo = mPm.getApplicationInfo(packageName, PackageManager.GET_UNINSTALLED_PACKAGES); 146 activityInfo = mPm.getActivityInfo(new ComponentName(packageName, className), 0); 177 CharSequence activityLabel = activityInfo.loadLabel(mPm); 178 if (!activityLabel.equals(mAppInfo.loadLabel(mPm))) {
|
PackageInstallerActivity.java | 71 PackageManager mPm; 236 CharSequence appTitle = mPm.getApplicationLabel(mPkgInfo.applicationInfo); 261 CharSequence appTitle1 = mPm.getApplicationLabel(mPkgInfo.applicationInfo); 275 CharSequence appTitle2 = mPm.getApplicationLabel(mSourceInfo); 317 String[] oldName = mPm.canonicalToCurrentPackageNames(new String[] { pkgName }); 328 mAppInfo = mPm.getApplicationInfo(pkgName, 355 mPm = getPackageManager(); 367 mPkgInfo = mPm.getPackageInfo(mPackageURI.getSchemeSpecificPart(), 378 as = new PackageUtil.AppSnippet(mPm.getApplicationLabel(mPkgInfo.applicationInfo), 379 mPm.getApplicationIcon(mPkgInfo.applicationInfo)) [all...] |
/packages/apps/Settings/src/com/android/settings/applications/ |
AppOpsDetails.java | 53 private PackageManager mPm; 67 icon.setImageDrawable(mPm.getApplicationIcon(pkgInfo.applicationInfo)); 70 label.setText(mPm.getApplicationLabel(pkgInfo.applicationInfo)); 94 mPackageInfo = mPm.getPackageInfo(packageName, 127 PermissionInfo pi = mPm.getPermissionInfo(perm, 0); 130 PermissionGroupInfo pgi = mPm.getPermissionGroupInfo(pi.group, 0); 133 pgi.loadIcon(mPm)); 174 mPm = getActivity().getPackageManager();
|
AppOpsState.java | 49 final PackageManager mPm; 58 mPm = context.getPackageManager(); 222 mIcon = mInfo.loadIcon(mState.mPm); 232 mIcon = mInfo.loadIcon(mState.mPm); 442 appInfo = mPm.getApplicationInfo(packageName, 503 PackageInfo pi = mPm.getPackageInfo(packageName, PackageManager.GET_PERMISSIONS); 510 apps = mPm.getPackagesHoldingPermissions(permsArray, 0);
|
InstalledAppDetails.java | 104 private PackageManager mPm; 309 PackageInfo sys = mPm.getPackageInfo("android", PackageManager.GET_SIGNATURES); 323 PackageInfo sys = mPm.getPackageInfo("android", 328 List<ResolveInfo> homes = mPm.queryIntentActivities(intent, 0); 409 mPm = getActivity().getPackageManager(); 622 mPackageInfo = mPm.getPackageInfo(mAppEntry.info.packageName, 656 mPm.getPreferredActivities(intentList, prefActList, packageName); [all...] |
ApplicationsState.java | 267 final PackageManager mPm; 428 mPm = mContext.getPackageManager(); 633 mApplications = mPm.getInstalledApplications(mRetrieveFlags); 716 entry.ensureIconLocked(mContext, mPm); 725 mPm.getPackageSizeInfo(packageName, mBackgroundHandler.mStatsObserver); 770 ApplicationInfo info = mPm.getApplicationInfo(pkgName, mRetrieveFlags); [all...] |
/packages/apps/Settings/src/com/android/settings/ |
UsageStats.java | 61 private PackageManager mPm; 133 ApplicationInfo appInfo = mPm.getApplicationInfo(ps.packageName, 0); 134 label = appInfo.loadLabel(mPm); 227 mPm = getPackageManager();
|
NotificationStation.java | 62 private PackageManager mPm; 106 mPm = mContext.getPackageManager(); 255 r = mPm.getResourcesForApplicationAsUser(pkg, userId); 269 icon = mPm.getApplicationIcon(pkg); 278 ApplicationInfo info = mPm.getApplicationInfo(pkg, 280 if (info != null) return mPm.getApplicationLabel(info); 390 intent.setComponent(intent.resolveActivity(mPm));
|
/frameworks/base/core/java/android/widget/ |
AppSecurityPermissions.java | 72 private final PackageManager mPm; 258 mPm = mContext.getPackageManager(); 269 pkgInfo = mPm.getPackageInfo(packageName, PackageManager.GET_PERMISSIONS); 295 installedPkgInfo = mPm.getPackageInfo(info.packageName, 305 sharedUid = mPm.getUidForSharedUser(info.sharedUserId); 332 String sharedPkgList[] = mPm.getPackagesForUid(sharedUid); 343 PackageInfo pkgInfo = mPm.getPackageInfo(packageName, PackageManager.GET_PERMISSIONS); 367 PermissionInfo tmpPermInfo = mPm.getPermissionInfo(permName, 0); 398 grp = mPm.getPermissionGroupInfo(origGroupName, 0); 608 pInfo.mLabel = pInfo.loadLabel(mPm); [all...] |
/frameworks/base/cmds/pm/src/com/android/commands/pm/ |
Pm.java | 63 IPackageManager mPm; 88 mPm = IPackageManager.Stub.asInterface(ServiceManager.getService("package")); 89 if (mPm == null) { 293 final List<PackageInfo> packages = getInstalledPackages(mPm, getFlags, userId); 315 System.out.print(mPm.getInstallerPackageName(info.packageName)); 341 FeatureInfo[] rawList = mPm.getSystemAvailableFeatures(); 379 String[] rawList = mPm.getSystemSharedLibraryNames(); 435 List<InstrumentationInfo> list = mPm.queryInstrumentation(targetPackage, flags); 469 List<PermissionGroupInfo> pgs = mPm.getAllPermissionGroups(0); 530 mPm.getAllPermissionGroups(0) [all...] |
/frameworks/base/services/java/com/android/server/ |
ServiceWatcher.java | 55 private final PackageManager mPm; 105 mPm = mContext.getPackageManager(); 168 List<ResolveInfo> rInfos = mPm.queryIntentServicesAsUser(intent, 180 pInfo = mPm.getPackageInfo(packageName, PackageManager.GET_SIGNATURES);
|
/frameworks/base/services/java/com/android/server/search/ |
Searchables.java | 76 final private IPackageManager mPm; 87 mPm = AppGlobals.getPackageManager(); 132 ai = mPm.getActivityInfo(activity, PackageManager.GET_META_DATA, mUserId); 409 mPm.queryIntentActivities(intent,
|
/frameworks/base/core/java/com/android/internal/app/ |
ResolverActivity.java | 70 private PackageManager mPm; 117 mPm = getPackageManager(); 196 dr = getIcon(mPm.getResourcesForApplication(ri.resolvePackageName), ri.icon); 203 dr = getIcon(mPm.getResourcesForApplication(ri.activityInfo.packageName), iconRes); 211 return ri.loadIcon(mPm); 439 currentResolveList = mPm.queryIntentActivities( 483 new ResolveInfo.DisplayNameComparator(mPm); 518 CharSequence r0Label = r0.loadLabel(mPm); 525 CharSequence riLabel = ri.loadLabel(mPm); 552 CharSequence startApp = ro.activityInfo.applicationInfo.loadLabel(mPm); [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
LoaderCustom.java | 102 mIcon = mInfo.loadIcon(mLoader.mPm); 112 mIcon = mInfo.loadIcon(mLoader.mPm); 211 final PackageManager mPm; 222 mPm = getContext().getPackageManager(); 232 List<ApplicationInfo> apps = mPm.getInstalledApplications(
|
/development/samples/Support4Demos/src/com/example/android/supportv4/app/ |
LoaderCustomSupport.java | 104 mIcon = mInfo.loadIcon(mLoader.mPm); 114 mIcon = mInfo.loadIcon(mLoader.mPm); 213 final PackageManager mPm; 224 mPm = getContext().getPackageManager(); 234 List<ApplicationInfo> apps = mPm.getInstalledApplications(
|
/frameworks/base/services/java/com/android/server/accessibility/ |
AccessibilityInputFilter.java | 85 private final PowerManager mPm; 117 mPm = (PowerManager) context.getSystemService(Context.POWER_SERVICE); 281 mPm.userActivity(event.getEventTime(), false);
|