Home
last modified time | relevance | path

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

12

/frameworks/base/libs/androidfw/include/androidfw/
DAssetManager.h45 class ResTable; variable
193 const ResTable& getResources(bool required = true) const;
251 const ResTable* getResTable(bool required = true) const;
259 ResTable* sharedRes, size_t offset) const;
271 ResTable* getResourceTable();
272 ResTable* setResourceTable(ResTable* res);
292 ResTable* mResourceTable;
323 ResTable* getZipResourceTable(const String8& path);
324 ResTable* setZipResourceTable(const String8& path, ResTable* res);
350 mutable ResTable* mResources;
DResourceTypes.h1836 class ResTable
1839 ResTable();
1840 ResTable(const void* data, size_t size, const int32_t cookie,
1842 ~ResTable();
1852 status_t add(ResTable* src, bool isSystemAsset=false);
1955 explicit Theme(const ResTable& table);
1958 inline const ResTable& getResTable() const { return mTable; } in getResTable()
2024 const ResTable& mTable;
2142 status_t createIdmap(const ResTable& targetResTable,
/frameworks/base/libs/androidfw/tests/
DTheme_bench.cpp55 const ResTable& res_table = assets.getResources(true); in BM_ThemeApplyStyleFrameworkOld()
58 std::unique_ptr<ResTable::Theme> theme{new ResTable::Theme(res_table)}; in BM_ThemeApplyStyleFrameworkOld()
86 const ResTable& res_table = assets.getResources(true); in BM_ThemeGetAttributeOld()
87 std::unique_ptr<ResTable::Theme> theme{new ResTable::Theme(res_table)}; in BM_ThemeGetAttributeOld()
DSplit_test.cpp67 ResTable table; in TEST_F()
76 ResTable table; in TEST_F()
105 ResTable table; in TEST_F()
129 ResTable table; in TEST_F()
135 ResTable::resource_name baseName; in TEST_F()
141 ResTable::resource_name frName; in TEST_F()
158 ResTable table; in TEST_F()
188 ResTable table; in TEST_F()
214 ResTable table; in TEST_F()
232 ResTable table; in TEST_F()
[all …]
DResTable_test.cpp40 ResTable table; in TEST()
49 ResTable table; in TEST()
77 ResTable table; in TEST()
88 ResTable table; in TEST()
105 ResTable table; in TEST()
108 ResTable::Theme theme(table); in TEST()
129 ResTable table; in TEST()
132 ResTable::Theme theme(table); in TEST()
153 ResTable table; in TEST()
156 ResTable::Theme theme(table); in TEST()
[all …]
DAppAsLib_test.cpp34 ResTable table; in TEST()
51 ResTable table; in TEST()
70 ResTable table; in TEST()
DAssetManager2_bench.cpp162 const ResTable& table = assets.getResources(true); in BM_AssetManagerGetBagOld()
165 const ResTable::bag_entry* bag_begin; in BM_AssetManagerGetBagOld()
167 const ResTable::bag_entry* const bag_end = bag_begin + N; in BM_AssetManagerGetBagOld()
205 const ResTable& table = assets.getResources(true); in BM_AssetManagerGetResourceLocalesOld()
243 const ResTable& table = assets.getResources(true); in BM_AssetManagerSetConfigurationFrameworkOld()
DTestHelpers.h34 ::testing::AssertionResult IsStringEqual(const ResTable& table, uint32_t resource_id,
DTestHelpers.cpp59 AssertionResult IsStringEqual(const ResTable& table, uint32_t resource_id, in IsStringEqual()
DBenchmarkHelpers.cpp37 const ResTable& table = assetmanager.getResources(true); in GetResourceBenchmarkOld()
/frameworks/base/tools/aapt/
DAaptXml.h89 int32_t getResolvedIntegerAttribute(const android::ResTable& resTable,
98 inline int32_t getResolvedIntegerAttribute(const android::ResTable& resTable, in getResolvedIntegerAttribute()
109 android::String8 getResolvedAttribute(const android::ResTable& resTable,
117 void getResolvedResourceAttribute(const android::ResTable& resTable,
DCommand.cpp205 const ResTable& res = assets.getResources(false); in doList()
232 static void printResolvedResourceAttribute(const ResTable& resTable, const ResXMLTree& tree, in printResolvedResourceAttribute()
244 ResTable::normalizeForOutput(result.string()).string()); in printResolvedResourceAttribute()
358 printf("uses-permission: name='%s'", ResTable::normalizeForOutput(name.string()).string()); in printUsesPermission()
372 ResTable::normalizeForOutput(name.string()).string()); in printUsesPermission()
383 printf("name='%s'", ResTable::normalizeForOutput(name.string()).string()); in printUsesPermissionSdk23()
393 ResTable::normalizeForOutput(name.string()).string()); in printUsesImpliedPermission()
397 printf(" reason='%s'\n", ResTable::normalizeForOutput(reason.string()).string()); in printUsesImpliedPermission()
573 ResTable::normalizeForOutput(featureName.string()).string()); in printFeatureGroupImpl()
591 String8 printableFeatureName(ResTable::normalizeForOutput( in printFeatureGroupImpl()
[all …]
DAaptXml.cpp96 String8 getResolvedAttribute(const ResTable& resTable, const ResXMLTree& tree, in getResolvedAttribute()
157 int32_t getResolvedIntegerAttribute(const ResTable& resTable, const ResXMLTree& tree, in getResolvedIntegerAttribute()
179 void getResolvedResourceAttribute(const ResTable& resTable, const ResXMLTree& tree, in getResolvedResourceAttribute()
DXMLNode.cpp279 if (!ResTable::collectString(outString, curString.string(), in parseStyledString()
314 if (!ResTable::collectString(outString, curString.string(), in parseStyledString()
383 if (!ResTable::collectString(outString, curString.string(), in parseStyledString()
482 ResTable::normalizeForOutput(String8(block->getAttributeStringValue(i, in printXMLBlock()
489 printf(" (Raw: \"%s\")", ResTable::normalizeForOutput(String8(val).string()). in printXMLBlock()
544 ResTable::normalizeForOutput(String8(block->getText(&len)).string()).string()); in printXMLBlock()
DResource.cpp477 static int validateAttr(const String8& path, const ResTable& table, in validateAttr()
813 if (!ResTable::expandResourceRef(iconRef.string(), iconRef.size(), &iconPackage, &iconType, in massageRoundIconSupport()
827 if (!ResTable::expandResourceRef(roundIconRef.string(), roundIconRef.size(), &roundIconPackage, in massageRoundIconSupport()
1047 const ResTable& table = assets.getResources(true); in getPlatformAssetCookie()
1052 const ResTable::bag_entry* entry; in getPlatformAssetCookie()
1071 static ssize_t extractPlatformBuildVersion(const ResTable& table, ResXMLTree& tree, Bundle* bundle)… in extractPlatformBuildVersion()
1780 ResTable finalResTable; in buildResources()
1820 ResTable resTable; in buildResources()
DResourceTable.cpp382 if (!ResTable::stringToInt(val.string(), val.size(), NULL)) { in compileAttribute()
400 if (!ResTable::stringToInt(val.string(), val.size(), NULL)) { in compileAttribute()
508 if (!attr.hasErrors && !ResTable::stringToInt(value.string(), value.size(), NULL)) { in compileAttribute()
966 if (!ResTable::stringToInt(identStr, len, &identValue)) { in compileResourceFile()
1038 if (!ResTable::stringToInt(startStr, len, &startValue)) { in compileResourceFile()
1058 if (!ResTable::stringToInt(endStr, len, &endValue)) { in compileResourceFile()
1794 static uint32_t findLargestTypeIdForPackage(const ResTable& table, const String16& packageName) { in findLargestTypeIdForPackage()
1823 const ResTable& featureTable = featureAssetManager.getResources(false); in addIncludedResources()
2054 if (!ResTable::expandResourceRef(ref.string(), ref.size(), &package, &type, &name, in hasBagOrEntry()
2255 if (!ResTable::expandResourceRef( in getResId()
[all …]
DAaptAssets.cpp1565 const ResTable& res = getIncludedResources(); in addIncludedResources()
1567 return const_cast<ResTable&>(res).add(file->getData(), file->getSize()); in addIncludedResources()
1570 const ResTable& AaptAssets::getIncludedResources() const in getIncludedResources()
/frameworks/base/libs/androidfw/
DAssetManager.cpp257 if (!ResTable::getIdmapInfo(idmap->getBuffer(false), idmap->getLength(), in addOverlayPath()
337 ResTable tables[2]; in createIdmap()
546 ResTable* sharedRes = NULL; in appendPathToResTable()
584 sharedRes = new ResTable(); in appendPathToResTable()
632 const ResTable* AssetManager::getResTable(bool required) const in getResTable()
634 ResTable* rt = mResources; in getResTable()
651 mResources = new ResTable(); in getResTable()
674 ResTable* res = mResources; in updateResourceParamsLocked()
704 const String8& targetPackagePath, ResTable* sharedRes, size_t offset) const in addSystemOverlays()
755 const ResTable& AssetManager::getResources(bool required) const in getResources()
[all …]
DResourceTypes.cpp238 if (size < ResTable::IDMAP_HEADER_SIZE_BYTES) { in assertIdmapHeader()
251 if (version != ResTable::IDMAP_CURRENT_VERSION) { in assertIdmapHeader()
255 version, ResTable::IDMAP_CURRENT_VERSION); in assertIdmapHeader()
361 size -= ResTable::IDMAP_HEADER_SIZE_BYTES; in parseIdmap()
368 reinterpret_cast<const uint8_t*>(idmap) + ResTable::IDMAP_HEADER_SIZE_BYTES); in parseIdmap()
3449 struct ResTable::Header
3451 explicit Header(ResTable* _owner) : owner(_owner), ownedData(NULL), header(NULL), in Header()
3459 const ResTable* const owner;
3472 struct ResTable::Entry {
3483 struct ResTable::Type
[all …]
/frameworks/base/tools/aapt2/format/binary/
DTableFlattener_test.cpp58 ResourceTable* table, ResTable* out_table) { in Flatten()
87 ::testing::AssertionResult Exists(ResTable* table, const StringPiece& expected_name, in Exists()
121 ResTable::resource_name actual_name; in Exists()
172 ResTable res_table; in TEST_F()
212 ResTable res_table; in TEST_F()
491 ResTable result; in TEST_F()
516 ResTable result; in TEST_F()
539 ResTable result; in TEST_F()
560 ResTable result; in TEST_F()
584 ResTable res_table; in TEST_F()
[all …]
/frameworks/base/tools/aapt2/
DResourceUtils.cpp44 const android::ResTable::resource_name& name_in) { in ToResourceName()
505 if (android::ResTable::stringToInt(str16.data(), str16.size(), &value)) { in ParseInt()
516 if (android::ResTable::stringToInt(str16.data(), str16.size(), &value)) { in ParseResourceId()
532 if (android::ResTable::stringToInt(str16.data(), str16.size(), &value)) { in ParseSdkVersion()
569 if (!android::ResTable::stringToInt(str16.data(), str16.size(), &value)) { in TryParseInt()
582 if (!android::ResTable::stringToFloat(str16.data(), str16.size(), &value)) { in TryParseFloat()
DResourceUtils.h79 const android::ResTable::resource_name& name);
DResourceParser.cpp1228 if (android::ResTable::stringToInt(min_str16.data(), min_str16.size(), &value)) { in ParseAttrImpl()
1245 if (android::ResTable::stringToInt(max_str16.data(), max_str16.size(), &value)) { in ParseAttrImpl()
1378 if (!android::ResTable::stringToInt(value16.data(), value16.size(), &val)) { in ParseEnumOrFlagItem()
/frameworks/base/tools/split-select/
DMain.cpp213 const ResTable& res = assetManager.getResources(false); in extractSplitDescriptionsFromApk()
/frameworks/base/tools/aapt2/dump/
DDumpManifest.cpp564 android::ResTable::normalizeForOutput(p.second.data()) in Print()
568 android::ResTable::normalizeForOutput(p.second.data()) in Print()
580 android::ResTable::normalizeForOutput(label.data()).c_str())); in Print()
1227 android::ResTable::normalizeForOutput(label.data()).c_str(), in Print()
1238 android::ResTable::normalizeForOutput(label.data()).c_str(), in Print()

12