Home
last modified time | relevance | path

Searched refs:SharedMemory (Results 1 – 25 of 38) sorted by relevance

12

/external/libchrome/base/memory/
Dshared_memory_mac.cc77 SharedMemory::SharedMemory() in SharedMemory() function in base::SharedMemory
80 SharedMemory::SharedMemory(const SharedMemoryHandle& handle, bool read_only) in SharedMemory() function in base::SharedMemory
87 SharedMemory::~SharedMemory() { in ~SharedMemory()
93 bool SharedMemory::IsHandleValid(const SharedMemoryHandle& handle) { in IsHandleValid()
98 SharedMemoryHandle SharedMemory::NULLHandle() { in NULLHandle()
103 void SharedMemory::CloseHandle(const SharedMemoryHandle& handle) { in CloseHandle()
108 size_t SharedMemory::GetHandleLimit() { in GetHandleLimit()
114 SharedMemoryHandle SharedMemory::DuplicateHandle( in DuplicateHandle()
119 bool SharedMemory::CreateAndMapAnonymous(size_t size) { in CreateAndMapAnonymous()
124 bool SharedMemory::GetSizeFromSharedMemoryHandle( in GetSizeFromSharedMemoryHandle()
[all …]
Dshared_memory_posix.cc112 SharedMemory::SharedMemory() in SharedMemory() function in base::SharedMemory
121 SharedMemory::SharedMemory(const SharedMemoryHandle& handle, bool read_only) in SharedMemory() function in base::SharedMemory
130 SharedMemory::~SharedMemory() { in ~SharedMemory()
136 bool SharedMemory::IsHandleValid(const SharedMemoryHandle& handle) { in IsHandleValid()
141 SharedMemoryHandle SharedMemory::NULLHandle() { in NULLHandle()
146 void SharedMemory::CloseHandle(const SharedMemoryHandle& handle) { in CloseHandle()
153 size_t SharedMemory::GetHandleLimit() { in GetHandleLimit()
158 SharedMemoryHandle SharedMemory::DuplicateHandle( in DuplicateHandle()
162 return base::SharedMemory::NULLHandle(); in DuplicateHandle()
167 int SharedMemory::GetFdFromSharedMemoryHandle( in GetFdFromSharedMemoryHandle()
[all …]
Dshared_memory_unittest.cc53 SharedMemory memory; in CleanUp()
60 SharedMemory memory; in ThreadMain()
102 SharedMemory memory1; in TEST()
113 SharedMemory memory2; in TEST()
154 SharedMemory memory1; in TEST()
173 SharedMemory memory2; in TEST()
215 SharedMemory memory; in TEST()
224 EXPECT_EQ(SharedMemory::NULLHandle(), memory.handle()); in TEST()
284 std::unique_ptr<SharedMemory[]> memories(new SharedMemory[count]); in TEST()
324 SharedMemory writable_shmem; in TEST()
[all …]
Dshared_memory_mac_unittest.cc57 std::unique_ptr<SharedMemory> CreateSharedMemory(int size) { in CreateSharedMemory()
63 std::unique_ptr<SharedMemory> shared_memory(new SharedMemory(shm, false)); in CreateSharedMemory()
233 std::unique_ptr<SharedMemory> shared_memory( in TEST_F()
252 SharedMemory shared_memory(shm, false); in MULTIPROCESS_TEST_MAIN()
267 SharedMemory shared_memory(shm, false); in TEST_F()
292 SharedMemory shared_memory(shm, false); in MULTIPROCESS_TEST_MAIN()
335 std::unique_ptr<SharedMemory> shared_memory = in TEST_F()
355 std::unique_ptr<SharedMemory> shared_memory(new SharedMemory(shm, false)); in TEST_F()
366 std::unique_ptr<SharedMemory> shared_memory( in TEST_F()
371 SharedMemory shared_memory2(shm2, true); in TEST_F()
[all …]
Dshared_memory.h66 class BASE_EXPORT SharedMemory {
68 SharedMemory();
74 explicit SharedMemory(const std::wstring& name);
84 SharedMemory(const SharedMemoryHandle& handle, bool read_only);
87 ~SharedMemory();
283 DISALLOW_COPY_AND_ASSIGN(SharedMemory);
Dshared_memory_android.cc25 bool SharedMemory::Create(const SharedMemoryCreateOptions& options) { in Create()
60 bool SharedMemory::Delete(const std::string&) { in Delete()
66 bool SharedMemory::Open(const std::string&, bool /*read_only*/) { in Open()
/external/webrtc/webrtc/modules/desktop_capture/
Dshared_memory.cc16 const SharedMemory::Handle SharedMemory::kInvalidHandle = NULL;
18 const SharedMemory::Handle SharedMemory::kInvalidHandle = -1;
21 SharedMemory::SharedMemory(void* data, size_t size, Handle handle, int id) in SharedMemory() function in webrtc::SharedMemory
Dshared_memory.h31 class SharedMemory {
51 virtual ~SharedMemory() {} in ~SharedMemory()
54 SharedMemory(void* data, size_t size, Handle handle, int id);
62 RTC_DISALLOW_COPY_AND_ASSIGN(SharedMemory);
Ddesktop_frame.h42 SharedMemory* shared_memory() const { return shared_memory_; } in shared_memory()
77 SharedMemory* shared_memory);
86 SharedMemory* const shared_memory_;
116 SharedMemory* shared_memory);
Ddesktop_frame_win.h28 SharedMemory* shared_memory,
37 SharedMemory* shared_memory,
41 rtc::scoped_ptr<SharedMemory> owned_shared_memory_;
Dscreen_capturer_unittest.cc31 SharedMemory* CreateSharedMemory(size_t size);
43 class FakeSharedMemory : public SharedMemory {
46 : SharedMemory(buffer, size, 0, kTestSharedMemoryId), in FakeSharedMemory()
57 SharedMemory* ScreenCapturerTest::CreateSharedMemory(size_t size) { in CreateSharedMemory()
82 .WillRepeatedly(Return(static_cast<SharedMemory*>(NULL))); in TEST_F()
Ddesktop_capturer.h22 class SharedMemory; variable
33 virtual SharedMemory* CreateSharedMemory(size_t size) = 0;
Ddesktop_frame_win.cc20 SharedMemory* shared_memory, in DesktopFrameWin()
33 SharedMemory* shared_memory, in Create()
Ddesktop_frame.cc21 SharedMemory* shared_memory) in DesktopFrame()
84 SharedMemory* shared_memory) in SharedMemoryDesktopFrame()
Dscreen_capturer_mock_objects.h38 MOCK_METHOD1(CreateSharedMemory, SharedMemory*(size_t));
Ddesktop_and_cursor_composer.h41 SharedMemory* CreateSharedMemory(size_t size) override;
Dcropping_window_capturer.h42 SharedMemory* CreateSharedMemory(size_t size) override;
/external/libmojo/mojo/edk/embedder/
Dplatform_shared_buffer.cc146 handle = base::SharedMemory::DuplicateHandle(shared_memory_->handle()); in MapNoCheck()
148 if (handle == base::SharedMemory::NULLHandle()) in MapNoCheck()
164 handle = base::SharedMemory::DuplicateHandle(shared_memory_->handle()); in DuplicatePlatformHandle()
166 if (handle == base::SharedMemory::NULLHandle()) in DuplicatePlatformHandle()
188 return base::SharedMemory::DuplicateHandle(shared_memory_->handle()); in DuplicateSharedMemoryHandle()
197 handle = base::SharedMemory::DuplicateHandle(ro_shared_memory_->handle()); in CreateReadOnlyDuplicate()
198 if (handle == base::SharedMemory::NULLHandle()) in CreateReadOnlyDuplicate()
210 if (!success || handle == base::SharedMemory::NULLHandle()) in CreateReadOnlyDuplicate()
230 shared_memory_.reset(new base::SharedMemory); in Init()
249 shared_memory_.reset(new base::SharedMemory(handle, read_only_)); in InitFromPlatformHandle()
[all …]
Dplatform_shared_buffer.h124 std::unique_ptr<base::SharedMemory> shared_memory_;
128 std::unique_ptr<base::SharedMemory> ro_shared_memory_;
170 base::SharedMemory shared_memory_;
Dembedder_unittest.cc346 base::SharedMemory shared_memory; in TEST_F()
348 base::SharedMemoryHandle shm_handle = base::SharedMemory::DuplicateHandle( in TEST_F()
408 base::SharedMemory shared_memory(shm_handle, false); in DEFINE_TEST_CLIENT_TEST_WITH_PIPE()
425 base::SharedMemory shared_memory; in TEST_F()
427 base::SharedMemoryHandle shm_handle = base::SharedMemory::DuplicateHandle( in TEST_F()
499 base::SharedMemory shared_memory; in TEST_F()
502 base::SharedMemory::DuplicateHandle(shared_memory.handle()); in TEST_F()
/external/libchrome/base/metrics/
Dpersistent_memory_allocator.h24 class SharedMemory; variable
377 SharedPersistentMemoryAllocator(std::unique_ptr<SharedMemory> memory,
383 SharedMemory* shared_memory() { return shared_memory_.get(); } in shared_memory()
389 static bool IsSharedMemoryAcceptable(const SharedMemory& memory);
392 std::unique_ptr<SharedMemory> shared_memory_;
Dpersistent_memory_allocator_unittest.cc529 std::unique_ptr<SharedMemory> shmem1(new SharedMemory()); in TEST()
551 std::unique_ptr<SharedMemory> shmem2(new SharedMemory(shared_handle_1, in TEST()
577 std::unique_ptr<SharedMemory> shmem3(new SharedMemory(shared_handle_2, in TEST()
/external/libmojo/base/android/library_loader/
Dlibrary_prefetcher_unittest.cc101 base::SharedMemory shared_mem; in TEST()
123 base::SharedMemory shared_mem; in TEST()
128 base::SharedMemory shared_mem2; in TEST()
/external/v4l2_codec2/vda/
Dshared_memory_region.h46 base::SharedMemory shm_;
/external/libchrome/sandbox/win/src/
Dinterception_internal.h51 struct SharedMemory { struct

12