/external/libchrome/base/memory/ |
D | shared_memory_posix.cc | 37 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 …]
|
D | shared_memory_unittest.cc | 53 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 …]
|
D | shared_memory_tracker.cc | 27 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()
|
D | shared_memory_tracker.h | 26 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_;
|
D | shared_memory.h | 67 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);
|
D | shared_memory_android.cc | 20 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/ |
D | ShadowSharedMemoryTest.java | 6 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/ |
D | shared_memory.cc | 16 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
|
D | shared_memory.h | 31 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);
|
D | desktop_frame.h | 42 SharedMemory* shared_memory() const { return shared_memory_; } in shared_memory() 77 SharedMemory* shared_memory); 86 SharedMemory* const shared_memory_; 116 SharedMemory* shared_memory);
|
D | screen_capturer_unittest.cc | 31 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()
|
D | desktop_frame_win.h | 28 SharedMemory* shared_memory, 37 SharedMemory* shared_memory, 41 rtc::scoped_ptr<SharedMemory> owned_shared_memory_;
|
D | desktop_capturer.h | 22 class SharedMemory; variable 33 virtual SharedMemory* CreateSharedMemory(size_t size) = 0;
|
D | desktop_frame_win.cc | 20 SharedMemory* shared_memory, in DesktopFrameWin() 33 SharedMemory* shared_memory, in Create()
|
/external/libmojo/mojo/edk/embedder/ |
D | platform_shared_buffer.cc | 146 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 …]
|
D | platform_shared_buffer.h | 124 std::unique_ptr<base::SharedMemory> shared_memory_; 128 std::unique_ptr<base::SharedMemory> ro_shared_memory_; 170 base::SharedMemory shared_memory_;
|
D | embedder_unittest.cc | 352 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/ |
D | virtual_destructors.cc | 35 SharedMemory::~SharedMemory() = default; 36 SharedMemory::Factory::~Factory() = default;
|
D | service_impl.h | 47 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/ |
D | shared_memory.h | 35 class PERFETTO_EXPORT SharedMemory { 40 virtual std::unique_ptr<SharedMemory> CreateSharedMemory(size_t) = 0; 45 virtual ~SharedMemory();
|
D | shared_memory_arbiter.h | 37 class SharedMemory; variable 59 SharedMemory*,
|
/external/perfetto/src/tracing/test/ |
D | test_shared_memory.h | 31 class TestSharedMemory : public SharedMemory { 33 class Factory : public SharedMemory::Factory { 36 std::unique_ptr<SharedMemory> CreateSharedMemory(size_t size) override;
|
D | test_shared_memory.cc | 35 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/ |
D | posix_shared_memory.h | 30 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/ |
D | library_prefetcher_unittest.cc | 101 base::SharedMemory shared_mem; in TEST() 123 base::SharedMemory shared_mem; in TEST() 128 base::SharedMemory shared_mem2; in TEST()
|