Home
last modified time | relevance | path

Searched refs:BindingsHelper (Results 1 – 10 of 10) sorted by relevance

/external/libchrome/mojo/public/java/bindings/src/org/chromium/mojo/bindings/
DDecoder.java78 if (start % BindingsHelper.ALIGNMENT != 0) { in claimMemory()
90 mMinNextMemory = BindingsHelper.align(end); in claimMemory()
159 } else if (result.size != BindingsHelper.UNION_SIZE) { in readDataHeaderForUnion()
171 mValidator.claimMemory(0, BindingsHelper.UNION_SIZE); in decoderForSerializedUnion()
223 return readDataHeaderForArray(BindingsHelper.POINTER_SIZE, expectedLength); in readDataHeaderForPointerArray()
231 return readDataHeaderForArray(BindingsHelper.UNION_SIZE, expectedLength); in readDataHeaderForUnionArray()
239 if (si.size != BindingsHelper.MAP_STRUCT_HEADER.size) { in readDataHeaderForMap()
243 if (si.elementsOrVersion != BindingsHelper.MAP_STRUCT_HEADER.elementsOrVersion) { in readDataHeaderForMap()
329 Decoder d = readPointer(offset, BindingsHelper.isArrayNullable(arrayNullability)); in readBooleans()
334 byte[] bytes = new byte[(si.elementsOrVersion + 7) / BindingsHelper.ALIGNMENT]; in readBooleans()
[all …]
DEncoder.java58 assert bufferSize % BindingsHelper.ALIGNMENT == 0; in EncoderState()
151 mEncoderState.claimMemory(BindingsHelper.align(s.size)); in encode()
246 ? BindingsHelper.ARRAY_NULLABLE : BindingsHelper.NOTHING_NULLABLE; in encode()
248 BindingsHelper.UNSPECIFIED_ARRAY_LENGTH); in encode()
270 encode(0, offset + BindingsHelper.SERIALIZED_HANDLE_SIZE); in encode()
281 encode(handler.getVersion(), offset + BindingsHelper.SERIALIZED_HANDLE_SIZE); in encode()
288 encode(manager.getVersion(), offset + BindingsHelper.SERIALIZED_HANDLE_SIZE); in encode()
322 return encoderForArray(BindingsHelper.POINTER_SIZE, length, offset, expectedLength); in encodePointerArray()
329 return encoderForArray(BindingsHelper.UNION_SIZE, length, offset, expectedLength); in encodeUnionArray()
337 encodeNullPointer(offset, BindingsHelper.isArrayNullable(arrayNullability)); in encode()
[all …]
DUnion.java33 Encoder encoder = new Encoder(core, BindingsHelper.UNION_SIZE); in serialize()
DBindingsHelper.java13 public class BindingsHelper { class
DRouterImpl.java117 this(messagePipeHandle, BindingsHelper.getWatcherForHandle(messagePipeHandle)); in RouterImpl()
DConnector.java57 this(messagePipeHandle, BindingsHelper.getWatcherForHandle(messagePipeHandle)); in Connector()
DMessageHeader.java199 return (BindingsHelper.equals(mDataHeader, other.mDataHeader) in equals()
/external/libchrome/mojo/public/java/system/javatests/src/org/chromium/mojo/bindings/
DBindingsHelperTest.java34 BindingsHelper.utf8StringSizeInBytes(s)); in testUTF8StringLength()
36 Assert.assertEquals(1, BindingsHelper.utf8StringSizeInBytes("\0")); in testUTF8StringLength()
43 Assert.assertEquals(10, BindingsHelper.utf8StringSizeInBytes(s)); in testUTF8StringLength()
53 for (int i = 0; i < 3 * BindingsHelper.ALIGNMENT; ++i) { in testAlign()
54 int j = BindingsHelper.align(i); in testAlign()
56 Assert.assertTrue(j % BindingsHelper.ALIGNMENT == 0); in testAlign()
57 Assert.assertTrue(j - i < BindingsHelper.ALIGNMENT); in testAlign()
/external/libchrome/mojo/public/tools/bindings/generators/java_templates/
Ddata_types_definition.tmpl6 org.chromium.mojo.bindings.BindingsHelper.UNION_SIZE
8 org.chromium.mojo.bindings.BindingsHelper.POINTER_SIZE
47 …um.mojo.bindings.DataHeader.HEADER_SIZE + org.chromium.mojo.bindings.BindingsHelper.POINTER_SIZE',…
78 …um.mojo.bindings.DataHeader.HEADER_SIZE + org.chromium.mojo.bindings.BindingsHelper.POINTER_SIZE',…
253 encoder0.encode(org.chromium.mojo.bindings.BindingsHelper.UNION_SIZE, offset);
/external/libchrome/
DAndroid.bp1497 "mojo/public/java/bindings/src/org/chromium/mojo/bindings/BindingsHelper.java",