/external/libchrome/mojo/public/c/system/ |
D | thunks.h | 40 MojoResult (*Close)(MojoHandle handle); 42 MojoHandle handle, 48 MojoHandle* message_pipe_handle0, 49 MojoHandle* message_pipe_handle1); 50 MojoResult (*WriteMessage)(MojoHandle message_pipe_handle, 53 MojoResult (*ReadMessage)(MojoHandle message_pipe_handle, 57 MojoHandle handle0, 58 MojoHandle handle1, 71 const MojoHandle* handles, 80 MojoHandle* handles, [all …]
|
D | thunks.cc | 158 MojoResult MojoClose(MojoHandle handle) { in MojoClose() 163 MojoHandle handle, in MojoQueryHandleSignalsState() 169 MojoHandle* message_pipe_handle0, in MojoCreateMessagePipe() 170 MojoHandle* message_pipe_handle1) { in MojoCreateMessagePipe() 175 MojoResult MojoWriteMessage(MojoHandle message_pipe_handle, in MojoWriteMessage() 182 MojoResult MojoReadMessage(MojoHandle message_pipe_handle, in MojoReadMessage() 189 MojoResult MojoFuseMessagePipes(MojoHandle handle0, in MojoFuseMessagePipes() 190 MojoHandle handle1, in MojoFuseMessagePipes() 196 MojoHandle* data_pipe_producer_handle, in MojoCreateDataPipe() 197 MojoHandle* data_pipe_consumer_handle) { in MojoCreateDataPipe() [all …]
|
D | data_pipe.h | 211 MojoHandle* data_pipe_producer_handle, 212 MojoHandle* data_pipe_consumer_handle); 243 MojoWriteData(MojoHandle data_pipe_producer_handle, 277 MojoBeginWriteData(MojoHandle data_pipe_producer_handle, 306 MojoEndWriteData(MojoHandle data_pipe_producer_handle, 358 MojoReadData(MojoHandle data_pipe_consumer_handle, 390 MojoBeginReadData(MojoHandle data_pipe_consumer_handle, 417 MojoEndReadData(MojoHandle data_pipe_consumer_handle,
|
D | invitation.h | 272 MojoHandle* invitation_handle); 312 MojoHandle invitation_handle, 316 MojoHandle* message_pipe_handle); 353 MojoHandle invitation_handle, 357 MojoHandle* message_pipe_handle); 408 MojoHandle invitation_handle, 450 MojoHandle* invitation_handle);
|
D | message_pipe.h | 266 MojoHandle* message_pipe_handle0, // Out. 267 MojoHandle* message_pipe_handle1); // Out. 287 MojoWriteMessage(MojoHandle message_pipe_handle, 308 MojoReadMessage(MojoHandle message_pipe_handle, 336 MojoFuseMessagePipes(MojoHandle handle0, 337 MojoHandle handle1, 448 const MojoHandle* handles, 507 MojoHandle* handles,
|
D | buffer.h | 142 MojoHandle* shared_buffer_handle); 169 MojoHandle buffer_handle, 171 MojoHandle* new_buffer_handle); 197 MojoMapBuffer(MojoHandle buffer_handle, 230 MojoGetBufferInfo(MojoHandle buffer_handle,
|
D | trap.h | 207 MojoHandle* trap_handle); 243 MojoAddTrigger(MojoHandle trap_handle, 244 MojoHandle handle, 271 MojoRemoveTrigger(MojoHandle trap_handle, 313 MojoArmTrap(MojoHandle trap_handle,
|
/external/libchrome/mojo/core/ |
D | core.h | 59 scoped_refptr<Dispatcher> GetDispatcher(MojoHandle handle); 60 scoped_refptr<Dispatcher> GetAndRemoveDispatcher(MojoHandle handle); 70 MojoHandle CreatePartialMessagePipe(ports::PortRef* peer); 74 MojoHandle CreatePartialMessagePipe(const ports::PortRef& port); 99 MojoHandle ExtractMessagePipeFromInvitation(const std::string& name); 122 MojoHandle AddDispatcher(scoped_refptr<Dispatcher> dispatcher); 128 MojoHandle* handles); 135 const MojoHandle* handles, 169 MojoResult Close(MojoHandle handle); 170 MojoResult QueryHandleSignalsState(MojoHandle handle, [all …]
|
D | shared_buffer_unittest.cc | 28 MojoHandle h = CreateBuffer(message.size()); in TEST_F() 35 MojoHandle h = CreateBuffer(message.size()); in TEST_F() 38 MojoHandle dupe = DuplicateBuffer(h, false); in TEST_F() 44 MojoHandle h = CreateBuffer(message.size()); in TEST_F() 47 MojoHandle dupe = DuplicateBuffer(h, false); in TEST_F() 48 MojoHandle p0, p1; in TEST_F() 62 MojoHandle b; in DEFINE_TEST_CLIENT_TEST_WITH_PIPE() 71 MojoHandle b = CreateBuffer(message.size()); in TEST_F() 73 RunTestClient("CopyToBufferClient", [&](MojoHandle h) { in TEST_F() 74 MojoHandle dupe = DuplicateBuffer(b, false); in TEST_F() [all …]
|
D | entrypoints.cc | 32 MojoResult MojoCloseImpl(MojoHandle handle) { in MojoCloseImpl() 37 MojoHandle handle, in MojoQueryHandleSignalsStateImpl() 44 MojoHandle* message_pipe_handle0, in MojoCreateMessagePipeImpl() 45 MojoHandle* message_pipe_handle1) { in MojoCreateMessagePipeImpl() 50 MojoResult MojoWriteMessageImpl(MojoHandle message_pipe_handle, in MojoWriteMessageImpl() 56 MojoResult MojoReadMessageImpl(MojoHandle message_pipe_handle, in MojoReadMessageImpl() 63 MojoHandle handle0, in MojoFuseMessagePipesImpl() 64 MojoHandle handle1, in MojoFuseMessagePipesImpl() 87 const MojoHandle* handles, in MojoAppendMessageDataImpl() 100 MojoHandle* handles, in MojoGetMessageDataImpl() [all …]
|
D | multiprocess_message_pipe_unittest.cc | 47 MojoResult MojoReadMessage(MojoHandle pipe, in MojoReadMessage() 50 MojoHandle* out_handles, in MojoReadMessage() 77 MojoResult MojoWriteMessage(MojoHandle pipe, in MojoWriteMessage() 80 const MojoHandle* handles, in MojoWriteMessage() 93 explicit CommandDrivenClientController(MojoHandle h) : h_(h) {} in CommandDrivenClientController() 100 void SendHandle(const std::string& name, MojoHandle p) { in SendHandle() 105 MojoHandle RetrieveHandle(const std::string& name) { in RetrieveHandle() 107 MojoHandle p; in RetrieveHandle() 115 MojoHandle h_; 175 int exit_code = RunTestClientAndGetExitCode("EchoEcho", [&](MojoHandle h) { in TEST_P() [all …]
|
D | embedder_unittest.cc | 48 MojoResult CreateSharedBufferFromRegion(T&& region, MojoHandle* handle) { in CreateSharedBufferFromRegion() 61 MojoResult ExtractRegionFromSharedBuffer(MojoHandle handle, T* region) { in ExtractRegionFromSharedBuffer() 81 MojoHandle server_mp, client_mp; in TEST_F() 97 MojoHandle server_mp, client_mp; in TEST_F() 100 MojoHandle server_mp2, client_mp2; in TEST_F() 126 MojoHandle server_mp, client_mp; in TEST_F() 131 MojoHandle h0, h1; in TEST_F() 188 RunTestClient("MultiprocessChannelsClient", [&](MojoHandle server_mp) { in TEST_F() 196 MojoHandle mp0, mp1; in TEST_F() 207 MojoHandle mp2 = MOJO_HANDLE_INVALID; in TEST_F() [all …]
|
D | invitation_unittest.cc | 48 MojoHandle* primordial_pipes, 60 MojoHandle* primordial_pipes, 95 MojoHandle invitation; in TEST_F() 107 MojoHandle invitation; in TEST_F() 119 MojoHandle pipe; in TEST_F() 200 MojoHandle accepted_invitation; in TEST_F() 215 MojoHandle invitation; in TEST_F() 218 MojoHandle pipe0 = MOJO_HANDLE_INVALID; in TEST_F() 223 MojoHandle pipe1 = MOJO_HANDLE_INVALID; in TEST_F() 240 MojoHandle invitation; in TEST_F() [all …]
|
D | handle_table.h | 32 MojoHandle AddDispatcher(scoped_refptr<Dispatcher> dispatcher); 38 MojoHandle* handles); 40 scoped_refptr<Dispatcher> GetDispatcher(MojoHandle handle) const; 41 MojoResult GetAndRemoveDispatcher(MojoHandle, 48 const MojoHandle* handles, 57 void GetActiveHandlesForTest(std::vector<MojoHandle>* handles); 76 using HandleMap = base::hash_map<MojoHandle, Entry>;
|
D | trap_unittest.cc | 40 MojoResult CreateTrap(MojoHandle* handle) { in CreateTrap() 121 MojoHandle t; in TEST_F() 129 MojoHandle buffer_handle = CreateBuffer(42); in TEST_F() 155 MojoHandle a, b; in TEST_F() 171 MojoHandle t; in TEST_F() 218 MojoHandle a, b; in TEST_F() 227 MojoHandle t; in TEST_F() 244 MojoHandle a, b; in TEST_F() 256 MojoHandle t; in TEST_F() 292 MojoHandle producer, consumer; in TEST_F() [all …]
|
D | core.cc | 160 scoped_refptr<Dispatcher> Core::GetDispatcher(MojoHandle handle) { in GetDispatcher() 165 scoped_refptr<Dispatcher> Core::GetAndRemoveDispatcher(MojoHandle handle) { in GetAndRemoveDispatcher() 177 MojoHandle Core::CreatePartialMessagePipe(ports::PortRef* peer) { in CreatePartialMessagePipe() 185 MojoHandle Core::CreatePartialMessagePipe(const ports::PortRef& port) { in CreatePartialMessagePipe() 228 MojoHandle Core::AddDispatcher(scoped_refptr<Dispatcher> dispatcher) { in AddDispatcher() 235 MojoHandle* handles) { in AddDispatchersFromTransit() 253 const MojoHandle* handles, in AcquireDispatchersForTransit() 277 MojoHandle Core::ExtractMessagePipeFromInvitation(const std::string& name) { in ExtractMessagePipeFromInvitation() 281 MojoHandle handle = AddDispatcher(new MessagePipeDispatcher( in ExtractMessagePipeFromInvitation() 291 MojoResult Core::Close(MojoHandle handle) { in Close() [all …]
|
D | message_pipe_perftest.cc | 43 void WriteWaitThenRead(MojoHandle mp) { in WriteWaitThenRead() 57 void SendQuitMessage(MojoHandle mp) { in SendQuitMessage() 63 void Measure(MojoHandle mp) { in Measure() 79 void RunPingPongServer(MojoHandle mp) { in RunPingPongServer() 92 static int RunPingPongClient(MojoHandle mp) { in RunPingPongClient() 132 MojoHandle server_handle, client_handle; in TEST_F() 156 RunTestClient("PingPongClient", [&](MojoHandle h) { RunPingPongServer(h); }); in TEST_F()
|
D | handle_table.cc | 51 MojoHandle HandleTable::AddDispatcher(scoped_refptr<Dispatcher> dispatcher) { in AddDispatcher() 56 MojoHandle handle = next_available_handle_++; in AddDispatcher() 66 MojoHandle* handles) { in AddDispatchersFromTransit() 77 MojoHandle handle = MOJO_HANDLE_INVALID; in AddDispatchersFromTransit() 90 scoped_refptr<Dispatcher> HandleTable::GetDispatcher(MojoHandle handle) const { in GetDispatcher() 98 MojoHandle handle, in GetAndRemoveDispatcher() 112 const MojoHandle* handles, in BeginTransit() 154 void HandleTable::GetActiveHandlesForTest(std::vector<MojoHandle>* handles) { in GetActiveHandlesForTest()
|
D | message_pipe_unittest.cc | 46 MojoResult WriteMessage(MojoHandle message_pipe_handle, in WriteMessage() 54 MojoResult ReadMessage(MojoHandle message_pipe_handle, in ReadMessage() 81 MojoHandle pipe0_, pipe1_; 324 MojoHandle handles[kPingPongHandlesPerIteration]; in DEFINE_TEST_CLIENT_TEST_WITH_PIPE() 337 MojoHandle p, c[kPingPongHandlesPerIteration]; in TEST_F() 343 RunTestClient("HandlePingPong", [&](MojoHandle h) { in TEST_F() 356 MojoHandle p[kPingPongHandlesPerIteration], c; in TEST_F() 362 RunTestClient("HandlePingPong", [&](MojoHandle h) { in TEST_F() 374 MojoHandle buffers[kPingPongHandlesPerIteration]; in TEST_F() 378 RunTestClient("HandlePingPong", [&](MojoHandle h) { in TEST_F() [all …]
|
D | message_unittest.cc | 65 virtual void SerializeHandles(MojoHandle* handles) = 0; 75 std::vector<MojoHandle> handles(num_handles); in SerializeMessageContext() 114 void SerializeHandles(MojoHandle* handles) override { NOTREACHED(); } in SerializeHandles() 146 void SerializeHandles(MojoHandle* handles) override { in SerializeHandles() 193 MojoHandle a, b; in TEST_F() 238 RunTestClient("ReceiveMessageNoHandles", [&](MojoHandle h) { in TEST_F() 246 RunTestClient("ReceiveMessageNoHandles", [&](MojoHandle h) { in TEST_F() 271 MojoHandle h1; in DEFINE_TEST_CLIENT_TEST_WITH_PIPE() 278 RunTestClient("ReceiveMessageOneHandle", [&](MojoHandle h) { in TEST_F() 291 MojoHandle handles[4]; in DEFINE_TEST_CLIENT_TEST_WITH_PIPE() [all …]
|
/external/libchrome/mojo/core/test/ |
D | mojo_test_base.h | 43 MojoHandle pipe() const { return pipe_.get().value(); } in pipe() 75 static void CloseHandle(MojoHandle h); 80 static void CreateMessagePipe(MojoHandle* p0, MojoHandle* p1); 83 static void WriteMessageWithHandles(MojoHandle mp, 85 const MojoHandle* handles, 89 static void WriteMessage(MojoHandle mp, const std::string& message); 93 static std::string ReadMessageWithHandles(MojoHandle mp, 94 MojoHandle* handles, 99 static std::string ReadMessageWithOptionalHandle(MojoHandle mp, 100 MojoHandle* handle); [all …]
|
D | mojo_test_base.cc | 96 void MojoTestBase::CloseHandle(MojoHandle h) { in CloseHandle() 101 void MojoTestBase::CreateMessagePipe(MojoHandle* p0, MojoHandle* p1) { in CreateMessagePipe() 108 void MojoTestBase::WriteMessageWithHandles(MojoHandle mp, in WriteMessageWithHandles() 110 const MojoHandle* handles, in WriteMessageWithHandles() 119 void MojoTestBase::WriteMessage(MojoHandle mp, const std::string& message) { in WriteMessage() 125 MojoHandle mp, in ReadMessageWithHandles() 126 MojoHandle* out_handles, in ReadMessageWithHandles() 143 std::string MojoTestBase::ReadMessageWithOptionalHandle(MojoHandle mp, in ReadMessageWithOptionalHandle() 144 MojoHandle* handle) { in ReadMessageWithOptionalHandle() 164 std::string MojoTestBase::ReadMessage(MojoHandle mp) { in ReadMessage() [all …]
|
/external/libchrome/mojo/public/cpp/system/tests/ |
D | core_unittest.cc | 46 Handle h1(static_cast<MojoHandle>(123)); in TEST() 47 EXPECT_EQ(static_cast<MojoHandle>(123), h1.value()); in TEST() 48 EXPECT_EQ(static_cast<MojoHandle>(123), *h1.mutable_value()); in TEST() 50 *h1.mutable_value() = static_cast<MojoHandle>(456); in TEST() 51 EXPECT_EQ(static_cast<MojoHandle>(456), h1.value()); in TEST() 55 EXPECT_EQ(static_cast<MojoHandle>(456), h0.value()); in TEST() 59 h1.set_value(static_cast<MojoHandle>(789)); in TEST() 61 EXPECT_EQ(static_cast<MojoHandle>(789), h0.value()); in TEST() 63 EXPECT_EQ(static_cast<MojoHandle>(456), h1.value()); in TEST() 68 EXPECT_EQ(static_cast<MojoHandle>(789), h2.value()); in TEST() [all …]
|
/external/libchrome/mojo/public/cpp/system/ |
D | handle.h | 152 const MojoHandle kInvalidHandleValue = MOJO_HANDLE_INVALID; 158 explicit Handle(MojoHandle value) : value_(value) {} in Handle() 162 MojoHandle temp = value_; in swap() 171 const MojoHandle& value() const { return value_; } in value() 172 MojoHandle* mutable_value() { return &value_; } in mutable_value() 173 void set_value(MojoHandle value) { value_ = value; } in set_value() 191 MojoHandle value_; 197 static_assert(sizeof(Handle) == sizeof(MojoHandle), "Bad size for C++ Handle");
|
/external/libchrome/mojo/public/cpp/bindings/tests/ |
D | e2e_perftest.cc | 119 MojoHandle client_mp, in RunTestOnTaskRunner() 138 void RunTests(MojoHandle client_mp, const std::string& test_name) { in RunTests() 170 MojoHandle service_mp; in DEFINE_TEST_CLIENT_TEST_WITH_PIPE() 186 RunTestClient("PingService", [&](MojoHandle mp) { in TEST_F() 187 MojoHandle client_mp, service_mp; in TEST_F() 196 RunTestClient("PingService", [&](MojoHandle mp) { in TEST_F() 197 MojoHandle client_mp, service_mp; in TEST_F()
|