/frameworks/base/libs/androidfw/include/androidfw/ |
D | AssetManager.h | 45 class ResTable; variable 175 const ResTable& getResources(bool required = true) const; 228 const ResTable* getResTable(bool required = true) const; 236 ResTable* sharedRes, size_t offset) const; 247 ResTable* getResourceTable(); 248 ResTable* setResourceTable(ResTable* res); 267 ResTable* mResourceTable; 296 ResTable* getZipResourceTable(const String8& path); 297 ResTable* setZipResourceTable(const String8& path, ResTable* res); 323 mutable ResTable* mResources;
|
D | AttributeResolution.h | 45 bool ResolveAttrs(ResTable::Theme* theme, uint32_t def_style_attr, uint32_t def_style_res, 51 void ApplyStyle(ResTable::Theme* theme, ResXMLParser* xml_parser, uint32_t def_style_attr, 57 bool RetrieveAttributes(const ResTable* res, ResXMLParser* xml_parser, uint32_t* attrs,
|
D | ResourceTypes.h | 1636 class ResTable 1639 ResTable(); 1640 ResTable(const void* data, size_t size, const int32_t cookie, 1642 ~ResTable(); 1652 status_t add(ResTable* src, bool isSystemAsset=false); 1743 Theme(const ResTable& table); 1746 inline const ResTable& getResTable() const { return mTable; } in getResTable() 1812 const ResTable& mTable; 1930 status_t createIdmap(const ResTable& overlay,
|
/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() 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()
|
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 | 40 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 …]
|
D | AppAsLib_test.cpp | 34 ResTable table; in TEST() 51 ResTable table; in TEST() 70 ResTable table; in TEST()
|
D | Idmap_test.cpp | 39 ResTable overlay_table; in SetUp() 51 ResTable target_table_; 96 ResTable::resource_name res_name; in TEST_F() 113 ResTable table; in TEST_F()
|
D | AssetManager2_bench.cpp | 193 const ResTable& table = assets.getResources(true); in BM_AssetManagerGetBagOld() 196 const ResTable::bag_entry* bag_begin; in BM_AssetManagerGetBagOld() 198 const ResTable::bag_entry* const bag_end = bag_begin + N; in BM_AssetManagerGetBagOld() 236 const ResTable& table = assets.getResources(true); in BM_AssetManagerGetResourceLocalesOld()
|
D | BenchmarkHelpers.cpp | 39 const ResTable& table = assetmanager.getResources(true); in GetResourceBenchmarkOld()
|
D | AttributeResolution_test.cpp | 43 ResTable table_; 69 ResTable::Theme theme(table_); in TEST_F() 174 ResTable::Theme theme(table_); in TEST_F()
|
D | TestHelpers.h | 59 ::testing::AssertionResult IsStringEqual(const ResTable& table, uint32_t resource_id,
|
/frameworks/base/libs/androidfw/ |
D | AttributeResolution.cpp | 47 : public BackTrackingAttributeFinder<BagAttributeFinder, const ResTable::bag_entry*> { 49 BagAttributeFinder(const ResTable::bag_entry* start, in BagAttributeFinder() 50 const ResTable::bag_entry* end) in BagAttributeFinder() 53 inline uint32_t GetAttribute(const ResTable::bag_entry* entry) const { in GetAttribute() 58 bool ResolveAttrs(ResTable::Theme* theme, uint32_t def_style_attr, in ResolveAttrs() 68 const ResTable& res = theme->getResTable(); in ResolveAttrs() 89 const ResTable::bag_entry* def_style_start = nullptr; in ResolveAttrs() 96 const ResTable::bag_entry* const def_style_end = in ResolveAttrs() 129 const ResTable::bag_entry* const def_style_entry = def_style_attr_finder.Find(cur_ident); in ResolveAttrs() 206 void ApplyStyle(ResTable::Theme* theme, ResXMLParser* xml_parser, uint32_t def_style_attr, in ApplyStyle() [all …]
|
D | AssetManager.cpp | 241 if (!ResTable::getIdmapInfo(idmap->getBuffer(false), idmap->getLength(), in addOverlayPath() 293 ResTable tables[2]; in createIdmap() 501 ResTable* sharedRes = NULL; in appendPathToResTable() 539 sharedRes = new ResTable(); in appendPathToResTable() 587 const ResTable* AssetManager::getResTable(bool required) const in getResTable() 589 ResTable* rt = mResources; in getResTable() 606 mResources = new ResTable(); in getResTable() 628 ResTable* res = mResources; in updateResourceParamsLocked() 658 const String8& targetPackagePath, ResTable* sharedRes, size_t offset) const in addSystemOverlays() 709 const ResTable& AssetManager::getResources(bool required) const in getResources() [all …]
|
D | ResourceTypes.cpp | 236 if (size < ResTable::IDMAP_HEADER_SIZE_BYTES) { in assertIdmapHeader() 359 size -= ResTable::IDMAP_HEADER_SIZE_BYTES; in parseIdmap() 366 reinterpret_cast<const uint8_t*>(idmap) + ResTable::IDMAP_HEADER_SIZE_BYTES); in parseIdmap() 3251 struct ResTable::Header 3253 explicit Header(ResTable* _owner) : owner(_owner), ownedData(NULL), header(NULL), in Header() 3261 const ResTable* const owner; 3274 struct ResTable::Entry { 3285 struct ResTable::Type 3299 struct ResTable::Package 3301 Package(ResTable* _owner, const Header* _header, const ResTable_package* _package) in Package() [all …]
|
/frameworks/base/core/jni/ |
D | android_util_AssetManager.cpp | 100 static jint copyValue(JNIEnv* env, jobject outValue, const ResTable* table, 104 jint copyValue(JNIEnv* env, jobject outValue, const ResTable* table, in copyValue() 663 const ResTable& res(am->getResources()); in android_content_AssetManager_getSizeConfigurations() 777 ResTable::resource_name name; in android_content_AssetManager_getResourceName() 820 ResTable::resource_name name; in android_content_AssetManager_getResourcePackageName() 840 ResTable::resource_name name; in android_content_AssetManager_getResourceTypeName() 864 ResTable::resource_name name; in android_content_AssetManager_getResourceEntryName() 894 const ResTable& res(am->getResources()); in android_content_AssetManager_loadResourceValue() 931 const ResTable& res(am->getResources()); in android_content_AssetManager_loadResourceBagValue() 939 const ResTable::bag_entry* entry = NULL; in android_content_AssetManager_loadResourceBagValue() [all …]
|
/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 | 223 const ResTable& res = assets.getResources(false); in doList() 250 static void printResolvedResourceAttribute(const ResTable& resTable, const ResXMLTree& tree, in printResolvedResourceAttribute() 262 ResTable::normalizeForOutput(result.string()).string()); in printResolvedResourceAttribute() 374 printf("uses-permission: name='%s'", ResTable::normalizeForOutput(name.string()).string()); in printUsesPermission() 388 ResTable::normalizeForOutput(name.string()).string()); in printUsesPermission() 399 printf("name='%s'", ResTable::normalizeForOutput(name.string()).string()); in printUsesPermissionSdk23() 409 ResTable::normalizeForOutput(name.string()).string()); in printUsesImpliedPermission() 413 printf(" reason='%s'\n", ResTable::normalizeForOutput(reason.string()).string()); in printUsesImpliedPermission() 589 ResTable::normalizeForOutput(featureName.string()).string()); in printFeatureGroupImpl() 607 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()
|
/frameworks/base/tools/aapt2/process/ |
D | SymbolTable.cpp | 220 const android::ResTable& table = assets_.getResources(false); in GetAssignedPackageIds() 230 const android::ResTable& table, ResourceId id) { in LookupAttributeInTable() 232 const android::ResTable::bag_entry* entry; in LookupAttributeInTable() 265 android::ResTable::resource_name entry_name; in LookupAttributeInTable() 289 const android::ResTable& table = assets_.getResources(false); in FindByName() 318 static Maybe<ResourceName> GetResourceName(const android::ResTable& table, in GetResourceName() 320 android::ResTable::resource_name res_name = {}; in GetResourceName() 334 const android::ResTable& table = assets_.getResources(false); in FindById()
|
/frameworks/base/tools/aapt2/flatten/ |
D | TableFlattener_test.cpp | 55 ResourceTable* table, ResTable* out_table) { in Flatten() 83 ::testing::AssertionResult Exists(ResTable* table, in Exists() 121 ResTable::resource_name actual_name; in Exists() 169 ResTable res_table; in TEST_F() 216 ResTable res_table; in TEST_F() 397 ResTable result; in TEST_F() 422 ResTable result; in TEST_F() 445 ResTable result; in TEST_F() 466 ResTable result; in TEST_F()
|
/frameworks/base/tools/aapt2/ |
D | ResourceUtils.cpp | 37 const android::ResTable::resource_name& name_in) { in ToResourceName() 462 if (android::ResTable::stringToInt(str16.data(), str16.size(), &value)) { in ParseInt() 473 if (android::ResTable::stringToInt(str16.data(), str16.size(), &value)) { in ParseResourceId() 489 if (android::ResTable::stringToInt(str16.data(), str16.size(), &value)) { in ParseSdkVersion() 517 if (!android::ResTable::stringToInt(str16.data(), str16.size(), &value)) { in TryParseInt() 526 if (!android::ResTable::stringToFloat(str16.data(), str16.size(), &value)) { in TryParseFloat()
|
D | ResourceUtils.h | 77 const android::ResTable::resource_name& name);
|
/frameworks/base/cmds/idmap/ |
D | create.cpp | 77 static const size_t N = ResTable::IDMAP_HEADER_SIZE_BYTES; in is_idmap_stale_fd() 109 if (!ResTable::getIdmapInfo(buf, N, NULL, &cached_target_crc, &cached_overlay_crc, in is_idmap_stale_fd()
|
D | inspect.cpp | 150 const ResTable& rt = am.getResources(); in resource_metadata() 151 struct ResTable::resource_name data; in resource_metadata()
|