/frameworks/base/libs/androidfw/include/androidfw/ |
D | AssetManager.h | 45 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;
|
D | ResourceTypes.h | 1957 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/ |
D | Theme_bench.cpp | 55 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()
|
D | Split_test.cpp | 67 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 …]
|
D | ResTable_test.cpp | 41 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 …]
|
D | AppAsLib_test.cpp | 34 ResTable table; in TEST() 51 ResTable table; in TEST() 70 ResTable table; in TEST()
|
D | AssetManager2_bench.cpp | 166 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()
|
D | TestHelpers.h | 34 ::testing::AssertionResult IsStringEqual(const ResTable& table, uint32_t resource_id,
|
D | TestHelpers.cpp | 59 AssertionResult IsStringEqual(const ResTable& table, uint32_t resource_id, in IsStringEqual()
|
D | BenchmarkHelpers.cpp | 37 const ResTable& table = assetmanager.getResources(true); in GetResourceBenchmarkOld()
|
/frameworks/base/tools/aapt/ |
D | AaptXml.h | 89 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,
|
D | Command.cpp | 206 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 …]
|
D | AaptXml.cpp | 96 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()
|
D | XMLNode.cpp | 279 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()
|
D | Resource.cpp | 480 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()
|
D | ResourceTable.cpp | 384 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 …]
|
D | AaptAssets.cpp | 1565 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()
|
D | AaptAssets.h | 564 const ResTable& getIncludedResources() const;
|
/frameworks/base/libs/androidfw/ |
D | ResourceTypes.cpp | 280 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 …]
|
D | AssetManager.cpp | 258 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/ |
D | TableFlattener_test.cpp | 58 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/ |
D | ResourceUtils.cpp | 61 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()
|
D | ResourceUtils.h | 77 std::optional<ResourceName> ToResourceName(const android::ResTable::resource_name& name);
|
/frameworks/base/tools/aapt2/dump/ |
D | DumpManifest.cpp | 744 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/ |
D | Main.cpp | 214 const ResTable& res = assetManager.getResources(false); in extractSplitDescriptionsFromApk()
|