Home
last modified time | relevance | path

Searched refs:Res_value (Results 1 – 25 of 36) sorted by relevance

12

/frameworks/base/tools/aapt/
DAaptXml.cpp28 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 …]
DXMLNode.h80 value.dataType = Res_value::TYPE_NULL; in attribute_entry()
85 || value.dataType == Res_value::TYPE_NULL in needStringValue()
86 || value.dataType == Res_value::TYPE_STRING; in needStringValue()
92 Res_value value;
203 Res_value mCharsValue;
DResourceTable.h245 bool stringToValue(Res_value* outValue, StringPool* pool,
282 Res_value* outValue);
285 Res_value* outValue);
327 Res_value parsedValue;
607 Res_value* outValue);
DAaptXml.h118 const android::ResXMLTree& tree, uint32_t attrRes, android::Res_value* outValue,
DXMLNode.cpp475 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()
1584 if (ae.value.dataType == Res_value::TYPE_NULL in flatten_node()
1585 || ae.value.dataType == Res_value::TYPE_STRING) { in flatten_node()
1587 attr.typedValue.dataType = Res_value::TYPE_STRING; in flatten_node()
/frameworks/base/tools/aapt2/
DResourceUtils.cpp257 android::Res_value value = { }; in tryParseNullOrEmpty()
261 value.dataType = android::Res_value::TYPE_REFERENCE; in tryParseNullOrEmpty()
264 value.dataType = android::Res_value::TYPE_NULL; in tryParseNullOrEmpty()
265 value.data = android::Res_value::DATA_NULL_EMPTY; in tryParseNullOrEmpty()
280 android::Res_value value = { }; in tryParseEnumSymbol()
281 value.dataType = android::Res_value::TYPE_INT_DEC; in tryParseEnumSymbol()
291 android::Res_value flags = { }; in tryParseFlagSymbol()
292 flags.dataType = android::Res_value::TYPE_INT_HEX; in tryParseFlagSymbol()
343 android::Res_value value = { }; in tryParseColor()
346 value.dataType = android::Res_value::TYPE_INT_COLOR_RGB4; in tryParseColor()
[all …]
DResourceValues.cpp57 bool RawString::flatten(android::Res_value* outValue) const { in flatten()
58 outValue->dataType = android::Res_value::TYPE_STRING; in flatten()
86 bool Reference::flatten(android::Res_value* outValue) const { in flatten()
88 android::Res_value::TYPE_REFERENCE : android::Res_value::TYPE_ATTRIBUTE; in flatten()
121 bool Id::flatten(android::Res_value* out) const { in flatten()
122 out->dataType = android::Res_value::TYPE_INT_BOOLEAN; in flatten()
146 bool String::flatten(android::Res_value* outValue) const { in flatten()
152 outValue->dataType = android::Res_value::TYPE_STRING; in flatten()
188 bool StyledString::flatten(android::Res_value* outValue) const { in flatten()
193 outValue->dataType = android::Res_value::TYPE_STRING; in flatten()
[all …]
DResourceValues.h144 virtual bool flatten(android::Res_value* outValue) const = 0;
177 bool flatten(android::Res_value* outValue) const override;
188 bool flatten(android::Res_value* out) const override;
204 bool flatten(android::Res_value* outValue) const override;
215 bool flatten(android::Res_value* outValue) const override;
226 bool flatten(android::Res_value* outValue) const override;
243 bool flatten(android::Res_value* outValue) const override;
252 android::Res_value value;
255 BinaryPrimitive(const android::Res_value& val);
259 bool flatten(android::Res_value* outValue) const override;
/frameworks/base/libs/androidfw/tests/
DResTable_test.cpp88 Res_value val; in TEST()
92 ASSERT_EQ(Res_value::TYPE_INT_DEC, val.dataType); in TEST()
97 ASSERT_EQ(Res_value::TYPE_REFERENCE, val.dataType); in TEST()
108 Res_value val; in TEST()
112 ASSERT_EQ(Res_value::TYPE_INT_DEC, val.dataType); in TEST()
117 ASSERT_EQ(Res_value::TYPE_REFERENCE, val.dataType); in TEST()
128 Res_value val; in TEST()
132 ASSERT_EQ(Res_value::TYPE_INT_DEC, val.dataType); in TEST()
137 ASSERT_EQ(Res_value::TYPE_INT_DEC, val.dataType); in TEST()
145 Res_value val; in TEST()
[all …]
DAppAsLib_test.cpp35 Res_value val; in TEST()
38 ASSERT_EQ(Res_value::TYPE_REFERENCE, val.dataType); in TEST()
48 Res_value val; in TEST()
51 ASSERT_EQ(Res_value::TYPE_REFERENCE, val.dataType); in TEST()
61 Res_value val; in TEST()
64 ASSERT_EQ(Res_value::TYPE_REFERENCE, val.dataType); in TEST()
DTheme_test.cpp46 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()
DSplit_test.cpp82 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()
DTestHelpers.cpp26 Res_value val; in IsStringEqual()
32 if (val.dataType != Res_value::TYPE_STRING) { in IsStringEqual()
DIdmap_test.cpp72 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()
DTypeWrappers_test.cpp44 Res_value v1; in createTypeData()
57 Res_value v2; in createTypeData()
/frameworks/base/tools/aapt2/flatten/
DTableFlattener_test.cpp79 Res_value val; in exists()
152 util::make_unique<BinaryPrimitive>(uint8_t(Res_value::TYPE_INT_DEC), 1u)) in TEST_F()
155 util::make_unique<BinaryPrimitive>(uint8_t(Res_value::TYPE_INT_DEC), 2u)) in TEST_F()
164 Res_value::TYPE_INT_BOOLEAN, 0u, 0u)); in TEST_F()
167 Res_value::TYPE_INT_BOOLEAN, 0u, 0u)); in TEST_F()
170 Res_value::TYPE_REFERENCE, 0x7f020000u, 0u)); in TEST_F()
173 {}, Res_value::TYPE_INT_DEC, 1u, in TEST_F()
177 test::parseConfigOrDie("v1"), Res_value::TYPE_INT_DEC, 2u, in TEST_F()
184 {}, Res_value::TYPE_STRING, (uint32_t) idx, 0u)); in TEST_F()
190 Res_value::TYPE_STRING, (uint32_t) idx, 0u)); in TEST_F()
[all …]
DTableFlattener.cpp86 BinaryPrimitive val(Res_value::TYPE_INT_DEC, attr->typeMask); in visit()
92 BinaryPrimitive val(Res_value::TYPE_INT_DEC, static_cast<uint32_t>(attr->minInt)); in visit()
98 BinaryPrimitive val(Res_value::TYPE_INT_DEC, static_cast<uint32_t>(attr->maxInt)); in visit()
103 BinaryPrimitive val(Res_value::TYPE_INT_DEC, s.value); in visit()
125 BinaryPrimitive val(Res_value{}); in visit()
289 Res_value* outValue = buffer->nextBlock<Res_value>(); in flattenValue()
/frameworks/base/include/androidfw/
DResourceTypes.h260 struct Res_value struct
384 void copyFrom_dtoh(const Res_value& src); argument
604 struct Res_value typedData;
681 struct Res_value typedValue;
729 ssize_t getTextValue(Res_value* outValue) const;
765 ssize_t getAttributeValue(size_t idx, Res_value* outValue) const;
1492 Res_value value;
1548 inline status_t lookupResourceValue(Res_value* value) const;
1561 bool U16StringToInt(const char16_t* s, size_t len, Res_value* outValue);
1620 ssize_t getResource(uint32_t resID, Res_value* outValue, bool mayBeBag = false,
[all …]
/frameworks/base/core/jni/
Dandroid_util_AssetManager.cpp112 const Res_value& value, uint32_t ref, ssize_t block,
116 const Res_value& value, uint32_t ref, ssize_t block, in copyValue()
906 Res_value value; in android_content_AssetManager_loadResourceValue()
947 Res_value value; in android_content_AssetManager_loadResourceBagValue()
1087 Res_value value; in android_content_AssetManager_loadThemeAttributeValue()
1177 Res_value value; in android_content_AssetManager_resolveAttrs()
1212 Res_value value; in android_content_AssetManager_resolveAttrs()
1214 if (value.dataType == Res_value::TYPE_REFERENCE) { in android_content_AssetManager_resolveAttrs()
1246 value.dataType = Res_value::TYPE_NULL; in android_content_AssetManager_resolveAttrs()
1247 value.data = Res_value::DATA_NULL_UNDEFINED; in android_content_AssetManager_resolveAttrs()
[all …]
/frameworks/base/libs/androidfw/
DResourceTypes.cpp143 inline void Res_value::copyFrom_dtoh(const Res_value& src) in copyFrom_dtoh()
1078 ssize_t ResXMLParser::getTextValue(Res_value* outValue) const in getTextValue()
1082 return sizeof(Res_value); in getTextValue()
1276 if (type != Res_value::TYPE_DYNAMIC_REFERENCE) { in getAttributeDataType()
1282 return Res_value::TYPE_REFERENCE; in getAttributeDataType()
1285 return Res_value::TYPE_NULL; in getAttributeDataType()
1297 if (attr->typedValue.dataType != Res_value::TYPE_DYNAMIC_REFERENCE || in getAttributeData()
1311 ssize_t ResXMLParser::getAttributeValue(size_t idx, Res_value* outValue) const in getAttributeValue()
1325 return sizeof(Res_value); in getAttributeValue()
3414 memset(curEntries, Res_value::TYPE_NULL, buff_size); in applyStyle()
[all …]
/frameworks/base/tools/aapt2/unflatten/
DBinaryResourceParser.cpp342 const Res_value* value = (const Res_value*)( in parseType()
382 const Res_value* value, in parseValue()
390 if (value->dataType == Res_value::TYPE_STRING) { in parseValue()
423 if (value->dataType == Res_value::TYPE_REFERENCE || in parseValue()
424 value->dataType == Res_value::TYPE_ATTRIBUTE) { in parseValue()
425 const Reference::Type type = (value->dataType == Res_value::TYPE_REFERENCE) ? in parseValue()
430 Res_value nullType = {}; in parseValue()
431 nullType.dataType = Res_value::TYPE_REFERENCE; in parseValue()
DBinaryResourceParser.h64 const android::Res_value* value, uint16_t flags);
/frameworks/base/tools/split-select/
DMain.cpp182 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/
Dscan.cpp98 Res_value v; in parse_overlay_tag()
99 if (parser.getAttributeValue(i, &v) == sizeof(Res_value)) { in parse_overlay_tag()
/frameworks/base/tools/aapt2/proto/
DTableProtoSerializer_test.cpp58 test::buildPrimitive(android::Res_value::TYPE_INT_DEC, 123u), in TEST()
62 test::buildPrimitive(android::Res_value::TYPE_INT_DEC, 321u), in TEST()

12