Home | History | Annotate | Download | only in androidfw

Lines Matching refs:AssetManager

27 #include <androidfw/AssetManager.h>
79 const char* AssetManager::RESOURCES_FILENAME = "resources.arsc";
80 const char* AssetManager::IDMAP_BIN = "/system/bin/idmap";
81 const char* AssetManager::OVERLAY_DIR = "/vendor/overlay";
82 const char* AssetManager::TARGET_PACKAGE_NAME = "android";
83 const char* AssetManager::TARGET_APK_PATH = "/system/framework/framework-res.apk";
84 const char* AssetManager::IDMAP_DIR = "/data/resource-cache";
135 * AssetManager
139 int32_t AssetManager::getGlobalCount()
144 AssetManager::AssetManager(CacheMode cacheMode)
151 ALOGI("Creating AssetManager %p #%d\n", this, count);
156 AssetManager::~AssetManager(void)
160 ALOGI("Destroying AssetManager in %p #%d\n", this, count);
171 bool AssetManager::addAssetPath(
232 bool AssetManager::addOverlayPath(const String8& packagePath, int32_t* cookie)
297 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
354 void AssetManager::setLocale(const char* locale)
369 void AssetManager::setLocaleLocked(const char* locale)
426 void AssetManager::setVendor(const char* vendor)
439 void AssetManager::setConfiguration(const ResTable_config& config, const char* locale)
454 void AssetManager::getConfiguration(ResTable_config* outConfig) const
484 Asset* AssetManager::open(const char* fileName, AccessMode mode)
488 LOG_FATAL_IF(mAssetPaths.size() == 0, "No assets added to AssetManager");
521 Asset* AssetManager::openNonAsset(const char* fileName, AccessMode mode, int32_t* outCookie)
525 LOG_FATAL_IF(mAssetPaths.size() == 0, "No assets added to AssetManager");
550 Asset* AssetManager::openNonAsset(const int32_t cookie, const char* fileName, AccessMode mode)
556 LOG_FATAL_IF(mAssetPaths.size() == 0, "No assets added to AssetManager");
580 FileType AssetManager::getFileType(const char* fileName)
598 bool AssetManager::appendPathToResTable(const asset_path& ap, bool appAsLib) 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)->
691 const ResTable* AssetManager::getResTable(bool required) const
707 LOG_FATAL_IF(mAssetPaths.size() == 0, "No assets added to AssetManager");
711 const_cast<AssetManager*>(this)->loadFileNameCacheLocked();
733 void AssetManager::updateResourceParamsLocked() const
750 Asset* AssetManager::openIdmapLocked(const struct asset_path& ap) const
754 ass = const_cast<AssetManager*>(this)->
765 void AssetManager::addSystemOverlays(const char* pathOverlaysList,
796 Asset* oass = const_cast<AssetManager*>(this)->
805 const_cast<AssetManager*>(this)->mAssetPaths.add(oap);
806 const_cast<AssetManager*>(this)->mZipSet.addOverlay(targetPackagePath, oap);
816 const ResTable& AssetManager::getResources(bool required) const
822 bool AssetManager::isUpToDate()
828 void AssetManager::getLocales(Vector<String8>* locales, bool includeSystemLocales) const
853 Asset* AssetManager::openNonAssetInPathLocked(const char* fileName, AccessMode mode,
910 Asset* AssetManager::openInPathLocked(const char* fileName, AccessMode mode,
939 Asset* AssetManager::openInLocaleVendorLocked(const char* fileName, AccessMode mode,
1058 String8 AssetManager::createZipSourceNameLocked(const String8& zipFileName,
1074 String8 AssetManager::createPathNameLocked(const asset_path& ap, const char* locale,
1086 String8 AssetManager::createPathNameLocked(const asset_path& ap, const char* rootDir)
1106 ZipFileRO* AssetManager::getZipFileLocked(const asset_path& ap)
1125 Asset* AssetManager::openAssetFromFileLocked(const String8& pathName,
1147 Asset* AssetManager::openAssetFromZipLocked(const ZipFileRO* pZipFile,
1200 AssetDir* AssetManager::openDir(const char* dirName)
1207 LOG_FATAL_IF(mAssetPaths.size() == 0, "No assets added to AssetManager");
1263 AssetDir* AssetManager::openNonAssetDir(const int32_t cookie, const char* dirName)
1270 LOG_FATAL_IF(mAssetPaths.size() == 0, "No assets added to AssetManager");
1315 bool AssetManager::scanAndMergeDirLocked(SortedVector<AssetDir::FileInfo>* pMergedInfo,
1445 SortedVector<AssetDir::FileInfo>* AssetManager::scanDirLocked(const String8& path)
1503 bool AssetManager::scanAndMergeZipLocked(SortedVector<AssetDir::FileInfo>* pMergedInfo,
1624 void AssetManager::mergeInfoLocked(SortedVector<AssetDir::FileInfo>* pMergedInfo,
1730 void AssetManager::loadFileNameCacheLocked(void)
1764 void AssetManager::fncScanLocked(SortedVector<AssetDir::FileInfo>* pMergedInfo,
1787 bool AssetManager::fncScanAndMergeDirLocked(
1853 void AssetManager::purgeFileNameCacheLocked(void)
1861 * AssetManager::SharedZip
1866 Mutex AssetManager::SharedZip::gLock;
1867 DefaultKeyedVector<String8, wp<AssetManager::SharedZip> > AssetManager::SharedZip::gOpen;
1869 AssetManager::SharedZip::SharedZip(const String8& path, time_t modWhen)
1883 sp<AssetManager::SharedZip> AssetManager::SharedZip::get(const String8& path,
1901 ZipFileRO* AssetManager::SharedZip::getZip()
1906 Asset* AssetManager::SharedZip::getResourceTableAsset()
1913 Asset* AssetManager::SharedZip::setResourceTableAsset(Asset* asset)
1929 ResTable* AssetManager::SharedZip::getResourceTable()
1935 ResTable* AssetManager::SharedZip::setResourceTable(ResTable* res)
1948 bool AssetManager::SharedZip::isUpToDate()
1954 void AssetManager::SharedZip::addOverlay(const asset_path& ap)
1959 bool AssetManager::SharedZip::getOverlay(size_t idx, asset_path* out) const
1968 AssetManager::SharedZip::~SharedZip()
1987 * AssetManager::ZipSet
1994 AssetManager::ZipSet::ZipSet(void)
2001 AssetManager::ZipSet::~ZipSet(void)
2011 void AssetManager::ZipSet::closeZip(int idx)
2020 ZipFileRO* AssetManager::ZipSet::getZip(const String8& path)
2031 Asset* AssetManager::ZipSet::getZipResourceTableAsset(const String8& path)
2042 Asset* AssetManager::ZipSet::setZipResourceTableAsset(const String8& path,
2051 ResTable* AssetManager::ZipSet::getZipResourceTable(const String8& path)
2062 ResTable* AssetManager::ZipSet::setZipResourceTable(const String8& path,
2077 /*static*/ String8 AssetManager::ZipSet::getPathName(const char* zipPath)
2082 bool AssetManager::ZipSet::isUpToDate()
2093 void AssetManager::ZipSet::addOverlay(const String8& path, const asset_path& overlay)
2100 bool AssetManager::ZipSet::getOverlay(const String8& path, size_t idx, asset_path* out) const
2115 int AssetManager::ZipSet::getIndex(const String8& zip) const