Lines Matching defs:AssetManager

27 #include <androidfw/AssetManager.h>
85 const char* AssetManager::RESOURCES_FILENAME = "resources.arsc";
86 const char* AssetManager::IDMAP_BIN = "/system/bin/idmap";
87 const char* AssetManager::OVERLAY_DIR = "/vendor/overlay";
88 const char* AssetManager::TARGET_PACKAGE_NAME = "android";
89 const char* AssetManager::TARGET_APK_PATH = "/system/framework/framework-res.apk";
90 const char* AssetManager::IDMAP_DIR = "/data/resource-cache";
141 * AssetManager
145 int32_t AssetManager::getGlobalCount()
150 AssetManager::AssetManager(CacheMode cacheMode)
156 //ALOGI("Creating AssetManager %p #%d\n", this, count);
160 AssetManager::~AssetManager(void)
163 //ALOGI("Destroying AssetManager in %p #%d\n", this, count);
173 bool AssetManager::addAssetPath(const String8& path, int32_t* cookie)
210 Asset* manifestAsset = const_cast<AssetManager*>(this)->openNonAssetInPathLocked(
241 bool AssetManager::addOverlayPath(const String8& packagePath, int32_t* cookie)
302 bool AssetManager::createIdmap(const char* targetApkPath, const char* overlayApkPath,
325 bool AssetManager::addDefaultAssets()
336 int32_t AssetManager::nextAssetPath(const int32_t cookie) const
343 String8 AssetManager::getAssetPath(const int32_t cookie) const
359 void AssetManager::setLocale(const char* locale)
374 void AssetManager::setLocaleLocked(const char* locale)
431 void AssetManager::setVendor(const char* vendor)
444 void AssetManager::setConfiguration(const ResTable_config& config, const char* locale)
459 void AssetManager::getConfiguration(ResTable_config* outConfig) const
489 Asset* AssetManager::open(const char* fileName, AccessMode mode)
493 LOG_FATAL_IF(mAssetPaths.size() == 0, "No assets added to AssetManager");
526 Asset* AssetManager::openNonAsset(const char* fileName, AccessMode mode, int32_t* outCookie)
530 LOG_FATAL_IF(mAssetPaths.size() == 0, "No assets added to AssetManager");
555 Asset* AssetManager::openNonAsset(const int32_t cookie, const char* fileName, AccessMode mode)
561 LOG_FATAL_IF(mAssetPaths.size() == 0, "No assets added to AssetManager");
585 FileType AssetManager::getFileType(const char* fileName)
603 bool AssetManager::appendPathToResTable(const asset_path& ap) const {
616 sharedRes = const_cast<AssetManager*>(this)->
624 ass = const_cast<AssetManager*>(this)->
628 ass = const_cast<AssetManager*>(this)->
633 ass = const_cast<AssetManager*>(this)->
653 sharedRes = const_cast<AssetManager*>(this)->
659 ass = const_cast<AssetManager*>(this)->
693 const ResTable* AssetManager::getResTable(bool required) const
709 LOG_FATAL_IF(mAssetPaths.size() == 0, "No assets added to AssetManager");
713 const_cast<AssetManager*>(this)->loadFileNameCacheLocked();
735 void AssetManager::updateResourceParamsLocked() const
751 Asset* AssetManager::openIdmapLocked(const struct asset_path& ap) const
755 ass = const_cast<AssetManager*>(this)->
766 void AssetManager::addSystemOverlays(const char* pathOverlaysList,
790 Asset* oass = const_cast<AssetManager*>(this)->
799 const_cast<AssetManager*>(this)->mAssetPaths.add(oap);
800 const_cast<AssetManager*>(this)->mZipSet.addOverlay(targetPackagePath, oap);
806 const ResTable& AssetManager::getResources(bool required) const
812 bool AssetManager::isUpToDate()
818 void AssetManager::getLocales(Vector<String8>* locales) const
843 Asset* AssetManager::openNonAssetInPathLocked(const char* fileName, AccessMode mode,
900 Asset* AssetManager::openInPathLocked(const char* fileName, AccessMode mode,
929 Asset* AssetManager::openInLocaleVendorLocked(const char* fileName, AccessMode mode,
1048 String8 AssetManager::createZipSourceNameLocked(const String8& zipFileName,
1064 String8 AssetManager::createPathNameLocked(const asset_path& ap, const char* locale,
1076 String8 AssetManager::createPathNameLocked(const asset_path& ap, const char* rootDir)
1096 ZipFileRO* AssetManager::getZipFileLocked(const asset_path& ap)
1115 Asset* AssetManager::openAssetFromFileLocked(const String8& pathName,
1137 Asset* AssetManager::openAssetFromZipLocked(const ZipFileRO* pZipFile,
1192 AssetDir* AssetManager::openDir(const char* dirName)
1199 LOG_FATAL_IF(mAssetPaths.size() == 0, "No assets added to AssetManager");
1255 AssetDir* AssetManager::openNonAssetDir(const int32_t cookie, const char* dirName)
1262 LOG_FATAL_IF(mAssetPaths.size() == 0, "No assets added to AssetManager");
1307 bool AssetManager::scanAndMergeDirLocked(SortedVector<AssetDir::FileInfo>* pMergedInfo,
1437 SortedVector<AssetDir::FileInfo>* AssetManager::scanDirLocked(const String8& path)
1495 bool AssetManager::scanAndMergeZipLocked(SortedVector<AssetDir::FileInfo>* pMergedInfo,
1618 void AssetManager::mergeInfoLocked(SortedVector<AssetDir::FileInfo>* pMergedInfo,
1724 void AssetManager::loadFileNameCacheLocked(void)
1758 void AssetManager::fncScanLocked(SortedVector<AssetDir::FileInfo>* pMergedInfo,
1781 bool AssetManager::fncScanAndMergeDirLocked(
1847 void AssetManager::purgeFileNameCacheLocked(void)
1855 * AssetManager::SharedZip
1860 Mutex AssetManager::SharedZip::gLock;
1861 DefaultKeyedVector<String8, wp<AssetManager::SharedZip> > AssetManager::SharedZip::gOpen;
1863 AssetManager::SharedZip::SharedZip(const String8& path, time_t modWhen)
1875 sp<AssetManager::SharedZip> AssetManager::SharedZip::get(const String8& path,
1893 ZipFileRO* AssetManager::SharedZip::getZip()
1898 Asset* AssetManager::SharedZip::getResourceTableAsset()
1904 Asset* AssetManager::SharedZip::setResourceTableAsset(Asset* asset)
1920 ResTable* AssetManager::SharedZip::getResourceTable()
1926 ResTable* AssetManager::SharedZip::setResourceTable(ResTable* res)
1939 bool AssetManager::SharedZip::isUpToDate()
1945 void AssetManager::SharedZip::addOverlay(const asset_path& ap)
1950 bool AssetManager::SharedZip::getOverlay(size_t idx, asset_path* out) const
1959 AssetManager::SharedZip::~SharedZip()
1976 * AssetManager::ZipSet
1983 AssetManager::ZipSet::ZipSet(void)
1990 AssetManager::ZipSet::~ZipSet(void)
2000 void AssetManager::ZipSet::closeZip(int idx)
2009 ZipFileRO* AssetManager::ZipSet::getZip(const String8& path)
2020 Asset* AssetManager::ZipSet::getZipResourceTableAsset(const String8& path)
2031 Asset* AssetManager::ZipSet::setZipResourceTableAsset(const String8& path,
2040 ResTable* AssetManager::ZipSet::getZipResourceTable(const String8& path)
2051 ResTable* AssetManager::ZipSet::setZipResourceTable(const String8& path,
2066 /*static*/ String8 AssetManager::ZipSet::getPathName(const char* zipPath)
2071 bool AssetManager::ZipSet::isUpToDate()
2082 void AssetManager::ZipSet::addOverlay(const String8& path, const asset_path& overlay)
2089 bool AssetManager::ZipSet::getOverlay(const String8& path, size_t idx, asset_path* out) const
2104 int AssetManager::ZipSet::getIndex(const String8& zip) const