/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();
|
Connectivity.java | 102 private PowerManager mPm; 135 mScreenonWakeLock = mPm.newWakeLock(PowerManager.FULL_WAKE_LOCK | 195 mPm = (PowerManager)getSystemService(Context.POWER_SERVICE); 324 mWakeLock = mPm.newWakeLock(PowerManager.FULL_WAKE_LOCK, "ConnectivityTest"); 348 mScreenonWakeLock = mPm.newWakeLock(PowerManager.FULL_WAKE_LOCK,
|
/packages/apps/PackageInstaller/src/com/android/packageinstaller/ |
UninstallerActivity.java | 53 PackageManager mPm; 80 CharSequence appTitle = mPm.getApplicationLabel(mAppInfo); 127 mPm = getPackageManager(); 130 mAppInfo = mPm.getApplicationInfo(packageName, PackageManager.GET_UNINSTALLED_PACKAGES); 140 activityInfo = mPm.getActivityInfo(new ComponentName(packageName, className), 0); 166 CharSequence activityLabel = activityInfo.loadLabel(mPm); 167 if (!activityLabel.equals(mAppInfo.loadLabel(mPm))) {
|
PackageInstallerActivity.java | 55 PackageManager mPm; 161 CharSequence appTitle = mPm.getApplicationLabel(mPkgInfo.applicationInfo); 186 CharSequence appTitle1 = mPm.getApplicationLabel(mPkgInfo.applicationInfo); 200 CharSequence appTitle2 = mPm.getApplicationLabel(mSourceInfo); 242 String[] oldName = mPm.canonicalToCurrentPackageNames(new String[] { pkgName }); 249 mAppInfo = mPm.getApplicationInfo(pkgName, 276 mPm = getPackageManager(); 300 mSourceInfo = mPm.getApplicationInfo(callerPackage, 0);
|
/frameworks/base/core/java/android/widget/ |
AppSecurityPermissions.java | 68 private PackageManager mPm; 92 mPm = mContext.getPackageManager(); 98 mPm = mContext.getPackageManager(); 103 pkgInfo = mPm.getPackageInfo(packageName, PackageManager.GET_PERMISSIONS); 119 mPm = mContext.getPackageManager(); 137 sharedUid = mPm.getUidForSharedUser(pkg.mSharedUserId); 163 String sharedPkgList[] = mPm.getPackagesForUid(sharedUid); 176 pkgInfo = mPm.getPackageInfo(packageName, PackageManager.GET_PERMISSIONS); 192 PermissionInfo tmpPermInfo = mPm.getPermissionInfo(permName, 0); 284 pgi = mPm.getPermissionGroupInfo(grpName, 0) [all...] |
/frameworks/base/tests/StatusBar/src/com/android/statusbartest/ |
PowerTest.java | 54 PowerManager mPm; 65 mPm = (PowerManager)getSystemService("power"); 66 mProx = mPm.newWakeLock(PowerManager.PROXIMITY_SCREEN_OFF_WAKE_LOCK, "PowerTest-prox");
|
/system/extras/bugmailer/src/com/android/commands/sendbug/ |
SendBug.java | 85 final IPackageManager mPm = IPackageManager.Stub.asInterface( 87 if (mPm != null) { 90 results = mPm.queryIntentActivities(intent, null, 0);
|
/frameworks/base/cmds/pm/src/com/android/commands/pm/ |
Pm.java | 54 IPackageManager mPm; 78 mPm = IPackageManager.Stub.asInterface(ServiceManager.getService("package")); 79 if (mPm == null) { 249 final List<PackageInfo> packages = getInstalledPackages(mPm, getFlags); 301 FeatureInfo[] rawList = mPm.getSystemAvailableFeatures(); 339 String[] rawList = mPm.getSystemSharedLibraryNames(); 397 List<InstrumentationInfo> list = mPm.queryInstrumentation(targetPackage, flags); 431 List<PermissionGroupInfo> pgs = mPm.getAllPermissionGroups(0); 493 mPm.getAllPermissionGroups(0); 543 PermissionGroupInfo pgi = mPm.getPermissionGroupInfo [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();
|
/frameworks/base/core/java/com/android/internal/app/ |
ResolverActivity.java | 61 private PackageManager mPm; 91 mPm = getPackageManager(); 282 mCurrentResolveList = mPm.queryIntentActivities( 309 new ResolveInfo.DisplayNameComparator(mPm); 347 CharSequence r0Label = r0.loadLabel(mPm); 353 CharSequence riLabel = ri.loadLabel(mPm); 379 CharSequence startApp = ro.activityInfo.applicationInfo.loadLabel(mPm); 390 CharSequence jApp = jRi.activityInfo.applicationInfo.loadLabel(mPm); 410 add.activityInfo.applicationInfo.loadLabel(mPm), null)); 477 info.displayIcon = info.ri.loadIcon(mPm); [all...] |
/packages/apps/Settings/src/com/android/settings/applications/ |
InstalledAppDetails.java | 88 private PackageManager mPm; 284 PackageInfo sys = mPm.getPackageInfo("android", 289 List<ResolveInfo> homes = mPm.queryIntentActivities(intent, 0); 328 mPm = getActivity().getPackageManager(); 461 mPackageInfo = mPm.getPackageInfo(mAppEntry.info.packageName, 475 mPm.getPreferredActivities(intentList, prefActList, packageName); [all...] |
ApplicationsState.java | 226 final PackageManager mPm; 366 mPm = mContext.getPackageManager(); 403 mApplications = mPm.getInstalledApplications( 570 entry.ensureIconLocked(mContext, mPm); 579 mPm.getPackageSizeInfo(packageName, mBackgroundHandler.mStatsObserver); 624 ApplicationInfo info = mPm.getApplicationInfo(pkgName, 814 if (entry.ensureIconLocked(mContext, mPm)) { [all...] |
ManageApplications.java | 67 final IPackageManager mPm; 71 mPm = IPackageManager.Stub.asInterface( 77 mInstallLocation = mPm.getInstallLocation(); [all...] |
/frameworks/base/services/java/com/android/server/ |
ClipboardService.java | 48 private final PackageManager mPm; 65 mPm = context.getPackageManager(); 206 pi = mPm.getPackageInfo(pkg, 0);
|
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
LoaderCustom.java | 100 mIcon = mInfo.loadIcon(mLoader.mPm); 110 mIcon = mInfo.loadIcon(mLoader.mPm); 209 final PackageManager mPm; 220 mPm = getContext().getPackageManager(); 230 List<ApplicationInfo> apps = mPm.getInstalledApplications(
|
/development/samples/Support4Demos/src/com/example/android/supportv4/app/ |
LoaderCustomSupport.java | 103 mIcon = mInfo.loadIcon(mLoader.mPm); 113 mIcon = mInfo.loadIcon(mLoader.mPm); 212 final PackageManager mPm; 223 mPm = getContext().getPackageManager(); 233 List<ApplicationInfo> apps = mPm.getInstalledApplications(
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
PowerUsageDetail.java | 106 private PackageManager mPm; 136 mPm = getActivity().getPackageManager(); 444 ApplicationInfo info = mPm.getApplicationInfo(mPackages[i], 0);
|
/development/cmds/monkey/src/com/android/commands/monkey/ |
Monkey.java | 73 private IPackageManager mPm; [all...] |
/frameworks/base/tests/FrameworkPerf/src/com/android/frameworkperf/ |
TestService.java | 553 PackageManager mPm; 561 mPm = context.getPackageManager(); 568 mPm.queryContentProviders(mProcessName, Process.myUid(), 0); [all...] |