Home
last modified time | relevance | path

Searched refs:pkgName (Results 1 – 13 of 13) sorted by relevance

/packages/apps/Bluetooth/src/com/android/bluetooth/
DUtils.java313 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/
DBatteryEntry.java285 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/
DPackageInstallerActivity.java401 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,
DPackageUtil.java139 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/
DP2pLinkManager.java501 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/
DUsageStatsActivity.java92 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/
DInstalledAppDetails.java638 private void forceStopPackage(String pkgName) {
641 am.forceStopPackage(pkgName);
643 mState.invalidatePackage(pkgName, userId);
644 ApplicationsState.AppEntry newEnt = mState.getEntry(pkgName, userId);
DDrawOverlayDetails.java129 private boolean canDrawOverlay(String pkgName) { in canDrawOverlay() argument
131 mPackageInfo.applicationInfo.uid, pkgName); in canDrawOverlay()
DWriteSettingsDetails.java128 private boolean canWriteSettings(String pkgName) { in canWriteSettings() argument
130 mPackageInfo.applicationInfo.uid, pkgName); in canWriteSettings()
DProcStatsEntry.java75 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/
DCarrierConfigLoader.java382 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()
DPhoneInterfaceManager.java2354 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/
DPaymentBackend.java143 Drawable loadDrawableForPackage(String pkgName, int drawableResId) { in loadDrawableForPackage() argument
146 Resources res = pm.getResourcesForApplication(pkgName); in loadDrawableForPackage()