/frameworks/base/libs/androidfw/ |
D | AttributeResolution.cpp | 70 Res_value value; in ResolveAttrs() 77 Res_value value; in ResolveAttrs() 79 if (value.dataType == Res_value::TYPE_REFERENCE) { in ResolveAttrs() 112 value.dataType = Res_value::TYPE_NULL; in ResolveAttrs() 113 value.data = Res_value::DATA_NULL_UNDEFINED; in ResolveAttrs() 122 value.dataType = Res_value::TYPE_ATTRIBUTE; in ResolveAttrs() 141 if (value.dataType != Res_value::TYPE_NULL) { in ResolveAttrs() 149 } else if (value.data != Res_value::DATA_NULL_EMPTY) { in ResolveAttrs() 166 if (value.dataType == Res_value::TYPE_REFERENCE && value.data == 0) { in ResolveAttrs() 170 value.dataType = Res_value::TYPE_NULL; in ResolveAttrs() [all …]
|
D | ResourceTypes.cpp | 143 void Res_value::copyFrom_dtoh(const Res_value& src) in copyFrom_dtoh() 1084 ssize_t ResXMLParser::getTextValue(Res_value* outValue) const in getTextValue() 1088 return sizeof(Res_value); in getTextValue() 1282 if (type != Res_value::TYPE_DYNAMIC_REFERENCE) { in getAttributeDataType() 1288 return Res_value::TYPE_REFERENCE; in getAttributeDataType() 1291 return Res_value::TYPE_NULL; in getAttributeDataType() 1303 if (attr->typedValue.dataType != Res_value::TYPE_DYNAMIC_REFERENCE || in getAttributeData() 1317 ssize_t ResXMLParser::getAttributeValue(size_t idx, Res_value* outValue) const in getAttributeValue() 1331 return sizeof(Res_value); in getAttributeValue() 3524 memset(curEntries, Res_value::TYPE_NULL, buff_size); in applyStyle() [all …]
|
D | AssetManager2.cpp | 385 uint16_t density_override, Res_value* out_value, in GetResource() 406 out_value->dataType = Res_value::TYPE_REFERENCE; in GetResource() 413 const Res_value* device_value = reinterpret_cast<const Res_value*>( in GetResource() 425 ApkAssetsCookie AssetManager2::ResolveReference(ApkAssetsCookie cookie, Res_value* in_out_value, in ResolveReference() 433 for (size_t iteration = 0u; in_out_value->dataType == Res_value::TYPE_REFERENCE && in ResolveReference() 779 if (force || entry.value.dataType == Res_value::TYPE_NULL) { in ApplyStyle() 788 ApkAssetsCookie Theme::GetAttribute(uint32_t resid, Res_value* out_value, in GetAttribute() 823 case Res_value::TYPE_NULL: in GetAttribute() 826 case Res_value::TYPE_ATTRIBUTE: in GetAttribute() 830 case Res_value::TYPE_DYNAMIC_ATTRIBUTE: { in GetAttribute() [all …]
|
/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 | 80 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;
|
/frameworks/base/tools/aapt2/ |
D | ResourceUtils.cpp | 325 return util::make_unique<BinaryPrimitive>(android::Res_value::TYPE_NULL, in MakeEmpty() 326 android::Res_value::DATA_NULL_EMPTY); in MakeEmpty() 337 android::Res_value value = {}; in TryParseEnumSymbol() 338 value.dataType = android::Res_value::TYPE_INT_DEC; in TryParseEnumSymbol() 348 android::Res_value flags = {}; in TryParseFlagSymbol() 349 flags.dataType = android::Res_value::TYPE_INT_HEX; in TryParseFlagSymbol() 401 android::Res_value value = {}; in TryParseColor() 404 value.dataType = android::Res_value::TYPE_INT_COLOR_RGB4; in TryParseColor() 413 value.dataType = android::Res_value::TYPE_INT_COLOR_ARGB4; in TryParseColor() 423 value.dataType = android::Res_value::TYPE_INT_COLOR_RGB8; in TryParseColor() [all …]
|
D | ResourceValues.cpp | 64 bool RawString::Flatten(android::Res_value* out_value) const { in Flatten() 65 out_value->dataType = android::Res_value::TYPE_STRING; in Flatten() 95 bool Reference::Flatten(android::Res_value* out_value) const { in Flatten() 102 out_value->dataType = android::Res_value::TYPE_DYNAMIC_REFERENCE; in Flatten() 104 out_value->dataType = android::Res_value::TYPE_REFERENCE; in Flatten() 108 out_value->dataType = android::Res_value::TYPE_DYNAMIC_ATTRIBUTE; in Flatten() 110 out_value->dataType = android::Res_value::TYPE_ATTRIBUTE; in Flatten() 152 bool Id::Flatten(android::Res_value* out) const { in Flatten() 153 out->dataType = android::Res_value::TYPE_INT_BOOLEAN; in Flatten() 188 bool String::Flatten(android::Res_value* out_value) const { in Flatten() [all …]
|
D | ResourceValues.h | 108 virtual bool Flatten(android::Res_value* out_value) const = 0; 137 bool Flatten(android::Res_value* out_value) const override; 149 bool Flatten(android::Res_value* out) const override; 162 bool Flatten(android::Res_value* out_value) const override; 196 bool Flatten(android::Res_value* out_value) const override; 212 bool Flatten(android::Res_value* out_value) const override; 228 bool Flatten(android::Res_value* out_value) const override; 235 android::Res_value value; 238 explicit BinaryPrimitive(const android::Res_value& val); 242 bool Flatten(android::Res_value* out_value) const override;
|
D | ResourceUtils_test.cpp | 216 ASSERT_THAT(empty_value, Pointee(ValueEq(BinaryPrimitive(android::Res_value::TYPE_NULL, in TEST() 217 android::Res_value::DATA_NULL_EMPTY)))); in TEST() 220 ASSERT_THAT(value, Pointee(ValueEq(BinaryPrimitive(android::Res_value::TYPE_NULL, in TEST() 221 android::Res_value::DATA_NULL_EMPTY)))); in TEST()
|
/frameworks/base/libs/androidfw/tests/ |
D | AttributeResolution_test.cpp | 83 EXPECT_EQ(Res_value::TYPE_INT_DEC, values_cursor[STYLE_TYPE]); in TEST_F() 91 EXPECT_EQ(Res_value::TYPE_STRING, values_cursor[STYLE_TYPE]); in TEST_F() 98 EXPECT_EQ(Res_value::TYPE_INT_DEC, values_cursor[STYLE_TYPE]); in TEST_F() 106 EXPECT_EQ(Res_value::TYPE_NULL, values_cursor[STYLE_TYPE]); in TEST_F() 107 EXPECT_EQ(Res_value::DATA_NULL_UNDEFINED, values_cursor[STYLE_DATA]); in TEST_F() 116 EXPECT_EQ(Res_value::TYPE_NULL, values_cursor[STYLE_TYPE]); in TEST_F() 117 EXPECT_EQ(Res_value::DATA_NULL_EMPTY, values_cursor[STYLE_DATA]); in TEST_F() 133 EXPECT_EQ(Res_value::TYPE_NULL, values_cursor[STYLE_TYPE]); in TEST_F() 134 EXPECT_EQ(Res_value::DATA_NULL_EMPTY, values_cursor[STYLE_DATA]); in TEST_F() 141 EXPECT_EQ(Res_value::TYPE_NULL, values_cursor[STYLE_TYPE]); in TEST_F() [all …]
|
D | Theme_test.cpp | 64 Res_value value; in TEST_F() 76 Res_value value; in TEST_F() 82 EXPECT_EQ(Res_value::TYPE_INT_DEC, value.dataType); in TEST_F() 88 EXPECT_EQ(Res_value::TYPE_INT_DEC, value.dataType); in TEST_F() 100 Res_value value; in TEST_F() 106 EXPECT_EQ(Res_value::TYPE_INT_DEC, value.dataType); in TEST_F() 112 EXPECT_EQ(Res_value::TYPE_STRING, value.dataType); in TEST_F() 121 EXPECT_EQ(Res_value::TYPE_INT_DEC, value.dataType); in TEST_F() 134 Res_value value; in TEST_F() 141 EXPECT_EQ(Res_value::TYPE_INT_DEC, value.dataType); in TEST_F() [all …]
|
D | AssetManager2_test.cpp | 90 Res_value value; in TEST_F() 107 EXPECT_EQ(Res_value::TYPE_STRING, value.dataType); in TEST_F() 120 Res_value value; in TEST_F() 137 EXPECT_EQ(Res_value::TYPE_STRING, value.dataType); in TEST_F() 148 Res_value value; in TEST_F() 159 EXPECT_EQ(Res_value::TYPE_REFERENCE, value.dataType); in TEST_F() 166 EXPECT_EQ(Res_value::TYPE_STRING, value.dataType); in TEST_F() 176 EXPECT_EQ(Res_value::TYPE_REFERENCE, value.dataType); in TEST_F() 183 EXPECT_EQ(Res_value::TYPE_STRING, value.dataType); in TEST_F() 194 Res_value value; in TEST_F() [all …]
|
D | ResTable_test.cpp | 63 Res_value val; in TEST() 68 EXPECT_EQ(Res_value::TYPE_INT_DEC, val.dataType); in TEST() 111 Res_value val; in TEST() 115 ASSERT_EQ(Res_value::TYPE_INT_DEC, val.dataType); in TEST() 120 ASSERT_EQ(Res_value::TYPE_REFERENCE, val.dataType); in TEST() 135 Res_value val; in TEST() 139 ASSERT_EQ(Res_value::TYPE_INT_DEC, val.dataType); in TEST() 144 ASSERT_EQ(Res_value::TYPE_REFERENCE, val.dataType); in TEST() 159 Res_value val; in TEST() 163 ASSERT_EQ(Res_value::TYPE_INT_DEC, val.dataType); in TEST() [all …]
|
D | AppAsLib_test.cpp | 37 Res_value val; in TEST() 40 ASSERT_EQ(Res_value::TYPE_REFERENCE, val.dataType); in TEST() 56 Res_value val; in TEST() 59 ASSERT_EQ(Res_value::TYPE_REFERENCE, val.dataType); in TEST() 75 Res_value val; in TEST() 78 ASSERT_EQ(Res_value::TYPE_REFERENCE, val.dataType); in TEST()
|
D | Split_test.cpp | 85 Res_value val; in TEST_F() 98 EXPECT_EQ(Res_value::TYPE_STRING, val.dataType); in TEST_F() 113 Res_value val; in TEST_F() 122 EXPECT_EQ(Res_value::TYPE_STRING, val.dataType); in TEST_F() 162 Res_value val; in TEST_F() 218 Res_value val; in TEST_F() 228 EXPECT_EQ(Res_value::TYPE_STRING, val.dataType); in TEST_F()
|
D | Idmap_test.cpp | 63 Res_value val; in TEST_F() 66 ASSERT_EQ(Res_value::TYPE_STRING, val.dataType); in TEST_F() 82 ASSERT_EQ(Res_value::TYPE_STRING, val.dataType); in TEST_F() 116 Res_value val; in TEST_F()
|
D | Theme_bench.cpp | 73 Res_value value; in BM_ThemeGetAttribute() 90 Res_value value; in BM_ThemeGetAttributeOld()
|
D | TypeWrappers_test.cpp | 44 Res_value v1; in createTypeData() 57 Res_value v2; in createTypeData()
|
/frameworks/base/libs/androidfw/include/androidfw/ |
D | ResourceTypes.h | 259 struct Res_value struct 383 void copyFrom_dtoh(const Res_value& src); argument 603 struct Res_value typedData; 680 struct Res_value typedValue; 728 ssize_t getTextValue(Res_value* outValue) const; 764 ssize_t getAttributeValue(size_t idx, Res_value* outValue) const; 1556 Res_value value; 1618 status_t lookupResourceValue(Res_value* value) const; 1631 bool U16StringToInt(const char16_t* s, size_t len, Res_value* outValue); 1690 ssize_t getResource(uint32_t resID, Res_value* outValue, bool mayBeBag = false, [all …]
|
D | AssetManager2.h | 50 Res_value value; 197 Res_value* out_value, ResTable_config* out_selected_config, 212 ApkAssetsCookie ResolveReference(ApkAssetsCookie cookie, Res_value* in_out_value, 326 ApkAssetsCookie GetAttribute(uint32_t resid, Res_value* out_value, 331 ApkAssetsCookie ResolveAttributeReference(ApkAssetsCookie cookie, Res_value* in_out_value, 345 Res_value value;
|
/frameworks/base/tools/aapt2/flatten/ |
D | TableFlattener_test.cpp | 92 Res_value val; in Exists() 156 uint8_t(Res_value::TYPE_INT_DEC), 1u)) in TEST_F() 160 uint8_t(Res_value::TYPE_INT_DEC), 2u)) in TEST_F() 170 {}, Res_value::TYPE_INT_BOOLEAN, 0u, 0u)); in TEST_F() 173 {}, Res_value::TYPE_INT_BOOLEAN, 0u, 0u)); in TEST_F() 176 ResourceId(0x7f020002), {}, Res_value::TYPE_REFERENCE, in TEST_F() 180 ResourceId(0x7f030000), {}, Res_value::TYPE_INT_DEC, 1u, in TEST_F() 185 Res_value::TYPE_INT_DEC, 2u, in TEST_F() 193 ResourceId(0x7f040000), {}, Res_value::TYPE_STRING, in TEST_F() 201 ResourceId(0x7f050000), {}, Res_value::TYPE_STRING, in TEST_F() [all …]
|
D | TableFlattener.cpp | 89 BinaryPrimitive val(Res_value::TYPE_INT_DEC, attr->type_mask); in Visit() 95 BinaryPrimitive val(Res_value::TYPE_INT_DEC, in Visit() 102 BinaryPrimitive val(Res_value::TYPE_INT_DEC, in Visit() 108 BinaryPrimitive val(Res_value::TYPE_INT_DEC, s.value); in Visit() 130 BinaryPrimitive val(Res_value{}); in Visit() 301 Res_value* outValue = buffer->NextBlock<Res_value>(); in FlattenValue()
|
/frameworks/base/tools/aapt2/cmd/ |
D | Util.cpp | 158 util::make_unique<BinaryPrimitive>(android::Res_value::TYPE_INT_DEC, version_code)}); in GenerateSplitManifest() 166 util::make_unique<BinaryPrimitive>(android::Res_value::TYPE_INT_DEC, revision_code)}); in GenerateSplitManifest() 186 util::make_unique<BinaryPrimitive>(android::Res_value::TYPE_INT_BOOLEAN, 0u)}); in GenerateSplitManifest() 221 if (compiled_prim->value.dataType >= android::Res_value::TYPE_FIRST_INT && in ExtractCompiledInt() 222 compiled_prim->value.dataType <= android::Res_value::TYPE_LAST_INT) { in ExtractCompiledInt() 245 if (compiled_prim->value.dataType >= android::Res_value::TYPE_FIRST_INT && in ExtractSdkVersion() 246 compiled_prim->value.dataType <= android::Res_value::TYPE_LAST_INT) { in ExtractSdkVersion()
|
/frameworks/base/cmds/idmap/ |
D | scan.cpp | 115 Res_value v; in parse_overlay_tag() 116 if (parser.getAttributeValue(i, &v) == sizeof(Res_value)) { in parse_overlay_tag() 123 Res_value v; in parse_overlay_tag() 124 if (parser.getAttributeValue(i, &v) == sizeof(Res_value)) { in parse_overlay_tag()
|
/frameworks/base/core/jni/ |
D | android_util_AssetManager.cpp | 101 const Res_value& value, uint32_t ref, ssize_t block, 105 const Res_value& value, uint32_t ref, ssize_t block, in copyValue() 896 Res_value value; in android_content_AssetManager_loadResourceValue() 937 Res_value value; in android_content_AssetManager_loadResourceBagValue() 1077 Res_value value; in android_content_AssetManager_loadThemeAttributeValue() 1288 Res_value value; in android_content_AssetManager_retrieveArray() 1318 if (value.dataType != Res_value::TYPE_NULL) { in android_content_AssetManager_retrieveArray() 1333 if (value.dataType == Res_value::TYPE_REFERENCE && value.data == 0) { in android_content_AssetManager_retrieveArray() 1334 value.dataType = Res_value::TYPE_NULL; in android_content_AssetManager_retrieveArray() 1335 value.data = Res_value::DATA_NULL_UNDEFINED; in android_content_AssetManager_retrieveArray() [all …]
|