Home
last modified time | relevance | path

Searched refs:field_type (Results 1 – 11 of 11) sorted by relevance

/packages/modules/Bluetooth/tools/pdl/src/backends/rust/
Dserializer.rs23 field_type: types::Integer, // The type of the value. field
78 let field_type = types::Integer::new(*width); in add_bit_field() localVariable
79 if field_type.width > *width { in add_bit_field()
91 self.chunk.push(BitField { value: quote!(self.#field_name), field_type, shift }); in add_bit_field()
94 let field_type = types::Integer::new(width); in add_bit_field() localVariable
98 value: quote!(#field_type::from(#enum_id::#tag_id)), in add_bit_field()
99 field_type, in add_bit_field()
104 let field_type = types::Integer::new(width); in add_bit_field() localVariable
106 self.chunk.push(BitField { value: quote!(#value), field_type, shift }); in add_bit_field()
110 let field_type = types::Integer::new(width); in add_bit_field() localVariable
[all …]
Dtypes.rs54 let field_type = Integer::new(*width); in rust_type() localVariable
55 quote!(#field_type) in rust_type()
58 let field_type = format_ident!("{type_id}"); in rust_type() localVariable
59 quote!(#field_type) in rust_type()
62 let field_type = Integer::new(*width); in rust_type() localVariable
64 quote!([#field_type; #size]) in rust_type()
67 let field_type = Integer::new(*width); in rust_type() localVariable
68 quote!(Vec<#field_type>) in rust_type()
71 let field_type = format_ident!("{type_id}"); in rust_type() localVariable
73 quote!([#field_type; #size]) in rust_type()
[all …]
/packages/modules/Bluetooth/tools/pdl/scripts/
Dgenerate_cxx_backend.py160 }}""".format(field_type=field.type.id, field_id=field.id)))
938 field_type = get_cxx_scalar_type(field.width)
947 … """).format(field_type=field_type, accessor_name=accessor_name, member_name=field.id))
958 """).format(field_type=field.type_id,
968 field_type = get_cxx_scalar_type(field.width)
976 """).format(field_type=field_type, accessor_name=accessor_name, value=c.value))
985 """).format(field_type=field.type_id, accessor_name=accessor_name, tag_id=c.tag_id))
/packages/modules/Bluetooth/tools/pdl/tests/
Dpython_generator_test.py57 field_type = field_types[f]
58 values[f] = create_object(field_type, v)
/packages/modules/Bluetooth/system/gd/packet/parser/fields/
Dfixed_enum_field.h36 static const std::string field_type; variable
Dfixed_scalar_field.h40 static const std::string field_type; variable
/packages/modules/Bluetooth/tools/pdl/src/backends/rust_no_allocation/
Dtest.rs73 if let Some(field_type) = type_lookup[curr_type][field_name.as_str()] { in generate_matchers()
103 … if let Some(field_type) = type_lookup[curr_type][field_name.as_str()] { in generate_matchers()
/packages/modules/Bluetooth/system/gd/rust/linux/dbus_projection/dbus_macros/src/
Dlib.rs589 let field_type = if let Type::Path(t) = field.ty { in dbus_propmap() localVariable
610 … let #field_ident = <<#field_type as DBusArg>::DBusType as RefArgToRust>::ref_arg_to_rust( in dbus_propmap()
614 type #field_type_name = #field_type; in dbus_propmap()
/packages/modules/DnsResolver/tests/dns_responder/
Ddns_responder.cpp228 unsigned field_type = *buffer >> 6; in parseField() local
231 if (field_type == 0) { in parseField()
244 } else if (field_type == 3) { in parseField()
/packages/modules/Bluetooth/tools/pdl/src/backends/
Drust.rs272 let field_type = format_ident!("{id}DataChild"); in generate_data_struct() localVariable
273 field_types.push(quote!(#field_type)); in generate_data_struct()
/packages/modules/Bluetooth/system/gd/packet/parser/
Dpacket_def.cc1118 auto field_type = field->GetFieldType(); in GenRustStructImpls() local