Home
last modified time | relevance | path

Searched refs:num_leading_bits (Results 1 – 22 of 22) sorted by relevance

/system/bt/gd/packet/parser/fields/
Dscalar_field.cc51 int num_leading_bits = 0; in GenBounds() local
55 num_leading_bits = start_offset.bits() % 8; in GenBounds()
58 num_leading_bits = GetShiftBits(end_offset.bits() + size.bits()); in GenBounds()
59 Size byte_offset = Size(num_leading_bits + size.bits()) + end_offset; in GenBounds()
64 return num_leading_bits; in GenBounds()
67 void ScalarField::GenExtractor(std::ostream& s, int num_leading_bits, bool) const { in GenExtractor() argument
72 std::string extract_type = util::GetTypeForSize(size.bits() + num_leading_bits); in GenExtractor()
76 if (num_leading_bits != 0) { in GenExtractor()
77 s << "extracted_value >>= " << num_leading_bits << ";"; in GenExtractor()
101 int num_leading_bits = GenBounds(s, start_offset, end_offset, GetSize()); in GenGetter() local
[all …]
Darray_field.cc86 void ArrayField::GenExtractor(std::ostream& s, int num_leading_bits, bool for_struct) const { in GenExtractor() argument
101 element_field_->GenExtractor(s, num_leading_bits, for_struct); in GenExtractor()
121 int num_leading_bits = GenBounds(s, start_offset, end_offset, GetSize()); in GenGetter() local
124 GenExtractor(s, num_leading_bits, false); in GenGetter()
Dvariable_length_struct_field.cc63 int num_leading_bits = GenBounds(s, start_offset, end_offset, GetSize()); in GenGetter() local
65 GenExtractor(s, num_leading_bits, false); in GenGetter()
Dstruct_field.cc58 int num_leading_bits = GenBounds(s, start_offset, end_offset, GetSize()); in GenGetter() local
61 GenExtractor(s, num_leading_bits, false); in GenGetter()
Dvector_field.cc110 void VectorField::GenExtractor(std::ostream& s, int num_leading_bits, bool for_struct) const { in GenExtractor() argument
136 element_field_->GenExtractor(s, num_leading_bits, for_struct); in GenExtractor()
159 int num_leading_bits = GenBounds(s, start_offset, end_offset, GetSize()); in GenGetter() local
162 GenExtractor(s, num_leading_bits, false); in GenGetter()
Dcustom_field.cc65 int num_leading_bits = GenBounds(s, start_offset, end_offset, GetSize()); in GenGetter() local
69 GenExtractor(s, num_leading_bits, false); in GenGetter()
Dreserved_field.h34 virtual void GenExtractor(std::ostream& s, int num_leading_bits, bool for_struct) const override;
Dpadding_field.h38 virtual void GenExtractor(std::ostream& s, int num_leading_bits, bool for_struct) const override;
Dcustom_field_fixed_size.h34 virtual void GenExtractor(std::ostream& s, int num_leading_bits, bool for_struct) const override;
Dbody_field.h37 virtual void GenExtractor(std::ostream& s, int num_leading_bits, bool for_struct) const override;
Dgroup_field.h40 virtual void GenExtractor(std::ostream& s, int num_leading_bits, bool for_struct) const override;
Dchecksum_start_field.h36 virtual void GenExtractor(std::ostream& s, int num_leading_bits, bool for_struct) const override;
Dchecksum_field.h33 virtual void GenExtractor(std::ostream& s, int num_leading_bits, bool for_struct) const override;
Dvariable_length_struct_field.h36 virtual void GenExtractor(std::ostream& s, int num_leading_bits, bool for_struct) const override;
Dscalar_field.h36 virtual void GenExtractor(std::ostream& s, int num_leading_bits, bool for_struct) const override;
Dstruct_field.h36 virtual void GenExtractor(std::ostream& s, int num_leading_bits, bool for_struct) const override;
Dcustom_field.h36 virtual void GenExtractor(std::ostream& s, int num_leading_bits, bool for_struct) const override;
Dpayload_field.h37 virtual void GenExtractor(std::ostream& s, int num_leading_bits, bool for_struct) const override;
Dpacket_field.h51 virtual void GenExtractor(std::ostream& s, int num_leading_bits, bool for_struct) const = 0;
Darray_field.h41 virtual void GenExtractor(std::ostream& s, int num_leading_bits, bool for_struct) const override;
Dvector_field.h42 virtual void GenExtractor(std::ostream& s, int num_leading_bits, bool for_struct) const override;
/system/bt/gd/packet/parser/
Dstruct_def.cc142 int num_leading_bits = in GenParse() local
145 field->GenExtractor(s, num_leading_bits, true); in GenParse()
150 int num_leading_bits = in GenParse() local
153 field->GenExtractor(s, num_leading_bits, true); in GenParse()