/external/libchrome/mojo/public/cpp/platform/ |
D | platform_handle.cc | 84 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 …]
|
D | platform_handle.h | 42 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 …]
|
D | platform_channel.cc | 49 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 …]
|
D | named_platform_channel_posix.cc | 62 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()
|
D | platform_channel_endpoint.h | 22 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()
|
D | platform_channel_server_endpoint.h | 22 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/ |
D | platform_handle_utils.cc | 26 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()
|
D | platform_handle_dispatcher.h | 21 PlatformHandle platform_handle); 23 PlatformHandle TakePlatformHandle(); 33 PlatformHandle* handles) override; 43 PlatformHandle* handles, 47 PlatformHandleDispatcher(PlatformHandle platform_handle); 53 PlatformHandle platform_handle_;
|
D | platform_handle_in_transit.h | 33 explicit PlatformHandleInTransit(PlatformHandle handle); 40 const PlatformHandle& handle() const { in handle() 51 PlatformHandle TakeHandle(); 67 static PlatformHandle TakeIncomingRemoteHandle( 94 PlatformHandle handle_;
|
D | platform_handle_utils.h | 21 PlatformHandle* extracted_handle, 22 PlatformHandle* extracted_readonly_handle); 29 PlatformHandle handle, 30 PlatformHandle readonly_handle);
|
D | platform_handle_dispatcher.cc | 14 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()
|
D | node_channel.h | 46 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;
|
D | platform_handle_in_transit.cc | 63 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()
|
D | broker_win.cc | 30 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()
|
D | channel_fuchsia.cc | 82 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()
|
D | broker_posix.cc | 31 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()
|
D | node_channel.cc | 285 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()
|
D | channel.h | 188 void SetHandles(std::vector<PlatformHandle> new_handles); 253 std::vector<PlatformHandle> handles) = 0; 343 std::vector<PlatformHandle>* handles, 351 std::vector<PlatformHandle> handles);
|
D | broker.h | 24 explicit Broker(PlatformHandle handle); 38 PlatformHandle sync_channel_;
|
/external/libchrome/mojo/public/cpp/platform/tests/ |
D | platform_handle_unittest.cc | 85 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/ |
D | platform_shared_memory_region.h | 96 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/ |
D | nq_nci.c | 60 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/ |
D | test_utils.cc | 17 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()
|
D | test_utils_win.cc | 17 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()
|
D | test_utils.h | 21 PlatformHandle PlatformHandleFromFILE(base::ScopedFILE fp); 24 base::ScopedFILE FILEFromPlatformHandle(PlatformHandle h, const char* mode);
|