Home
last modified time | relevance | path

Searched refs:message_handle (Results 1 – 13 of 13) sorted by relevance

/external/libchrome/mojo/public/cpp/system/
Dmessage_pipe.cc17 ScopedMessageHandle message_handle; in WriteMessageRaw() local
18 MojoResult rv = CreateMessage(&message_handle); in WriteMessageRaw()
26 rv = MojoAppendMessageData(message_handle->value(), in WriteMessageRaw()
41 message_handle.release().value(), &write_options); in WriteMessageRaw()
48 ScopedMessageHandle message_handle; in ReadMessageRaw() local
49 MojoResult rv = ReadMessageNew(message_pipe, &message_handle, flags); in ReadMessageRaw()
53 rv = MojoSerializeMessage(message_handle->value(), nullptr); in ReadMessageRaw()
60 rv = MojoGetMessageData(message_handle->value(), nullptr, &buffer, &num_bytes, in ReadMessageRaw()
66 message_handle->value(), nullptr, &buffer, &num_bytes, in ReadMessageRaw()
/external/libchrome/mojo/core/
Dmessage_unittest.cc51 MojoMessageHandle* message_handle) { in UnwrapMessageHandle() argument
53 std::swap(handle, *message_handle); in UnwrapMessageHandle()
69 static void SerializeMessageContext(MojoMessageHandle message_handle, in SerializeMessageContext() argument
85 message_handle, base::checked_cast<uint32_t>(num_bytes), handles.data(), in SerializeMessageContext()
179 MojoMessageHandle message_handle; in TEST_F() local
181 ASSERT_EQ(MOJO_RESULT_OK, MojoCreateMessage(nullptr, &message_handle)); in TEST_F()
182 ASSERT_EQ(MOJO_RESULT_OK, MojoSetMessageContext(message_handle, 0, nullptr, in TEST_F()
184 ASSERT_EQ(MOJO_RESULT_OK, MojoDestroyMessage(message_handle)); in TEST_F()
389 MojoMessageHandle message_handle; in TEST_F() local
390 EXPECT_EQ(MOJO_RESULT_OK, MojoCreateMessage(nullptr, &message_handle)); in TEST_F()
[all …]
Dcore.h189 MojoMessageHandle* message_handle);
190 MojoResult DestroyMessage(MojoMessageHandle message_handle);
191 MojoResult SerializeMessage(MojoMessageHandle message_handle,
193 MojoResult AppendMessageData(MojoMessageHandle message_handle,
200 MojoResult GetMessageData(MojoMessageHandle message_handle,
206 MojoResult SetMessageContext(MojoMessageHandle message_handle,
211 MojoResult GetMessageContext(MojoMessageHandle message_handle,
221 MojoMessageHandle message_handle,
225 MojoMessageHandle* message_handle);
229 MojoResult NotifyBadMessage(MojoMessageHandle message_handle,
Dcore.cc380 MojoMessageHandle* message_handle) { in CreateMessage() argument
381 if (!message_handle) in CreateMessage()
385 *message_handle = reinterpret_cast<MojoMessageHandle>( in CreateMessage()
390 MojoResult Core::DestroyMessage(MojoMessageHandle message_handle) { in DestroyMessage() argument
391 if (!message_handle) in DestroyMessage()
395 delete reinterpret_cast<ports::UserMessageEvent*>(message_handle); in DestroyMessage()
399 MojoResult Core::SerializeMessage(MojoMessageHandle message_handle, in SerializeMessage() argument
401 if (!message_handle) in SerializeMessage()
406 return reinterpret_cast<ports::UserMessageEvent*>(message_handle) in SerializeMessage()
411 MojoResult Core::AppendMessageData(MojoMessageHandle message_handle, in AppendMessageData() argument
[all …]
Dcore_unittest.cc263 MojoMessageHandle message_handle; in TEST_F() local
265 core()->ReadMessage(h_passing[1], nullptr, &message_handle)); in TEST_F()
268 core()->GetMessageContext(message_handle, nullptr, &context)); in TEST_F()
272 ASSERT_EQ(MOJO_RESULT_OK, MojoDestroyMessage(message_handle)); in TEST_F()
Dmessage_pipe_unittest.cc58 MojoMessageHandle message_handle; in ReadMessage() local
60 MojoReadMessage(message_pipe_handle, nullptr, &message_handle); in ReadMessage()
66 rv = MojoGetMessageData(message_handle, nullptr, &buffer, num_bytes, in ReadMessage()
77 CHECK_EQ(MOJO_RESULT_OK, MojoDestroyMessage(message_handle)); in ReadMessage()
/external/libchrome/mojo/public/c/system/
Dthunks.cc176 MojoMessageHandle message_handle, in MojoWriteMessage() argument
178 return INVOKE_THUNK(WriteMessage, message_pipe_handle, message_handle, in MojoWriteMessage()
184 MojoMessageHandle* message_handle) { in MojoReadMessage() argument
186 message_handle); in MojoReadMessage()
Dthunks.h51 MojoMessageHandle message_handle,
55 MojoMessageHandle* message_handle);
/external/perfetto/include/perfetto/protozero/
DBUILD.gn23 "message_handle.h",
/external/libchrome/mojo/public/cpp/bindings/lib/
Dmessage.cc495 ScopedMessageHandle message_handle; in ReadMessage() local
497 ReadMessageNew(handle, &message_handle, MOJO_READ_MESSAGE_FLAG_NONE); in ReadMessage()
501 *message = Message(std::move(message_handle)); in ReadMessage()
/external/perfetto/src/protozero/
DBUILD.gn33 "message_handle.cc",
/external/perfetto/
DBUILD415 "include/perfetto/protozero/message_handle.h",
666 "src/protozero/message_handle.cc",
DAndroid.bp6325 "src/protozero/message_handle.cc",