Home
last modified time | relevance | path

Searched refs:SharedMemoryHandle (Results 1 – 25 of 34) sorted by relevance

12

/external/libchrome/base/memory/
Dshared_memory_handle_posix.cc15 SharedMemoryHandle::SharedMemoryHandle() = default;
17 SharedMemoryHandle::SharedMemoryHandle( in SharedMemoryHandle() function in base::SharedMemoryHandle
24 SharedMemoryHandle SharedMemoryHandle::ImportHandle(int fd, size_t size) { in ImportHandle()
25 SharedMemoryHandle handle; in ImportHandle()
33 int SharedMemoryHandle::GetHandle() const { in GetHandle()
37 bool SharedMemoryHandle::IsValid() const { in IsValid()
41 void SharedMemoryHandle::Close() const { in Close()
46 int SharedMemoryHandle::Release() { in Release()
52 SharedMemoryHandle SharedMemoryHandle::Duplicate() const { in Duplicate()
54 return SharedMemoryHandle(); in Duplicate()
[all …]
Dshared_memory_handle_android.cc27 SharedMemoryHandle::SharedMemoryHandle() = default;
29 SharedMemoryHandle::SharedMemoryHandle( in SharedMemoryHandle() function in base::SharedMemoryHandle
39 SharedMemoryHandle SharedMemoryHandle::ImportHandle(int fd, size_t size) { in ImportHandle()
40 SharedMemoryHandle handle; in ImportHandle()
48 int SharedMemoryHandle::GetHandle() const { in GetHandle()
53 bool SharedMemoryHandle::IsValid() const { in IsValid()
57 void SharedMemoryHandle::Close() const { in Close()
63 int SharedMemoryHandle::Release() { in Release()
69 SharedMemoryHandle SharedMemoryHandle::Duplicate() const { in Duplicate()
71 SharedMemoryHandle result; in Duplicate()
[all …]
Dshared_memory.h41 SharedMemoryHandle::Type type = SharedMemoryHandle::MACH;
89 SharedMemory(const SharedMemoryHandle& handle, bool read_only);
96 static bool IsHandleValid(const SharedMemoryHandle& handle);
99 static void CloseHandle(const SharedMemoryHandle& handle);
107 static SharedMemoryHandle DuplicateHandle(const SharedMemoryHandle& handle);
111 static int GetFdFromSharedMemoryHandle(const SharedMemoryHandle& handle);
190 SharedMemoryHandle handle() const;
196 SharedMemoryHandle TakeHandle();
210 SharedMemoryHandle GetReadOnlyHandle() const;
231 SharedMemoryHandle readonly_shm_;
[all …]
Dshared_memory_handle.h37 class BASE_EXPORT SharedMemoryHandle {
40 SharedMemoryHandle();
44 SharedMemoryHandle(const SharedMemoryHandle& handle);
48 SharedMemoryHandle& operator=(const SharedMemoryHandle& handle);
69 SharedMemoryHandle Duplicate() const;
88 SharedMemoryHandle(HANDLE h, size_t size, const base::UnguessableToken& guid);
99 SharedMemoryHandle(zx_handle_t h,
115 SharedMemoryHandle(mach_vm_size_t size, const base::UnguessableToken& guid);
121 SharedMemoryHandle(mach_port_t memory_object,
139 static SharedMemoryHandle ImportHandle(int fd, size_t size);
[all …]
Dshared_memory_handle.cc9 SharedMemoryHandle::SharedMemoryHandle(const SharedMemoryHandle& handle) =
12 SharedMemoryHandle& SharedMemoryHandle::operator=(
13 const SharedMemoryHandle& handle) = default;
15 base::UnguessableToken SharedMemoryHandle::GetGUID() const { in GetGUID()
19 size_t SharedMemoryHandle::GetSize() const { in GetSize()
Dshared_memory_posix.cc46 SharedMemory::SharedMemory(const SharedMemoryHandle& handle, bool read_only) in SharedMemory()
55 bool SharedMemory::IsHandleValid(const SharedMemoryHandle& handle) { in IsHandleValid()
60 void SharedMemory::CloseHandle(const SharedMemoryHandle& handle) { in CloseHandle()
71 SharedMemoryHandle SharedMemory::DuplicateHandle( in DuplicateHandle()
72 const SharedMemoryHandle& handle) { in DuplicateHandle()
78 const SharedMemoryHandle& handle) { in GetFdFromSharedMemoryHandle()
201 shm_ = SharedMemoryHandle(FileDescriptor(mapped_file, false), options.size, in Create()
204 SharedMemoryHandle(FileDescriptor(readonly_mapped_file, false), in Create()
252 shm_ = SharedMemoryHandle(FileDescriptor(mapped_file, false), 0u, in Open()
254 readonly_shm_ = SharedMemoryHandle( in Open()
[all …]
Dshared_memory_android.cc30 shm_ = SharedMemoryHandle::ImportHandle(fd, options.size); in Create()
63 shm_ = SharedMemoryHandle(); in Close()
67 SharedMemoryHandle SharedMemory::GetReadOnlyHandle() const { in GetReadOnlyHandle()
70 SharedMemoryHandle handle = shm_.Duplicate(); in GetReadOnlyHandle()
Dshared_memory_unittest.cc372 options.type = SharedMemoryHandle::POSIX; in TEST_P()
379 SharedMemoryHandle readonly_handle = writable_shmem.GetReadOnlyHandle(); in TEST_P()
412 SharedMemoryHandle handle = readonly_shmem.handle(); in TEST_P()
480 SharedMemoryHandle shared_handle = shmem.handle().Duplicate(); in TEST_P()
512 SharedMemoryHandle shared_handle = shmem.handle().Duplicate(); in TEST_P()
608 options.type = SharedMemoryHandle::POSIX; in TEST_P()
670 options.type = SharedMemoryHandle::POSIX; in TEST_P()
696 options.type = SharedMemoryHandle::POSIX; in TEST_P()
751 SharedMemoryHandle(section_handle.Take(), 1, UnguessableToken::Create()), in TEST_P()
767 SharedMemoryHandle(handle_no_query, options.size, in TEST_P()
[all …]
/external/libchrome/ipc/
Dipc_test_messages.h17 IPC_MESSAGE_CONTROL1(TestSharedMemoryHandleMsg1, base::SharedMemoryHandle)
26 base::SharedMemoryHandle,
29 base::SharedMemoryHandle,
30 base::SharedMemoryHandle)
33 base::SharedMemoryHandle,
35 base::SharedMemoryHandle)
Dipc_message_utils_unittest.cc144 TEST(IPCMessageUtilsTest, SharedMemoryHandle) { in TEST() argument
150 base::SharedMemoryHandle pre_pickle = shmem.handle().Duplicate(); in TEST()
156 base::SharedMemoryHandle post_pickle; in TEST()
Dipc_message_utils.cc646 void ParamTraits<base::SharedMemoryHandle>::Write(base::Pickle* m, in Write()
700 bool ParamTraits<base::SharedMemoryHandle>::Read(const base::Pickle* m, in Read()
703 *r = base::SharedMemoryHandle(); in Read()
747 *r = base::SharedMemoryHandle(handle_win.get_handle(), in Read()
750 *r = base::SharedMemoryHandle(handle_fuchsia.get_handle(), in Read()
753 *r = base::SharedMemoryHandle(mach_port_mac.get_mach_port(), in Read()
756 *r = base::SharedMemoryHandle( in Read()
772 void ParamTraits<base::SharedMemoryHandle>::Log(const param_type& p, in Log()
/external/v4l2_codec2/vda/
Dbitstream_buffer.h35 base::SharedMemoryHandle handle,
45 base::SharedMemoryHandle handle() const { return handle_; } in handle()
59 void set_handle(const base::SharedMemoryHandle& handle) { handle_ = handle; } in set_handle()
63 base::SharedMemoryHandle handle_;
Dbitstream_buffer.cc11 : BitstreamBuffer(-1, base::SharedMemoryHandle(), 0) {} in BitstreamBuffer()
14 base::SharedMemoryHandle handle, in BitstreamBuffer()
Dshared_memory_region.h27 SharedMemoryRegion(const base::SharedMemoryHandle& handle,
Dshared_memory_region.cc11 SharedMemoryRegion::SharedMemoryRegion(const base::SharedMemoryHandle& handle, in SharedMemoryRegion()
/external/libchrome/base/metrics/
Dfield_trial.cc235 SharedMemoryHandle GetSharedMemoryReadOnlyHandle(SharedMemory* shared_memory) { in GetSharedMemoryReadOnlyHandle()
236 SharedMemoryHandle result = shared_memory->GetReadOnlyHandle(); in GetSharedMemoryReadOnlyHandle()
892 SharedMemoryHandle FieldTrialList::GetFieldTrialHandle() { in GetFieldTrialHandle()
898 return SharedMemoryHandle(); in GetFieldTrialHandle()
1203 const SharedMemoryHandle& shm) { in SerializeSharedMemoryHandleMetadata()
1224 SharedMemoryHandle FieldTrialList::DeserializeSharedMemoryHandleMetadata( in DeserializeSharedMemoryHandleMetadata()
1230 return SharedMemoryHandle(); in DeserializeSharedMemoryHandleMetadata()
1234 return SharedMemoryHandle(); in DeserializeSharedMemoryHandleMetadata()
1252 return SharedMemoryHandle(); in DeserializeSharedMemoryHandleMetadata()
1256 return SharedMemoryHandle(); in DeserializeSharedMemoryHandleMetadata()
[all …]
Dfield_trial.h593 static base::SharedMemoryHandle GetFieldTrialHandle();
690 const SharedMemoryHandle& shm);
692 static SharedMemoryHandle DeserializeSharedMemoryHandleMetadata(
695 static SharedMemoryHandle DeserializeSharedMemoryHandleMetadata(
717 static bool CreateTrialsFromSharedMemoryHandle(SharedMemoryHandle shm_handle);
792 base::SharedMemoryHandle readonly_allocator_handle_;
Dfield_trial_unittest.cc1232 SharedMemoryHandle handle; in TEST()
1260 SharedMemoryHandle handle; in TEST()
1340 SharedMemoryHandle handle; in TEST()
1437 SharedMemoryHandle deserialized = in TEST()
1443 SharedMemoryHandle deserialized = in TEST()
1465 SharedMemoryHandle handle = FieldTrialList::GetFieldTrialHandle(); in TEST()
/external/libchrome/mojo/core/
Dplatform_wrapper_unittest.cc124 base::SharedMemoryHandle memory_handle = in TEST_F()
187 base::SharedMemoryHandle memory_handle( in DEFINE_TEST_CLIENT_TEST_WITH_PIPE()
191 base::SharedMemoryHandle memory_handle( in DEFINE_TEST_CLIENT_TEST_WITH_PIPE()
195 base::SharedMemoryHandle memory_handle( in DEFINE_TEST_CLIENT_TEST_WITH_PIPE()
199 base::SharedMemoryHandle memory_handle( in DEFINE_TEST_CLIENT_TEST_WITH_PIPE()
/external/libchrome/libchrome_tools/patch/
Dshared_memory_handle.patch5 @@ -146,7 +146,7 @@ class BASE_EXPORT SharedMemoryHandle {
14 @@ -218,7 +218,7 @@ class BASE_EXPORT SharedMemoryHandle {
Dshared_memory_posix.patch74 @@ -334,7 +339,7 @@ SharedMemoryHandle SharedMemory::TakeHandle() {
83 @@ -374,6 +379,6 @@ SharedMemoryHandle SharedMemory::GetReadOnlyHandle() const {
/external/libchrome/mojo/public/cpp/system/
Dplatform_handle.cc238 const base::SharedMemoryHandle& memory_handle, in WrapSharedMemoryHandle()
285 base::SharedMemoryHandle* memory_handle, in UnwrapSharedMemoryHandle()
321 *memory_handle = base::SharedMemoryHandle( in UnwrapSharedMemoryHandle()
326 *memory_handle = base::SharedMemoryHandle( in UnwrapSharedMemoryHandle()
331 *memory_handle = base::SharedMemoryHandle( in UnwrapSharedMemoryHandle()
352 *memory_handle = base::SharedMemoryHandle( in UnwrapSharedMemoryHandle()
Dplatform_handle.h125 const base::SharedMemoryHandle& memory_handle,
147 base::SharedMemoryHandle* memory_handle,
/external/libchrome/base/test/
Dtest_shared_memory_util.cc121 bool CheckReadOnlySharedMemoryHandleForTesting(SharedMemoryHandle handle) { in CheckReadOnlySharedMemoryHandleForTesting()
124 if (handle.type_ == SharedMemoryHandle::POSIX) in CheckReadOnlySharedMemoryHandleForTesting()
Dtest_shared_memory_util.h20 bool CheckReadOnlySharedMemoryHandleForTesting(SharedMemoryHandle handle);

12