Home
last modified time | relevance | path

Searched refs:ResTable (Results 1 – 25 of 31) 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.h1746 class ResTable
1749 ResTable();
1750 ResTable(const void* data, size_t size, const int32_t cookie,
1752 ~ResTable();
1762 status_t add(ResTable* src, bool isSystemAsset=false);
1865 explicit Theme(const ResTable& table);
1868 inline const ResTable& getResTable() const { return mTable; } in getResTable()
1934 const ResTable& mTable;
2052 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()
DIdmap_test.cpp39 ResTable overlay_table; in SetUp()
51 ResTable target_table_;
96 ResTable::resource_name res_name; in TEST_F()
113 ResTable table; in TEST_F()
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,
DApkAssets_test.cpp84 ResTable target_table; in TEST()
90 ResTable overlay_table; in TEST()
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()
/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()
3446 struct ResTable::Header
3448 explicit Header(ResTable* _owner) : owner(_owner), ownedData(NULL), header(NULL), in Header()
3456 const ResTable* const owner;
3469 struct ResTable::Entry {
3480 struct ResTable::Type
[all …]
/frameworks/base/cmds/idmap/
Dcreate.cpp77 static const size_t N = ResTable::IDMAP_HEADER_SIZE_BYTES; in is_idmap_stale_fd()
109 if (!ResTable::getIdmapInfo(buf, N, &version, &cached_target_crc, &cached_overlay_crc, in is_idmap_stale_fd()
114 if (version != ResTable::IDMAP_CURRENT_VERSION) { in is_idmap_stale_fd()
Dinspect.cpp150 const ResTable& rt = am.getResources(); in resource_metadata()
151 struct ResTable::resource_name data; in resource_metadata()
/frameworks/base/tools/aapt2/format/binary/
DTableFlattener_test.cpp56 ResourceTable* table, ResTable* out_table) { in Flatten()
85 ::testing::AssertionResult Exists(ResTable* table, const StringPiece& expected_name, in Exists()
119 ResTable::resource_name actual_name; in Exists()
170 ResTable res_table; in TEST_F()
210 ResTable res_table; in TEST_F()
448 ResTable result; in TEST_F()
473 ResTable result; in TEST_F()
496 ResTable result; in TEST_F()
517 ResTable result; in TEST_F()
541 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);
/frameworks/base/tools/split-select/
DMain.cpp213 const ResTable& res = assetManager.getResources(false); in extractSplitDescriptionsFromApk()

12