Home
last modified time | relevance | path

Searched refs:size_field (Results 1 – 14 of 14) sorted by relevance

/packages/modules/Bluetooth/tools/pdl/src/backends/rust/
Dparser.rs307 } else if let Some(size_field) = self.find_size_field(id) { in add_array_field()
308 ArrayShape::SizeField(size_field) in add_array_field()
322 (ElementWidth::Unknown, ArrayShape::SizeField(size_field)) => { in add_array_field()
326 self.check_size(&quote!(#size_field)); in add_array_field()
330 let (head, tail) = #span.get().split_at(#size_field); in add_array_field()
413 let array_size = if let ArrayShape::SizeField(size_field) = &array_shape { in add_array_field()
414 self.check_size(&quote!(#size_field)); in add_array_field()
415 quote!(#size_field) in add_array_field()
520 let size_field = size_field_ident(field_id); in add_payload_field() localVariable
521 self.check_size(&quote!(#size_field )); in add_payload_field()
[all …]
/packages/modules/Bluetooth/system/gd/packet/parser/fields/
Dbody_field.cc23 void BodyField::SetSizeField(const SizeField* size_field) { in SetSizeField() argument
25 … ERROR(this, size_field_, size_field) << "The size field for the body has already been assigned."; in SetSizeField()
27 size_field_ = size_field; in SetSizeField()
Dpayload_field.cc25 void PayloadField::SetSizeField(const SizeField* size_field) { in SetSizeField() argument
27 …ERROR(this, size_field_, size_field) << "The size field for the payload has already been assigned.… in SetSizeField()
30 size_field_ = size_field; in SetSizeField()
Dvector_field.cc213 void VectorField::SetSizeField(const SizeField* size_field) { in SetSizeField() argument
214 if (size_field->GetFieldType() == CountField::kFieldType && !size_modifier_.empty()) { in SetSizeField()
215 ERROR(this, size_field) << "Can not use count field to describe array with a size modifier." in SetSizeField()
219 size_field_ = size_field; in SetSizeField()
Dbody_field.h31 void SetSizeField(const SizeField* size_field);
Dpayload_field.h31 void SetSizeField(const SizeField* size_field);
Dvector_field.h62 void SetSizeField(const SizeField* size_field);
/packages/modules/Bluetooth/system/gd/packet/parser/
Dparent_def.cc75 const SizeField* size_field = static_cast<SizeField*>(field); in AssignSizeFields() local
77 const auto& var_len_field = fields_.GetField(size_field->GetSizedFieldName()); in AssignSizeFields()
84 for (auto it = fields_.begin(); *it != size_field; it++) { in AssignSizeFields()
87 …ERROR(var_len_field, size_field) << "Size/count field must come before the variable length field i… in AssignSizeFields()
93 payload_field->SetSizeField(size_field); in AssignSizeFields()
99 body_field->SetSizeField(size_field); in AssignSizeFields()
105 vector_field->SetSizeField(size_field); in AssignSizeFields()
111 ERROR(field, size_field) << "Can not use size/count in reference to a fixed size field.\n"; in AssignSizeFields()
DAndroid.bp34 "fields/size_field.cc",
DBUILD.gn57 "fields/size_field.cc",
/packages/modules/Bluetooth/tools/pdl/src/
Dpdl.pest38 size_field = { "_size_" ~ "(" ~ (identifier|payload_identifier|body_identifier) ~ ")" ~ ":" ~ inte…
58 size_field |
Danalyzer.rs1205 if let Some(size_field) = decl.fields().find(|field| match &field.desc { in check_array_fields()
1214 .with_message(format!("redundant array {} field", size_field.kind())) in check_array_fields()
1216 size_field.loc.primary(), in check_array_fields()
Dparser.rs403 Rule::size_field => { in parse_field()
/packages/modules/Bluetooth/tools/pdl/doc/
Dreference.md388 > &nbsp;&nbsp; [size_field](#fields-size) |\
489 > size_field:\