Home | History | Annotate | Download | only in androidfw

Lines Matching refs:AssetManager

27 #include <androidfw/AssetManager.h>
76 const char* AssetManager::RESOURCES_FILENAME = "resources.arsc";
77 const char* AssetManager::IDMAP_BIN = "/system/bin/idmap";
78 const char* AssetManager::OVERLAY_DIR = "/vendor/overlay";
79 const char* AssetManager::TARGET_PACKAGE_NAME = "android";
80 const char* AssetManager::TARGET_APK_PATH = "/system/framework/framework-res.apk";
81 const char* AssetManager::IDMAP_DIR = "/data/resource-cache";
132 * AssetManager
136 int32_t AssetManager::getGlobalCount()
141 AssetManager::AssetManager(CacheMode cacheMode)
148 ALOGI("Creating AssetManager %p #%d\n", this, count);
153 AssetManager::~AssetManager(void)
157 ALOGI("Destroying AssetManager in %p #%d\n", this, count);
168 bool AssetManager::addAssetPath(
229 bool AssetManager::addOverlayPath(const String8& packagePath, int32_t* cookie)
294 bool AssetManager::createIdmap(const char* targetApkPath, const char* overlayApkPath,
317 bool AssetManager::addDefaultAssets()
328 int32_t AssetManager::nextAssetPath(const int32_t cookie) const
335 String8 AssetManager::getAssetPath(const int32_t cookie) const
351 void AssetManager::setLocale(const char* locale)
366 void AssetManager::setLocaleLocked(const char* locale)
423 void AssetManager::setVendor(const char* vendor)
436 void AssetManager::setConfiguration(const ResTable_config& config, const char* locale)
451 void AssetManager::getConfiguration(ResTable_config* outConfig) const
481 Asset* AssetManager::open(const char* fileName, AccessMode mode)
485 LOG_FATAL_IF(mAssetPaths.size() == 0, "No assets added to AssetManager");
518 Asset* AssetManager::openNonAsset(const char* fileName, AccessMode mode, int32_t* outCookie)
522 LOG_FATAL_IF(mAssetPaths.size() == 0, "No assets added to AssetManager");
547 Asset* AssetManager::openNonAsset(const int32_t cookie, const char* fileName, AccessMode mode)
553 LOG_FATAL_IF(mAssetPaths.size() == 0, "No assets added to AssetManager");
577 FileType AssetManager::getFileType(const char* fileName)
595 bool AssetManager::appendPathToResTable(const asset_path& ap, bool appAsLib) const {
613 sharedRes = const_cast<AssetManager*>(this)->
621 ass = const_cast<AssetManager*>(this)->
625 ass = const_cast<AssetManager*>(this)->
630 ass = const_cast<AssetManager*>(this)->
650 sharedRes = const_cast<AssetManager*>(this)->
656 ass = const_cast<AssetManager*>(this)->
688 const ResTable* AssetManager::getResTable(bool required) const
704 LOG_FATAL_IF(mAssetPaths.size() == 0, "No assets added to AssetManager");
708 const_cast<AssetManager*>(this)->loadFileNameCacheLocked();
730 void AssetManager::updateResourceParamsLocked() const
747 Asset* AssetManager::openIdmapLocked(const struct asset_path& ap) const
751 ass = const_cast<AssetManager*>(this)->
762 void AssetManager::addSystemOverlays(const char* pathOverlaysList,
787 Asset* oass = const_cast<AssetManager*>(this)->
796 const_cast<AssetManager*>(this)->mAssetPaths.add(oap);
797 const_cast<AssetManager*>(this)->mZipSet.addOverlay(targetPackagePath, oap);
803 const ResTable& AssetManager::getResources(bool required) const
809 bool AssetManager::isUpToDate()
815 void AssetManager::getLocales(Vector<String8>* locales, bool includeSystemLocales) const
840 Asset* AssetManager::openNonAssetInPathLocked(const char* fileName, AccessMode mode,
897 Asset* AssetManager::openInPathLocked(const char* fileName, AccessMode mode,
926 Asset* AssetManager::openInLocaleVendorLocked(const char* fileName, AccessMode mode,
1045 String8 AssetManager::createZipSourceNameLocked(const String8& zipFileName,
1061 AssetManager::createPathNameLocked(const asset_path& ap, const char* locale,
1073 String8 AssetManager::createPathNameLocked(const asset_path& ap, const char* rootDir)
1093 ZipFileRO* AssetManager::getZipFileLocked(const asset_path& ap)
1112 Asset* AssetManager::openAssetFromFileLocked(const String8& pathName,
1134 Asset* AssetManager::openAssetFromZipLocked(const ZipFileRO* pZipFile,
1187 AssetDir* AssetManager::openDir(const char* dirName)
1194 LOG_FATAL_IF(mAssetPaths.size() == 0, "No assets added to AssetManager");
1250 AssetDir* AssetManager::openNonAssetDir(const int32_t cookie, const char* dirName)
1257 LOG_FATAL_IF(mAssetPaths.size() == 0, "No assets added to AssetManager");
1302 bool AssetManager::scanAndMergeDirLocked(SortedVector<AssetDir::FileInfo>* pMergedInfo,
1432 SortedVector<AssetDir::FileInfo>* AssetManager::scanDirLocked(const String8& path)
1490 bool AssetManager::scanAndMergeZipLocked(SortedVector<AssetDir::FileInfo>* pMergedInfo,
1611 void AssetManager::mergeInfoLocked(SortedVector<AssetDir::FileInfo>* pMergedInfo,
1717 void AssetManager::loadFileNameCacheLocked(void)
1751 void AssetManager::fncScanLocked(SortedVector<AssetDir::FileInfo>* pMergedInfo,
1774 bool AssetManager::fncScanAndMergeDirLocked(
1840 void AssetManager::purgeFileNameCacheLocked(void)
1848 * AssetManager::SharedZip
1853 Mutex AssetManager::SharedZip::gLock;
1854 DefaultKeyedVector<String8, wp<AssetManager::SharedZip> > AssetManager::SharedZip::gOpen;
1856 AssetManager::SharedZip::SharedZip(const String8& path, time_t modWhen)
1870 sp<AssetManager::SharedZip> AssetManager::SharedZip::get(const String8& path,
1888 ZipFileRO* AssetManager::SharedZip::getZip()
1893 Asset* AssetManager::SharedZip::getResourceTableAsset()
1899 Asset* AssetManager::SharedZip::setResourceTableAsset(Asset* asset)
1915 ResTable* AssetManager::SharedZip::getResourceTable()
1921 ResTable* AssetManager::SharedZip::setResourceTable(ResTable* res)
1934 bool AssetManager::SharedZip::isUpToDate()
1940 void AssetManager::SharedZip::addOverlay(const asset_path& ap)
1945 bool AssetManager::SharedZip::getOverlay(size_t idx, asset_path* out) const
1954 AssetManager::SharedZip::~SharedZip()
1973 * AssetManager::ZipSet
1980 AssetManager::ZipSet::ZipSet(void)
1987 AssetManager::ZipSet::~ZipSet(void)
1997 void AssetManager::ZipSet::closeZip(int idx)
2006 ZipFileRO* AssetManager::ZipSet::getZip(const String8& path)
2017 Asset* AssetManager::ZipSet::getZipResourceTableAsset(const String8& path)
2028 Asset* AssetManager::ZipSet::setZipResourceTableAsset(const String8& path,
2037 ResTable* AssetManager::ZipSet::getZipResourceTable(const String8& path)
2048 ResTable* AssetManager::ZipSet::setZipResourceTable(const String8& path,
2063 /*static*/ String8 AssetManager::ZipSet::getPathName(const char* zipPath)
2068 bool AssetManager::ZipSet::isUpToDate()
2079 void AssetManager::ZipSet::addOverlay(const String8& path, const asset_path& overlay)
2086 bool AssetManager::ZipSet::getOverlay(const String8& path, size_t idx, asset_path* out) const
2101 int AssetManager::ZipSet::getIndex(const String8& zip) const