Lines Matching refs:AssetManager
73 const char* AssetManager::RESOURCES_FILENAME = "resources.arsc";
74 const char* AssetManager::IDMAP_BIN = "/system/bin/idmap";
75 const char* AssetManager::VENDOR_OVERLAY_DIR = "/vendor/overlay";
76 const char* AssetManager::PRODUCT_OVERLAY_DIR = "/product/overlay";
77 const char* AssetManager::SYSTEM_EXT_OVERLAY_DIR = "/system_ext/overlay";
78 const char* AssetManager::ODM_OVERLAY_DIR = "/odm/overlay";
79 const char* AssetManager::OEM_OVERLAY_DIR = "/oem/overlay";
80 const char* AssetManager::OVERLAY_THEME_DIR_PROPERTY = "ro.boot.vendor.overlay.theme";
81 const char* AssetManager::TARGET_PACKAGE_NAME = "android";
82 const char* AssetManager::TARGET_APK_PATH = "/system/framework/framework-res.apk";
83 const char* AssetManager::IDMAP_DIR = "/data/resource-cache";
138 int32_t AssetManager::getGlobalCount() { in getGlobalCount()
142 AssetManager::AssetManager() : in AssetManager() function in AssetManager
151 AssetManager::~AssetManager() { in ~AssetManager()
176 bool AssetManager::addAssetPath( in addAssetPath()
236 bool AssetManager::addOverlayPath(const String8& packagePath, int32_t* cookie) in addOverlayPath()
301 bool AssetManager::addAssetFd( in addAssetFd()
329 bool AssetManager::createIdmap(const char* targetApkPath, const char* overlayApkPath, in createIdmap()
364 bool AssetManager::addDefaultAssets() in addDefaultAssets()
375 int32_t AssetManager::nextAssetPath(const int32_t cookie) const in nextAssetPath()
382 String8 AssetManager::getAssetPath(const int32_t cookie) const in getAssetPath()
392 void AssetManager::setLocaleLocked(const char* locale) in setLocaleLocked()
402 void AssetManager::setConfiguration(const ResTable_config& config, const char* locale) in setConfiguration()
417 void AssetManager::getConfiguration(ResTable_config* outConfig) const in getConfiguration()
435 Asset* AssetManager::open(const char* fileName, AccessMode mode) in open()
468 Asset* AssetManager::openNonAsset(const char* fileName, AccessMode mode, int32_t* outCookie) in openNonAsset()
493 Asset* AssetManager::openNonAsset(const int32_t cookie, const char* fileName, AccessMode mode) in openNonAsset()
520 FileType AssetManager::getFileType(const char* fileName) in getFileType()
539 bool AssetManager::appendPathToResTable(asset_path& ap, bool appAsLib) const { in appendPathToResTable()
557 sharedRes = const_cast<AssetManager*>(this)-> in appendPathToResTable()
565 ass = const_cast<AssetManager*>(this)-> in appendPathToResTable()
569 ass = const_cast<AssetManager*>(this)-> in appendPathToResTable()
574 ass = const_cast<AssetManager*>(this)-> in appendPathToResTable()
594 sharedRes = const_cast<AssetManager*>(this)-> in appendPathToResTable()
600 ass = const_cast<AssetManager*>(this)-> in appendPathToResTable()
632 const ResTable* AssetManager::getResTable(bool required) const in getResTable()
658 const_cast<AssetManager*>(this)->mAssetPaths.editItemAt(i)); in getResTable()
671 void AssetManager::updateResourceParamsLocked() const in updateResourceParamsLocked()
688 Asset* AssetManager::openIdmapLocked(const struct asset_path& ap) const in openIdmapLocked()
692 ass = const_cast<AssetManager*>(this)-> in openIdmapLocked()
703 void AssetManager::addSystemOverlays(const char* pathOverlaysList, in addSystemOverlays()
734 Asset* oass = const_cast<AssetManager*>(this)-> in addSystemOverlays()
743 const_cast<AssetManager*>(this)->mAssetPaths.add(oap); in addSystemOverlays()
744 const_cast<AssetManager*>(this)->mZipSet.addOverlay(targetPackagePath, oap); in addSystemOverlays()
755 const ResTable& AssetManager::getResources(bool required) const in getResources()
761 bool AssetManager::isUpToDate() in isUpToDate()
767 void AssetManager::getLocales(Vector<String8>* locales, bool includeSystemLocales) const in getLocales()
782 Asset* AssetManager::openNonAssetInPathLocked(const char* fileName, AccessMode mode, in openNonAssetInPathLocked()
837 String8 AssetManager::createZipSourceNameLocked(const String8& zipFileName, in createZipSourceNameLocked()
853 String8 AssetManager::createPathNameLocked(const asset_path& ap, const char* rootDir) in createPathNameLocked()
864 ZipFileRO* AssetManager::getZipFileLocked(asset_path& ap) in getZipFileLocked()
895 Asset* AssetManager::openAssetFromFileLocked(const String8& pathName, in openAssetFromFileLocked()
917 Asset* AssetManager::openAssetFromZipLocked(const ZipFileRO* pZipFile, in openAssetFromZipLocked()
966 AssetDir* AssetManager::openDir(const char* dirName) in openDir()
1024 AssetDir* AssetManager::openNonAssetDir(const int32_t cookie, const char* dirName) in openNonAssetDir()
1073 bool AssetManager::scanAndMergeDirLocked(SortedVector<AssetDir::FileInfo>* pMergedInfo, in scanAndMergeDirLocked()
1146 SortedVector<AssetDir::FileInfo>* AssetManager::scanDirLocked(const String8& path) in scanDirLocked()
1204 bool AssetManager::scanAndMergeZipLocked(SortedVector<AssetDir::FileInfo>* pMergedInfo, in scanAndMergeZipLocked()
1325 void AssetManager::mergeInfoLocked(SortedVector<AssetDir::FileInfo>* pMergedInfo, in mergeInfoLocked()
1420 Mutex AssetManager::SharedZip::gLock;
1421 DefaultKeyedVector<String8, wp<AssetManager::SharedZip> > AssetManager::SharedZip::gOpen;
1423 AssetManager::SharedZip::SharedZip(const String8& path, time_t modWhen) in SharedZip()
1437 AssetManager::SharedZip::SharedZip(int fd, const String8& path) in SharedZip()
1452 sp<AssetManager::SharedZip> AssetManager::SharedZip::get(const String8& path, in get()
1469 sp<AssetManager::SharedZip> AssetManager::SharedZip::create(int fd, const String8& path) in create()
1474 ZipFileRO* AssetManager::SharedZip::getZip() in getZip()
1479 Asset* AssetManager::SharedZip::getResourceTableAsset() in getResourceTableAsset()
1486 Asset* AssetManager::SharedZip::setResourceTableAsset(Asset* asset) in setResourceTableAsset()
1502 ResTable* AssetManager::SharedZip::getResourceTable() in getResourceTable()
1508 ResTable* AssetManager::SharedZip::setResourceTable(ResTable* res) in setResourceTable()
1521 bool AssetManager::SharedZip::isUpToDate() in isUpToDate()
1527 void AssetManager::SharedZip::addOverlay(const asset_path& ap) in addOverlay()
1532 bool AssetManager::SharedZip::getOverlay(size_t idx, asset_path* out) const in getOverlay()
1541 AssetManager::SharedZip::~SharedZip() in ~SharedZip()
1567 AssetManager::ZipSet::~ZipSet(void) in ~ZipSet()
1577 void AssetManager::ZipSet::closeZip(int idx) in closeZip()
1585 ZipFileRO* AssetManager::ZipSet::getZip(const String8& path) in getZip()
1590 const sp<AssetManager::SharedZip> AssetManager::ZipSet::getSharedZip(const String8& path) in getSharedZip()
1601 Asset* AssetManager::ZipSet::getZipResourceTableAsset(const String8& path) in getZipResourceTableAsset()
1612 Asset* AssetManager::ZipSet::setZipResourceTableAsset(const String8& path, in setZipResourceTableAsset()
1621 ResTable* AssetManager::ZipSet::getZipResourceTable(const String8& path) in getZipResourceTable()
1632 ResTable* AssetManager::ZipSet::setZipResourceTable(const String8& path, in setZipResourceTable()
1647 /*static*/ String8 AssetManager::ZipSet::getPathName(const char* zipPath) in getPathName()
1652 bool AssetManager::ZipSet::isUpToDate() in isUpToDate()
1663 void AssetManager::ZipSet::addOverlay(const String8& path, const asset_path& overlay) in addOverlay()
1670 bool AssetManager::ZipSet::getOverlay(const String8& path, size_t idx, asset_path* out) const in getOverlay()
1685 int AssetManager::ZipSet::getIndex(const String8& zip) const in getIndex()