Lines Matching defs:pkg

266         PackageParser.Package pkg = packageParser.parsePackage(sourceFile, archiveFilePath, metrics, 0);
268 return pkg;
354 private void assertInstall(PackageParser.Package pkg, int flags, int expInstallLocation) {
356 String pkgName = pkg.packageName;
440 PackageParser.Package pkg;
442 this.pkg = getParsedPackage(outFileName, rawResId);
443 this.packageURI = Uri.fromFile(new File(pkg.mScanPath));
445 InstallParams(PackageParser.Package pkg) {
446 this.packageURI = Uri.fromFile(new File(pkg.mScanPath));
447 this.pkg = pkg;
450 File file = new File(pkg.mScanPath);
468 String pkg = null;
475 pkg = cmds[i++];
477 pkgInfo = pm.getPackageInfo(pkg,
491 assertEquals(pi.packageName, pkg);
534 if (pm.checkPermission(cmd, pkg)
539 if (pm.checkPermission(cmd, pkg)
554 PackageParser.Package pkg = parsePackage(packageURI);
555 return pkg;
567 PackageParser.Package pkg = ip.pkg;
572 ApplicationInfo appInfo = pm.getApplicationInfo(pkg.packageName,
574 GenericReceiver receiver = new DeleteReceiver(pkg.packageName);
575 invokeDeletePackage(pkg.packageName, 0, receiver);
585 assertNotInstalled(pkg.packageName);
588 InstallReceiver receiver = new InstallReceiver(pkg.packageName);
591 assertInstall(pkg, flags, expInstallLocation);
695 receiver = new ReplaceReceiver(ip.pkg.packageName);
698 receiver = new InstallReceiver(ip.pkg.packageName);
704 assertInstall(ip.pkg, flags, ip.pkg.installLocation);
827 GenericReceiver receiver = new DeleteReceiver(ip.pkg.packageName);
830 assertTrue(invokeDeletePackage(ip.pkg.packageName, dFlags, receiver));
834 info = getPm().getApplicationInfo(ip.pkg.packageName,
841 assertEquals(info.packageName, ip.pkg.packageName);
903 for (String pkg : pkgNames) {
906 if (rpkg.equals(pkg)) {
936 for (String pkg : pkgNames) {
939 if (rpkg.equals(pkg)) {
1044 // Install pkg on sdcard
1046 if (localLOGV) Log.i(TAG, "Installed pkg on sdcard");
1049 SdMountReceiver receiver = new SdMountReceiver(new String[]{ip.pkg.packageName});
1110 Log.i(TAG, "Deleting package : " + ip.pkg.packageName);
1111 getPm().deletePackage(ip.pkg.packageName, null, 0);
1112 File outFile = new File(ip.pkg.mScanPath);
1182 GenericReceiver receiver = new ReplaceReceiver(ip.pkg.packageName);
1186 assertInstall(ip.pkg, rFlags, ip.pkg.installLocation);
1204 GenericReceiver receiver = new ReplaceReceiver(ip.pkg.packageName);
1208 assertInstall(ip.pkg, iFlags, ip.pkg.installLocation);
1225 GenericReceiver receiver = new ReplaceReceiver(ip.pkg.packageName);
1231 assertInstall(rp.pkg, replaceFlags, rp.pkg.installLocation);
1253 assertInstall(rp.pkg, replaceFlags, ip.pkg.installLocation);
1281 for (String pkg : list) {
1282 if (pkg.equals(pkgName)) {
1295 for (String pkg : list) {
1296 if (pkg.equals(pkgName)) {
1315 Log.i("DEBUG_MOVE::", "pkg = " + packageName + ", " + "ret = " + returnCode);
1422 ApplicationInfo oldAppInfo = getPm().getApplicationInfo(ip.pkg.packageName, 0);
1424 assertTrue(invokeMovePackageFail(ip.pkg.packageName, moveFlags, result));
1425 ApplicationInfo info = getPm().getApplicationInfo(ip.pkg.packageName, 0);
1430 MoveReceiver receiver = new MoveReceiver(ip.pkg.packageName);
1431 boolean retCode = invokeMovePackage(ip.pkg.packageName, moveFlags,
1434 ApplicationInfo info = getPm().getApplicationInfo(ip.pkg.packageName, 0);
1530 GenericReceiver receiver = new DeleteReceiver(ip.pkg.packageName);
1531 invokeDeletePackage(ip.pkg.packageName, PackageManager.DONT_DELETE_DATA, receiver);
1532 assertTrue(invokeMovePackageFail(ip.pkg.packageName, moveFlags, result));
2233 assertInstall(ip.pkg, iFlags, ip.pkg.installLocation);
2243 assertInstall(ip2.pkg, i2Flags, ip2.pkg.installLocation);
2248 GenericReceiver receiver = new DeleteReceiver(ip.pkg.packageName);
2251 invokeDeletePackage(ip.pkg.packageName, PackageManager.DONT_DELETE_DATA, receiver);
2263 assertInstall(ip.pkg, iFlags, ip.pkg.installLocation);
2270 invokeDeletePackage(ip.pkg.packageName, 0, receiver);
2280 GenericReceiver receiver2 = new DeleteReceiver(ip2.pkg.packageName);
2282 invokeDeletePackage(ip2.pkg.packageName, 0, receiver);
2293 assertInstall(ip2.pkg, i2Flags, ip2.pkg.installLocation);
2302 assertInstall(ip.pkg, iFlags, ip.pkg.installLocation);
2311 assertInstall(ip2.pkg, i2Flags, ip2.pkg.installLocation);
2317 invokeDeletePackage(ip.pkg.packageName, 0, receiver);
2328 invokeDeletePackage(ip2.pkg.packageName, 0, receiver);
2358 assertInstall(ip.pkg, iFlags, ip.pkg.installLocation);
2391 PackageParser.Package pkg = parsePackage(packageURI);
2392 assertNotNull(pkg);
2400 GenericReceiver receiver = new DeleteReceiver(pkg.packageName);
2401 assertTrue(invokeDeletePackage(pkg.packageName, 0, receiver));
2435 PackageParser.Package pkg = parsePackage(packageURI);
2436 assertNotNull(pkg);
2449 assertInstall(pkg, 0, PackageInfo.INSTALL_LOCATION_INTERNAL_ONLY);
2626 PackageParser.Package pkg = parsePackage(packageURI);
2627 getPm().deletePackage(pkg.packageName, null, 0);
2630 ip1.pkg.packageName, pkg.packageName);
2746 PackageParser.Package pkg = getParsedPackage(apk2Name, apk2);
2747 getPm().deletePackage(pkg.packageName, null, 0);
2750 ip1.pkg.packageName, pkg.packageName);