Home
last modified time | relevance | path

Searched refs:ScopedHandle (Results 1 – 25 of 71) sorted by relevance

123

/external/llvm/lib/Support/Windows/
DWindowsSupport.h91 class ScopedHandle {
95 ScopedHandle(const ScopedHandle &other); // = delete;
96 void operator=(const ScopedHandle &other); // = delete;
98 ScopedHandle() in ScopedHandle() function
101 explicit ScopedHandle(handle_type h) in ScopedHandle() function
104 ~ScopedHandle() { in ~ScopedHandle()
115 ScopedHandle &operator=(handle_type h) {
194 typedef ScopedHandle<CommonHandleTraits> ScopedCommonHandle;
195 typedef ScopedHandle<FileHandleTraits> ScopedFileHandle;
196 typedef ScopedHandle<CryptContextTraits> ScopedCryptContext;
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/Windows/
DWindowsSupport.h94 class ScopedHandle {
98 ScopedHandle(const ScopedHandle &other); // = delete;
99 void operator=(const ScopedHandle &other); // = delete;
101 ScopedHandle() in ScopedHandle() function
104 explicit ScopedHandle(handle_type h) in ScopedHandle() function
107 ~ScopedHandle() { in ~ScopedHandle()
118 ScopedHandle &operator=(handle_type h) {
197 typedef ScopedHandle<CommonHandleTraits> ScopedCommonHandle;
198 typedef ScopedHandle<FileHandleTraits> ScopedFileHandle;
199 typedef ScopedHandle<CryptContextTraits> ScopedCryptContext;
[all …]
/external/swiftshader/third_party/llvm-subzero/lib/Support/Windows/
DWindowsSupport.h92 class ScopedHandle {
96 ScopedHandle(const ScopedHandle &other); // = delete;
97 void operator=(const ScopedHandle &other); // = delete;
99 ScopedHandle() in ScopedHandle() function
102 explicit ScopedHandle(handle_type h) in ScopedHandle() function
105 ~ScopedHandle() { in ~ScopedHandle()
116 ScopedHandle &operator=(handle_type h) {
195 typedef ScopedHandle<CommonHandleTraits> ScopedCommonHandle;
196 typedef ScopedHandle<FileHandleTraits> ScopedFileHandle;
197 typedef ScopedHandle<CryptContextTraits> ScopedCryptContext;
[all …]
/external/libchrome/mojo/public/cpp/system/
Dplatform_handle.h81 MOJO_CPP_SYSTEM_EXPORT ScopedHandle WrapPlatformHandle(PlatformHandle handle);
85 MOJO_CPP_SYSTEM_EXPORT PlatformHandle UnwrapPlatformHandle(ScopedHandle handle);
90 ScopedHandle WrapPlatformFile(base::PlatformFile platform_file);
94 MojoResult UnwrapPlatformFile(ScopedHandle handle, base::PlatformFile* file);
176 MOJO_CPP_SYSTEM_EXPORT ScopedHandle WrapMachPort(mach_port_t port);
180 MOJO_CPP_SYSTEM_EXPORT MojoResult UnwrapMachPort(ScopedHandle handle,
Dplatform_handle.cc182 ScopedHandle WrapPlatformHandle(PlatformHandle handle) { in WrapPlatformHandle()
190 return ScopedHandle(); in WrapPlatformHandle()
191 return ScopedHandle(Handle(wrapped_handle)); in WrapPlatformHandle()
194 PlatformHandle UnwrapPlatformHandle(ScopedHandle handle) { in UnwrapPlatformHandle()
205 ScopedHandle WrapPlatformFile(base::PlatformFile platform_file) { in WrapPlatformFile()
216 return ScopedHandle(Handle(mojo_handle)); in WrapPlatformFile()
219 MojoResult UnwrapPlatformFile(ScopedHandle handle, base::PlatformFile* file) { in UnwrapPlatformFile()
399 ScopedHandle WrapMachPort(mach_port_t port) { in WrapMachPort()
405 return ScopedHandle(); in WrapMachPort()
417 return ScopedHandle(Handle(mojo_handle)); in WrapMachPort()
[all …]
Dhandle.h200 typedef ScopedHandleBase<Handle> ScopedHandle; typedef
201 static_assert(sizeof(ScopedHandle) == sizeof(Handle),
/external/swiftshader/third_party/LLVM/lib/Support/Windows/
DWindows.h67 class ScopedHandle {
71 ScopedHandle() : Handle(InvalidHandle) {} in ScopedHandle() function
72 ScopedHandle(HandleType handle) : Handle(handle) {} in ScopedHandle() function
74 ~ScopedHandle() { in ~ScopedHandle()
87 ScopedHandle &operator=(HandleType handle) {
105 typedef ScopedHandle<HANDLE, uintptr_t(-1),
/external/libchrome/mojo/public/cpp/bindings/lib/
Dserialization_context.h34 void AddHandle(mojo::ScopedHandle handle, Handle_Data* out_data); in COMPONENT_EXPORT()
54 const std::vector<mojo::ScopedHandle>* handles() { return &handles_; } in COMPONENT_EXPORT()
55 std::vector<mojo::ScopedHandle>* mutable_handles() { return &handles_; } in COMPONENT_EXPORT()
71 mojo::ScopedHandle TakeHandle(const Handle_Data& encoded_handle); in COMPONENT_EXPORT()
87 std::vector<mojo::ScopedHandle> handles_; in COMPONENT_EXPORT()
Dnative_struct_serialization.cc89 ScopedHandle handle = attachment->TakeMojoHandle(); in SerializeMessageContents()
90 internal::Serializer<ScopedHandle, ScopedHandle>::Serialize( in SerializeMessageContents()
112 ScopedHandle handle; in DeserializeMessageAttachments()
113 internal::Serializer<ScopedHandle, ScopedHandle>::Deserialize( in DeserializeMessageAttachments()
Dserialization_context.cc20 void SerializationContext::AddHandle(mojo::ScopedHandle handle, in AddHandle()
35 AddHandle(ScopedHandle::From(std::move(handle)), &out_data->handle); in AddInterfaceInfo()
67 mojo::ScopedHandle SerializationContext::TakeHandle( in TakeHandle()
70 return mojo::ScopedHandle(); in TakeHandle()
/external/llvm/utils/KillTheDoctor/
DKillTheDoctor.cpp79 class ScopedHandle { class
85 ScopedHandle() in ScopedHandle() function in __anon169d18b40111::ScopedHandle
88 explicit ScopedHandle(handle_type handle) in ScopedHandle() function in __anon169d18b40111::ScopedHandle
91 ~ScopedHandle() { in ~ScopedHandle()
95 ScopedHandle& operator=(handle_type handle) { in operator =()
166 typedef ScopedHandle<FileMappingHandle> FileMappingScopedHandle;
167 typedef ScopedHandle<MappedViewOfFileHandle> MappedViewOfFileScopedHandle;
168 typedef ScopedHandle<ProcessHandle> ProcessScopedHandle;
169 typedef ScopedHandle<ThreadHandle> ThreadScopedHandle;
170 typedef ScopedHandle<TokenHandle> TokenScopedHandle;
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/utils/KillTheDoctor/
DKillTheDoctor.cpp79 class ScopedHandle { class
85 ScopedHandle() in ScopedHandle() function in __anon21d0330c0111::ScopedHandle
88 explicit ScopedHandle(handle_type handle) in ScopedHandle() function in __anon21d0330c0111::ScopedHandle
91 ~ScopedHandle() { in ~ScopedHandle()
95 ScopedHandle& operator=(handle_type handle) { in operator =()
166 typedef ScopedHandle<FileMappingHandle> FileMappingScopedHandle;
167 typedef ScopedHandle<MappedViewOfFileHandle> MappedViewOfFileScopedHandle;
168 typedef ScopedHandle<ProcessHandle> ProcessScopedHandle;
169 typedef ScopedHandle<ThreadHandle> ThreadScopedHandle;
170 typedef ScopedHandle<TokenHandle> TokenScopedHandle;
[all …]
/external/libchrome/ipc/
Dipc_message_attachment.cc47 mojo::ScopedHandle MessageAttachment::TakeMojoHandle() { in TakeMojoHandle()
61 return mojo::ScopedHandle(); in TakeMojoHandle()
76 return mojo::ScopedHandle(); in TakeMojoHandle()
90 return mojo::ScopedHandle(); in TakeMojoHandle()
103 return mojo::ScopedHandle(); in TakeMojoHandle()
108 mojo::ScopedHandle handle, in CreateFromMojoHandle()
Dipc_mojo_handle_attachment.h26 explicit MojoHandleAttachment(mojo::ScopedHandle handle);
31 mojo::ScopedHandle TakeHandle();
35 mojo::ScopedHandle handle_;
Dipc_mojo_handle_attachment.cc14 MojoHandleAttachment::MojoHandleAttachment(mojo::ScopedHandle handle) in MojoHandleAttachment()
23 mojo::ScopedHandle MojoHandleAttachment::TakeHandle() { in TakeHandle()
Dipc_message_attachment.h32 mojo::ScopedHandle handle,
37 mojo::ScopedHandle TakeMojoHandle();
/external/swiftshader/third_party/LLVM/utils/KillTheDoctor/
DKillTheDoctor.cpp74 class ScopedHandle { class
80 ScopedHandle() in ScopedHandle() function in __anon74a0a6600111::ScopedHandle
83 explicit ScopedHandle(handle_type handle) in ScopedHandle() function in __anon74a0a6600111::ScopedHandle
86 ~ScopedHandle() { in ~ScopedHandle()
90 ScopedHandle& operator=(handle_type handle) { in operator =()
161 typedef ScopedHandle<FileMappingHandle> FileMappingScopedHandle;
162 typedef ScopedHandle<MappedViewOfFileHandle> MappedViewOfFileScopedHandle;
163 typedef ScopedHandle<ProcessHandle> ProcessScopedHandle;
164 typedef ScopedHandle<ThreadHandle> ThreadScopedHandle;
165 typedef ScopedHandle<TokenHandle> TokenScopedHandle;
[all …]
/external/libchrome/mojo/public/cpp/bindings/tests/
Dserialization_warning_unittest.cc27 std::vector<base::Optional<std::vector<ScopedHandle>>>
29 std::vector<base::Optional<std::vector<ScopedHandle>>> array(2); in CreateTestNestedHandleArray()
31 std::vector<ScopedHandle> nested_array(3); in CreateTestNestedHandleArray()
34 nested_array[j] = ScopedHandle::From(std::move(pipe.handle1)); in CreateTestNestedHandleArray()
106 test_struct->hdl = ScopedHandle::From(std::move(pipe.handle1)); in TEST_F()
160 using MojomType = ArrayDataView<ArrayDataView<ScopedHandle>>; in TEST_F()
163 (*test_array[1])[0] = ScopedHandle(); in TEST_F()
181 (*test_array[1])[0] = ScopedHandle(); in TEST_F()
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_symbolizer_win.cc152 struct ScopedHandle { struct
153 ScopedHandle() : h_(nullptr) {} in ScopedHandle() function
154 explicit ScopedHandle(HANDLE h) : h_(h) {} in ScopedHandle() function
155 ~ScopedHandle() { in ~ScopedHandle() argument
172 ScopedHandle stdin_read, stdin_write; in StartSymbolizerSubprocess()
173 ScopedHandle stdout_read, stdout_write; in StartSymbolizerSubprocess()
/external/libchrome/mojo/public/cpp/platform/
Dplatform_handle.cc38 base::win::ScopedHandle CloneHandle(const base::win::ScopedHandle& handle) { in CloneHandle()
46 return base::win::ScopedHandle(); in CloneHandle()
48 return base::win::ScopedHandle(dupe); in CloneHandle()
91 PlatformHandle::PlatformHandle(base::win::ScopedHandle handle) in PlatformHandle()
186 base::win::ScopedHandle(LongToHandle(static_cast<long>(handle->value)))); in FromMojoPlatformHandle()
Dplatform_handle.h60 explicit PlatformHandle(base::win::ScopedHandle handle); in COMPONENT_EXPORT()
104 const base::win::ScopedHandle& GetHandle() const { return handle_; } in COMPONENT_EXPORT()
105 base::win::ScopedHandle TakeHandle() { in COMPONENT_EXPORT()
173 base::win::ScopedHandle handle_; in COMPONENT_EXPORT()
Dnamed_platform_channel_win.cc71 PlatformHandle handle(base::win::ScopedHandle(::CreateNamedPipeW( in CreateServerEndpoint()
97 PlatformHandle handle(base::win::ScopedHandle( in CreateClientEndpoint()
Dplatform_channel.cc57 *local_endpoint = PlatformHandle(base::win::ScopedHandle( in CreateChannel()
74 *remote_endpoint = PlatformHandle(base::win::ScopedHandle( in CreateChannel()
247 PlatformHandle(base::win::ScopedHandle(LongToHandle(handle_value)))); in RecoverPassedEndpointFromString()
/external/libchrome/mojo/public/cpp/bindings/
Dmessage.h69 std::vector<ScopedHandle>* handles); in COMPONENT_EXPORT()
160 const std::vector<ScopedHandle>* handles() const { return &handles_; } in COMPONENT_EXPORT()
161 std::vector<ScopedHandle>* mutable_handles() { return &handles_; } in COMPONENT_EXPORT()
231 std::vector<ScopedHandle> handles_; in COMPONENT_EXPORT()
/external/libchrome/base/synchronization/
Dwaitable_event.h74 explicit WaitableEvent(win::ScopedHandle event_handle);
166 win::ScopedHandle handle_;

123