Home
last modified time | relevance | path

Searched refs:platform_handle (Results 1 – 25 of 31) sorted by relevance

12

/external/libchrome/ipc/
Dipc_message_attachment.cc70 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/
Dplatform_handle.cc183 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 …]
Dinvitation.cc31 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/
Dplatform_wrapper_unittest.cc99 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()
Dplatform_handle_dispatcher.cc14 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()
Dplatform_handle_dispatcher.h21 PlatformHandle platform_handle);
47 PlatformHandleDispatcher(PlatformHandle platform_handle);
Dentrypoints.cc248 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()
Dcore.cc989 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()
Dshared_buffer_dispatcher.cc369 PlatformHandle platform_handle; in EndSerialize() local
372 region.PassPlatformHandle(), &platform_handle, &ignored_handle); in EndSerialize()
373 handles[0] = std::move(platform_handle); in EndSerialize()
Dcore.h283 MojoResult WrapPlatformHandle(const MojoPlatformHandle* platform_handle,
289 MojoPlatformHandle* platform_handle);
Dchannel_posix.cc300 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/
Dfile_mojom_traits.cc21 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/
Dplatform_channel.cc173 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()
Dplatform_channel_endpoint.h31 const PlatformHandle& platform_handle() const { return handle_; } in COMPONENT_EXPORT()
Dplatform_channel_server_endpoint.h32 const PlatformHandle& platform_handle() const { return handle_; } in COMPONENT_EXPORT()
DREADME.md24 [header](https://cs.chromium.org/src/mojo/public/cpp/platform/platform_handle.h)
/external/libchrome/base/threading/
Dplatform_thread_posix.cc73 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()
Dplatform_thread.h96 Handle platform_handle() const { in platform_handle() function
/external/libchrome/mojo/public/c/system/
Dplatform_handle.h211 MojoWrapPlatformHandle(const struct MojoPlatformHandle* platform_handle,
232 struct MojoPlatformHandle* platform_handle);
Dthunks.cc370 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()
Dthunks.h164 const struct MojoPlatformHandle* platform_handle,
170 struct MojoPlatformHandle* platform_handle);
DREADME.md536 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/
DBUILD.gn24 "platform_handle.h",
/external/libchrome/libchrome_tools/patch/
Dhandle_table.patch32 - return "platform_handle";
54 +// return "platform_handle";
/external/libchrome/base/debug/
Dactivity_tracker.cc163 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()

12