Home | History | Annotate | Download | only in androidfw

Lines Matching full: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::PRODUCT_OVERLAY_DIR = "/product/overlay";
77 const char* AssetManager::OVERLAY_THEME_DIR_PROPERTY = "ro.boot.vendor.overlay.theme";
78 const char* AssetManager::TARGET_PACKAGE_NAME = "android";
79 const char* AssetManager::TARGET_APK_PATH = "/system/framework/framework-res.apk";
80 const char* AssetManager::IDMAP_DIR = "/data/resource-cache";
131 * AssetManager
135 int32_t AssetManager::getGlobalCount() {
139 AssetManager::AssetManager() :
143 ALOGI("Creating AssetManager %p #%d\n", this, count);
148 AssetManager::~AssetManager() {
151 ALOGI("Destroying AssetManager in %p #%d\n", this, count);
153 ALOGV("Destroying AssetManager in %p #%d\n", this, count);
173 bool AssetManager::addAssetPath(
233 bool AssetManager::addOverlayPath(const String8& packagePath, int32_t* cookie)
298 bool AssetManager::addAssetFd(
326 bool AssetManager::createIdmap(const char* targetApkPath, const char* overlayApkPath,
361 bool AssetManager::addDefaultAssets()
372 int32_t AssetManager::nextAssetPath(const int32_t cookie) const
379 String8 AssetManager::getAssetPath(const int32_t cookie) const
389 void AssetManager::setLocaleLocked(const char* locale)
399 void AssetManager::setConfiguration(const ResTable_config& config, const char* locale)
414 void AssetManager::getConfiguration(ResTable_config* outConfig) const
432 Asset* AssetManager::open(const char* fileName, AccessMode mode)
436 LOG_FATAL_IF(mAssetPaths.size() == 0, "No assets added to AssetManager");
465 Asset* AssetManager::openNonAsset(const char* fileName, AccessMode mode, int32_t* outCookie)
469 LOG_FATAL_IF(mAssetPaths.size() == 0, "No assets added to AssetManager");
490 Asset* AssetManager::openNonAsset(const int32_t cookie, const char* fileName, AccessMode mode)
496 LOG_FATAL_IF(mAssetPaths.size() == 0, "No assets added to AssetManager");
517 FileType AssetManager::getFileType(const char* fileName)
536 bool AssetManager::appendPathToResTable(asset_path& ap, bool appAsLib) const {
554 sharedRes = const_cast<AssetManager*>(this)->
562 ass = const_cast<AssetManager*>(this)->
566 ass = const_cast<AssetManager*>(this)->
571 ass = const_cast<AssetManager*>(this)->
591 sharedRes = const_cast<AssetManager*>(this)->
597 ass = const_cast<AssetManager*>(this)->
629 const ResTable* AssetManager::getResTable(bool required) const
645 LOG_FATAL_IF(mAssetPaths.size() == 0, "No assets added to AssetManager");
655 const_cast<AssetManager*>(this)->mAssetPaths.editItemAt(i));
668 void AssetManager::updateResourceParamsLocked() const
685 Asset* AssetManager::openIdmapLocked(const struct asset_path& ap) const
689 ass = const_cast<AssetManager*>(this)->
700 void AssetManager::addSystemOverlays(const char* pathOverlaysList,
731 Asset* oass = const_cast<AssetManager*>(this)->
740 const_cast<AssetManager*>(this)->mAssetPaths.add(oap);
741 const_cast<AssetManager*>(this)->mZipSet.addOverlay(targetPackagePath, oap);
752 const ResTable& AssetManager::getResources(bool required) const
758 bool AssetManager::isUpToDate()
764 void AssetManager::getLocales(Vector<String8>* locales, bool includeSystemLocales) const
779 Asset* AssetManager::openNonAssetInPathLocked(const char* fileName, AccessMode mode,
834 String8 AssetManager::createZipSourceNameLocked(const String8& zipFileName,
850 String8 AssetManager::createPathNameLocked(const asset_path& ap, const char* rootDir)
861 ZipFileRO* AssetManager::getZipFileLocked(asset_path& ap)
892 Asset* AssetManager::openAssetFromFileLocked(const String8& pathName,
914 Asset* AssetManager::openAssetFromZipLocked(const ZipFileRO* pZipFile,
963 AssetDir* AssetManager::openDir(const char* dirName)
970 LOG_FATAL_IF(mAssetPaths.size() == 0, "No assets added to AssetManager");
1021 AssetDir* AssetManager::openNonAssetDir(const int32_t cookie, const char* dirName)
1028 LOG_FATAL_IF(mAssetPaths.size() == 0, "No assets added to AssetManager");
1070 bool AssetManager::scanAndMergeDirLocked(SortedVector<AssetDir::FileInfo>* pMergedInfo,
1143 SortedVector<AssetDir::FileInfo>* AssetManager::scanDirLocked(const String8& path)
1201 bool AssetManager::scanAndMergeZipLocked(SortedVector<AssetDir::FileInfo>* pMergedInfo,
1322 void AssetManager::mergeInfoLocked(SortedVector<AssetDir::FileInfo>* pMergedInfo,
1412 * AssetManager::SharedZip
1417 Mutex AssetManager::SharedZip::gLock;
1418 DefaultKeyedVector<String8, wp<AssetManager::SharedZip> > AssetManager::SharedZip::gOpen;
1420 AssetManager::SharedZip::SharedZip(const String8& path, time_t modWhen)
1434 AssetManager::SharedZip::SharedZip(int fd, const String8& path)
1449 sp<AssetManager::SharedZip> AssetManager::SharedZip::get(const String8& path,
1466 sp<AssetManager::SharedZip> AssetManager::SharedZip::create(int fd, const String8& path)
1471 ZipFileRO* AssetManager::SharedZip::getZip()
1476 Asset* AssetManager::SharedZip::getResourceTableAsset()
1483 Asset* AssetManager::SharedZip::setResourceTableAsset(Asset* asset)
1499 ResTable* AssetManager::SharedZip::getResourceTable()
1505 ResTable* AssetManager::SharedZip::setResourceTable(ResTable* res)
1518 bool AssetManager::SharedZip::isUpToDate()
1524 void AssetManager::SharedZip::addOverlay(const asset_path& ap)
1529 bool AssetManager::SharedZip::getOverlay(size_t idx, asset_path* out) const
1538 AssetManager::SharedZip::~SharedZip()
1557 * AssetManager::ZipSet
1564 AssetManager::ZipSet::~ZipSet(void)
1574 void AssetManager::ZipSet::closeZip(int idx)
1582 ZipFileRO* AssetManager::ZipSet::getZip(const String8& path)
1587 const sp<AssetManager::SharedZip> AssetManager::ZipSet::getSharedZip(const String8& path)
1598 Asset* AssetManager::ZipSet::getZipResourceTableAsset(const String8& path)
1609 Asset* AssetManager::ZipSet::setZipResourceTableAsset(const String8& path,
1618 ResTable* AssetManager::ZipSet::getZipResourceTable(const String8& path)
1629 ResTable* AssetManager::ZipSet::setZipResourceTable(const String8& path,
1644 /*static*/ String8 AssetManager::ZipSet::getPathName(const char* zipPath)
1649 bool AssetManager::ZipSet::isUpToDate()
1660 void AssetManager::ZipSet::addOverlay(const String8& path, const asset_path& overlay)
1667 bool AssetManager::ZipSet::getOverlay(const String8& path, size_t idx, asset_path* out) const
1682 int AssetManager::ZipSet::getIndex(const String8& zip) const