Home
last modified time | relevance | path

Searched refs:pkg (Results 1 – 11 of 11) sorted by relevance

/packages/apps/PackageInstaller/src/com/android/packageinstaller/
DRemoveReceiver.java31 String pkg = uri != null ? uri.getSchemeSpecificPart() : null; in onReceive() local
32 if (pkg != null) { in onReceive()
36 if (prefs.getBoolean(pkg, false)) { in onReceive()
37 prefs.edit().remove(pkg).apply(); in onReceive()
DPackageUtil.java57 PackageParser.Package pkg = packageParser.parsePackage( in getApplicationInfo() local
59 if (pkg == null) { in getApplicationInfo()
62 return pkg.applicationInfo; in getApplicationInfo()
73 PackageParser.Package pkg = packageParser.parsePackage(sourceFile, in getPackageInfo() local
77 return pkg; in getPackageInfo()
/packages/apps/Nfc/src/com/android/nfc/
DNfceeAccessControl.java77 public boolean check(int uid, String pkg) { in check() argument
90 if (uidPkg.equals(pkg)) { in check()
92 if (checkPackageNfceeAccess(pkg)) { in check()
130 boolean checkPackageNfceeAccess(String pkg) { in checkPackageNfceeAccess() argument
133 PackageInfo info = pm.getPackageInfo(pkg, PackageManager.GET_SIGNATURES); in checkPackageNfceeAccess()
148 if (DBG) Log.d(TAG, "Granted NFCEE access to " + pkg + " (wildcard)"); in checkPackageNfceeAccess()
152 if (pkg.equals(p)) { in checkPackageNfceeAccess()
154 if (DBG) Log.d(TAG, "Granted access to " + pkg + " (explicit)"); in checkPackageNfceeAccess()
161 Log.w(TAG, "denied NFCEE access for " + pkg + " with signature:"); in checkPackageNfceeAccess()
DNfcService.java227 public void enforceNfceeAdminPerm(String pkg) { in enforceNfceeAdminPerm() argument
228 if (pkg == null) { in enforceNfceeAdminPerm()
232 if (!mNfceeAccessControl.check(Binder.getCallingUid(), pkg)) { in enforceNfceeAdminPerm()
234 " denies NFCEE access to " + pkg); in enforceNfceeAdminPerm()
795 public INfcAdapterExtras getNfcAdapterExtrasInterface(String pkg) { in getNfcAdapterExtrasInterface() argument
796 NfcService.this.enforceNfceeAdminPerm(pkg); in getNfcAdapterExtrasInterface()
1225 public Bundle open(String pkg, IBinder b) throws RemoteException { in open() argument
1226 NfcService.this.enforceNfceeAdminPerm(pkg); in open()
1269 public Bundle close(String pkg, IBinder binder) throws RemoteException { in close() argument
1270 NfcService.this.enforceNfceeAdminPerm(pkg); in close()
[all …]
DNfcDispatcher.java312 for (String pkg : aarPackages) { in tryNdef()
313 dispatch.intent.setPackage(pkg); in tryNdef()
349 String pkg = checkForAar(record); in extractAarPackages() local
350 if (pkg != null) { in extractAarPackages()
351 aarPackages.add(pkg); in extractAarPackages()
440 static Intent getAppSearchIntent(String pkg) { in getAppSearchIntent() argument
442 market.setData(Uri.parse("market://details?id=" + pkg)); in getAppSearchIntent()
DP2pLinkManager.java303 String pkg = tasks.get(0).baseActivity.getPackageName(); in prepareMessageToSend() local
304 if (beamDefaultDisabled(pkg)) { in prepareMessageToSend()
308 mMessageToSend = createDefaultNdef(pkg); in prepareMessageToSend()
/packages/experimental/NotificationLog/src/com/android/notificationlog/
DNotificationLogActivity.java92 String pkg = (String) data[0]; in bindView() local
100 appInfo = mPM.getApplicationInfo(pkg, 0); in bindView()
101 pkg = mPM.getApplicationLabel(appInfo) + " (" + pkg + ")"; in bindView()
105 title.setText(pkg); in bindView()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DMockPackageManager.java35 for (String pkg : mPackages) { in queryBroadcastReceivers()
36 resolveInfos.add(createResolveInfo(pkg)); in queryBroadcastReceivers()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DSearchWidgetProvider.java102 String pkg = context.getPackageName(); in myComponentName() local
103 String cls = pkg + ".SearchWidgetProvider"; in myComponentName()
104 return new ComponentName(pkg, cls); in myComponentName()
/packages/apps/KeyChain/src/com/android/keychain/
DKeyChainActivity.java222 String pkg = mSender.getIntentSender().getTargetPackage(); in displayCertChooserDialog() local
226 applicationLabel = pm.getApplicationLabel(pm.getApplicationInfo(pkg, 0)).toString(); in displayCertChooserDialog()
228 applicationLabel = pkg; in displayCertChooserDialog()
/packages/apps/Settings/src/com/android/settings/applications/
DInstalledAppDetails.java603 String pkg = packages[i]; in refreshUi() local
604 if (mPackageInfo.packageName.equals(pkg)) { in refreshUi()
608 ApplicationInfo ainfo = mPm.getApplicationInfo(pkg, 0); in refreshUi()