Home
last modified time | relevance | path

Searched refs:data_type (Results 1 – 20 of 20) sorted by relevance

/aosp14/frameworks/base/cmds/idmap2/libidmap2/
H A DResourceUtils.cpp32 bool IsReference(uint8_t data_type) { in IsReference() argument
33 return data_type == Res_value::TYPE_REFERENCE || data_type == Res_value::TYPE_DYNAMIC_REFERENCE; in IsReference()
36 StringPiece DataTypeToString(uint8_t data_type) { in DataTypeToString() argument
37 switch (data_type) { in DataTypeToString()
H A DFabricatedOverlay.cpp81 const std::string& resource_name, uint8_t data_type, uint32_t data_value, in SetResourceValue() argument
84 Entry{resource_name, data_type, data_value, "", std::nullopt, configuration}); in SetResourceValue()
89 const std::string& resource_name, uint8_t data_type, const std::string& data_string_value, in SetResourceValue() argument
92 Entry{resource_name, data_type, 0, data_string_value, std::nullopt, configuration}); in SetResourceValue()
150 value->second = TargetValue{res_entry.data_type, res_entry.data_value, in Build()
179 pb_value->set_data_type(value.second.data_type); in Build()
180 if (value.second.data_type == Res_value::TYPE_STRING) { in Build()
387 .data_type = static_cast<uint8_t>(res_value.data_type()), in GetOverlayData()
H A DPrettyPrintVisitor.cpp100 << utils::DataTypeToString(value.data_type); in visit()
102 if (value.data_type == Res_value::TYPE_STRING) { in visit()
H A DRawPrintVisitor.cpp101 print(value.data_type, "type: %s", in visit()
102 utils::DataTypeToString(value.data_type).data()); in visit()
H A DBinaryStreamVisitor.cpp95 Write8(target_entry_value.second.data_type); in visit()
H A DIdmap.cpp239 || !Read8(stream, &value.data_type) in FromBinaryStream()
H A DResourceContainer.cpp231 .value = TargetValue{.data_type = overlay_resource->dataType, in CreateResourceMapping()
/aosp14/frameworks/base/cmds/idmap2/tests/
H A DFabricatedOverlayTests.cpp87 ASSERT_EQ(Res_value::TYPE_STRING, entry->value.data_type); in TEST()
95 ASSERT_EQ(Res_value::TYPE_INT_DEC, entry->value.data_type); in TEST()
103 ASSERT_EQ(Res_value::TYPE_REFERENCE, entry->value.data_type); in TEST()
110 ASSERT_EQ(Res_value::TYPE_STRING, entry->value.data_type); in TEST()
119 ASSERT_EQ(Res_value::TYPE_INT_DEC, entry->value.data_type); in TEST()
176 EXPECT_EQ(Res_value::TYPE_INT_DEC, entry->value.data_type); in TEST()
182 ASSERT_EQ(Res_value::TYPE_STRING, entry->value.data_type); in TEST()
H A DBinaryStreamVisitorTests.cpp87 ASSERT_EQ(target_inline_entries1[0].values.begin()->second.data_type, in TEST()
88 target_inline_entries2[0].values.begin()->second.data_type); in TEST()
H A DResourceMappingTests.cpp131 if (actual_overlay_value.data_type != type) { in MappingExists()
133 actual_overlay_value.data_type); in MappingExists()
H A DIdmapTests.cpp53 ASSERT_EQ((entry).values.begin()->second.data_type, (expected_type)); \
/aosp14/frameworks/base/cmds/idmap2/include/idmap2/
H A DResourceUtils.h42 DataType data_type; member
60 bool IsReference(uint8_t data_type);
63 StringPiece DataTypeToString(uint8_t data_type);
H A DFabricatedOverlay.h42 Builder& SetResourceValue(const std::string& resource_name, uint8_t data_type,
45 Builder& SetResourceValue(const std::string& resource_name, uint8_t data_type,
63 DataType data_type; member
/aosp14/frameworks/base/cmds/idmap2/libidmap2/proto/
H A Dfabricated_v1.proto54 uint32 data_type = 1;
/aosp14/frameworks/base/libs/androidfw/include/androidfw/
H A DAssetManager2.h254 Res_value::data_type data;
270 SelectedValue(uint8_t value_type, Res_value::data_type value_data, ApkAssetsCookie cookie, in SelectedValue()
H A DResourceTypes.h407 typedef uint32_t data_type; typedef
408 data_type data;
1869 DataType data_type; member
/aosp14/frameworks/base/libs/androidfw/
H A DStreamingZipInflater.cpp108 mInflateState.data_type = Z_UNKNOWN; in initInflateState()
H A DResourceTypes.cpp5369 static_assert(std::is_same<uint32_t, Res_value::data_type>::value, in U16StringToInt()
5429 outValue->data = static_cast<Res_value::data_type>(val); in U16StringToInt()
/aosp14/frameworks/base/cmds/idmap2/self_targeting/
H A DSelfTargeting.cpp52 const auto dataType = entry_params.data_type; in CreateFrroFile()
/aosp14/frameworks/base/tools/aapt/
H A DZipFile.cpp773 zstream.data_type = Z_UNKNOWN; in compressFpToFp()