Home
last modified time | relevance | path

Searched refs:ReadFlags (Results 1 – 12 of 12) sorted by relevance

/external/libmojo/mojo/public/java/system/src/org/chromium/mojo/system/
DDataPipe.java147 public static class ReadFlags extends Flags<ReadFlags> { class
156 public static final ReadFlags NONE = ReadFlags.none().immutable();
163 private ReadFlags(int flags) { in ReadFlags() method in DataPipe.ReadFlags
174 public ReadFlags setAllOrNone(boolean allOrNone) { in setAllOrNone()
185 public ReadFlags query(boolean query) { in query()
197 public ReadFlags peek(boolean peek) { in peek()
204 public static ReadFlags none() { in none()
205 return new ReadFlags(FLAG_NONE); in none()
291 public int discardData(int numBytes, ReadFlags flags); in discardData()
304 public ResultAnd<Integer> readData(ByteBuffer elements, ReadFlags flags); in readData()
[all …]
DMessagePipeHandle.java91 public static class ReadFlags extends Flags<ReadFlags> { class
98 public static final ReadFlags NONE = ReadFlags.none().immutable();
105 private ReadFlags(int flags) { in ReadFlags() method in MessagePipeHandle.ReadFlags
117 public ReadFlags setMayDiscard(boolean mayDiscard) { in setMayDiscard()
124 public static ReadFlags none() { in none()
125 return new ReadFlags(FLAG_NONE); in none()
223 ByteBuffer bytes, int maxNumberOfHandles, ReadFlags flags); in readMessage()
DInvalidHandle.java173 public int discardData(int numBytes, DataPipe.ReadFlags flags) { in discardData()
181 public ResultAnd<Integer> readData(ByteBuffer elements, DataPipe.ReadFlags flags) { in readData()
190 DataPipe.ReadFlags flags) { in beginReadData()
216 ByteBuffer bytes, int maxNumberOfHandles, ReadFlags flags) { in readMessage()
/external/libmojo/mojo/android/system/src/org/chromium/mojo/system/impl/
DDataPipeConsumerHandleImpl.java8 import org.chromium.mojo.system.DataPipe.ReadFlags;
44 public int discardData(int numBytes, ReadFlags flags) { in discardData()
52 public ResultAnd<Integer> readData(ByteBuffer elements, ReadFlags flags) { in readData()
60 public ByteBuffer beginReadData(int numBytes, ReadFlags flags) { in beginReadData()
DMessagePipeHandleImpl.java54 ByteBuffer bytes, int maxNumberOfHandles, ReadFlags flags) { in readMessage()
DCoreImpl.java306 ByteBuffer bytes, int maxNumberOfHandles, MessagePipeHandle.ReadFlags flags) { in readMessage()
340 int discardData(DataPipeConsumerHandleImpl handle, int numBytes, DataPipe.ReadFlags flags) { in discardData()
353 DataPipeConsumerHandleImpl handle, ByteBuffer elements, DataPipe.ReadFlags flags) { in readData()
372 DataPipeConsumerHandleImpl handle, int numBytes, DataPipe.ReadFlags flags) { in beginReadData()
/external/libmojo/mojo/android/javatests/src/org/chromium/mojo/
DHandleMock.java92 public int discardData(int numBytes, DataPipe.ReadFlags flags) { in discardData()
101 public ResultAnd<Integer> readData(ByteBuffer elements, DataPipe.ReadFlags flags) { in readData()
111 DataPipe.ReadFlags flags) { in beginReadData()
166 ByteBuffer bytes, int maxNumberOfHandles, ReadFlags flags) { in readMessage()
/external/libmojo/mojo/android/javatests/src/org/chromium/mojo/system/impl/
DCoreImplTest.java111 out.readMessage(receiveBuffer, 0, MessagePipeHandle.ReadFlags.NONE); in checkSendingMessage()
118 result = out.readMessage(receiveBuffer, 0, MessagePipeHandle.ReadFlags.NONE); in checkSendingMessage()
142 ResultAnd<Integer> readResult = out.readData(null, DataPipe.ReadFlags.none().query(true)); in checkSendingData()
148 readResult = out.readData(peekBuffer, DataPipe.ReadFlags.none().peek(true)); in checkSendingData()
158 readResult = out.readData(receiveBuffer, DataPipe.ReadFlags.NONE); in checkSendingData()
302 handles.first.readMessage(null, 0, MessagePipeHandle.ReadFlags.NONE); in testMessagePipeEmpty()
361 handles.second.readMessage(receiveBuffer, 0, MessagePipeHandle.ReadFlags.NONE); in testMessagePipeReceiveOnSmallBuffer()
382 handles.second.readMessage(null, 1, MessagePipeHandle.ReadFlags.NONE); in testMessagePipeSendHandles()
449 handles.second.beginReadData(bytes.length, DataPipe.ReadFlags.NONE); in testDataPipeTwoPhaseSend()
480 handles.second.discardData(nbBytesToDiscard, DataPipe.ReadFlags.NONE)); in testDataPipeDiscard()
[all …]
/external/libmojo/mojo/public/java/bindings/src/org/chromium/mojo/bindings/
DConnector.java235 handle.readMessage(null, 0, MessagePipeHandle.ReadFlags.NONE); in readAndDispatchMessage()
243 buffer, readResult.getHandlesCount(), MessagePipeHandle.ReadFlags.NONE); in readAndDispatchMessage()
DExecutorFactory.java127 mReadHandle.readMessage(NOTIFY_BUFFER, 0, MessagePipeHandle.ReadFlags.NONE); in readNotifyBufferMessage()
/external/libmojo/mojo/android/javatests/src/org/chromium/mojo/bindings/
DRouterTest.java69 mHandle.readMessage(receiveBuffer, 0, MessagePipeHandle.ReadFlags.NONE); in testSendingToRouterWithResponse()
142 mHandle.readMessage(receivedResponseMessage, 0, MessagePipeHandle.ReadFlags.NONE); in sendResponseFromRouter()
DConnectorTest.java76 mHandle.readMessage(received, 0, MessagePipeHandle.ReadFlags.NONE); in testSendingMessage()