Home
last modified time | relevance | path

Searched refs:packed_field (Results 1 – 8 of 8) sorted by relevance

/external/libchrome/mojo/public/tools/bindings/pylib/mojom/generate/
Dpack.py142 for packed_field in src_fields:
143 if packed_field.field.min_version is None:
146 assert packed_field.field.min_version >= next_min_version
147 next_min_version = packed_field.field.min_version
148 packed_field.min_version = next_min_version
150 if (packed_field.min_version != 0 and
151 mojom.IsReferenceKind(packed_field.field.kind) and
152 not packed_field.field.kind.is_nullable):
155 % (self.struct.name, packed_field.field.name,
156 packed_field.min_version))
[all …]
/external/libchrome/mojo/public/tools/bindings/generators/js_templates/
Dstruct_definition.tmpl20 {%- for packed_field in struct.packed.packed_fields %}
21 this.{{packed_field.field.name}} = {{packed_field.field|default_value}};
105 {%- for packed_field in struct.packed.packed_fields_in_ordinal_order %}
106 {%- set offset = packed_field|field_offset %}
107 {%- set field = packed_field.field %}
112 {% if packed_field.min_version > last_checked_version %}
113 {% set last_checked_version = packed_field.min_version %}
115 if (!messageValidator.isFieldInStructVersion(offset, {{packed_field.min_version}}))
138 {%- for packed_field in byte.packed_fields %}
139 val.{{packed_field.field.name}} = (packed >> {{packed_field.bit}}) & 1 ? true : false;
[all …]
/external/libchrome/mojo/public/tools/bindings/generators/cpp_templates/
Dstruct_definition.tmpl54 {%- for packed_field in struct.packed.packed_fields_in_ordinal_order %}
55 {%- set kind = packed_field.field.kind %}
58 {%- if packed_field.min_version > last_checked_version %}
59 {%- set last_checked_version = packed_field.min_version %}
60 if (object->header_.version < {{packed_field.min_version}})
63 {%- set field_expr = "object->" ~ packed_field.field.name %}
64 {{validation_macros.validate_field(packed_field.field, loop.index, field_expr, struct.name, true)}}
Dstruct_declaration.tmpl33 {%- for packed_field in struct.packed.packed_fields %}
34 {%- set name = packed_field.field.name %}
35 {%- set kind = packed_field.field.kind %}
43 {%- set pad = next_pf.offset - (packed_field.offset + packed_field.size) %}
/external/libchrome/libchrome_tools/patch/
D580fcef.patch94 {%- for packed_field in byte.packed_fields %}
98 {%- set _ = prev_ver.append(packed_field.min_version) %}
100 if (elementsOrVersion >= {{packed_field.min_version}}) {
104 …{{decode('result.' ~ packed_field.field|name, packed_field.field.kind, 8+packed_field.offset, pack…
/external/libchrome/mojo/public/tools/bindings/generators/js_templates/externs/
Dstruct_definition.tmpl3 {%- for packed_field in struct.packed.packed_fields %}
4 /** @type { {{packed_field.field.kind|closure_type_with_nullability}} } */
5 this.{{packed_field.field.name}};
/external/libchrome/mojo/public/tools/bindings/generators/java_templates/
Ddata_types_definition.tmpl181 {%- for packed_field in byte.packed_fields %}
182 {%- if packed_field.min_version != prev_ver[-1] %}
186 {%- set _ = prev_ver.append(packed_field.min_version) %}
188 if (elementsOrVersion >= {{packed_field.min_version}}) {
192 …{{decode('result.' ~ packed_field.field|name, packed_field.field.kind, 8+packed_field.offset, pack…
215 {%- for packed_field in byte.packed_fields %}
216 …{{encode('this.' ~ packed_field.field|name, packed_field.field.kind, 8+packed_field.offset, packed…
/external/libchrome/mojo/public/tools/bindings/generators/
Dmojom_js_generator.py176 def JavaScriptFieldOffset(packed_field): argument
177 return "offset + codec.kStructHeaderSize + %s" % packed_field.offset