Home | History | Annotate | Download | only in utils

Lines Matching full:assetmanager

24 #include <utils/AssetManager.h>
61 * AssetManager
65 int32_t AssetManager::getGlobalCount()
70 AssetManager::AssetManager(CacheMode cacheMode)
76 //LOGI("Creating AssetManager %p #%d\n", this, count);
80 AssetManager::~AssetManager(void)
83 //LOGI("Destroying AssetManager in %p #%d\n", this, count);
93 bool AssetManager::addAssetPath(const String8& path, void** cookie)
139 bool AssetManager::addDefaultAssets()
150 void* AssetManager::nextAssetPath(void* cookie) const
157 String8 AssetManager::getAssetPath(void* cookie) const
173 void AssetManager::setLocale(const char* locale)
179 void AssetManager::setLocaleLocked(const char* locale)
198 void AssetManager::setVendor(const char* vendor)
211 void AssetManager::setConfiguration(const ResTable_config& config, const char* locale)
235 void AssetManager::getConfiguration(ResTable_config* outConfig) const
265 Asset* AssetManager::open(const char* fileName, AccessMode mode)
269 LOG_FATAL_IF(mAssetPaths.size() == 0, "No assets added to AssetManager");
302 Asset* AssetManager::openNonAsset(const char* fileName, AccessMode mode)
306 LOG_FATAL_IF(mAssetPaths.size() == 0, "No assets added to AssetManager");
330 Asset* AssetManager::openNonAsset(void* cookie, const char* fileName, AccessMode mode)
336 LOG_FATAL_IF(mAssetPaths.size() == 0, "No assets added to AssetManager");
361 FileType AssetManager::getFileType(const char* fileName)
379 const ResTable* AssetManager::getResTable(bool required) const
395 LOG_FATAL_IF(mAssetPaths.size() == 0, "No assets added to AssetManager");
399 const_cast<AssetManager*>(this)->loadFileNameCacheLocked();
412 sharedRes = const_cast<AssetManager*>(this)->
416 ass = const_cast<AssetManager*>(this)->
420 ass = const_cast<AssetManager*>(this)->
425 ass = const_cast<AssetManager*>(this)->
437 sharedRes = const_cast<AssetManager*>(this)->
443 Asset* ass = const_cast<AssetManager*>(this)->
476 void AssetManager::updateResourceParamsLocked() const
501 const ResTable& AssetManager::getResources(bool required) const
507 bool AssetManager::isUpToDate()
513 void AssetManager::getLocales(Vector<String8>* locales) const
528 Asset* AssetManager::openNonAssetInPathLocked(const char* fileName, AccessMode mode,
587 Asset* AssetManager::openInPathLocked(const char* fileName, AccessMode mode,
616 Asset* AssetManager::openInLocaleVendorLocked(const char* fileName, AccessMode mode,
737 String8 AssetManager::createZipSourceNameLocked(const String8& zipFileName,
753 String8 AssetManager::createPathNameLocked(const asset_path& ap, const char* locale,
765 String8 AssetManager::createPathNameLocked(const asset_path& ap, const char* rootDir)
785 ZipFileRO* AssetManager::getZipFileLocked(const asset_path& ap)
804 Asset* AssetManager::openAssetFromFileLocked(const String8& pathName,
826 Asset* AssetManager::openAssetFromZipLocked(const ZipFileRO* pZipFile,
881 AssetDir* AssetManager::openDir(const char* dirName)
888 LOG_FATAL_IF(mAssetPaths.size() == 0, "No assets added to AssetManager");
944 AssetDir* AssetManager::openNonAssetDir(void* cookie, const char* dirName)
951 LOG_FATAL_IF(mAssetPaths.size() == 0, "No assets added to AssetManager");
996 bool AssetManager::scanAndMergeDirLocked(SortedVector<AssetDir::FileInfo>* pMergedInfo,
1126 SortedVector<AssetDir::FileInfo>* AssetManager::scanDirLocked(const String8& path)
1184 bool AssetManager::scanAndMergeZipLocked(SortedVector<AssetDir::FileInfo>* pMergedInfo,
1300 void AssetManager::mergeInfoLocked(SortedVector<AssetDir::FileInfo>* pMergedInfo,
1406 void AssetManager::loadFileNameCacheLocked(void)
1440 void AssetManager::fncScanLocked(SortedVector<AssetDir::FileInfo>* pMergedInfo,
1463 bool AssetManager::fncScanAndMergeDirLocked(
1528 void AssetManager::purgeFileNameCacheLocked(void)
1536 * AssetManager::SharedZip
1541 Mutex AssetManager::SharedZip::gLock;
1542 DefaultKeyedVector<String8, wp<AssetManager::SharedZip> > AssetManager::SharedZip::gOpen;
1544 AssetManager::SharedZip::SharedZip(const String8& path, time_t modWhen)
1558 sp<AssetManager::SharedZip> AssetManager::SharedZip::get(const String8& path)
1572 ZipFileRO* AssetManager::SharedZip::getZip()
1577 Asset* AssetManager::SharedZip::getResourceTableAsset()
1583 Asset* AssetManager::SharedZip::setResourceTableAsset(Asset* asset)
1599 ResTable* AssetManager::SharedZip::getResourceTable()
1605 ResTable* AssetManager::SharedZip::setResourceTable(ResTable* res)
1618 bool AssetManager::SharedZip::isUpToDate()
1624 AssetManager::SharedZip::~SharedZip()
1641 * AssetManager::ZipSet
1648 AssetManager::ZipSet::ZipSet(void)
1655 AssetManager::ZipSet::~ZipSet(void)
1665 void AssetManager::ZipSet::closeZip(int idx)
1674 ZipFileRO* AssetManager::ZipSet::getZip(const String8& path)
1685 Asset* AssetManager::ZipSet::getZipResourceTableAsset(const String8& path)
1696 Asset* AssetManager::ZipSet::setZipResourceTableAsset(const String8& path,
1705 ResTable* AssetManager::ZipSet::getZipResourceTable(const String8& path)
1716 ResTable* AssetManager::ZipSet::setZipResourceTable(const String8& path,
1731 /*static*/ String8 AssetManager::ZipSet::getPathName(const char* zipPath)
1736 bool AssetManager::ZipSet::isUpToDate()
1753 int AssetManager::ZipSet::getIndex(const String8& zip) const