Lines Matching defs:AssetManager

27 #include <androidfw/AssetManager.h>
73 const char* AssetManager::RESOURCES_FILENAME = "resources.arsc";
74 const char* AssetManager::IDMAP_BIN = "/system/bin/idmap";
75 const char* AssetManager::OVERLAY_DIR = "/vendor/overlay";
76 const char* AssetManager::OVERLAY_THEME_DIR_PROPERTY = "ro.boot.vendor.overlay.theme";
77 const char* AssetManager::TARGET_PACKAGE_NAME = "android";
78 const char* AssetManager::TARGET_APK_PATH = "/system/framework/framework-res.apk";
79 const char* AssetManager::IDMAP_DIR = "/data/resource-cache";
130 * AssetManager
134 int32_t AssetManager::getGlobalCount() {
138 AssetManager::AssetManager() :
142 ALOGI("Creating AssetManager %p #%d\n", this, count);
147 AssetManager::~AssetManager() {
150 ALOGI("Destroying AssetManager in %p #%d\n", this, count);
160 bool AssetManager::addAssetPath(
220 bool AssetManager::addOverlayPath(const String8& packagePath, int32_t* cookie)
285 bool AssetManager::createIdmap(const char* targetApkPath, const char* overlayApkPath,
320 bool AssetManager::addDefaultAssets()
331 int32_t AssetManager::nextAssetPath(const int32_t cookie) const
338 String8 AssetManager::getAssetPath(const int32_t cookie) const
348 void AssetManager::setLocaleLocked(const char* locale)
358 void AssetManager::setConfiguration(const ResTable_config& config, const char* locale)
373 void AssetManager::getConfiguration(ResTable_config* outConfig) const
391 Asset* AssetManager::open(const char* fileName, AccessMode mode)
395 LOG_FATAL_IF(mAssetPaths.size() == 0, "No assets added to AssetManager");
423 Asset* AssetManager::openNonAsset(const char* fileName, AccessMode mode, int32_t* outCookie)
427 LOG_FATAL_IF(mAssetPaths.size() == 0, "No assets added to AssetManager");
448 Asset* AssetManager::openNonAsset(const int32_t cookie, const char* fileName, AccessMode mode)
454 LOG_FATAL_IF(mAssetPaths.size() == 0, "No assets added to AssetManager");
475 FileType AssetManager::getFileType(const char* fileName)
494 bool AssetManager::appendPathToResTable(const asset_path& ap, bool appAsLib) const {
512 sharedRes = const_cast<AssetManager*>(this)->
520 ass = const_cast<AssetManager*>(this)->
524 ass = const_cast<AssetManager*>(this)->
529 ass = const_cast<AssetManager*>(this)->
549 sharedRes = const_cast<AssetManager*>(this)->
555 ass = const_cast<AssetManager*>(this)->
587 const ResTable* AssetManager::getResTable(bool required) const
603 LOG_FATAL_IF(mAssetPaths.size() == 0, "No assets added to AssetManager");
625 void AssetManager::updateResourceParamsLocked() const
642 Asset* AssetManager::openIdmapLocked(const struct asset_path& ap) const
646 ass = const_cast<AssetManager*>(this)->
657 void AssetManager::addSystemOverlays(const char* pathOverlaysList,
688 Asset* oass = const_cast<AssetManager*>(this)->
697 const_cast<AssetManager*>(this)->mAssetPaths.add(oap);
698 const_cast<AssetManager*>(this)->mZipSet.addOverlay(targetPackagePath, oap);
709 const ResTable& AssetManager::getResources(bool required) const
715 bool AssetManager::isUpToDate()
721 void AssetManager::getLocales(Vector<String8>* locales, bool includeSystemLocales) const
736 Asset* AssetManager::openNonAssetInPathLocked(const char* fileName, AccessMode mode,
789 String8 AssetManager::createZipSourceNameLocked(const String8& zipFileName,
805 String8 AssetManager::createPathNameLocked(const asset_path& ap, const char* rootDir)
816 ZipFileRO* AssetManager::getZipFileLocked(const asset_path& ap)
835 Asset* AssetManager::openAssetFromFileLocked(const String8& pathName,
857 Asset* AssetManager::openAssetFromZipLocked(const ZipFileRO* pZipFile,
906 AssetDir* AssetManager::openDir(const char* dirName)
913 LOG_FATAL_IF(mAssetPaths.size() == 0, "No assets added to AssetManager");
964 AssetDir* AssetManager::openNonAssetDir(const int32_t cookie, const char* dirName)
971 LOG_FATAL_IF(mAssetPaths.size() == 0, "No assets added to AssetManager");
1013 bool AssetManager::scanAndMergeDirLocked(SortedVector<AssetDir::FileInfo>* pMergedInfo,
1086 SortedVector<AssetDir::FileInfo>* AssetManager::scanDirLocked(const String8& path)
1144 bool AssetManager::scanAndMergeZipLocked(SortedVector<AssetDir::FileInfo>* pMergedInfo,
1265 void AssetManager::mergeInfoLocked(SortedVector<AssetDir::FileInfo>* pMergedInfo,
1355 * AssetManager::SharedZip
1360 Mutex AssetManager::SharedZip::gLock;
1361 DefaultKeyedVector<String8, wp<AssetManager::SharedZip> > AssetManager::SharedZip::gOpen;
1363 AssetManager::SharedZip::SharedZip(const String8& path, time_t modWhen)
1377 sp<AssetManager::SharedZip> AssetManager::SharedZip::get(const String8& path,
1395 ZipFileRO* AssetManager::SharedZip::getZip()
1400 Asset* AssetManager::SharedZip::getResourceTableAsset()
1407 Asset* AssetManager::SharedZip::setResourceTableAsset(Asset* asset)
1423 ResTable* AssetManager::SharedZip::getResourceTable()
1429 ResTable* AssetManager::SharedZip::setResourceTable(ResTable* res)
1442 bool AssetManager::SharedZip::isUpToDate()
1448 void AssetManager::SharedZip::addOverlay(const asset_path& ap)
1453 bool AssetManager::SharedZip::getOverlay(size_t idx, asset_path* out) const
1462 AssetManager::SharedZip::~SharedZip()
1481 * AssetManager::ZipSet
1488 AssetManager::ZipSet::~ZipSet(void)
1498 void AssetManager::ZipSet::closeZip(int idx)
1507 ZipFileRO* AssetManager::ZipSet::getZip(const String8& path)
1518 Asset* AssetManager::ZipSet::getZipResourceTableAsset(const String8& path)
1529 Asset* AssetManager::ZipSet::setZipResourceTableAsset(const String8& path,
1538 ResTable* AssetManager::ZipSet::getZipResourceTable(const String8& path)
1549 ResTable* AssetManager::ZipSet::setZipResourceTable(const String8& path,
1564 /*static*/ String8 AssetManager::ZipSet::getPathName(const char* zipPath)
1569 bool AssetManager::ZipSet::isUpToDate()
1580 void AssetManager::ZipSet::addOverlay(const String8& path, const asset_path& overlay)
1587 bool AssetManager::ZipSet::getOverlay(const String8& path, size_t idx, asset_path* out) const
1602 int AssetManager::ZipSet::getIndex(const String8& zip) const