Home
last modified time | relevance | path

Searched refs:PlatformHandle (Results 1 – 25 of 61) sorted by relevance

123

/external/libchrome/mojo/public/cpp/platform/
Dplatform_handle.cc84 PlatformHandle::PlatformHandle() = default;
86 PlatformHandle::PlatformHandle(PlatformHandle&& other) { in PlatformHandle() function in mojo::PlatformHandle
91 PlatformHandle::PlatformHandle(base::win::ScopedHandle handle) in PlatformHandle() function in mojo::PlatformHandle
94 PlatformHandle::PlatformHandle(zx::handle handle) in PlatformHandle() function in mojo::PlatformHandle
97 PlatformHandle::PlatformHandle(base::mac::ScopedMachSendRight mach_port) in PlatformHandle() function in mojo::PlatformHandle
102 PlatformHandle::PlatformHandle(base::ScopedFD fd) in PlatformHandle() function in mojo::PlatformHandle
110 PlatformHandle::~PlatformHandle() = default;
112 PlatformHandle& PlatformHandle::operator=(PlatformHandle&& other) { in operator =()
132 void PlatformHandle::ToMojoPlatformHandle(PlatformHandle handle, in ToMojoPlatformHandle()
175 PlatformHandle PlatformHandle::FromMojoPlatformHandle( in FromMojoPlatformHandle()
[all …]
Dplatform_handle.h42 class COMPONENT_EXPORT(MOJO_CPP_PLATFORM) PlatformHandle { in COMPONENT_EXPORT()
56 PlatformHandle(); in COMPONENT_EXPORT()
57 PlatformHandle(PlatformHandle&& other); in COMPONENT_EXPORT()
60 explicit PlatformHandle(base::win::ScopedHandle handle); in COMPONENT_EXPORT()
62 explicit PlatformHandle(zx::handle handle); in COMPONENT_EXPORT()
64 explicit PlatformHandle(base::mac::ScopedMachSendRight mach_port); in COMPONENT_EXPORT()
68 explicit PlatformHandle(base::ScopedFD fd); in COMPONENT_EXPORT()
71 ~PlatformHandle(); in COMPONENT_EXPORT()
73 PlatformHandle& operator=(PlatformHandle&& other); in COMPONENT_EXPORT()
78 static void ToMojoPlatformHandle(PlatformHandle handle, in COMPONENT_EXPORT()
[all …]
Dplatform_channel.cc49 void CreateChannel(PlatformHandle* local_endpoint, in CreateChannel()
50 PlatformHandle* remote_endpoint) { in CreateChannel()
57 *local_endpoint = PlatformHandle(base::win::ScopedHandle( in CreateChannel()
74 *remote_endpoint = PlatformHandle(base::win::ScopedHandle( in CreateChannel()
85 void CreateChannel(PlatformHandle* local_endpoint,
86 PlatformHandle* remote_endpoint) {
91 *local_endpoint = PlatformHandle(std::move(handles[0]));
92 *remote_endpoint = PlatformHandle(std::move(handles[1]));
115 void CreateChannel(PlatformHandle* local_endpoint,
116 PlatformHandle* remote_endpoint) {
[all …]
Dnamed_platform_channel_posix.cc62 PlatformHandle CreateUnixDomainSocket() { in CreateUnixDomainSocket()
64 PlatformHandle handle(base::ScopedFD(socket(AF_UNIX, SOCK_STREAM, 0))); in CreateUnixDomainSocket()
67 return PlatformHandle(); in CreateUnixDomainSocket()
73 return PlatformHandle(); in CreateUnixDomainSocket()
106 PlatformHandle handle = CreateUnixDomainSocket(); in CreateServerEndpoint()
138 PlatformHandle handle = CreateUnixDomainSocket(); in CreateClientEndpoint()
Dplatform_channel_endpoint.h22 explicit PlatformChannelEndpoint(PlatformHandle handle); in COMPONENT_EXPORT()
31 const PlatformHandle& platform_handle() const { return handle_; } in COMPONENT_EXPORT()
33 PlatformHandle TakePlatformHandle() WARN_UNUSED_RESULT { in COMPONENT_EXPORT()
38 PlatformHandle handle_; in COMPONENT_EXPORT()
Dplatform_channel_server_endpoint.h22 explicit PlatformChannelServerEndpoint(PlatformHandle handle); in COMPONENT_EXPORT()
32 const PlatformHandle& platform_handle() const { return handle_; } in COMPONENT_EXPORT()
34 PlatformHandle TakePlatformHandle() WARN_UNUSED_RESULT { in COMPONENT_EXPORT()
39 PlatformHandle handle_; in COMPONENT_EXPORT()
/external/libchrome/mojo/core/
Dplatform_handle_utils.cc26 PlatformHandle* extracted_handle, in ExtractPlatformHandlesFromSharedMemoryRegionHandle()
27 PlatformHandle* extracted_readonly_handle) { in ExtractPlatformHandlesFromSharedMemoryRegionHandle()
29 *extracted_handle = PlatformHandle(base::win::ScopedHandle(handle.Take())); in ExtractPlatformHandlesFromSharedMemoryRegionHandle()
31 *extracted_handle = PlatformHandle(std::move(handle)); in ExtractPlatformHandlesFromSharedMemoryRegionHandle()
35 *extracted_handle = PlatformHandle(std::move(handle)); in ExtractPlatformHandlesFromSharedMemoryRegionHandle()
38 *extracted_handle = PlatformHandle(std::move(handle)); in ExtractPlatformHandlesFromSharedMemoryRegionHandle()
40 *extracted_handle = PlatformHandle(std::move(handle.fd)); in ExtractPlatformHandlesFromSharedMemoryRegionHandle()
41 *extracted_readonly_handle = PlatformHandle(std::move(handle.readonly_fd)); in ExtractPlatformHandlesFromSharedMemoryRegionHandle()
47 PlatformHandle handle, in CreateSharedMemoryRegionHandleFromPlatformHandles()
48 PlatformHandle readonly_handle) { in CreateSharedMemoryRegionHandleFromPlatformHandles()
Dplatform_handle_dispatcher.h21 PlatformHandle platform_handle);
23 PlatformHandle TakePlatformHandle();
33 PlatformHandle* handles) override;
43 PlatformHandle* handles,
47 PlatformHandleDispatcher(PlatformHandle platform_handle);
53 PlatformHandle platform_handle_;
Dplatform_handle_in_transit.h33 explicit PlatformHandleInTransit(PlatformHandle handle);
40 const PlatformHandle& handle() const { in handle()
51 PlatformHandle TakeHandle();
67 static PlatformHandle TakeIncomingRemoteHandle(
94 PlatformHandle handle_;
Dplatform_handle_utils.h21 PlatformHandle* extracted_handle,
22 PlatformHandle* extracted_readonly_handle);
29 PlatformHandle handle,
30 PlatformHandle readonly_handle);
Dplatform_handle_dispatcher.cc14 PlatformHandle platform_handle) { in Create()
18 PlatformHandle PlatformHandleDispatcher::TakePlatformHandle() { in TakePlatformHandle()
45 PlatformHandle* handles) { in EndSerialize()
78 PlatformHandle* handles, in Deserialize()
87 PlatformHandle platform_handle) in PlatformHandleDispatcher()
Dnode_channel.h46 PlatformHandle broker_channel) = 0;
49 PlatformHandle broker_channel) = 0;
59 PlatformHandle channel_handle) = 0;
123 PlatformHandle broker_channel);
125 PlatformHandle broker_channel);
129 void Introduce(const ports::NodeName& name, PlatformHandle channel_handle);
164 std::vector<PlatformHandle> handles) override;
Dplatform_handle_in_transit.cc63 PlatformHandleInTransit::PlatformHandleInTransit(PlatformHandle handle) in PlatformHandleInTransit()
101 PlatformHandle PlatformHandleInTransit::TakeHandle() { in TakeHandle()
132 PlatformHandle PlatformHandleInTransit::TakeIncomingRemoteHandle( in TakeIncomingRemoteHandle()
135 return PlatformHandle(base::win::ScopedHandle( in TakeIncomingRemoteHandle()
146 PlatformHandle(base::mac::ScopedMachSendRight())); in CreateForMachPortName()
Dbroker_win.cc30 PlatformHandle* out_handles) { in TakeHandlesFromBrokerMessage()
86 Broker::Broker(PlatformHandle handle) : sync_channel_(std::move(handle)) { in Broker()
96 PlatformHandle endpoint_handle; in Broker()
141 PlatformHandle handle; in GetWritableSharedMemoryRegion()
151 PlatformHandle()), in GetWritableSharedMemoryRegion()
Dchannel_fuchsia.cc82 PlatformHandleInTransit(PlatformHandle(zx::handle(handles[i])))); in UnwrapPlatformHandle()
88 PlatformHandle WrapPlatformHandles(Channel::Message::HandleInfoEntry info, in WrapPlatformHandles()
90 PlatformHandle out_handle; in WrapPlatformHandles()
92 out_handle = PlatformHandle(std::move(handles->front())); in WrapPlatformHandles()
96 return PlatformHandle(); in WrapPlatformHandles()
112 return PlatformHandle(); in WrapPlatformHandles()
122 out_handle = PlatformHandle(std::move(out_fd)); in WrapPlatformHandles()
249 std::vector<PlatformHandle>* handles, in GetReadPlatformHandles()
Dbroker_posix.cc31 std::vector<PlatformHandle>* incoming_handles) { in WaitForBrokerMessage()
69 Broker::Broker(PlatformHandle handle) : sync_channel_(std::move(handle)) { in Broker()
80 std::vector<PlatformHandle> incoming_platform_handles; in Broker()
123 std::vector<PlatformHandle> handles; in GetWritableSharedMemoryRegion()
Dnode_channel.cc285 std::vector<PlatformHandle> handles; in AddBrokerClient()
302 PlatformHandle broker_channel) { in BrokerClientAdded()
304 std::vector<PlatformHandle> handles; in BrokerClientAdded()
316 PlatformHandle broker_channel) { in AcceptBrokerClient()
318 std::vector<PlatformHandle> handles; in AcceptBrokerClient()
349 PlatformHandle channel_handle) { in Introduce()
351 std::vector<PlatformHandle> handles; in Introduce()
461 std::vector<PlatformHandle> handles) { in OnChannelMessage()
538 PlatformHandle broker_channel; in OnChannelMessage()
593 PlatformHandle channel_handle; in OnChannelMessage()
Dchannel.h188 void SetHandles(std::vector<PlatformHandle> new_handles);
253 std::vector<PlatformHandle> handles) = 0;
343 std::vector<PlatformHandle>* handles,
351 std::vector<PlatformHandle> handles);
Dbroker.h24 explicit Broker(PlatformHandle handle);
38 PlatformHandle sync_channel_;
/external/libchrome/mojo/public/cpp/platform/tests/
Dplatform_handle_unittest.cc85 std::string GetObjectContents(PlatformHandle& handle) { in GetObjectContents()
97 PlatformHandle& test_handle() { return test_handle_; } in test_handle()
103 PlatformHandle SetUpFile() { in SetUpFile()
111 return PlatformHandle( in SetUpFile()
114 return PlatformHandle(base::ScopedFD(test_file.TakePlatformFile())); in SetUpFile()
121 std::string GetFileContents(PlatformHandle& handle) { in GetFileContents()
135 handle = PlatformHandle(base::win::ScopedHandle(file.TakePlatformFile())); in GetFileContents()
146 PlatformHandle SetUpSharedMemory() { in SetUpSharedMemory()
154 return PlatformHandle(generic_region.PassPlatformHandle()); in SetUpSharedMemory()
160 std::string GetSharedMemoryContents(const PlatformHandle& handle) { in GetSharedMemoryContents()
[all …]
/external/libchrome/base/memory/
Dplatform_shared_memory_region.h96 using PlatformHandle = mach_port_t; variable
99 using PlatformHandle = zx_handle_t; variable
102 using PlatformHandle = HANDLE; variable
105 using PlatformHandle = int; variable
108 using PlatformHandle = FDPair; variable
151 PlatformHandle GetPlatformHandle() const;
209 PlatformHandle handle,
/external/libese/libese-hw/nxp/pn80t/
Dnq_nci.c60 struct PlatformHandle { struct
65 const struct PlatformHandle *handle = blob; in platform_toggle_bootloader() argument
73 const struct PlatformHandle *handle = blob; in platform_toggle_reset()
87 struct PlatformHandle *handle = calloc(1, sizeof(*handle)); in platform_init()
103 struct PlatformHandle *handle = blob; in platform_release()
130 const struct PlatformHandle *handle = ns->handle; in nq_transmit()
161 const struct PlatformHandle *handle = ns->handle; in nq_receive()
/external/libchrome/mojo/core/test/
Dtest_utils.cc17 PlatformHandle PlatformHandleFromFILE(base::ScopedFILE fp) { in PlatformHandleFromFILE()
21 return PlatformHandle(base::ScopedFD(rv)); in PlatformHandleFromFILE()
24 base::ScopedFILE FILEFromPlatformHandle(PlatformHandle h, const char* mode) { in FILEFromPlatformHandle()
Dtest_utils_win.cc17 PlatformHandle PlatformHandleFromFILE(base::ScopedFILE fp) { in PlatformHandleFromFILE()
26 return PlatformHandle(base::win::ScopedHandle(rv)); in PlatformHandleFromFILE()
29 base::ScopedFILE FILEFromPlatformHandle(PlatformHandle h, const char* mode) { in FILEFromPlatformHandle()
Dtest_utils.h21 PlatformHandle PlatformHandleFromFILE(base::ScopedFILE fp);
24 base::ScopedFILE FILEFromPlatformHandle(PlatformHandle h, const char* mode);

123