Searched defs:pkg (Results 1 - 4 of 4) sorted by relevance

/packages/apps/Nfc/src/com/android/nfc/
H A DNfceeAccessControl.java73 * Check if the {uid, pkg} combination may use NFCEE.
74 * Also verify with package manager that this {uid, pkg} combination
77 public boolean check(int uid, String pkg) { argument
90 if (uidPkg.equals(pkg)) {
92 if (checkPackageNfceeAccess(pkg)) {
107 * so no need to confirm {uid, pkg} is valid.
127 * Check with package manager if the pkg may use NFCEE.
130 boolean checkPackageNfceeAccess(String pkg) { argument
133 PackageInfo info = pm.getPackageInfo(pkg, PackageManager.GET_SIGNATURES);
148 if (DBG) Log.d(TAG, "Granted NFCEE access to " + pkg
[all...]
H A DNfcDispatcher.java306 String pkg = new String(record.getPayload(), Charsets.US_ASCII);
308 firstPackage = pkg;
310 intent.setPackage(pkg);
421 private static Intent getAppSearchIntent(String pkg) { argument
423 market.setData(Uri.parse("market://details?id=" + pkg));
H A DNfcService.java225 public void enforceNfceeAdminPerm(String pkg) { argument
226 if (pkg == null) {
230 if (!mNfceeAccessControl.check(Binder.getCallingUid(), pkg)) {
232 " denies NFCEE access to " + pkg);
760 public INfcAdapterExtras getNfcAdapterExtrasInterface(String pkg) { argument
761 NfcService.this.enforceNfceeAdminPerm(pkg);
1189 public Bundle open(String pkg, IBinder b) throws RemoteException { argument
1190 NfcService.this.enforceNfceeAdminPerm(pkg);
1233 public Bundle close(String pkg, IBinder binder) throws RemoteException { argument
1234 NfcService.this.enforceNfceeAdminPerm(pkg);
1247 transceive(String pkg, byte[] in) argument
1279 getCardEmulationRoute(String pkg) argument
1285 setCardEmulationRoute(String pkg, int route) argument
1292 authenticate(String pkg, byte[] token) argument
[all...]
/packages/experimental/droiddreamclean/
H A Ddroiddreamclean.c110 char pkg[MAX_PACKAGE_NAME_LENGTH]; local
121 while ((fgets(pkg, sizeof(pkg)-1,fp) != NULL)
124 //printf("package before = %s\n", pkg);
125 len = (strlen(pkg)-8 < MAX_PACKAGE_NAME_LENGTH)?(strlen(pkg)-8):MAX_PACKAGE_NAME_LENGTH;
126 strncpy(installed_packages[num_packages], (pkg+8), len);
127 // pkg+8 removes the initial "package:""

Completed in 326 milliseconds