Home
last modified time | relevance | path

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

123

/external/libchrome/base/memory/
Dshared_memory_posix.cc37 SharedMemory::SharedMemory() in SharedMemory() function in base::SharedMemory
46 SharedMemory::SharedMemory(const SharedMemoryHandle& handle, bool read_only) in SharedMemory() function in base::SharedMemory
55 SharedMemory::~SharedMemory() { in ~SharedMemory()
61 bool SharedMemory::IsHandleValid(const SharedMemoryHandle& handle) { in IsHandleValid()
66 SharedMemoryHandle SharedMemory::NULLHandle() { in NULLHandle()
71 void SharedMemory::CloseHandle(const SharedMemoryHandle& handle) { in CloseHandle()
78 size_t SharedMemory::GetHandleLimit() { in GetHandleLimit()
83 SharedMemoryHandle SharedMemory::DuplicateHandle( in DuplicateHandle()
87 return base::SharedMemory::NULLHandle(); in DuplicateHandle()
92 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()
322 SharedMemory writable_shmem; in TEST()
[all …]
Dshared_memory_tracker.cc27 const SharedMemory& shared_memory) { in IncrementMemoryUsage()
34 SharedMemory::UniqueId id; in IncrementMemoryUsage()
44 const SharedMemory& shared_memory) { in DecrementMemoryUsage()
51 std::unordered_map<SharedMemory::UniqueId, size_t, SharedMemory::UniqueIdHash> in OnMemoryDump()
59 const SharedMemory::UniqueId& id = size.first; in OnMemoryDump()
Dshared_memory_tracker.h26 void IncrementMemoryUsage(const SharedMemory& shared_memory);
29 void DecrementMemoryUsage(const SharedMemory& shared_memory);
36 SharedMemory::UniqueId unique_id;
49 std::unordered_map<const SharedMemory*, Usage> usages_;
Dshared_memory.h67 class BASE_EXPORT SharedMemory {
69 SharedMemory();
75 explicit SharedMemory(const std::wstring& name);
85 SharedMemory(const SharedMemoryHandle& handle, bool read_only);
88 ~SharedMemory();
317 DISALLOW_COPY_AND_ASSIGN(SharedMemory);
Dshared_memory_android.cc20 bool SharedMemory::Create(const SharedMemoryCreateOptions& options) { in Create()
55 bool SharedMemory::Delete(const std::string& name) { in Delete()
61 bool SharedMemory::Open(const std::string& name, bool read_only) { in Open()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowSharedMemoryTest.java6 import android.os.SharedMemory;
21 SharedMemory sharedMemory = SharedMemory.create("foo", 4); in create()
28 SharedMemory sharedMemory = SharedMemory.create("foo", 4); in size()
35 SharedMemory sharedMemory = SharedMemory.create("foo", 4); in mapReadWrite()
/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);
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_frame_win.h28 SharedMemory* shared_memory,
37 SharedMemory* shared_memory,
41 rtc::scoped_ptr<SharedMemory> owned_shared_memory_;
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()
/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.cc352 base::SharedMemory shared_memory; in TEST_F()
354 base::SharedMemoryHandle shm_handle = base::SharedMemory::DuplicateHandle( in TEST_F()
414 base::SharedMemory shared_memory(shm_handle, false); in DEFINE_TEST_CLIENT_TEST_WITH_PIPE()
431 base::SharedMemory shared_memory; in TEST_F()
433 base::SharedMemoryHandle shm_handle = base::SharedMemory::DuplicateHandle( in TEST_F()
505 base::SharedMemory shared_memory; in TEST_F()
508 base::SharedMemory::DuplicateHandle(shared_memory.handle()); in TEST_F()
/external/perfetto/src/tracing/core/
Dvirtual_destructors.cc35 SharedMemory::~SharedMemory() = default;
36 SharedMemory::Factory::~Factory() = default;
Dservice_impl.h47 class SharedMemory; variable
74 void SetSharedMemory(std::unique_ptr<SharedMemory>);
83 SharedMemory* shared_memory() const override;
98 std::unique_ptr<SharedMemory> shared_memory_;
139 explicit ServiceImpl(std::unique_ptr<SharedMemory::Factory>,
287 std::unique_ptr<SharedMemory::Factory> shm_factory_;
/external/perfetto/include/perfetto/tracing/core/
Dshared_memory.h35 class PERFETTO_EXPORT SharedMemory {
40 virtual std::unique_ptr<SharedMemory> CreateSharedMemory(size_t) = 0;
45 virtual ~SharedMemory();
Dshared_memory_arbiter.h37 class SharedMemory; variable
59 SharedMemory*,
/external/perfetto/src/tracing/test/
Dtest_shared_memory.h31 class TestSharedMemory : public SharedMemory {
33 class Factory : public SharedMemory::Factory {
36 std::unique_ptr<SharedMemory> CreateSharedMemory(size_t size) override;
Dtest_shared_memory.cc35 std::unique_ptr<SharedMemory> TestSharedMemory::Factory::CreateSharedMemory( in CreateSharedMemory()
37 return std::unique_ptr<SharedMemory>(new TestSharedMemory(size)); in CreateSharedMemory()
/external/perfetto/src/tracing/ipc/
Dposix_shared_memory.h30 class PosixSharedMemory : public SharedMemory {
32 class Factory : public SharedMemory::Factory {
35 std::unique_ptr<SharedMemory> CreateSharedMemory(size_t) override;
/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()

123