Home
last modified time | relevance | path

Searched refs:ResTable (Results 1 – 25 of 28) 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.h1957 class ResTable
1960 ResTable();
1961 ResTable(const void* data, size_t size, const int32_t cookie,
1963 ~ResTable();
1973 status_t add(ResTable* src, bool isSystemAsset=false);
2076 explicit Theme(const ResTable& table);
2079 inline const ResTable& getResTable() const { return mTable; } in getResTable()
2145 const ResTable& mTable;
2264 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()
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()
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.cpp41 ResTable table; in TEST()
50 ResTable table; in TEST()
61 ResTable table; in TEST()
78 ResTable table; in TEST()
81 ResTable::Theme theme(table); in TEST()
102 ResTable table; in TEST()
105 ResTable::Theme theme(table); in TEST()
126 ResTable table; in TEST()
129 ResTable::Theme theme(table); in TEST()
150 ResTable table; in TEST()
[all …]
DAppAsLib_test.cpp34 ResTable table; in TEST()
51 ResTable table; in TEST()
70 ResTable table; in TEST()
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()
249 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.cpp206 const ResTable& res = assets.getResources(false); in doList()
233 static void printResolvedResourceAttribute(const ResTable& resTable, const ResXMLTree& tree, in printResolvedResourceAttribute()
245 ResTable::normalizeForOutput(result.c_str()).c_str()); in printResolvedResourceAttribute()
359 printf("uses-permission: name='%s'", ResTable::normalizeForOutput(name.c_str()).c_str()); in printUsesPermission()
373 ResTable::normalizeForOutput(name.c_str()).c_str()); in printUsesPermission()
384 printf("name='%s'", ResTable::normalizeForOutput(name.c_str()).c_str()); in printUsesPermissionSdk23()
394 ResTable::normalizeForOutput(name.c_str()).c_str()); in printUsesImpliedPermission()
398 printf(" reason='%s'\n", ResTable::normalizeForOutput(reason.c_str()).c_str()); in printUsesImpliedPermission()
574 ResTable::normalizeForOutput(featureName.c_str()).c_str()); in printFeatureGroupImpl()
592 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.c_str(), in parseStyledString()
314 if (!ResTable::collectString(outString, curString.c_str(), in parseStyledString()
383 if (!ResTable::collectString(outString, curString.c_str(), in parseStyledString()
482 ResTable::normalizeForOutput(String8(block->getAttributeStringValue(i, in printXMLBlock()
489 printf(" (Raw: \"%s\")", ResTable::normalizeForOutput(String8(val).c_str()). in printXMLBlock()
544 ResTable::normalizeForOutput(String8(block->getText(&len)).c_str()).c_str()); in printXMLBlock()
DResource.cpp480 static int validateAttr(const String8& path, const ResTable& table, in validateAttr()
816 if (!ResTable::expandResourceRef(iconRef.c_str(), iconRef.size(), &iconPackage, &iconType, in massageRoundIconSupport()
830 if (!ResTable::expandResourceRef(roundIconRef.c_str(), roundIconRef.size(), &roundIconPackage, in massageRoundIconSupport()
1050 const ResTable& table = assets.getResources(true); in getPlatformAssetCookie()
1055 const ResTable::bag_entry* entry; in getPlatformAssetCookie()
1074 static ssize_t extractPlatformBuildVersion(const ResTable& table, ResXMLTree& tree, Bundle* bundle)… in extractPlatformBuildVersion()
1783 ResTable finalResTable; in buildResources()
1823 ResTable resTable; in buildResources()
DResourceTable.cpp384 if (!ResTable::stringToInt(val.c_str(), val.size(), NULL)) { in compileAttribute()
402 if (!ResTable::stringToInt(val.c_str(), val.size(), NULL)) { in compileAttribute()
510 if (!attr.hasErrors && !ResTable::stringToInt(value.c_str(), value.size(), NULL)) { in compileAttribute()
968 if (!ResTable::stringToInt(identStr, len, &identValue)) { in compileResourceFile()
1040 if (!ResTable::stringToInt(startStr, len, &startValue)) { in compileResourceFile()
1060 if (!ResTable::stringToInt(endStr, len, &endValue)) { in compileResourceFile()
1796 static uint32_t findLargestTypeIdForPackage(const ResTable& table, const String16& packageName) { in findLargestTypeIdForPackage()
1825 const ResTable& featureTable = featureAssetManager.getResources(false); in addIncludedResources()
2056 if (!ResTable::expandResourceRef(ref.c_str(), ref.size(), &package, &type, &name, in hasBagOrEntry()
2257 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()
DAaptAssets.h564 const ResTable& getIncludedResources() const;
/frameworks/base/libs/androidfw/
DResourceTypes.cpp280 if (size < ResTable::IDMAP_HEADER_SIZE_BYTES) { in assertIdmapHeader()
293 if (version != ResTable::IDMAP_CURRENT_VERSION) { in assertIdmapHeader()
297 version, ResTable::IDMAP_CURRENT_VERSION); in assertIdmapHeader()
403 size -= ResTable::IDMAP_HEADER_SIZE_BYTES; in parseIdmap()
410 reinterpret_cast<const uint8_t*>(idmap) + ResTable::IDMAP_HEADER_SIZE_BYTES); in parseIdmap()
3692 struct ResTable::Header
3694 explicit Header(ResTable* _owner) : owner(_owner), ownedData(NULL), header(NULL), in Header()
3702 const ResTable* const owner;
3715 struct ResTable::Entry {
3726 struct ResTable::Type
[all …]
DAssetManager.cpp258 if (!ResTable::getIdmapInfo(idmap->getBuffer(false), idmap->getLength(), in addOverlayPath()
338 ResTable tables[2]; in createIdmap()
547 ResTable* sharedRes = NULL; in appendPathToResTable()
585 sharedRes = new ResTable(); in appendPathToResTable()
633 const ResTable* AssetManager::getResTable(bool required) const in getResTable()
635 ResTable* rt = mResources; in getResTable()
652 mResources = new ResTable(); in getResTable()
675 ResTable* res = mResources; in updateResourceParamsLocked()
705 const String8& targetPackagePath, ResTable* sharedRes, size_t offset) const in addSystemOverlays()
756 const ResTable& AssetManager::getResources(bool required) const in getResources()
[all …]
/frameworks/base/tools/aapt2/format/binary/
DTableFlattener_test.cpp58 ResourceTable* table, ResTable* out_table) { in Flatten()
87 ::testing::AssertionResult Exists(ResTable* table, 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()
549 ResTable result; in TEST_F()
573 ResTable result; in TEST_F()
595 ResTable result; in TEST_F()
615 ResTable result; in TEST_F()
638 ResTable res_table; in TEST_F()
[all …]
/frameworks/base/tools/aapt2/
DResourceUtils.cpp61 std::optional<ResourceName> ToResourceName(const android::ResTable::resource_name& name_in) { in ToResourceName()
497 if (android::ResTable::stringToInt(str16.data(), str16.size(), &value)) { in ParseInt()
508 if (android::ResTable::stringToInt(str16.data(), str16.size(), &value)) { in ParseResourceId()
524 if (android::ResTable::stringToInt(str16.data(), str16.size(), &value)) { in ParseSdkVersion()
561 if (!android::ResTable::stringToInt(str16.data(), str16.size(), &value)) { in TryParseInt()
574 if (!android::ResTable::stringToFloat(str16.data(), str16.size(), &value)) { in TryParseFloat()
683 if (android::ResTable::stringToDouble(str16.data(), str16.size(), d)) { in TryParseItemForAttribute()
DResourceUtils.h77 std::optional<ResourceName> ToResourceName(const android::ResTable::resource_name& name);
/frameworks/base/tools/aapt2/dump/
DDumpManifest.cpp744 android::ResTable::normalizeForOutput(p.second.data()) in Print()
748 android::ResTable::normalizeForOutput(p.second.data()) in Print()
760 android::ResTable::normalizeForOutput(label.data()).c_str())); in Print()
780 application->set_label(android::ResTable::normalizeForOutput(label.data())); in ToProto()
1602 android::ResTable::normalizeForOutput(label.data()).c_str(), in Print()
1613 android::ResTable::normalizeForOutput(label.data()).c_str(), in Print()
1622 activity->set_label(android::ResTable::normalizeForOutput(label.data())); in ToProto()
1628 activity->set_label(android::ResTable::normalizeForOutput(label.data())); in ToProto()
/frameworks/base/tools/split-select/
DMain.cpp214 const ResTable& res = assetManager.getResources(false); in extractSplitDescriptionsFromApk()

12