Home
last modified time | relevance | path

Searched refs:MessagePipeHandle (Results 1 – 25 of 81) sorted by relevance

1234

/external/libchrome/mojo/public/cpp/system/
Dmessage_pipe.h30 class MessagePipeHandle : public Handle {
32 MessagePipeHandle() {} in MessagePipeHandle() function
33 explicit MessagePipeHandle(MojoHandle value) : Handle(value) {} in MessagePipeHandle() function
38 static_assert(sizeof(MessagePipeHandle) == sizeof(Handle),
41 typedef ScopedHandleBase<MessagePipeHandle> ScopedMessagePipeHandle;
42 static_assert(sizeof(ScopedMessagePipeHandle) == sizeof(MessagePipeHandle),
52 MessagePipeHandle handle0; in CreateMessagePipe()
53 MessagePipeHandle handle1; in CreateMessagePipe()
69 WriteMessageRaw(MessagePipeHandle message_pipe,
84 ReadMessageRaw(MessagePipeHandle message_pipe,
[all …]
/external/libchrome/mojo/public/java/system/javatests/src/org/chromium/mojo/system/impl/
DCoreImplTest.java22 import org.chromium.mojo.system.MessagePipeHandle;
85 private static void checkSendingMessage(MessagePipeHandle in, MessagePipeHandle out) { in checkSendingMessage()
93 in.writeMessage(buffer, null, MessagePipeHandle.WriteFlags.NONE); in checkSendingMessage()
96 ResultAnd<MessagePipeHandle.ReadMessageResult> result = in checkSendingMessage()
97 out.readMessage(MessagePipeHandle.ReadFlags.NONE); in checkSendingMessage()
189 private static void createAndCloseMessagePipe(MessagePipeHandle.CreateOptions options) { in createAndCloseMessagePipe()
191 Pair<MessagePipeHandle, MessagePipeHandle> handles = core.createMessagePipe(options); in createAndCloseMessagePipe()
205 createAndCloseMessagePipe(new MessagePipeHandle.CreateOptions()); in testMessagePipeCreation()
215 Pair<MessagePipeHandle, MessagePipeHandle> handles = core.createMessagePipe(null); in testMessagePipeEmpty()
219 ResultAnd<MessagePipeHandle.ReadMessageResult> readResult = in testMessagePipeEmpty()
[all …]
DWatcherImplTest.java21 import org.chromium.mojo.system.MessagePipeHandle;
81 private MessagePipeHandle mReadPipe;
86 public WatcherResult(MessagePipeHandle readPipe) { in WatcherResult()
101 mReadPipe.readMessage(MessagePipeHandle.ReadFlags.NONE); in onResult()
120 Pair<MessagePipeHandle, MessagePipeHandle> handles = mCore.createMessagePipe(null); in testCorrectResult()
129 ByteBuffer.allocateDirect(1), null, MessagePipeHandle.WriteFlags.NONE); in testCorrectResult()
141 Pair<MessagePipeHandle, MessagePipeHandle> handles = mCore.createMessagePipe(null); in testClosingPeerHandle()
165 Pair<MessagePipeHandle, MessagePipeHandle> handles = mCore.createMessagePipe(null); in testClosingWatchedHandle()
189 Pair<MessagePipeHandle, MessagePipeHandle> handles = mCore.createMessagePipe(null); in testInvalidHandle()
228 Pair<MessagePipeHandle, MessagePipeHandle> handles = mCore.createMessagePipe(null); in testCancel()
[all …]
/external/libchrome/mojo/public/java/bindings/src/org/chromium/mojo/bindings/
DConnector.java8 import org.chromium.mojo.system.MessagePipeHandle;
9 import org.chromium.mojo.system.MessagePipeHandle.ReadMessageResult;
25 public class Connector implements MessageReceiver, HandleOwner<MessagePipeHandle> {
35 private final MessagePipeHandle mMessagePipeHandle;
56 public Connector(MessagePipeHandle messagePipeHandle) { in Connector()
64 public Connector(MessagePipeHandle messagePipeHandle, Watcher watcher) { in Connector()
98 message.getHandles(), MessagePipeHandle.WriteFlags.NONE); in accept()
113 public MessagePipeHandle passHandle() { in passHandle()
115 MessagePipeHandle handle = mMessagePipeHandle.pass(); in passHandle()
196 MessagePipeHandle handle, MessageReceiver receiver) { in readAndDispatchMessage()
[all …]
DInterfaceRequest.java7 import org.chromium.mojo.system.MessagePipeHandle;
18 public class InterfaceRequest<P extends Interface> implements HandleOwner<MessagePipeHandle> {
23 private final MessagePipeHandle mHandle;
30 InterfaceRequest(MessagePipeHandle handle) { in InterfaceRequest()
38 public MessagePipeHandle passHandle() { in passHandle()
55 public static InterfaceRequest asInterfaceRequestUnsafe(MessagePipeHandle handle) { in asInterfaceRequestUnsafe()
DExecutorFactory.java8 import org.chromium.mojo.system.MessagePipeHandle;
9 import org.chromium.mojo.system.MessagePipeHandle.ReadMessageResult;
47 private final MessagePipeHandle mWriteHandle;
51 private final MessagePipeHandle mReadHandle;
72 Pair<MessagePipeHandle, MessagePipeHandle> handles = core.createMessagePipe( in PipedExecutor()
73 new MessagePipeHandle.CreateOptions()); in PipedExecutor()
112 mReadHandle.readMessage(MessagePipeHandle.ReadFlags.NONE); in readNotifyBufferMessage()
148 mWriteHandle.writeMessage(NOTIFY_BUFFER, null, MessagePipeHandle.WriteFlags.NONE); in execute()
DInterface.java18 import org.chromium.mojo.system.MessagePipeHandle;
57 public MessagePipeHandle passHandle(); in passHandle()
177 public MessagePipeHandle passHandle() { in passHandle()
179 HandleOwner<MessagePipeHandle> handleOwner = in passHandle()
180 (HandleOwner<MessagePipeHandle>) mMessageReceiver; in passHandle()
404 public void bind(I impl, MessagePipeHandle handle) { in bind()
424 public final P attachProxy(MessagePipeHandle handle, int version) { in attachProxy()
441 Pair<MessagePipeHandle, MessagePipeHandle> handles = core.createMessagePipe(null); in getInterfaceRequest()
446 public final InterfaceRequest<I> asInterfaceRequest(MessagePipeHandle handle) { in asInterfaceRequest()
DRouterImpl.java10 import org.chromium.mojo.system.MessagePipeHandle;
116 public RouterImpl(MessagePipeHandle messagePipeHandle) { in RouterImpl()
127 public RouterImpl(MessagePipeHandle messagePipeHandle, Watcher watcher) { in RouterImpl()
195 public MessagePipeHandle passHandle() { in passHandle()
DRouter.java7 import org.chromium.mojo.system.MessagePipeHandle;
14 public interface Router extends MessageReceiverWithResponder, HandleOwner<MessagePipeHandle> {
/external/libchrome/mojo/public/java/system/javatests/src/org/chromium/mojo/bindings/
DConnectorTest.java22 import org.chromium.mojo.system.MessagePipeHandle;
41 private MessagePipeHandle mHandle;
53 Pair<MessagePipeHandle, MessagePipeHandle> handles = in setUp()
54 core.createMessagePipe(new MessagePipeHandle.CreateOptions()); in setUp()
84 ResultAnd<MessagePipeHandle.ReadMessageResult> result = in testSendingMessage()
85 mHandle.readMessage(MessagePipeHandle.ReadFlags.NONE); in testSendingMessage()
98 mTestMessage.getData(), new ArrayList<Handle>(), MessagePipeHandle.WriteFlags.NONE); in testReceivingMessage()
DRouterTest.java22 import org.chromium.mojo.system.MessagePipeHandle;
39 private MessagePipeHandle mHandle;
50 Pair<MessagePipeHandle, MessagePipeHandle> handles = core.createMessagePipe(null); in setUp()
75 ResultAnd<MessagePipeHandle.ReadMessageResult> result = in testSendingToRouterWithResponse()
76 mHandle.readMessage(MessagePipeHandle.ReadFlags.NONE); in testSendingToRouterWithResponse()
95 MessagePipeHandle.WriteFlags.NONE); in testSendingToRouterWithResponse()
120 MessagePipeHandle.WriteFlags.NONE); in sendMessageToRouter()
149 ResultAnd<MessagePipeHandle.ReadMessageResult> result = in sendResponseFromRouter()
150 mHandle.readMessage(MessagePipeHandle.ReadFlags.NONE); in sendResponseFromRouter()
DReadAndDispatchMessageTest.java22 import org.chromium.mojo.system.MessagePipeHandle;
44 private Pair<MessagePipeHandle, MessagePipeHandle> mHandles;
57 mHandles = core.createMessagePipe(new MessagePipeHandle.CreateOptions()); in setUp()
80 mHandles.first.writeMessage(mData, mHandlesToSend, MessagePipeHandle.WriteFlags.NONE); in testReadAndDispatchMessage()
DBindingsTestUtils.java9 import org.chromium.mojo.system.MessagePipeHandle;
96 Pair<MessagePipeHandle, MessagePipeHandle> handles = in newProxyOverPipe()
/external/libchrome/mojo/public/java/system/src/org/chromium/mojo/system/impl/
DCoreImpl.java16 import org.chromium.mojo.system.MessagePipeHandle;
97 public Pair<MessagePipeHandle, MessagePipeHandle> createMessagePipe( in createMessagePipe()
98 MessagePipeHandle.CreateOptions options) { in createMessagePipe()
109 return Pair.<MessagePipeHandle, MessagePipeHandle>create( in createMessagePipe()
222 List<? extends Handle> handles, MessagePipeHandle.WriteFlags flags) { in writeMessage()
249 ResultAnd<MessagePipeHandle.ReadMessageResult> readMessage( in readMessage()
250 MessagePipeHandleImpl handle, MessagePipeHandle.ReadFlags flags) { in readMessage()
251 ResultAnd<MessagePipeHandle.ReadMessageResult> result = in readMessage()
258 MessagePipeHandle.ReadMessageResult readResult = result.getValue(); in readMessage()
451 private static ResultAnd<MessagePipeHandle.ReadMessageResult> newReadMessageResult( in newReadMessageResult()
[all …]
DMessagePipeHandleImpl.java8 import org.chromium.mojo.system.MessagePipeHandle;
17 class MessagePipeHandleImpl extends HandleBase implements MessagePipeHandle {
36 public MessagePipeHandle pass() { in pass()
DUntypedHandleImpl.java9 import org.chromium.mojo.system.MessagePipeHandle;
43 public MessagePipeHandle toMessagePipeHandle() { in toMessagePipeHandle()
/external/libchrome/mojo/core/
Dmessage_pipe_perftest.cc45 WriteMessageRaw(MessagePipeHandle(mp), payload_.data(), payload_.size(), in WriteWaitThenRead()
51 CHECK_EQ(ReadMessageRaw(MessagePipeHandle(mp), &read_buffer_, nullptr, in WriteWaitThenRead()
58 CHECK_EQ(WriteMessageRaw(MessagePipeHandle(mp), "", 0, nullptr, 0, in SendQuitMessage()
104 CHECK_EQ(ReadMessageRaw(MessagePipeHandle(mp), &buffer, nullptr, in RunPingPongClient()
113 WriteMessageRaw(MessagePipeHandle(mp), buffer.data(), buffer.size(), in RunPingPongClient()
/external/libchrome/mojo/public/cpp/test_support/
Dtest_utils.h31 bool WriteTextMessage(const MessagePipeHandle& handle, const std::string& text);
36 bool ReadTextMessage(const MessagePipeHandle& handle, std::string* text);
40 bool DiscardMessage(const MessagePipeHandle& handle);
/external/libchrome/mojo/public/java/system/src/org/chromium/mojo/system/
DCore.java135 public Pair<MessagePipeHandle, MessagePipeHandle> createMessagePipe( in createMessagePipe()
136 MessagePipeHandle.CreateOptions options); in createMessagePipe()
/external/libchrome/mojo/public/cpp/test_support/lib/
Dtest_utils.cc19 bool WriteTextMessage(const MessagePipeHandle& handle, in WriteTextMessage()
30 bool ReadTextMessage(const MessagePipeHandle& handle, std::string* text) { in ReadTextMessage()
47 bool DiscardMessage(const MessagePipeHandle& handle) { in DiscardMessage()
/external/cronet/ipc/
Dipc_mojo_param_traits.cc14 void ParamTraits<mojo::MessagePipeHandle>::Write(base::Pickle* m, in Write()
21 bool ParamTraits<mojo::MessagePipeHandle>::Read(const base::Pickle* m, in Read()
38 void ParamTraits<mojo::MessagePipeHandle>::Log(const param_type& p, in Log()
Dipc_channel_handle.h29 ChannelHandle(mojo::MessagePipeHandle h) : mojo_handle(h) {}
33 mojo::MessagePipeHandle mojo_handle;
/external/libchrome/ipc/
Dipc_mojo_param_traits.cc13 void ParamTraits<mojo::MessagePipeHandle>::Write(base::Pickle* m, in Write()
20 bool ParamTraits<mojo::MessagePipeHandle>::Read(const base::Pickle* m, in Read()
37 void ParamTraits<mojo::MessagePipeHandle>::Log(const param_type& p, in Log()
Dipc_channel_handle.h31 ChannelHandle(mojo::MessagePipeHandle h) : mojo_handle(h) {}
35 mojo::MessagePipeHandle mojo_handle;
/external/libchrome/mojo/public/java/system/javatests/src/org/chromium/mojo/
DHandleMock.java13 import org.chromium.mojo.system.MessagePipeHandle;
26 public class HandleMock implements UntypedHandle, MessagePipeHandle, ProducerHandle, ConsumerHandle,
167 public MessagePipeHandle toMessagePipeHandle() { in toMessagePipeHandle()

1234