Home
last modified time | relevance | path

Searched refs:PacketField (Results 1 – 25 of 40) sorted by relevance

12

/system/bt/gd/packet/parser/fields/
Dpacket_field.cc21 PacketField::PacketField(std::string name, ParseLocation loc) : loc_(loc), name_(name) {} in PacketField() function in PacketField
23 std::string PacketField::GetDebugName() const { in GetDebugName()
27 ParseLocation PacketField::GetLocation() const { in GetLocation()
31 std::string PacketField::GetName() const { in GetName()
35 Size PacketField::GetBuilderSize() const { in GetBuilderSize()
39 Size PacketField::GetStructSize() const { in GetStructSize()
43 int PacketField::GenBounds(std::ostream& s, Size start_offset, Size end_offset, Size size) const { in GenBounds()
75 bool PacketField::GenBuilderParameter(std::ostream& s) const { in GenBuilderParameter()
84 bool PacketField::BuilderParameterMustBeMoved() const { in BuilderParameterMustBeMoved()
88 bool PacketField::GenBuilderMember(std::ostream& s) const { in GenBuilderMember()
[all …]
Dgroup_field.h24 class GroupField : public PacketField {
26 GroupField(ParseLocation loc, std::list<PacketField*>* fields);
56 const std::list<PacketField*>* GetFields() const;
59 std::list<PacketField*>* fields_;
Dpacket_field.h27 class PacketField : public Loggable {
29 virtual ~PacketField() = default;
31 PacketField(std::string name, ParseLocation loc);
107 virtual const PacketField* GetElementField() const;
Dgroup_field.cc19 GroupField::GroupField(ParseLocation loc, std::list<PacketField*>* fields) in GroupField()
20 : PacketField("Groups have no name", loc), fields_(fields) {} in GroupField()
82 const std::list<PacketField*>* GroupField::GetFields() const { in GetFields()
Darray_field.h23 class ArrayField : public PacketField {
63 virtual const PacketField* GetElementField() const override;
69 const PacketField* element_field_{nullptr};
Dvector_field.h24 class VectorField : public PacketField {
68 virtual const PacketField* GetElementField() const override;
74 const PacketField* element_field_{nullptr};
Darray_field.cc26 …: PacketField(name, loc), element_field_(new ScalarField("val", element_size, loc)), element_size_… in ArrayField()
36 : PacketField(name, loc), element_field_(type_def->GetNewField("val", loc)), in ArrayField()
175 const PacketField* ArrayField::GetElementField() const { in GetElementField()
Dvector_field.cc26 …: PacketField(name, loc), element_field_(new ScalarField("val", element_size, loc)), element_size_… in VectorField()
36 : PacketField(name, loc), element_field_(type_def->GetNewField("val", loc)), in VectorField()
230 const PacketField* VectorField::GetElementField() const { in GetElementField()
Dpadding_field.cc23 : PacketField("padding_" + std::to_string(size * 8), loc), size_(size * 8) {} in PaddingField()
Dchecksum_start_field.cc23 : PacketField(name + "_start", loc), started_field_name_(name) {} in ChecksumStartField()
Dreserved_field.cc25 : PacketField("ReservedScalar" + std::to_string(unique_id_++), loc), size_(size) {} in ReservedField()
Dreserved_field.h22 class ReservedField : public PacketField {
Dpadding_field.h22 class PaddingField : public PacketField {
Dbody_field.h23 class BodyField : public PacketField {
Dbody_field.cc21 BodyField::BodyField(ParseLocation loc) : PacketField("body", loc) {} in BodyField()
/system/bt/gd/packet/parser/
Dfield_list.h26 using FieldListIterator = std::vector<PacketField*>::const_iterator;
27 using ReverseFieldListIterator = std::vector<PacketField*>::const_reverse_iterator;
33 FieldList(std::vector<PacketField*> fields) { in FieldList()
34 for (PacketField* field : fields) { in FieldList()
47 PacketField* operator[](int index) const {
51 PacketField* GetField(std::string field_name) const { in GetField()
60 void AppendField(PacketField* field) { in AppendField()
65 void PrependField(PacketField* field) { in PrependField()
184 void AddField(PacketField* field) { in AddField()
206 std::vector<PacketField*> field_list_;
[all …]
Dpacket_def.h32 PacketField* GetNewField(const std::string& name, ParseLocation loc) const;
40 void GenParserFieldGetter(std::ostream& s, const PacketField* field) const;
Dchecksum_def.h30 virtual PacketField* GetNewField(const std::string& name, ParseLocation loc) const override;
Dchecksum_def.cc24 PacketField* ChecksumDef::GetNewField(const std::string& name, ParseLocation loc) const { in GetNewField()
Denum_def.h31 virtual PacketField* GetNewField(const std::string& name, ParseLocation loc) const;
Dstruct_parser_generator.h37 const PacketField* packet_field_;
Dtype_def.h46 virtual PacketField* GetNewField(const std::string& name, ParseLocation loc) const = 0;
Dcustom_field_def.h32 virtual PacketField* GetNewField(const std::string& name, ParseLocation loc) const override;
Dstruct_def.h33 PacketField* GetNewField(const std::string& name, ParseLocation loc) const;
Denum_def.cc40 PacketField* EnumDef::GetNewField(const std::string& name, ParseLocation loc) const { in GetNewField()

12