Home
last modified time | relevance | path

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

12

/aosp12/frameworks/base/libs/androidfw/include/androidfw/
H A 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;
H A DResourceTypes.h1816 class ResTable
1819 ResTable();
1820 ResTable(const void* data, size_t size, const int32_t cookie,
1822 ~ResTable();
1832 status_t add(ResTable* src, bool isSystemAsset=false);
1935 explicit Theme(const ResTable& table);
1938 inline const ResTable& getResTable() const { return mTable; } in getResTable()
2004 const ResTable& mTable;
2122 status_t createIdmap(const ResTable& targetResTable,
/aosp12/frameworks/base/libs/androidfw/tests/
H A 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()
129 ResTable table; in TEST()
153 ResTable table; in TEST()
177 ResTable table; in TEST()
198 ResTable table; in TEST()
231 ResTable table; in TEST()
[all …]
H A 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()
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()
236 ResTable::resource_name name; in TEST_F()
[all …]
H A 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()
83 const ResTable& res_table = assets.getResources(true); in BM_ThemeGetAttributeOld()
84 std::unique_ptr<ResTable::Theme> theme{new ResTable::Theme(res_table)}; in BM_ThemeGetAttributeOld()
H A DAppAsLib_test.cpp34 ResTable table; in TEST()
51 ResTable table; in TEST()
70 ResTable table; in TEST()
H A DAssetManager2_bench.cpp166 const ResTable& table = assets.getResources(true); in BM_AssetManagerGetBagOld()
169 const ResTable::bag_entry* bag_begin; in BM_AssetManagerGetBagOld()
171 const ResTable::bag_entry* const bag_end = bag_begin + N; in BM_AssetManagerGetBagOld()
209 const ResTable& table = assets.getResources(true); in BM_AssetManagerGetResourceLocalesOld()
247 const ResTable& table = assets.getResources(true); in BM_AssetManagerSetConfigurationFrameworkOld()
H A DTestHelpers.h34 ::testing::AssertionResult IsStringEqual(const ResTable& table, uint32_t resource_id,
H A DTestHelpers.cpp59 AssertionResult IsStringEqual(const ResTable& table, uint32_t resource_id, in IsStringEqual()
H A DBenchmarkHelpers.cpp37 const ResTable& table = assetmanager.getResources(true); in GetResourceBenchmarkOld()
/aosp12/frameworks/base/tools/aapt/
H A 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,
H A DCommand.cpp205 const ResTable& res = assets.getResources(false); in doList()
244 ResTable::normalizeForOutput(result.string()).string()); in printResolvedResourceAttribute()
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()
573 ResTable::normalizeForOutput(featureName.string()).string()); in printFeatureGroupImpl()
591 String8 printableFeatureName(ResTable::normalizeForOutput( in printFeatureGroupImpl()
779 const ResTable& res = assets.getResources(false); in doDump()
1141 printf("%s", ResTable::normalizeForOutput( in doDump()
1305 printf(" split='%s'", ResTable::normalizeForOutput( in doDump()
[all …]
H A 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()
H A 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()
H A 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()
H A 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()
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()
2891 const ResTable& table = mAssets->getIncludedResources(); in flatten()
[all …]
H A 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()
/aosp12/frameworks/base/libs/androidfw/
H A DAssetManager.cpp337 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()
757 const ResTable* rt = getResTable(required); in getResources()
769 ResTable* res = mResources; in getLocales()
1502 ResTable* AssetManager::SharedZip::getResourceTable() in getResourceTable()
[all …]
H A DResourceTypes.cpp3561 struct ResTable::Header
3584 struct ResTable::Entry {
3595 struct ResTable::Type
3609 struct ResTable::Package
3753 ResTable::Theme::Theme(const ResTable& table) in Theme()
4084 ResTable::ResTable() in ResTable() function in android::ResTable
4106 ResTable::~ResTable() in ~ResTable()
4144 status_t ResTable::add( in add()
4168 status_t ResTable::add(ResTable* src, bool isSystemAsset) in add()
4358 void ResTable::uninit() in uninit()
[all …]
/aosp12/frameworks/base/tools/aapt2/format/binary/
H A 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()
171 ResTable res_table; in TEST_F()
210 ResTable res_table; in TEST_F()
487 ResTable result; in TEST_F()
511 ResTable result; in TEST_F()
533 ResTable result; in TEST_F()
553 ResTable result; in TEST_F()
576 ResTable res_table; in TEST_F()
[all …]
/aosp12/frameworks/base/tools/aapt2/
H A 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()
H A DResourceUtils.h79 const android::ResTable::resource_name& name);
H A DResourceParser.cpp1322 if (android::ResTable::stringToInt(min_str16.data(), min_str16.size(), &value)) { in ParseAttrImpl()
1339 if (android::ResTable::stringToInt(max_str16.data(), max_str16.size(), &value)) { in ParseAttrImpl()
1472 if (!android::ResTable::stringToInt(value16.data(), value16.size(), &val)) { in ParseEnumOrFlagItem()
/aosp12/frameworks/base/tools/split-select/
H A DMain.cpp217 const ResTable& res = assetManager.getResources(false); in extractSplitDescriptionsFromApk()
/aosp12/frameworks/base/tools/aapt2/dump/
H A DDumpManifest.cpp569 android::ResTable::normalizeForOutput(p.second.data()) in Print()
573 android::ResTable::normalizeForOutput(p.second.data()) in Print()
585 android::ResTable::normalizeForOutput(label.data()).c_str())); in Print()
1282 android::ResTable::normalizeForOutput(label.data()).c_str(), in Print()
1293 android::ResTable::normalizeForOutput(label.data()).c_str(), in Print()

12