/external/libchrome/ipc/ |
D | ipc_message_attachment.cc | 70 MojoPlatformHandle platform_handle = { in TakeMojoHandle() local 71 sizeof(platform_handle), MOJO_PLATFORM_HANDLE_TYPE_MACH_PORT, in TakeMojoHandle() 74 if (MojoWrapPlatformHandle(&platform_handle, nullptr, &wrapped_handle) != in TakeMojoHandle() 84 MojoPlatformHandle platform_handle = { in TakeMojoHandle() local 85 sizeof(platform_handle), MOJO_PLATFORM_HANDLE_TYPE_FUCHSIA_HANDLE, in TakeMojoHandle() 88 if (MojoWrapPlatformHandle(&platform_handle, nullptr, &wrapped_handle) != in TakeMojoHandle() 113 MojoPlatformHandle platform_handle = {sizeof(platform_handle), 0, 0}; in CreateFromMojoHandle() local 115 handle.release().value(), nullptr, &platform_handle); in CreateFromMojoHandle() 122 if (platform_handle.type == MOJO_PLATFORM_HANDLE_TYPE_FILE_DESCRIPTOR) in CreateFromMojoHandle() 123 file = static_cast<base::PlatformFile>(platform_handle.value); in CreateFromMojoHandle() [all …]
|
/external/libchrome/mojo/public/cpp/system/ |
D | platform_handle.cc | 183 MojoPlatformHandle platform_handle; in WrapPlatformHandle() local 184 PlatformHandle::ToMojoPlatformHandle(std::move(handle), &platform_handle); in WrapPlatformHandle() 188 MojoWrapPlatformHandle(&platform_handle, nullptr, &wrapped_handle); in WrapPlatformHandle() 195 MojoPlatformHandle platform_handle; in UnwrapPlatformHandle() local 196 platform_handle.struct_size = sizeof(platform_handle); in UnwrapPlatformHandle() 198 nullptr, &platform_handle); in UnwrapPlatformHandle() 201 return PlatformHandle::FromMojoPlatformHandle(&platform_handle); in UnwrapPlatformHandle() 206 MojoPlatformHandle platform_handle; in WrapPlatformFile() local 207 platform_handle.struct_size = sizeof(MojoPlatformHandle); in WrapPlatformFile() 208 platform_handle.type = kPlatformFileHandleType; in WrapPlatformFile() [all …]
|
D | invitation.cc | 31 PlatformHandle platform_handle, in PlatformHandleToTransportEndpoint() argument 34 PlatformHandle::ToMojoPlatformHandle(std::move(platform_handle), in PlatformHandleToTransportEndpoint() 66 MojoPlatformHandle platform_handle; in SendInvitation() local 69 &platform_handle, &endpoint); in SendInvitation()
|
/external/libchrome/mojo/core/ |
D | platform_wrapper_unittest.cc | 99 MojoPlatformHandle platform_handle; in DEFINE_TEST_CLIENT_TEST_WITH_PIPE() local 100 platform_handle.struct_size = sizeof(MojoPlatformHandle); in DEFINE_TEST_CLIENT_TEST_WITH_PIPE() 102 &platform_handle)); in DEFINE_TEST_CLIENT_TEST_WITH_PIPE() 103 EXPECT_EQ(SIMPLE_PLATFORM_HANDLE_TYPE, platform_handle.type); in DEFINE_TEST_CLIENT_TEST_WITH_PIPE() 104 base::File file(PlatformFileFromPlatformHandleValue(platform_handle.value)); in DEFINE_TEST_CLIENT_TEST_WITH_PIPE() 241 MojoPlatformHandle platform_handle; in TEST_F() local 242 platform_handle.struct_size = 0; in TEST_F() 244 MojoWrapPlatformHandle(&platform_handle, nullptr, &wrapped_handle)); in TEST_F()
|
D | platform_handle_dispatcher.cc | 14 PlatformHandle platform_handle) { in Create() argument 15 return new PlatformHandleDispatcher(std::move(platform_handle)); in Create() 87 PlatformHandle platform_handle) in PlatformHandleDispatcher() argument 88 : platform_handle_(std::move(platform_handle)) {} in PlatformHandleDispatcher()
|
D | platform_handle_dispatcher.h | 21 PlatformHandle platform_handle); 47 PlatformHandleDispatcher(PlatformHandle platform_handle);
|
D | entrypoints.cc | 248 const MojoPlatformHandle* platform_handle, in MojoWrapPlatformHandleImpl() argument 251 return g_core->WrapPlatformHandle(platform_handle, options, mojo_handle); in MojoWrapPlatformHandleImpl() 257 MojoPlatformHandle* platform_handle) { in MojoUnwrapPlatformHandleImpl() argument 258 return g_core->UnwrapPlatformHandle(mojo_handle, options, platform_handle); in MojoUnwrapPlatformHandleImpl()
|
D | core.cc | 989 const MojoPlatformHandle* platform_handle, in WrapPlatformHandle() argument 992 if (!platform_handle || in WrapPlatformHandle() 993 platform_handle->struct_size < sizeof(*platform_handle)) { in WrapPlatformHandle() 997 auto handle = PlatformHandle::FromMojoPlatformHandle(platform_handle); in WrapPlatformHandle() 1010 MojoPlatformHandle* platform_handle) { in UnwrapPlatformHandle() argument 1011 if (!platform_handle || in UnwrapPlatformHandle() 1012 platform_handle->struct_size < sizeof(*platform_handle)) { in UnwrapPlatformHandle() 1034 PlatformHandle::ToMojoPlatformHandle(std::move(handle), platform_handle); in UnwrapPlatformHandle()
|
D | shared_buffer_dispatcher.cc | 369 PlatformHandle platform_handle; in EndSerialize() local 372 region.PassPlatformHandle(), &platform_handle, &ignored_handle); in EndSerialize() 373 handles[0] = std::move(platform_handle); in EndSerialize()
|
D | core.h | 283 MojoResult WrapPlatformHandle(const MojoPlatformHandle* platform_handle, 289 MojoPlatformHandle* platform_handle);
|
D | channel_posix.cc | 300 server_.platform_handle().GetFD().get(), false /* persistent */, in StartOnIOThread() 425 CHECK_EQ(fd, server_.platform_handle().GetFD().get()); in OnFileCanReadWithoutBlocking() 430 AcceptSocketConnection(server_.platform_handle().GetFD().get(), &socket_); in OnFileCanReadWithoutBlocking()
|
/external/libchrome/mojo/public/cpp/base/ |
D | file_mojom_traits.cc | 21 base::PlatformFile platform_handle = base::kInvalidPlatformFile; in Read() local 22 if (mojo::UnwrapPlatformFile(data.TakeFd(), &platform_handle) != in Read() 26 *file = base::File(platform_handle, data.async()); in Read()
|
/external/libchrome/mojo/public/cpp/platform/ |
D | platform_channel.cc | 173 info->push_back(remote_endpoint_.platform_handle().GetHandle().Get()); in PrepareToPassRemoteEndpoint() 175 HandleToLong(remote_endpoint_.platform_handle().GetHandle().Get())); in PrepareToPassRemoteEndpoint() 178 info->push_back({id, remote_endpoint_.platform_handle().GetHandle().get()}); in PrepareToPassRemoteEndpoint() 181 int fd = remote_endpoint_.platform_handle().GetFD().get(); in PrepareToPassRemoteEndpoint() 196 info->emplace_back(remote_endpoint_.platform_handle().GetFD().get(), in PrepareToPassRemoteEndpoint() 230 DCHECK(remote_endpoint_.platform_handle().is_valid_handle()); in RemoteProcessLaunchAttempted()
|
D | platform_channel_endpoint.h | 31 const PlatformHandle& platform_handle() const { return handle_; } in COMPONENT_EXPORT()
|
D | platform_channel_server_endpoint.h | 32 const PlatformHandle& platform_handle() const { return handle_; } in COMPONENT_EXPORT()
|
D | README.md | 24 [header](https://cs.chromium.org/src/mojo/public/cpp/platform/platform_handle.h)
|
/external/libchrome/base/threading/ |
D | platform_thread_posix.cc | 73 PlatformThread::CurrentHandle().platform_handle(), in ThreadFunc() 79 PlatformThread::CurrentHandle().platform_handle(), in ThreadFunc() 230 CHECK_EQ(0, pthread_join(thread_handle.platform_handle(), nullptr)); in Join() 235 CHECK_EQ(0, pthread_detach(thread_handle.platform_handle())); in Detach()
|
D | platform_thread.h | 96 Handle platform_handle() const { in platform_handle() function
|
/external/libchrome/mojo/public/c/system/ |
D | platform_handle.h | 211 MojoWrapPlatformHandle(const struct MojoPlatformHandle* platform_handle, 232 struct MojoPlatformHandle* platform_handle);
|
D | thunks.cc | 370 MojoResult MojoWrapPlatformHandle(const MojoPlatformHandle* platform_handle, in MojoWrapPlatformHandle() argument 373 return INVOKE_THUNK(WrapPlatformHandle, platform_handle, options, in MojoWrapPlatformHandle() 380 MojoPlatformHandle* platform_handle) { in MojoUnwrapPlatformHandle() argument 382 platform_handle); in MojoUnwrapPlatformHandle()
|
D | thunks.h | 164 const struct MojoPlatformHandle* platform_handle, 170 struct MojoPlatformHandle* platform_handle);
|
D | README.md | 536 See [//mojo/public/c/system/platform_handle.h](https://cs.chromium.org/chromium/src/mojo/public/c/s… 544 MojoPlatformHandle platform_handle; 545 platform_handle.struct_size = sizeof(platform_handle); 546 platform_handle.type = MOJO_PLATFORM_HANDLE_TYPE_FILE_DESCRIPTOR; 547 platform_handle.value = (uint64_t)fd; 549 MojoResult result = MojoWrapPlatformHandle(&platform_handle, nullptr, &handle); 558 MojoPlatformHandle platform_handle; 559 platform_handle.struct_size = sizeof(platform_handle); 560 MojoResult result = MojoUnwrapPlatformHandle(handle, nullptr, &platform_handle); 561 int fd = (int)platform_handle.value;
|
/external/perfetto/include/perfetto/base/ |
D | BUILD.gn | 24 "platform_handle.h",
|
/external/libchrome/libchrome_tools/patch/ |
D | handle_table.patch | 32 - return "platform_handle"; 54 +// return "platform_handle";
|
/external/libchrome/base/debug/ |
D | activity_tracker.cc | 163 thread_ref.as_tid = ::GetThreadId(handle.platform_handle()); in ForThread() 165 thread_ref.as_handle = handle.platform_handle(); in ForThread() 741 PlatformThread::CurrentHandle().platform_handle(); in ThreadActivityTracker()
|