Lines Matching refs:zip

163                 mAssetPaths[i].zip.get());  in ~AssetManager()
164 if (mAssetPaths[i].rawFd >= 0 && mAssetPaths[i].zip == NULL) { in ~AssetManager()
866 ALOGV("getZipFileLocked() in %p: ap=%p zip=%p", this, &ap, ap.zip.get()); in getZipFileLocked()
868 if (ap.zip != NULL) { in getZipFileLocked()
869 return ap.zip->getZip(); in getZipFileLocked()
874 ap.zip = mZipSet.getSharedZip(ap.path); in getZipFileLocked()
877 ap.zip = SharedZip::create(ap.rawFd, ap.path); in getZipFileLocked()
880 return ap.zip != NULL ? ap.zip->getZip() : NULL; in getZipFileLocked()
1457 sp<SharedZip> zip = gOpen.valueFor(path).promote(); in get() local
1458 if (zip != NULL && zip->mModWhen == modWhen) { in get()
1459 return zip; in get()
1461 if (zip == NULL && !createIfNotPresent) { in get()
1464 zip = new SharedZip(path, modWhen); in get()
1465 gOpen.add(path, zip); in get()
1466 return zip; in get()
1593 sp<SharedZip> zip = mZipFile[idx]; in getSharedZip() local
1594 if (zip == NULL) { in getSharedZip()
1595 zip = SharedZip::get(path); in getSharedZip()
1596 mZipFile.editItemAt(idx) = zip; in getSharedZip()
1598 return zip; in getSharedZip()
1604 sp<SharedZip> zip = mZipFile[idx]; in getZipResourceTableAsset() local
1605 if (zip == NULL) { in getZipResourceTableAsset()
1606 zip = SharedZip::get(path); in getZipResourceTableAsset()
1607 mZipFile.editItemAt(idx) = zip; in getZipResourceTableAsset()
1609 return zip->getResourceTableAsset(); in getZipResourceTableAsset()
1616 sp<SharedZip> zip = mZipFile[idx]; in setZipResourceTableAsset() local
1618 return zip->setResourceTableAsset(asset); in setZipResourceTableAsset()
1624 sp<SharedZip> zip = mZipFile[idx]; in getZipResourceTable() local
1625 if (zip == NULL) { in getZipResourceTable()
1626 zip = SharedZip::get(path); in getZipResourceTable()
1627 mZipFile.editItemAt(idx) = zip; in getZipResourceTable()
1629 return zip->getResourceTable(); in getZipResourceTable()
1636 sp<SharedZip> zip = mZipFile[idx]; in setZipResourceTable() local
1638 return zip->setResourceTable(res); in setZipResourceTable()
1666 sp<SharedZip> zip = mZipFile[idx]; in addOverlay() local
1667 zip->addOverlay(overlay); in addOverlay()
1672 sp<SharedZip> zip = SharedZip::get(path, false); in getOverlay() local
1673 if (zip == NULL) { in getOverlay()
1676 return zip->getOverlay(idx, out); in getOverlay()
1685 int AssetManager::ZipSet::getIndex(const String8& zip) const in getIndex()
1689 if (mZipPath[i] == zip) { in getIndex()
1694 mZipPath.add(zip); in getIndex()