/external/adhd/cras/src/tests/ |
D | shm_unittest.cc | 18 memset(&shm_, 0, sizeof(shm_)); in SetUp() 19 shm_.header = in SetUp() 20 static_cast<cras_audio_shm_header*>(calloc(1, sizeof(*shm_.header))); in SetUp() 21 shm_.samples = static_cast<uint8_t*>(calloc(1, 2048)); in SetUp() 22 shm_.samples_info.length = 2048; in SetUp() 23 cras_shm_set_frame_bytes(&shm_, 4); in SetUp() 25 cras_shm_set_used_size(&shm_, 1024); in SetUp() 26 memcpy(&shm_.header->config, &shm_.config, sizeof(shm_.config)); in SetUp() 32 free(shm_.header); in TearDown() 33 free(shm_.samples); in TearDown() [all …]
|
D | audio_thread_unittest_obsolete.cc | 94 shm_ = cras_rstream_input_shm(rstream_); in SetUp() 122 free(shm_->area); in TearDown() 212 struct cras_audio_shm* shm_; member in ReadStreamSuite 271 EXPECT_EQ(0, shm_->area->write_offset[0]); in TEST_F() 460 EXPECT_EQ(0, cras_shm_num_overruns(shm_)); in TEST_F() 469 EXPECT_EQ(0, cras_shm_num_overruns(shm_)); in TEST_F() 513 shm_ = cras_rstream_output_shm(rstream_); in SetUp() 540 free(shm_->area); in TearDown() 641 struct cras_audio_shm* shm_; member in WriteStreamSuite 701 shm_->area->write_offset[0] = cb_threshold_ * 4; in TEST_F() [all …]
|
/external/libchrome/base/memory/ |
D | shared_memory_android.cc | 21 DCHECK(!shm_.IsValid()); in Create() 30 shm_ = SharedMemoryHandle::ImportHandle(fd, options.size); in Create() 31 if (!shm_.IsValid()) { in Create() 37 int err = ashmem_set_prot_region(shm_.GetHandle(), flags); in Create() 61 if (shm_.IsValid()) { in Close() 62 shm_.Close(); in Close() 63 shm_ = SharedMemoryHandle(); in Close() 70 SharedMemoryHandle handle = shm_.Duplicate(); in GetReadOnlyHandle()
|
D | shared_memory_posix.cc | 47 : shm_(handle), read_only_(read_only) {} in SharedMemory() 95 DCHECK(!shm_.IsValid()); in Create() 201 shm_ = SharedMemoryHandle(FileDescriptor(mapped_file, false), options.size, in Create() 205 options.size, shm_.GetGUID()); in Create() 252 shm_ = SharedMemoryHandle(FileDescriptor(mapped_file, false), 0u, in Open() 255 FileDescriptor(readonly_mapped_file, false), 0, shm_.GetGUID()); in Open() 261 if (!shm_.IsValid()) in MapAt() 275 int ashmem_bytes = ashmem_get_size_region(shm_.GetHandle()); in MapAt() 299 MAP_SHARED, shm_.GetHandle(), offset); in MapAt() 304 mapped_id_ = shm_.GetGUID(); in MapAt() [all …]
|
D | ref_counted_memory.cc | 89 : shm_(std::move(shm)), size_(size) { in RefCountedSharedMemory() 90 DCHECK(shm_); in RefCountedSharedMemory() 91 DCHECK(shm_->memory()); in RefCountedSharedMemory() 93 DCHECK_LE(size_, shm_->mapped_size()); in RefCountedSharedMemory() 99 return static_cast<const unsigned char*>(shm_->memory()); in front()
|
D | shared_memory.h | 241 SharedMemoryHandle shm_; variable
|
D | ref_counted_memory.h | 159 const std::unique_ptr<SharedMemory> shm_; variable
|
/external/libchrome/libchrome_tools/patch/ |
D | shared_memory_posix.patch | 24 FileDescriptor(readonly_mapped_file, false), 0, shm_.GetGUID()); 31 if (!shm_.IsValid()) 45 - if (shm_.IsReadOnly()) { 54 - if (!shm_.SetRegionReadOnly()) { // Ensure the region is read-only. 58 + // if (shm_.IsReadOnly()) { 67 + // if (!shm_.SetRegionReadOnly()) { // Ensure the region is read-only. 81 if (shm_.IsValid()) { 82 shm_.Close();
|
/external/v4l2_codec2/accel/ |
D | shared_memory_region.cc | 15 : shm_(handle, read_only), in SharedMemoryRegion() 34 return shm_.MapAt(offset_ - alignment_size_, size_ + alignment_size_); in Map() 38 int8_t* addr = reinterpret_cast<int8_t*>(shm_.memory()); in memory()
|
D | shared_memory_region.h | 47 base::SharedMemory shm_;
|
/external/perfetto/test/ |
D | test_helper.h | 125 std::move(shm_), std::move(shm_arbiter_)); in Connect() 135 shm_ = factory.CreateSharedMemory(1024 * 1024); in CreateProducerProvidedSmb() 137 SharedMemoryArbiter::CreateUnboundInstance(shm_.get(), base::kPageSize); in CreateProducerProvidedSmb() 154 std::unique_ptr<SharedMemory> shm_; variable
|
/external/python/cpython3/ |
D | configure.ac | 5530 # shm_* may only be available if linking against librt
|