/external/libchrome/mojo/public/cpp/system/ |
D | message_pipe.h | 30 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/ |
D | WatcherImplTest.java | 21 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 …]
|
D | CoreImplTest.java | 22 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 …]
|
/external/libchrome/mojo/public/java/bindings/src/org/chromium/mojo/bindings/ |
D | Connector.java | 8 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 …]
|
D | InterfaceRequest.java | 7 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()
|
D | ExecutorFactory.java | 8 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()
|
D | Interface.java | 18 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()
|
D | RouterImpl.java | 10 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()
|
D | Router.java | 7 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/ |
D | ConnectorTest.java | 22 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()
|
D | RouterTest.java | 22 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()
|
D | ReadAndDispatchMessageTest.java | 22 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()
|
D | BindingsTestUtils.java | 9 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/ |
D | CoreImpl.java | 16 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 …]
|
D | MessagePipeHandleImpl.java | 8 import org.chromium.mojo.system.MessagePipeHandle; 17 class MessagePipeHandleImpl extends HandleBase implements MessagePipeHandle { 36 public MessagePipeHandle pass() { in pass()
|
D | UntypedHandleImpl.java | 9 import org.chromium.mojo.system.MessagePipeHandle; 43 public MessagePipeHandle toMessagePipeHandle() { in toMessagePipeHandle()
|
/external/libchrome/mojo/core/ |
D | message_pipe_perftest.cc | 45 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/ |
D | test_utils.h | 31 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/ |
D | Core.java | 135 public Pair<MessagePipeHandle, MessagePipeHandle> createMessagePipe( in createMessagePipe() 136 MessagePipeHandle.CreateOptions options); in createMessagePipe()
|
D | MessagePipeHandle.java | 14 public interface MessagePipeHandle extends Handle { interface 139 public MessagePipeHandle pass(); in pass()
|
/external/libchrome/mojo/public/cpp/test_support/lib/ |
D | test_utils.cc | 19 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/libchrome/ipc/ |
D | ipc_channel_handle.h | 31 ChannelHandle(mojo::MessagePipeHandle h) : mojo_handle(h) {} 35 mojo::MessagePipeHandle mojo_handle;
|
D | ipc_mojo_param_traits.cc | 13 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()
|
D | ipc_mojo_param_traits.h | 23 struct COMPONENT_EXPORT(IPC) ParamTraits<mojo::MessagePipeHandle> { in COMPONENT_EXPORT() 24 typedef mojo::MessagePipeHandle param_type; in COMPONENT_EXPORT()
|
/external/libchrome/mojo/public/java/system/javatests/src/org/chromium/mojo/ |
D | HandleMock.java | 13 import org.chromium.mojo.system.MessagePipeHandle; 26 public class HandleMock implements UntypedHandle, MessagePipeHandle, ProducerHandle, ConsumerHandle, 167 public MessagePipeHandle toMessagePipeHandle() { in toMessagePipeHandle()
|