Home
last modified time | relevance | path

Searched refs:elementsOrVersion (Results 1 – 6 of 6) sorted by relevance

/external/libchrome/mojo/public/java/bindings/src/org/chromium/mojo/bindings/
DDecoder.java154 if (result.elementsOrVersion != 0) { in readDataHeaderForUnion()
157 + result.elementsOrVersion); in readDataHeaderForUnion()
180 int elementsOrVersion = readInt(offset + DataHeader.ELEMENTS_OR_VERSION_OFFSET); in readDataHeaderAtOffset() local
185 if (elementsOrVersion < 0 && (!isUnion || elementsOrVersion != -1)) { in readDataHeaderAtOffset()
190 return new DataHeader(size, elementsOrVersion); in readDataHeaderAtOffset()
196 if (header.elementsOrVersion <= versionArray[maxVersionIndex].elementsOrVersion) { in readAndValidateDataHeader()
200 if (header.elementsOrVersion >= dataHeader.elementsOrVersion) { in readAndValidateDataHeader()
243 if (si.elementsOrVersion != BindingsHelper.MAP_STRUCT_HEADER.elementsOrVersion) { in readDataHeaderForMap()
334 byte[] bytes = new byte[(si.elementsOrVersion + 7) / BindingsHelper.ALIGNMENT]; in readBooleans()
337 boolean[] result = new boolean[si.elementsOrVersion]; in readBooleans()
[all …]
DDataHeader.java35 public final int elementsOrVersion; field in DataHeader
40 public DataHeader(int size, int elementsOrVersion) { in DataHeader() argument
43 this.elementsOrVersion = elementsOrVersion; in DataHeader()
53 result = prime * result + elementsOrVersion; in hashCode()
68 return (elementsOrVersion == other.elementsOrVersion && size == other.size); in equals()
DMessageHeader.java225 if (dataHeader.elementsOrVersion < SIMPLE_MESSAGE_VERSION) { in validateDataHeader()
227 + SIMPLE_MESSAGE_VERSION + ", but got: " + dataHeader.elementsOrVersion); in validateDataHeader()
234 if (dataHeader.elementsOrVersion == SIMPLE_MESSAGE_VERSION in validateDataHeader()
240 if (dataHeader.elementsOrVersion == MESSAGE_WITH_REQUEST_ID_VERSION in validateDataHeader()
DEncoder.java153 encode(s.elementsOrVersion, DataHeader.ELEMENTS_OR_VERSION_OFFSET); in encode()
/external/libchrome/libchrome_tools/patch/
D580fcef.patch34 final int elementsOrVersion = mainDataHeader.elementsOrVersion;
35 result = new ArcPackageInfo(elementsOrVersion);
48 if (elementsOrVersion >= 11) {
54 if (elementsOrVersion >= 25) {
60 if (elementsOrVersion >= 0) {
89 final int elementsOrVersion = mainDataHeader.elementsOrVersion;
90 result = new {{struct|name}}(elementsOrVersion);
100 if (elementsOrVersion >= {{packed_field.min_version}}) {
/external/libchrome/mojo/public/tools/bindings/generators/java_templates/
Ddata_types_definition.tmpl86 {{variable}} = {{kind|new_array('si'~(level+1)~'.elementsOrVersion')}};
87 for (int i{{level+1}} = 0; i{{level+1}} < si{{level+1}}.elementsOrVersion; ++i{{level+1}}) {
176 final int elementsOrVersion = mainDataHeader.elementsOrVersion;
177 result = new {{struct|name}}(elementsOrVersion);
188 if (elementsOrVersion >= {{packed_field.min_version}}) {
287 switch (dataHeader.elementsOrVersion) {