/frameworks/base/libs/androidfw/tests/ |
H A D | AppAsLib_test.cpp | 35 Res_value val; 38 ASSERT_EQ(Res_value::TYPE_REFERENCE, val.dataType); 48 Res_value val; 51 ASSERT_EQ(Res_value::TYPE_REFERENCE, val.dataType); 61 Res_value val; 64 ASSERT_EQ(Res_value::TYPE_REFERENCE, val.dataType);
|
H A D | Theme_test.cpp | 46 Res_value val; 48 ASSERT_EQ(Res_value::TYPE_INT_COLOR_RGB8, val.dataType); 51 ASSERT_EQ(Res_value::TYPE_INT_DEC, val.dataType); 61 ASSERT_EQ(Res_value::TYPE_INT_COLOR_RGB8, val.dataType); 64 ASSERT_EQ(Res_value::TYPE_INT_DEC, val.dataType);
|
H A D | ResTable_test.cpp | 88 Res_value val; 92 ASSERT_EQ(Res_value::TYPE_INT_DEC, val.dataType); 97 ASSERT_EQ(Res_value::TYPE_REFERENCE, val.dataType); 108 Res_value val; 112 ASSERT_EQ(Res_value::TYPE_INT_DEC, val.dataType); 117 ASSERT_EQ(Res_value::TYPE_REFERENCE, val.dataType); 128 Res_value val; 132 ASSERT_EQ(Res_value::TYPE_INT_DEC, val.dataType); 137 ASSERT_EQ(Res_value::TYPE_INT_DEC, val.dataType); 145 Res_value va [all...] |
H A D | TestHelpers.cpp | 26 Res_value val; 32 if (val.dataType != Res_value::TYPE_STRING) {
|
H A D | Split_test.cpp | 82 Res_value val; 92 EXPECT_EQ(Res_value::TYPE_STRING, val.dataType); 105 Res_value val; 113 EXPECT_EQ(Res_value::TYPE_STRING, val.dataType); 153 Res_value val; 200 Res_value val; 209 EXPECT_EQ(Res_value::TYPE_STRING, val.dataType);
|
H A D | Idmap_test.cpp | 72 Res_value val; 75 ASSERT_EQ(Res_value::TYPE_STRING, val.dataType); 90 ASSERT_EQ(Res_value::TYPE_STRING, val.dataType);
|
H A D | TypeWrappers_test.cpp | 44 Res_value v1; 57 Res_value v2;
|
/frameworks/base/tools/aapt/ |
H A D | AaptXml.cpp | 28 Res_value value; 36 if (value.dataType != Res_value::TYPE_STRING) { 50 Res_value value; 58 if (value.dataType < Res_value::TYPE_FIRST_INT 59 || value.dataType > Res_value::TYPE_LAST_INT) { 102 Res_value value; 104 if (value.dataType == Res_value::TYPE_STRING) { 110 if (value.dataType != Res_value::TYPE_STRING) { 118 const Res_value* value2 = &value; 147 Res_value valu [all...] |
H A D | XMLNode.h | 80 value.dataType = Res_value::TYPE_NULL; 85 || value.dataType == Res_value::TYPE_NULL 86 || value.dataType == Res_value::TYPE_STRING; 92 Res_value value; 203 Res_value mCharsValue;
|
H A D | AaptXml.h | 118 const android::ResXMLTree& tree, uint32_t attrRes, android::Res_value* outValue,
|
H A D | ResourceTable.h | 245 bool stringToValue(Res_value* outValue, StringPool* pool, 282 Res_value* outValue); 285 Res_value* outValue); 327 Res_value parsedValue; 607 Res_value* outValue);
|
/frameworks/base/tools/aapt2/ |
H A D | ResourceUtils.cpp | 257 android::Res_value value = { }; 261 value.dataType = android::Res_value::TYPE_REFERENCE; 264 value.dataType = android::Res_value::TYPE_NULL; 265 value.data = android::Res_value::DATA_NULL_EMPTY; 280 android::Res_value value = { }; 281 value.dataType = android::Res_value::TYPE_INT_DEC; 291 android::Res_value flags = { }; 292 flags.dataType = android::Res_value::TYPE_INT_HEX; 343 android::Res_value value = { }; 346 value.dataType = android::Res_value [all...] |
H A D | ResourceValues.cpp | 57 bool RawString::flatten(android::Res_value* outValue) const { 58 outValue->dataType = android::Res_value::TYPE_STRING; 86 bool Reference::flatten(android::Res_value* outValue) const { 88 android::Res_value::TYPE_REFERENCE : android::Res_value::TYPE_ATTRIBUTE; 121 bool Id::flatten(android::Res_value* out) const { 122 out->dataType = android::Res_value::TYPE_INT_BOOLEAN; 146 bool String::flatten(android::Res_value* outValue) const { 152 outValue->dataType = android::Res_value::TYPE_STRING; 188 bool StyledString::flatten(android::Res_value* outValu [all...] |
H A D | ResourceValues.h | 141 * Fills in an android::Res_value structure with this Item's binary representation. 144 virtual bool flatten(android::Res_value* outValue) const = 0; 156 * A reference to another resource. This maps to android::Res_value::TYPE_REFERENCE. 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; 249 * Represents any other android::Res_value [all...] |
H A D | ResourceTable_test.cpp | 92 test::ValueBuilder<BinaryPrimitive>(android::Res_value{})
|
/frameworks/base/tools/aapt2/flatten/ |
H A D | TableFlattener_test.cpp | 79 Res_value val; 152 util::make_unique<BinaryPrimitive>(uint8_t(Res_value::TYPE_INT_DEC), 1u)) 155 util::make_unique<BinaryPrimitive>(uint8_t(Res_value::TYPE_INT_DEC), 2u)) 164 Res_value::TYPE_INT_BOOLEAN, 0u, 0u)); 167 Res_value::TYPE_INT_BOOLEAN, 0u, 0u)); 170 Res_value::TYPE_REFERENCE, 0x7f020000u, 0u)); 173 {}, Res_value::TYPE_INT_DEC, 1u, 177 test::parseConfigOrDie("v1"), Res_value::TYPE_INT_DEC, 2u, 184 {}, Res_value::TYPE_STRING, (uint32_t) idx, 0u)); 190 Res_value [all...] |
H A D | TableFlattener.cpp | 86 BinaryPrimitive val(Res_value::TYPE_INT_DEC, attr->typeMask); 92 BinaryPrimitive val(Res_value::TYPE_INT_DEC, static_cast<uint32_t>(attr->minInt)); 98 BinaryPrimitive val(Res_value::TYPE_INT_DEC, static_cast<uint32_t>(attr->maxInt)); 103 BinaryPrimitive val(Res_value::TYPE_INT_DEC, s.value); 125 BinaryPrimitive val(Res_value{}); 289 Res_value* outValue = buffer->nextBlock<Res_value>();
|
/frameworks/base/include/androidfw/ |
H A D | ResourceTypes.h | 260 struct Res_value struct in namespace:android 384 void copyFrom_dtoh(const Res_value& src); 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; 1366 * * A Res_value structure, if FLAG_COMPLEX is -not- set. 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* outValu [all...] |
/frameworks/base/core/jni/ |
H A D | android_util_AssetManager.cpp | 110 const Res_value& value, uint32_t ref, ssize_t block, 114 const Res_value& value, uint32_t ref, ssize_t block, 896 Res_value value; 937 Res_value value; 1077 Res_value value; 1167 Res_value value; 1202 Res_value value; 1204 if (value.dataType == Res_value::TYPE_REFERENCE) { 1236 value.dataType = Res_value::TYPE_NULL; 1237 value.data = Res_value [all...] |
/frameworks/base/libs/androidfw/ |
H A D | ResourceTypes.cpp | 143 inline void Res_value::copyFrom_dtoh(const Res_value& src) 1078 ssize_t ResXMLParser::getTextValue(Res_value* outValue) const 1082 return sizeof(Res_value); 1276 if (type != Res_value::TYPE_DYNAMIC_REFERENCE) { 1282 return Res_value::TYPE_REFERENCE; 1285 return Res_value::TYPE_NULL; 1297 if (attr->typedValue.dataType != Res_value::TYPE_DYNAMIC_REFERENCE || 1311 ssize_t ResXMLParser::getAttributeValue(size_t idx, Res_value* outValue) const 1325 return sizeof(Res_value); [all...] |
/frameworks/base/tools/aapt2/unflatten/ |
H A D | BinaryResourceParser.cpp | 342 const Res_value* value = (const Res_value*)( 382 const Res_value* value, 390 if (value->dataType == Res_value::TYPE_STRING) { 423 if (value->dataType == Res_value::TYPE_REFERENCE || 424 value->dataType == Res_value::TYPE_ATTRIBUTE) { 425 const Reference::Type type = (value->dataType == Res_value::TYPE_REFERENCE) ? 430 Res_value nullType = {}; 431 nullType.dataType = Res_value::TYPE_REFERENCE;
|
H A D | BinaryResourceParser.h | 64 const android::Res_value* value, uint16_t flags);
|
/frameworks/base/tools/split-select/ |
H A D | Main.cpp | 182 if (type >= Res_value::TYPE_FIRST_INT && type <= Res_value::TYPE_LAST_INT) { 184 } else if (type == Res_value::TYPE_STRING) {
|
/frameworks/base/cmds/idmap/ |
H A D | scan.cpp | 98 Res_value v; 99 if (parser.getAttributeValue(i, &v) == sizeof(Res_value)) {
|
/frameworks/base/tools/aapt2/proto/ |
H A D | TableProtoSerializer_test.cpp | 58 test::buildPrimitive(android::Res_value::TYPE_INT_DEC, 123u), 62 test::buildPrimitive(android::Res_value::TYPE_INT_DEC, 321u),
|