/packages/apps/Bluetooth/src/com/android/bluetooth/ |
D | Utils.java | 313 public static boolean isLegacyForegroundApp(Context context, String pkgName) { in isLegacyForegroundApp() argument 314 return !isMApp(context, pkgName) && isForegroundApp(context, pkgName); in isLegacyForegroundApp() 317 private static boolean isMApp(Context context, String pkgName) { in isMApp() argument 319 return context.getPackageManager().getApplicationInfo(pkgName, 0) in isMApp() 332 private static boolean isForegroundApp(Context context, String pkgName) { in isForegroundApp() argument 335 return !tasks.isEmpty() && pkgName.equals(tasks.get(0).topActivity.getPackageName()); in isForegroundApp()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
D | BatteryEntry.java | 285 for (String pkgName : sipper.mPackages) { in loadNameAndIcon() 287 … final PackageInfo pi = ipm.getPackageInfo(pkgName, 0 /* no flags */, userId); in loadNameAndIcon() 290 + pkgName + ", user " + userId); in loadNameAndIcon() 294 final CharSequence nm = pm.getText(pkgName, in loadNameAndIcon() 299 defaultPackageName = pkgName; in loadNameAndIcon() 307 + pkgName + ", user " + userId, e); in loadNameAndIcon()
|
/packages/apps/PackageInstaller/src/com/android/packageinstaller/ |
D | PackageInstallerActivity.java | 401 String pkgName = mPkgInfo.packageName; 404 String[] oldName = mPm.canonicalToCurrentPackageNames(new String[] { pkgName }); 406 pkgName = oldName[0]; 407 mPkgInfo.packageName = pkgName; 408 mPkgInfo.applicationInfo.packageName = pkgName; 415 mAppInfo = mPm.getApplicationInfo(pkgName,
|
D | PackageUtil.java | 139 public static boolean isPackageAlreadyInstalled(Activity context, String pkgName) { in isPackageAlreadyInstalled() argument 145 if(pkgName.equalsIgnoreCase(tmp.packageName)) { in isPackageAlreadyInstalled()
|
/packages/apps/Nfc/src/com/android/nfc/ |
D | P2pLinkManager.java | 501 boolean beamDefaultDisabled(String pkgName) { in beamDefaultDisabled() argument 503 ApplicationInfo ai = mPackageManager.getApplicationInfo(pkgName, in beamDefaultDisabled() 514 NdefMessage createDefaultNdef(String pkgName) { in createDefaultNdef() argument 516 "http://play.google.com/store/apps/details?id=" + pkgName + "&feature=beam")); in createDefaultNdef() 517 NdefRecord appRecord = NdefRecord.createApplicationRecord(pkgName); in createDefaultNdef()
|
/packages/apps/Settings/src/com/android/settings/ |
D | UsageStatsActivity.java | 92 TextView pkgName; field in UsageStatsActivity.AppViewHolder 181 holder.pkgName = (TextView) convertView.findViewById(R.id.package_name); in getView() 195 holder.pkgName.setText(label); in getView()
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | InstalledAppDetails.java | 638 private void forceStopPackage(String pkgName) { 641 am.forceStopPackage(pkgName); 643 mState.invalidatePackage(pkgName, userId); 644 ApplicationsState.AppEntry newEnt = mState.getEntry(pkgName, userId);
|
D | DrawOverlayDetails.java | 129 private boolean canDrawOverlay(String pkgName) { in canDrawOverlay() argument 131 mPackageInfo.applicationInfo.uid, pkgName); in canDrawOverlay()
|
D | WriteSettingsDetails.java | 128 private boolean canWriteSettings(String pkgName) { in canWriteSettings() argument 130 mPackageInfo.applicationInfo.uid, pkgName); in canWriteSettings()
|
D | ProcStatsEntry.java | 75 public ProcStatsEntry(String pkgName, int uid, String procName, long duration, long mem, in ProcStatsEntry() argument 77 mPackage = pkgName; in ProcStatsEntry()
|
/packages/services/Telephony/src/com/android/phone/ |
D | CarrierConfigLoader.java | 382 private boolean bindToConfigPackage(String pkgName, int phoneId, int eventId) { in bindToConfigPackage() argument 383 log("Binding to " + pkgName + " for phone " + phoneId); in bindToConfigPackage() 385 carrierService.setPackage(pkgName); in bindToConfigPackage()
|
D | PhoneInterfaceManager.java | 2354 public int checkCarrierPrivilegesForPackage(String pkgName) { in checkCarrierPrivilegesForPackage() argument 2360 return card.getCarrierPrivilegeStatus(mPhone.getContext().getPackageManager(), pkgName); in checkCarrierPrivilegesForPackage() 2364 public int checkCarrierPrivilegesForPackageAnyPhone(String pkgName) { in checkCarrierPrivilegesForPackageAnyPhone() argument 2374 mPhone.getContext().getPackageManager(), pkgName); in checkCarrierPrivilegesForPackageAnyPhone()
|
/packages/apps/Settings/src/com/android/settings/nfc/ |
D | PaymentBackend.java | 143 Drawable loadDrawableForPackage(String pkgName, int drawableResId) { in loadDrawableForPackage() argument 146 Resources res = pm.getResourcesForApplication(pkgName); in loadDrawableForPackage()
|