Home | History | Annotate | Download | only in androidfw

Lines Matching refs:zip

194          ap.type == kFileTypeDirectory ? "dir" : "zip", ap.path.string());
384 * - A Zip archive, uncompressed or compressed.
759 /* look inside the zip file */
763 /* check the appropriate Zip file */
766 //printf("GOT zip, checking NA '%s'\n", (const char*) path);
769 //printf("FOUND NA in Zip file for %s\n", appName ? appName : kAppCommon);
787 * Create a "source name" for a file from a Zip archive.
792 String8 sourceName("zip:");
813 * Return a pointer to one of our open Zip archives. Returns NULL if no
814 * matching Zip file exists.
827 * deflated data and pass that in (just like we would for a Zip archive).
852 * Given an entry in a Zip archive, create a new Asset object.
866 //printf("USING Zip '%s'\n", pEntry->getFileName());
883 ALOGV("Opened uncompressed entry %s in zip %s mode %d: %p", entryName.string(),
888 ALOGV("Opened compressed entry %s in zip %s mode %d: %p", entryName.string(),
927 * We start with Zip archives, then do loose files.
936 ALOGV("Adding directory %s from zip %s", dirName, ap.path.string());
985 ALOGV("Adding directory %s from zip %s", dirName, ap.path.string());
1138 * Scan the contents out of the specified Zip archive, and merge what we
1139 * find into "pMergedInfo". If the Zip archive in question doesn't exist,
1155 ALOGW("Failure opening zip %s\n", ap.path.string());
1167 * the Zip table of contents are not in sorted order, so we have to
1173 * explicitly in Zip archives, so we have to infer them from context.
1370 ALOGV("+++ opening zip '%s'\n", mPath.string());
1373 ALOGD("failed to open Zip archive '%s'\n", mPath.string());
1382 sp<SharedZip> zip = gOpen.valueFor(path).promote();
1383 if (zip != NULL && zip->mModWhen == modWhen) {
1384 return zip;
1386 if (zip == NULL && !createIfNotPresent) {
1389 zip = new SharedZip(path, modWhen);
1390 gOpen.add(path, zip);
1391 return zip;
1496 * Close a Zip file and reset the entry.
1505 * Retrieve the appropriate Zip file from the set.
1510 sp<SharedZip> zip = mZipFile[idx];
1511 if (zip == NULL) {
1512 zip = SharedZip::get(path);
1513 mZipFile.editItemAt(idx) = zip;
1515 return zip->getZip();
1521 sp<SharedZip> zip = mZipFile[idx];
1522 if (zip == NULL) {
1523 zip = SharedZip::get(path);
1524 mZipFile.editItemAt(idx) = zip;
1526 return zip->getResourceTableAsset();
1533 sp<SharedZip> zip = mZipFile[idx];
1535 return zip->setResourceTableAsset(asset);
1541 sp<SharedZip> zip = mZipFile[idx];
1542 if (zip == NULL) {
1543 zip = SharedZip::get(path);
1544 mZipFile.editItemAt(idx) = zip;
1546 return zip->getResourceTable();
1553 sp<SharedZip> zip = mZipFile[idx];
1555 return zip->setResourceTable(res);
1583 sp<SharedZip> zip = mZipFile[idx];
1584 zip->addOverlay(overlay);
1589 sp<SharedZip> zip = SharedZip::get(path, false);
1590 if (zip == NULL) {
1593 return zip->getOverlay(idx, out);
1597 * Compute the zip file's index.
1602 int AssetManager::ZipSet::getIndex(const String8& zip) const
1606 if (mZipPath[i] == zip) {
1611 mZipPath.add(zip);