Home | History | Annotate | Download | only in androidfw

Lines Matching refs:pAsset

503         Asset* pAsset = openNonAssetInPathLocked(assetName.string(), mode, mAssetPaths.itemAt(i));
504 if (pAsset != NULL) {
505 return pAsset != kExcludedAsset ? pAsset : NULL;
536 Asset* pAsset = openNonAssetInPathLocked(
538 if (pAsset != NULL) {
540 return pAsset != kExcludedAsset ? pAsset : NULL;
561 Asset* pAsset
563 if (pAsset != NULL) {
564 return pAsset != kExcludedAsset ? pAsset : NULL;
579 Asset* pAsset = NULL;
586 pAsset = open(fileName, Asset::ACCESS_STREAMING);
587 delete pAsset;
589 if (pAsset == NULL)
843 Asset* pAsset = NULL;
850 pAsset = openAssetFromFileLocked(path, mode);
852 if (pAsset == NULL) {
855 pAsset = openAssetFromFileLocked(path, mode);
858 if (pAsset != NULL) {
860 pAsset->setAssetSource(path);
874 pAsset = openAssetFromZipLocked(pZip, entry, mode, path);
879 if (pAsset != NULL) {
881 pAsset->setAssetSource(
887 return pAsset;
900 Asset* pAsset = NULL;
906 pAsset = openInLocaleVendorLocked(fileName, mode, ap, mLocale, mVendor);
907 if (pAsset == NULL && mVendor != NULL)
908 pAsset = openInLocaleVendorLocked(fileName, mode, ap, NULL, mVendor);
909 if (pAsset == NULL && mLocale != NULL)
910 pAsset = openInLocaleVendorLocked(fileName, mode, ap, mLocale, NULL);
911 if (pAsset == NULL)
912 pAsset = openInLocaleVendorLocked(fileName, mode, ap, NULL, NULL);
914 return pAsset;
929 Asset* pAsset = NULL;
945 pAsset = openAssetFromFileLocked(path, mode);
947 if (pAsset == NULL) {
950 pAsset = openAssetFromFileLocked(path, mode);
953 if (pAsset != NULL)
954 pAsset->setAssetSource(path);
978 pAsset = openAssetFromFileLocked(path, mode);
979 if (pAsset == NULL) {
982 pAsset = openAssetFromFileLocked(path, mode);
986 if (pAsset != NULL)
987 pAsset->setAssetSource(path);
1000 if (pAsset == NULL)
1002 return pAsset;
1012 if (pAsset == NULL && ap.type == kFileTypeRegular) {
1027 pAsset = openAssetFromZipLocked(pZip, entry, mode, path);
1032 if (pAsset != NULL) {
1034 pAsset->setAssetSource(createZipSourceNameLocked(ZipSet::getPathName(ap.path.string()),
1039 return pAsset;
1115 Asset* pAsset = NULL;
1119 pAsset = Asset::createFromCompressedFile(pathName.string(), mode);
1122 pAsset = Asset::createFromFile(pathName.string(), mode);
1125 return pAsset;
1137 Asset* pAsset = NULL;
1159 pAsset = Asset::createFromUncompressedMap(dataMap, mode);
1161 dataMap->getFileName(), mode, pAsset);
1163 pAsset = Asset::createFromCompressedMap(dataMap,
1166 dataMap->getFileName(), mode, pAsset);
1168 if (pAsset == NULL) {
1173 return pAsset;