/frameworks/base/tools/aapt/ |
D | AaptXml.cpp | 28 Res_value value; in getStringAttributeAtIndex() 36 if (value.dataType != Res_value::TYPE_STRING) { in getStringAttributeAtIndex() 50 Res_value value; in getIntegerAttributeAtIndex() 58 if (value.dataType < Res_value::TYPE_FIRST_INT in getIntegerAttributeAtIndex() 59 || value.dataType > Res_value::TYPE_LAST_INT) { in getIntegerAttributeAtIndex() 102 Res_value value; in getResolvedAttribute() 104 if (value.dataType == Res_value::TYPE_STRING) { in getResolvedAttribute() 110 if (value.dataType != Res_value::TYPE_STRING) { in getResolvedAttribute() 118 const Res_value* value2 = &value; in getResolvedAttribute() 147 Res_value value; in getResolvedIntegerAttribute() [all …]
|
D | XMLNode.h | 77 value.dataType = Res_value::TYPE_NULL; in attribute_entry() 82 || value.dataType == Res_value::TYPE_NULL in needStringValue() 83 || value.dataType == Res_value::TYPE_STRING; in needStringValue() 89 Res_value value; 199 Res_value mCharsValue;
|
D | ResourceTable.h | 236 bool stringToValue(Res_value* outValue, StringPool* pool, 273 Res_value* outValue); 276 Res_value* outValue); 318 Res_value parsedValue; 586 Res_value* outValue);
|
D | AaptXml.h | 118 const android::ResXMLTree& tree, uint32_t attrRes, android::Res_value* outValue,
|
D | XMLNode.cpp | 475 Res_value value; in printXMLBlock() 477 if (value.dataType == Res_value::TYPE_NULL) { in printXMLBlock() 479 } else if (value.dataType == Res_value::TYPE_REFERENCE) { in printXMLBlock() 481 } else if (value.dataType == Res_value::TYPE_ATTRIBUTE) { in printXMLBlock() 483 } else if (value.dataType == Res_value::TYPE_STRING) { in printXMLBlock() 1566 if (ae.value.dataType == Res_value::TYPE_NULL in flatten_node() 1567 || ae.value.dataType == Res_value::TYPE_STRING) { in flatten_node() 1569 attr.typedValue.dataType = Res_value::TYPE_STRING; in flatten_node()
|
/frameworks/base/tools/aapt2/ |
D | ResourceValues.cpp | 46 bool RawString::flatten(android::Res_value& outValue) const { in flatten() 66 bool Reference::flatten(android::Res_value& outValue) const { in flatten() 68 ? android::Res_value::TYPE_REFERENCE in flatten() 69 : android::Res_value::TYPE_ATTRIBUTE; in flatten() 103 bool Id::flatten(android::Res_value& out) const { in flatten() 104 out.dataType = android::Res_value::TYPE_INT_BOOLEAN; in flatten() 120 bool String::flatten(android::Res_value& outValue) const { in flatten() 126 outValue.dataType = android::Res_value::TYPE_STRING; in flatten() 142 bool StyledString::flatten(android::Res_value& outValue) const { in flatten() 147 outValue.dataType = android::Res_value::TYPE_STRING; in flatten() [all …]
|
D | ResourceParser.cpp | 196 android::Res_value value = {}; in tryParseNullOrEmpty() 200 value.dataType = android::Res_value::TYPE_REFERENCE; in tryParseNullOrEmpty() 203 value.dataType = android::Res_value::TYPE_NULL; in tryParseNullOrEmpty() 204 value.data = android::Res_value::DATA_NULL_EMPTY; in tryParseNullOrEmpty() 219 android::Res_value value = {}; in tryParseEnumSymbol() 220 value.dataType = android::Res_value::TYPE_INT_DEC; in tryParseEnumSymbol() 230 android::Res_value flags = {}; in tryParseFlagSymbol() 231 flags.dataType = android::Res_value::TYPE_INT_DEC; in tryParseFlagSymbol() 276 android::Res_value value = {}; in tryParseColor() 279 value.dataType = android::Res_value::TYPE_INT_COLOR_RGB4; in tryParseColor() [all …]
|
D | ResourceValues.h | 101 virtual bool flatten(android::Res_value& outValue) const = 0; 134 bool flatten(android::Res_value& outValue) const override; 144 bool flatten(android::Res_value& out) const override; 159 bool flatten(android::Res_value& outValue) const override; 169 bool flatten(android::Res_value& outValue) const override; 179 bool flatten(android::Res_value& outValue) const override; 190 bool flatten(android::Res_value& outValue) const override; 199 android::Res_value value; 202 BinaryPrimitive(const android::Res_value& val); 204 bool flatten(android::Res_value& outValue) const override;
|
D | ManifestValidator.cpp | 66 android::Res_value value; in getAttributeValue() 72 if (value.dataType == android::Res_value::TYPE_REFERENCE) { in getAttributeValue() 80 if (value.dataType != android::Res_value::TYPE_STRING || !pool) { in getAttributeValue() 88 android::Res_value value; in getAttributeInlineValue() 93 if (value.dataType != android::Res_value::TYPE_STRING) { in getAttributeInlineValue()
|
D | XmlFlattener_test.cpp | 100 EXPECT_EQ(tree.getAttributeDataType(idx), android::Res_value::TYPE_REFERENCE); in TEST_F() 106 EXPECT_EQ(tree.getAttributeDataType(idx), android::Res_value::TYPE_STRING); in TEST_F() 113 EXPECT_EQ(tree.getAttributeDataType(idx), android::Res_value::TYPE_REFERENCE); in TEST_F() 149 if (tree->getAttributeDataType(index) != Res_value::TYPE_REFERENCE) { in attributeNameAndValueEquals() 154 << Res_value::TYPE_REFERENCE << std::dec << ")"; in attributeNameAndValueEquals()
|
D | BinaryResourceParser.cpp | 621 const Res_value* value = reinterpret_cast<const Res_value*>( in parseType() 663 const Res_value* value, in parseValue() 669 if (value->dataType == Res_value::TYPE_STRING) { in parseValue() 702 if (value->dataType == Res_value::TYPE_REFERENCE || in parseValue() 703 value->dataType == Res_value::TYPE_ATTRIBUTE) { in parseValue() 704 const Reference::Type type = (value->dataType == Res_value::TYPE_REFERENCE) ? in parseValue() 719 Res_value nullType = {}; in parseValue() 720 nullType.dataType = Res_value::TYPE_REFERENCE; in parseValue()
|
D | TableFlattener.cpp | 140 android::Res_value tempVal; in visit() 141 tempVal.dataType = android::Res_value::TYPE_INT_DEC; in visit() 154 flattenEntry(attr, BinaryPrimitive(android::Res_value{})); in visit() 218 mOutValue = mOut->nextBlock<android::Res_value>(); in ValueFlattener() 240 android::Res_value* mOutValue;
|
D | BinaryResourceParser.h | 75 const ConfigDescription& config, const android::Res_value* value, uint16_t flags);
|
D | ResourceParser_test.cpp | 205 EXPECT_EQ(uint16_t(android::Res_value::TYPE_REFERENCE), integer->value.dataType); in TEST_F() 216 EXPECT_EQ(uint16_t(android::Res_value::TYPE_NULL), integer->value.dataType); in TEST_F() 217 EXPECT_EQ(uint32_t(android::Res_value::DATA_NULL_EMPTY), integer->value.data); in TEST_F()
|
/frameworks/base/libs/androidfw/tests/ |
D | ResTable_test.cpp | 76 Res_value val; in TEST() 80 ASSERT_EQ(Res_value::TYPE_INT_DEC, val.dataType); in TEST() 85 ASSERT_EQ(Res_value::TYPE_REFERENCE, val.dataType); in TEST() 96 Res_value val; in TEST() 100 ASSERT_EQ(Res_value::TYPE_INT_DEC, val.dataType); in TEST() 105 ASSERT_EQ(Res_value::TYPE_REFERENCE, val.dataType); in TEST() 116 Res_value val; in TEST() 120 ASSERT_EQ(Res_value::TYPE_INT_DEC, val.dataType); in TEST() 128 Res_value val; in TEST() 131 ASSERT_EQ(Res_value::TYPE_REFERENCE, val.dataType); in TEST() [all …]
|
D | Theme_test.cpp | 46 Res_value val; in TEST() 48 ASSERT_EQ(Res_value::TYPE_INT_COLOR_RGB8, val.dataType); in TEST() 51 ASSERT_EQ(Res_value::TYPE_INT_DEC, val.dataType); in TEST() 61 ASSERT_EQ(Res_value::TYPE_INT_COLOR_RGB8, val.dataType); in TEST() 64 ASSERT_EQ(Res_value::TYPE_INT_DEC, val.dataType); in TEST()
|
D | Split_test.cpp | 82 Res_value val; in TEST() 92 EXPECT_EQ(Res_value::TYPE_STRING, val.dataType); in TEST() 105 Res_value val; in TEST() 113 EXPECT_EQ(Res_value::TYPE_STRING, val.dataType); in TEST() 153 Res_value val; in TEST() 200 Res_value val; in TEST() 209 EXPECT_EQ(Res_value::TYPE_STRING, val.dataType); in TEST()
|
D | TestHelpers.cpp | 26 Res_value val; in IsStringEqual() 32 if (val.dataType != Res_value::TYPE_STRING) { in IsStringEqual()
|
D | Idmap_test.cpp | 72 Res_value val; in TEST_F() 75 ASSERT_EQ(Res_value::TYPE_STRING, val.dataType); in TEST_F() 90 ASSERT_EQ(Res_value::TYPE_STRING, val.dataType); in TEST_F()
|
D | TypeWrappers_test.cpp | 44 Res_value v1; in createTypeData() 57 Res_value v2; in createTypeData()
|
/frameworks/base/include/androidfw/ |
D | ResourceTypes.h | 257 struct Res_value struct 378 void copyFrom_dtoh(const Res_value& src); argument 598 struct Res_value typedData; 675 struct Res_value typedValue; 723 ssize_t getTextValue(Res_value* outValue) const; 759 ssize_t getAttributeValue(size_t idx, Res_value* outValue) const; 1467 Res_value value; 1523 inline status_t lookupResourceValue(Res_value* value) const; 1535 bool U16StringToInt(const char16_t* s, size_t len, Res_value* outValue); 1593 ssize_t getResource(uint32_t resID, Res_value* outValue, bool mayBeBag = false, [all …]
|
/frameworks/base/core/jni/ |
D | android_util_AssetManager.cpp | 100 const Res_value& value, uint32_t ref, ssize_t block, 104 const Res_value& value, uint32_t ref, ssize_t block, in copyValue() 821 Res_value value; in android_content_AssetManager_loadResourceValue() 862 Res_value value; in android_content_AssetManager_loadResourceBagValue() 1002 Res_value value; in android_content_AssetManager_loadThemeAttributeValue() 1092 Res_value value; in android_content_AssetManager_resolveAttrs() 1127 Res_value value; in android_content_AssetManager_resolveAttrs() 1129 if (value.dataType == Res_value::TYPE_REFERENCE) { in android_content_AssetManager_resolveAttrs() 1161 value.dataType = Res_value::TYPE_NULL; in android_content_AssetManager_resolveAttrs() 1162 value.data = Res_value::DATA_NULL_UNDEFINED; in android_content_AssetManager_resolveAttrs() [all …]
|
/frameworks/base/libs/androidfw/ |
D | ResourceTypes.cpp | 141 inline void Res_value::copyFrom_dtoh(const Res_value& src) in copyFrom_dtoh() 1076 ssize_t ResXMLParser::getTextValue(Res_value* outValue) const in getTextValue() 1080 return sizeof(Res_value); in getTextValue() 1274 if (type != Res_value::TYPE_DYNAMIC_REFERENCE) { in getAttributeDataType() 1280 return Res_value::TYPE_REFERENCE; in getAttributeDataType() 1283 return Res_value::TYPE_NULL; in getAttributeDataType() 1295 if (attr->typedValue.dataType != Res_value::TYPE_DYNAMIC_REFERENCE || in getAttributeData() 1309 ssize_t ResXMLParser::getAttributeValue(size_t idx, Res_value* outValue) const in getAttributeValue() 1323 return sizeof(Res_value); in getAttributeValue() 3301 memset(curEntries, Res_value::TYPE_NULL, buff_size); in applyStyle() [all …]
|
/frameworks/base/tools/split-select/ |
D | Main.cpp | 182 if (type >= Res_value::TYPE_FIRST_INT && type <= Res_value::TYPE_LAST_INT) { in getAppInfo() 184 } else if (type == Res_value::TYPE_STRING) { in getAppInfo()
|
/frameworks/base/cmds/idmap/ |
D | scan.cpp | 83 Res_value v; in parse_overlay_tag() 84 if (parser.getAttributeValue(i, &v) == sizeof(Res_value)) { in parse_overlay_tag()
|