Home
last modified time | relevance | path

Searched refs:DataElementSize (Results 1 – 5 of 5) sorted by relevance

/system/bt/profile/sdp/common/test/
Ddata_element_reader_test.cc68 constexpr uint8_t Desc(DataElementType t, DataElementSize s) { in Desc()
85 {Desc(DataElementType::BOOLEAN, DataElementSize::BYTE1), 0x01},
89 {Desc(DataElementType::BOOLEAN, DataElementSize::BYTE1), 0x00},
95 {Desc(DataElementType::SIGNED_INT, DataElementSize::BYTE1), 0xFF},
98 {Desc(DataElementType::SIGNED_INT, DataElementSize::BYTE2), 0xFF, 0xFF},
100 ValidTestParam{{Desc(DataElementType::SIGNED_INT, DataElementSize::BYTE4),
103 ValidTestParam{{Desc(DataElementType::SIGNED_INT, DataElementSize::BYTE8),
106 ValidTestParam{{Desc(DataElementType::SIGNED_INT, DataElementSize::BYTE16),
115 {Desc(DataElementType::UNSIGNED_INT, DataElementSize::BYTE1), 0x01},
117 ValidTestParam{{Desc(DataElementType::UNSIGNED_INT, DataElementSize::BYTE2),
[all …]
/system/bt/profile/sdp/common/
Ddata_element_reader.cc45 DataElementSize size = static_cast<DataElementSize>(descriptor & 0b00000111); in ReadNext()
55 if (size != DataElementSize::BYTE1) { in ReadNext()
108 DataElementSize size) { in ReadSignedInt()
110 case DataElementSize::BYTE1: in ReadSignedInt()
112 case DataElementSize::BYTE2: in ReadSignedInt()
114 case DataElementSize::BYTE4: in ReadSignedInt()
116 case DataElementSize::BYTE8: in ReadSignedInt()
118 case DataElementSize::BYTE16: in ReadSignedInt()
128 DataElementSize size) { in ReadUnsignedInt()
130 case DataElementSize::BYTE1: in ReadUnsignedInt()
[all …]
Ddata_element_reader.h54 DataElement ReadSignedInt(DataElementSize size);
55 DataElement ReadUnsignedInt(DataElementSize size);
56 DataElement ReadUuid(DataElementSize size);
57 DataElement ReadString(DataElementSize size);
58 DataElement ReadSequence(DataElementSize size);
/system/bt/profile/sdp/
Dsdp_logging_helper.h103 inline std::string DataElementSizeText(const DataElementSize& size) { in DataElementSizeText()
105 CASE_RETURN_TEXT(DataElementSize::BYTE1); in DataElementSizeText()
106 CASE_RETURN_TEXT(DataElementSize::BYTE2); in DataElementSizeText()
107 CASE_RETURN_TEXT(DataElementSize::BYTE4); in DataElementSizeText()
108 CASE_RETURN_TEXT(DataElementSize::BYTE8); in DataElementSizeText()
109 CASE_RETURN_TEXT(DataElementSize::BYTE16); in DataElementSizeText()
110 CASE_RETURN_TEXT(DataElementSize::ADDITIONAL_8BIT); in DataElementSizeText()
111 CASE_RETURN_TEXT(DataElementSize::ADDITIONAL_16BIT); in DataElementSizeText()
112 CASE_RETURN_TEXT(DataElementSize::ADDITIONAL_32BIT); in DataElementSizeText()
118 inline std::ostream& operator<<(std::ostream& os, const DataElementSize& size) {
Dsdp_common.h81 enum class DataElementSize : uint8_t { enum