Home
last modified time | relevance | path

Searched refs:ResTable (Results 1 – 13 of 13) sorted by relevance

/frameworks/base/include/androidfw/
DAssetManager.h54 class ResTable; variable
199 const ResTable& getResources(bool required = true) const;
263 const ResTable* getResTable(bool required = true) const;
286 ResTable* getResourceTable();
287 ResTable* setResourceTable(ResTable* res);
303 ResTable* mResourceTable;
330 ResTable* getZipResourceTable(const String8& path);
331 ResTable* setZipResourceTable(const String8& path, ResTable* res);
355 mutable ResTable* mResources;
DResourceTypes.h1265 class ResTable
1268 ResTable();
1269 ResTable(const void* data, size_t size, void* cookie,
1271 ~ResTable();
1277 status_t add(ResTable* src);
1363 Theme(const ResTable& table);
1366 inline const ResTable& getResTable() const { return mTable; } in getResTable()
1424 const ResTable& mTable;
1534 status_t createIdmap(const ResTable& overlay, uint32_t originalCrc, uint32_t overlayCrc,
/frameworks/base/core/jni/
Dandroid_util_AssetManager.cpp81 static jint copyValue(JNIEnv* env, jobject outValue, const ResTable* table,
85 jint copyValue(JNIEnv* env, jobject outValue, const ResTable* table, in copyValue()
595 ResTable::resource_name name; in android_content_AssetManager_getResourceName()
630 ResTable::resource_name name; in android_content_AssetManager_getResourcePackageName()
650 ResTable::resource_name name; in android_content_AssetManager_getResourceTypeName()
670 ResTable::resource_name name; in android_content_AssetManager_getResourceEntryName()
692 const ResTable& res(am->getResources()); in android_content_AssetManager_loadResourceValue()
725 const ResTable& res(am->getResources()); in android_content_AssetManager_loadResourceBagValue()
733 const ResTable::bag_entry* entry = NULL; in android_content_AssetManager_loadResourceBagValue()
805 return (jint)(new ResTable::Theme(am->getResources())); in android_content_AssetManager_newTheme()
[all …]
/frameworks/base/libs/androidfw/
DAssetManager.cpp223 if (st.st_size < ResTable::IDMAP_HEADER_SIZE_BYTES) { in isIdmapStaleLocked()
232 char buf[ResTable::IDMAP_HEADER_SIZE_BYTES]; in isIdmapStaleLocked()
233 ssize_t bytesLeft = ResTable::IDMAP_HEADER_SIZE_BYTES; in isIdmapStaleLocked()
235 ssize_t r = TEMP_FAILURE_RETRY(read(fd, buf + ResTable::IDMAP_HEADER_SIZE_BYTES - bytesLeft, in isIdmapStaleLocked()
249 if (!ResTable::getIdmapInfo(buf, ResTable::IDMAP_HEADER_SIZE_BYTES, in isIdmapStaleLocked()
288 ResTable tables[2]; in createIdmapFileLocked()
595 const ResTable* AssetManager::getResTable(bool required) const in getResTable()
597 ResTable* rt = mResources; in getResTable()
620 ResTable* sharedRes = NULL; in getResTable()
652 sharedRes = new ResTable(); in getResTable()
[all …]
DResourceTypes.cpp68 #define IDMAP_HEADER_SIZE (ResTable::IDMAP_HEADER_SIZE_BYTES / sizeof(uint32_t))
223 if (sizeBytes < ResTable::IDMAP_HEADER_SIZE_BYTES) { in assertIdmapHeader()
243 const size_t size = (sizeBytes - ResTable::IDMAP_HEADER_SIZE_BYTES) / sizeof(uint32_t); in idmapLookup()
2267 struct ResTable::Header
2269 Header(ResTable* _owner) : owner(_owner), ownedData(NULL), header(NULL), in Header()
2277 ResTable* const owner;
2290 struct ResTable::Type
2303 struct ResTable::Package
2305 Package(ResTable* _owner, const Header* _header, const ResTable_package* _package) in Package()
2316 ResTable* const owner;
[all …]
/frameworks/base/tools/aapt/
Dprintapk.cpp99 ResTable res(resfile, size, resfile); in main()
DCommand.cpp198 const ResTable& res = assets.getResources(false); in doList()
295 static int32_t getResolvedIntegerAttribute(const ResTable* resTable, const ResXMLTree& tree, in getResolvedIntegerAttribute()
316 static String8 getResolvedAttribute(const ResTable* resTable, const ResXMLTree& tree, in getResolvedAttribute()
338 const char16_t* str = const_cast<ResTable*>(resTable)->valueToString(value2, 0, NULL, &len); in getResolvedAttribute()
473 const ResTable& res = assets.getResources(false); in doDump()
DXMLNode.cpp260 if (!ResTable::collectString(outString, curString.string(), in parseStyledString()
295 if (!ResTable::collectString(outString, curString.string(), in parseStyledString()
362 if (!ResTable::collectString(outString, curString.string(), in parseStyledString()
461 ResTable::normalizeForOutput(String8(block->getAttributeStringValue(i, in printXMLBlock()
468 printf(" (Raw: \"%s\")", ResTable::normalizeForOutput(String8(val).string()). in printXMLBlock()
DResourceTable.cpp352 if (!ResTable::stringToInt(val.string(), val.size(), NULL)) { in compileAttribute()
370 if (!ResTable::stringToInt(val.string(), val.size(), NULL)) { in compileAttribute()
478 if (!attr.hasErrors && !ResTable::stringToInt(value.string(), value.size(), NULL)) { in compileAttribute()
882 if (!ResTable::stringToInt(identStr, len, &identValue)) { in compileResourceFile()
954 if (!ResTable::stringToInt(startStr, len, &startValue)) { in compileResourceFile()
974 if (!ResTable::stringToInt(endStr, len, &endValue)) { in compileResourceFile()
1619 const ResTable& incl = assets->getIncludedResources(); in addIncludedResources()
1907 if (!ResTable::expandResourceRef(ref.string(), ref.size(), &package, &type, &name, in hasBagOrEntry()
2043 if (!ResTable::expandResourceRef( in getResId()
DAaptAssets.h574 const ResTable& getIncludedResources() const;
DResourceTable.h72 class ResourceTable : public ResTable::Accessor
DAaptAssets.cpp2553 const ResTable& res = getIncludedResources(); in addIncludedResources()
2555 return const_cast<ResTable&>(res).add(file->getData(), file->getSize(), NULL); in addIncludedResources()
2558 const ResTable& AaptAssets::getIncludedResources() const in getIncludedResources()
DResource.cpp450 static int validateAttr(const String8& path, const ResTable& table, in validateAttr()
1230 ResTable finalResTable; in buildResources()