/external/libmojo/mojo/public/c/system/ |
D | thunks.h | 42 MojoResult (*Close)(MojoHandle handle); 43 MojoResult (*Wait)(MojoHandle handle, 47 MojoResult (*WaitMany)(const MojoHandle* handles, 55 MojoHandle* message_pipe_handle0, 56 MojoHandle* message_pipe_handle1); 57 MojoResult (*WriteMessage)(MojoHandle message_pipe_handle, 60 const MojoHandle* handles, 63 MojoResult (*ReadMessage)(MojoHandle message_pipe_handle, 66 MojoHandle* handles, 70 MojoHandle* data_pipe_producer_handle, [all …]
|
D | thunks.cc | 20 MojoResult MojoClose(MojoHandle handle) { in MojoClose() 25 MojoResult MojoWait(MojoHandle handle, in MojoWait() 33 MojoResult MojoWaitMany(const MojoHandle* handles, in MojoWaitMany() 45 MojoHandle* message_pipe_handle0, in MojoCreateMessagePipe() 46 MojoHandle* message_pipe_handle1) { in MojoCreateMessagePipe() 52 MojoResult MojoWriteMessage(MojoHandle message_pipe_handle, in MojoWriteMessage() 55 const MojoHandle* handles, in MojoWriteMessage() 63 MojoResult MojoReadMessage(MojoHandle message_pipe_handle, in MojoReadMessage() 66 MojoHandle* handles, in MojoReadMessage() 75 MojoHandle* data_pipe_producer_handle, in MojoCreateDataPipe() [all …]
|
D | message_pipe.h | 122 MojoHandle* message_pipe_handle0, // Out. 123 MojoHandle* message_pipe_handle1); // Out. 154 MojoWriteMessage(MojoHandle message_pipe_handle, 157 const MojoHandle* handles, // Optional. 168 MojoWriteMessageNew(MojoHandle message_pipe_handle, 204 MojoReadMessage(MojoHandle message_pipe_handle, 207 MojoHandle* handles, // Optional out. 228 MojoReadMessageNew(MojoHandle message_pipe_handle, 231 MojoHandle* handles, // Optional out. 257 MojoFuseMessagePipes(MojoHandle handle0, MojoHandle handle1); [all …]
|
D | wait_set.h | 35 MojoHandle* wait_set_handle); // Out. 58 MojoHandle wait_set_handle, 59 MojoHandle handle, 76 MojoHandle wait_set_handle, 77 MojoHandle handle); 127 MojoHandle wait_set_handle, 129 MojoHandle* handles, // Out.
|
D | data_pipe.h | 132 MojoHandle* data_pipe_producer_handle, // Out. 133 MojoHandle* data_pipe_consumer_handle); // Out. 172 MojoWriteData(MojoHandle data_pipe_producer_handle, 218 MojoBeginWriteData(MojoHandle data_pipe_producer_handle, 246 MojoEndWriteData(MojoHandle data_pipe_producer_handle, 293 MOJO_SYSTEM_EXPORT MojoResult MojoReadData(MojoHandle data_pipe_consumer_handle, 336 MojoBeginReadData(MojoHandle data_pipe_consumer_handle, 361 MojoEndReadData(MojoHandle data_pipe_consumer_handle,
|
D | functions.h | 55 MOJO_SYSTEM_EXPORT MojoResult MojoClose(MojoHandle handle); 89 MojoWait(MojoHandle handle, 134 MojoWaitMany(const MojoHandle* handles, 183 MojoWatch(MojoHandle handle, 207 MojoCancelWatch(MojoHandle handle, uintptr_t context);
|
D | platform_handle.h | 104 MojoHandle* mojo_handle); // Out 119 MojoUnwrapPlatformHandle(MojoHandle mojo_handle, 149 MojoHandle* mojo_handle); // Out 175 MojoHandle mojo_handle,
|
D | buffer.h | 129 MojoHandle* shared_buffer_handle); // Out. 148 MojoHandle buffer_handle, 150 MojoHandle* new_buffer_handle); // Out. 174 MOJO_SYSTEM_EXPORT MojoResult MojoMapBuffer(MojoHandle buffer_handle,
|
/external/libmojo/mojo/edk/system/ |
D | core.h | 53 scoped_refptr<Dispatcher> GetDispatcher(MojoHandle handle); 89 MojoHandle AddDispatcher(scoped_refptr<Dispatcher> dispatcher); 95 MojoHandle* handles); 99 MojoHandle* wrapper_handle); 101 MojoResult PassWrappedPlatformHandle(MojoHandle wrapper_handle, 108 MojoHandle* mojo_wrapper_handle); 111 MojoHandle mojo_handle, 137 MojoResult Close(MojoHandle handle); 138 MojoResult Wait(MojoHandle handle, 142 MojoResult WaitMany(const MojoHandle* handles, [all …]
|
D | shared_buffer_unittest.cc | 25 MojoHandle h = CreateBuffer(message.size()); in TEST_F() 32 MojoHandle h = CreateBuffer(message.size()); in TEST_F() 35 MojoHandle dupe = DuplicateBuffer(h, false); in TEST_F() 41 MojoHandle h = CreateBuffer(message.size()); in TEST_F() 44 MojoHandle dupe = DuplicateBuffer(h, false); in TEST_F() 45 MojoHandle p0, p1; in TEST_F() 59 MojoHandle b; in DEFINE_TEST_CLIENT_TEST_WITH_PIPE() 68 MojoHandle b = CreateBuffer(message.size()); in TEST_F() 71 MojoHandle dupe = DuplicateBuffer(b, false); in TEST_F() 83 MojoHandle b = CreateBuffer(message.size()); in DEFINE_TEST_CLIENT_TEST_WITH_PIPE() [all …]
|
D | core.cc | 164 scoped_refptr<Dispatcher> Core::GetDispatcher(MojoHandle handle) { in GetDispatcher() 194 MojoHandle handle = AddDispatcher(new MessagePipeDispatcher( in ConnectToPeerProcess() 216 MojoHandle Core::AddDispatcher(scoped_refptr<Dispatcher> dispatcher) { in AddDispatcher() 223 MojoHandle* handles) { in AddDispatchersFromTransit() 240 MojoHandle* wrapper_handle) { in CreatePlatformHandleWrapper() 241 MojoHandle h = AddDispatcher( in CreatePlatformHandleWrapper() 250 MojoHandle wrapper_handle, in PassWrappedPlatformHandle() 272 MojoHandle* mojo_wrapper_handle) { in CreateSharedBufferWrapper() 285 MojoHandle h = AddDispatcher(dispatcher); in CreateSharedBufferWrapper() 293 MojoHandle mojo_handle, in PassSharedMemoryHandle() [all …]
|
D | multiprocess_message_pipe_unittest.cc | 48 explicit CommandDrivenClientController(MojoHandle h) : h_(h) {} in CommandDrivenClientController() 55 void SendHandle(const std::string& name, MojoHandle p) { in SendHandle() 60 MojoHandle RetrieveHandle(const std::string& name) { in RetrieveHandle() 62 MojoHandle p; in RetrieveHandle() 70 MojoHandle h_; 236 MojoHandle handles[10]; in DEFINE_TEST_CLIENT_WITH_PIPE() 301 MojoHandle shared_buffer; in TEST_F() 308 MojoHandle duplicated_shared_buffer; in TEST_F() 314 MojoHandle handles[1]; in TEST_F() 383 MojoHandle handles[255]; // Maximum number to receive. in DEFINE_TEST_CLIENT_WITH_PIPE() [all …]
|
D | handle_table.h | 25 MojoHandle AddDispatcher(scoped_refptr<Dispatcher> dispatcher); 31 MojoHandle* handles); 33 scoped_refptr<Dispatcher> GetDispatcher(MojoHandle handle) const; 34 MojoResult GetAndRemoveDispatcher(MojoHandle, 41 const MojoHandle* handles, 50 void GetActiveHandlesForTest(std::vector<MojoHandle> *handles); 63 using HandleMap = base::hash_map<MojoHandle, Entry>;
|
D | handle_table.cc | 18 MojoHandle HandleTable::AddDispatcher(scoped_refptr<Dispatcher> dispatcher) { in AddDispatcher() 23 MojoHandle handle = next_available_handle_++; in AddDispatcher() 33 MojoHandle* handles) { in AddDispatchersFromTransit() 44 MojoHandle handle = next_available_handle_++; in AddDispatchersFromTransit() 54 scoped_refptr<Dispatcher> HandleTable::GetDispatcher(MojoHandle handle) const { in GetDispatcher() 62 MojoHandle handle, in GetAndRemoveDispatcher() 76 const MojoHandle* handles, in BeginTransit() 119 void HandleTable::GetActiveHandlesForTest(std::vector<MojoHandle>* handles) { in GetActiveHandlesForTest()
|
D | message_pipe_perftest.cc | 44 void WriteWaitThenRead(MojoHandle mp) { in WriteWaitThenRead() 60 void SendQuitMessage(MojoHandle mp) { in SendQuitMessage() 66 void Measure(MojoHandle mp) { in Measure() 82 void RunPingPongServer(MojoHandle mp) { in RunPingPongServer() 95 static int RunPingPongClient(MojoHandle mp) { in RunPingPongClient() 139 MojoHandle server_handle, client_handle; in TEST_F()
|
D | message_pipe_unittest.cc | 36 MojoResult WriteMessage(MojoHandle message_pipe_handle, in WriteMessage() 43 MojoResult ReadMessage(MojoHandle message_pipe_handle, in ReadMessage() 52 MojoHandle pipe0_, pipe1_; 451 MojoHandle a, b; in TEST_F() 487 MojoHandle handles[kPingPongHandlesPerIteration]; in DEFINE_TEST_CLIENT_TEST_WITH_PIPE() 501 MojoHandle p, c[kPingPongHandlesPerIteration]; in TEST_F() 520 MojoHandle p[kPingPongHandlesPerIteration], c; in TEST_F() 538 MojoHandle buffers[kPingPongHandlesPerIteration]; in TEST_F() 558 MojoHandle a, b, c, d; in TEST_F() 584 MojoHandle a, b, c, d; in TEST_F() [all …]
|
/external/libmojo/mojo/edk/embedder/ |
D | entrypoints.cc | 27 MojoResult MojoCloseImpl(MojoHandle handle) { in MojoCloseImpl() 31 MojoResult MojoWaitImpl(MojoHandle handle, in MojoWaitImpl() 38 MojoResult MojoWaitManyImpl(const MojoHandle* handles, in MojoWaitManyImpl() 48 MojoResult MojoWatchImpl(MojoHandle handle, in MojoWatchImpl() 55 MojoResult MojoCancelWatchImpl(MojoHandle handle, uintptr_t context) { in MojoCancelWatchImpl() 60 const MojoHandle* handles, in MojoAllocMessageImpl() 75 MojoResult MojoCreateWaitSetImpl(MojoHandle* wait_set_handle) { in MojoCreateWaitSetImpl() 79 MojoResult MojoAddHandleImpl(MojoHandle wait_set_handle, in MojoAddHandleImpl() 80 MojoHandle handle, in MojoAddHandleImpl() 85 MojoResult MojoRemoveHandleImpl(MojoHandle wait_set_handle, MojoHandle handle) { in MojoRemoveHandleImpl() [all …]
|
D | embedder_unittest.cc | 60 MojoHandle server_mp, client_mp; in TEST_F() 76 MojoHandle server_mp, client_mp; in TEST_F() 79 MojoHandle server_mp2, client_mp2; in TEST_F() 86 MojoHandle server_mp3, client_mp3; in TEST_F() 101 MojoHandle port; in TEST_F() 120 MojoHandle server_mp, client_mp; in TEST_F() 123 MojoHandle server_mp2, client_mp2; in TEST_F() 149 MojoHandle server_mp, client_mp; in TEST_F() 154 MojoHandle h0, h1; in TEST_F() 269 MojoHandle mp0, mp1; in TEST_F() [all …]
|
D | embedder.h | 88 MojoHandle* platform_handle_wrapper_handle); 94 PassWrappedPlatformHandle(MojoHandle platform_handle_wrapper_handle, 106 MojoHandle* mojo_wrapper_handle); 116 PassSharedMemoryHandle(MojoHandle mojo_handle,
|
/external/libmojo/mojo/edk/test/ |
D | mojo_test_base.h | 45 MojoHandle pipe() const { return pipe_.get().value(); } in pipe() 81 static void CloseHandle(MojoHandle h); 86 static void CreateMessagePipe(MojoHandle* p0, MojoHandle* p1); 89 static void WriteMessageWithHandles(MojoHandle mp, 91 const MojoHandle* handles, 95 static void WriteMessage(MojoHandle mp, const std::string& message); 99 static std::string ReadMessageWithHandles(MojoHandle mp, 100 MojoHandle* handles, 105 static std::string ReadMessageWithOptionalHandle(MojoHandle mp, 106 MojoHandle* handle); [all …]
|
D | mojo_test_base.cc | 101 void MojoTestBase::CloseHandle(MojoHandle h) { in CloseHandle() 106 void MojoTestBase::CreateMessagePipe(MojoHandle *p0, MojoHandle* p1) { in CreateMessagePipe() 113 void MojoTestBase::WriteMessageWithHandles(MojoHandle mp, in WriteMessageWithHandles() 115 const MojoHandle *handles, in WriteMessageWithHandles() 124 void MojoTestBase::WriteMessage(MojoHandle mp, const std::string& message) { in WriteMessage() 130 MojoHandle mp, in ReadMessageWithHandles() 131 MojoHandle* handles, in ReadMessageWithHandles() 155 std::string MojoTestBase::ReadMessageWithOptionalHandle(MojoHandle mp, in ReadMessageWithOptionalHandle() 156 MojoHandle* handle) { in ReadMessageWithOptionalHandle() 186 std::string MojoTestBase::ReadMessage(MojoHandle mp) { in ReadMessage() [all …]
|
/external/libmojo/mojo/public/cpp/system/tests/ |
D | core_unittest.cc | 44 Handle h1(static_cast<MojoHandle>(123)); in TEST() 45 EXPECT_EQ(static_cast<MojoHandle>(123), h1.value()); in TEST() 46 EXPECT_EQ(static_cast<MojoHandle>(123), *h1.mutable_value()); in TEST() 48 *h1.mutable_value() = static_cast<MojoHandle>(456); in TEST() 49 EXPECT_EQ(static_cast<MojoHandle>(456), h1.value()); in TEST() 53 EXPECT_EQ(static_cast<MojoHandle>(456), h0.value()); in TEST() 57 h1.set_value(static_cast<MojoHandle>(789)); in TEST() 59 EXPECT_EQ(static_cast<MojoHandle>(789), h0.value()); in TEST() 61 EXPECT_EQ(static_cast<MojoHandle>(456), h1.value()); in TEST() 66 EXPECT_EQ(static_cast<MojoHandle>(789), h2.value()); in TEST() [all …]
|
/external/libmojo/mojo/public/cpp/system/ |
D | handle.h | 145 const MojoHandle kInvalidHandleValue = MOJO_HANDLE_INVALID; 151 explicit Handle(MojoHandle value) : value_(value) {} in Handle() 155 MojoHandle temp = value_; in swap() 162 const MojoHandle& value() const { return value_; } in value() 163 MojoHandle* mutable_value() { return &value_; } in mutable_value() 164 void set_value(MojoHandle value) { value_ = value; } in set_value() 174 MojoHandle value_; 180 static_assert(sizeof(Handle) == sizeof(MojoHandle), "Bad size for C++ Handle"); 251 MojoWaitMany(reinterpret_cast<const MojoHandle*>(&first_handle), in WaitMany() 279 reinterpret_cast<const MojoHandle*>(&first_handle), &first_signals, in WaitMany()
|
D | message_pipe.h | 30 explicit MessagePipeHandle(MojoHandle value) : Handle(value) {} in MessagePipeHandle() 73 const MojoHandle* handles, in WriteMessageRaw() 85 MojoHandle* handles, in ReadMessageRaw() 106 MojoHandle* handles, in ReadMessageNew()
|
/external/libmojo/mojo/android/system/ |
D | core_impl.cc | 51 const MojoHandle* handle_start = in WaitMany() 52 reinterpret_cast<const MojoHandle*>(buffer_start); in WaitMany() 78 MojoHandle handle1; in CreateMessagePipe() 79 MojoHandle handle2; in CreateMessagePipe() 98 MojoHandle handle1; in CreateDataPipe() 99 MojoHandle handle2; in CreateDataPipe() 119 MojoHandle handle; in CreateSharedBuffer() 162 const MojoHandle* handles = 0; in WriteMessage() 166 static_cast<MojoHandle*>(env->GetDirectBufferAddress(handles_buffer)); in WriteMessage() 188 MojoHandle* handles = 0; in ReadMessage() [all …]
|