Home
last modified time | relevance | path

Searched refs:platform_handles (Results 1 – 17 of 17) sorted by relevance

/external/libchrome/mojo/public/cpp/system/
Dplatform_handle.cc59 MojoPlatformHandle platform_handles[2]; in WrapPlatformSharedMemoryRegion() local
61 platform_handles[0].struct_size = sizeof(platform_handles[0]); in WrapPlatformSharedMemoryRegion()
63 platform_handles[0].type = MOJO_PLATFORM_HANDLE_TYPE_WINDOWS_HANDLE; in WrapPlatformSharedMemoryRegion()
64 platform_handles[0].value = reinterpret_cast<uint64_t>(handle.Take()); in WrapPlatformSharedMemoryRegion()
66 platform_handles[0].type = MOJO_PLATFORM_HANDLE_TYPE_FUCHSIA_HANDLE; in WrapPlatformSharedMemoryRegion()
67 platform_handles[0].value = static_cast<uint64_t>(handle.release()); in WrapPlatformSharedMemoryRegion()
69 platform_handles[0].type = MOJO_PLATFORM_HANDLE_TYPE_MACH_PORT; in WrapPlatformSharedMemoryRegion()
70 platform_handles[0].value = static_cast<uint64_t>(handle.release()); in WrapPlatformSharedMemoryRegion()
72 platform_handles[0].type = MOJO_PLATFORM_HANDLE_TYPE_FILE_DESCRIPTOR; in WrapPlatformSharedMemoryRegion()
73 platform_handles[0].value = static_cast<uint64_t>(handle.release()); in WrapPlatformSharedMemoryRegion()
[all …]
Dinvitation.cc40 endpoint->platform_handles = endpoint_handle; in PlatformHandleToTransportEndpoint()
227 transport_endpoint.platform_handles = &endpoint_handle; in Accept()
251 transport_endpoint.platform_handles = &endpoint_handle; in AcceptIsolated()
/external/libchrome/mojo/core/
Ddispatcher.cc164 PlatformHandle* platform_handles, in Deserialize() argument
169 num_ports, platform_handles, in Deserialize()
173 num_ports, platform_handles, in Deserialize()
177 bytes, num_bytes, ports, num_ports, platform_handles, in Deserialize()
181 bytes, num_bytes, ports, num_ports, platform_handles, in Deserialize()
185 num_ports, platform_handles, in Deserialize()
Dshared_buffer_dispatcher.cc125 PlatformHandle* platform_handles, in Deserialize() argument
150 handles[1] = std::move(platform_handles[1]); in Deserialize()
159 handles[0] = std::move(platform_handles[0]); in Deserialize()
359 PlatformHandle platform_handles[2]; in EndSerialize() local
361 region.PassPlatformHandle(), &platform_handles[0], in EndSerialize()
362 &platform_handles[1]); in EndSerialize()
363 handles[0] = std::move(platform_handles[0]); in EndSerialize()
364 handles[1] = std::move(platform_handles[1]); in EndSerialize()
Dembedder_unittest.cc362 MojoHandle platform_handles[base::size(kTestHandleTypes)]; in TEST_F() local
383 platform_handles[i] = in TEST_F()
388 WriteMessageWithHandles(server_mp, "hello", platform_handles, in TEST_F()
400 MojoHandle platform_handles[kNumHandles]; in DEFINE_TEST_CLIENT_TEST_WITH_PIPE() local
405 ReadMessageWithHandles(client_mp, platform_handles, kNumHandles)); in DEFINE_TEST_CLIENT_TEST_WITH_PIPE()
411 UnwrapPlatformHandle(ScopedHandle(Handle(platform_handles[i]))); in DEFINE_TEST_CLIENT_TEST_WITH_PIPE()
Dentrypoints.cc262 const MojoPlatformHandle* platform_handles, in MojoWrapPlatformSharedMemoryRegionImpl() argument
270 platform_handles, num_platform_handles, num_bytes, guid, access_mode, in MojoWrapPlatformSharedMemoryRegionImpl()
277 MojoPlatformHandle* platform_handles, in MojoUnwrapPlatformSharedMemoryRegionImpl() argument
283 mojo_handle, options, platform_handles, num_platform_handles, num_bytes, in MojoUnwrapPlatformSharedMemoryRegionImpl()
Dcore.cc1039 const MojoPlatformHandle* platform_handles, in WrapPlatformSharedMemoryRegion() argument
1062 handles[i] = PlatformHandle::FromMojoPlatformHandle(&platform_handles[i]); in WrapPlatformSharedMemoryRegion()
1115 MojoPlatformHandle* platform_handles, in UnwrapPlatformSharedMemoryRegion() argument
1177 &platform_handles[1]); in UnwrapPlatformSharedMemoryRegion()
1178 if (platform_handles[1].type == MOJO_PLATFORM_HANDLE_TYPE_INVALID) in UnwrapPlatformSharedMemoryRegion()
1184 PlatformHandle::ToMojoPlatformHandle(std::move(handle), &platform_handles[0]); in UnwrapPlatformSharedMemoryRegion()
1185 if (platform_handles[0].type == MOJO_PLATFORM_HANDLE_TYPE_INVALID) in UnwrapPlatformSharedMemoryRegion()
1321 if (!transport_endpoint->platform_handles) in SendInvitation()
1336 &transport_endpoint->platform_handles[0]); in SendInvitation()
1410 if (!transport_endpoint->platform_handles) in AcceptInvitation()
[all …]
Dinvitation_unittest.cc155 valid_endpoint.platform_handles = &endpoint_handle; in TEST_F()
170 invalid_endpoint.platform_handles = &endpoint_handle; in TEST_F()
184 invalid_endpoint.platform_handles = &invalid_platform_handle; in TEST_F()
195 invalid_endpoint.platform_handles = nullptr; in TEST_F()
378 transport_endpoint.platform_handles = &handle; in SendInvitationToClient()
418 transport_endpoint.platform_handles = &endpoint_handle;
Dshared_buffer_dispatcher.h62 PlatformHandle* platform_handles,
Dcore.h291 const MojoPlatformHandle* platform_handles,
301 MojoPlatformHandle* platform_handles,
Ddispatcher.h212 PlatformHandle* platform_handles,
Ddata_pipe_producer_dispatcher.cc261 PlatformHandle* platform_handles) { in EndSerialize() argument
289 platform_handles[0] = std::move(handle); in EndSerialize()
Ddata_pipe_consumer_dispatcher.cc302 PlatformHandle* platform_handles) { in EndSerialize() argument
330 platform_handles[0] = std::move(handle); in EndSerialize()
/external/libchrome/mojo/public/c/system/
Dplatform_handle.h265 const struct MojoPlatformHandle* platform_handles,
312 struct MojoPlatformHandle* platform_handles,
Dthunks.cc386 const struct MojoPlatformHandle* platform_handles, in MojoWrapPlatformSharedMemoryRegion() argument
393 return INVOKE_THUNK(WrapPlatformSharedMemoryRegion, platform_handles, in MojoWrapPlatformSharedMemoryRegion()
401 struct MojoPlatformHandle* platform_handles, in MojoUnwrapPlatformSharedMemoryRegion() argument
407 platform_handles, num_platform_handles, num_bytes, guid, in MojoUnwrapPlatformSharedMemoryRegion()
Dthunks.h172 const struct MojoPlatformHandle* platform_handles,
182 struct MojoPlatformHandle* platform_handles,
Dinvitation.h111 MOJO_POINTER_FIELD(const struct MojoPlatformHandle*, platform_handles);