Home
last modified time | relevance | path

Searched refs:cras_audio_shm_area (Results 1 – 12 of 12) sorted by relevance

/external/adhd/cras/src/tests/
Ddev_io_stubs.cc25 uint32_t shm_size = sizeof(cras_audio_shm_area) + used_size * 2; in create_shm()
26 ShmPtr shm(reinterpret_cast<cras_audio_shm_area*>(calloc(1, shm_size)), in create_shm()
38 cras_audio_shm_area* shm) { in create_rstream()
Ddev_io_stubs.h30 using ShmPtr = std::unique_ptr<cras_audio_shm_area, decltype(free)*>;
63 cras_audio_shm_area* shm);
Dcras_client_unittest.cc53 shm->area = static_cast<cras_audio_shm_area*>( in InitShm()
176 struct cras_audio_shm_area area; in StreamConnected()
229 struct cras_audio_shm_area area; in StreamConnectedFail()
Drstream_unittest.cc148 shm_mapped.area = (struct cras_audio_shm_area *)mmap( in TEST_F()
185 shm_mapped.area = (struct cras_audio_shm_area *)mmap( in TEST_F()
Daudio_thread_unittest_obsolete.cc141 shm->area = (struct cras_audio_shm_area *)calloc(1, in SetupRstream()
569 shm->area = (struct cras_audio_shm_area *)calloc(1, in SetupRstream()
1212 shm->area = (struct cras_audio_shm_area *)calloc(1, sizeof(*shm->area)); in add_rm_two_streams()
1237 shm->area = (struct cras_audio_shm_area *)calloc(1, sizeof(*shm->area)); in add_rm_two_streams()
1320 shm->area = (struct cras_audio_shm_area *)calloc(1, sizeof(*shm->area)); in TEST_F()
1360 shm->area = (struct cras_audio_shm_area *)calloc(1, sizeof(*shm->area)); in TEST_F()
1398 shm->area = (struct cras_audio_shm_area *)calloc(1, sizeof(*shm->area)); in TEST_F()
1519 shm->area = (struct cras_audio_shm_area *)calloc(1, in SetupRstream()
1525 shm->area = (struct cras_audio_shm_area *)calloc(1, in SetupRstream()
Dmix_unittest.cc32 calloc(1, kBufferFrames * 4 + sizeof(cras_audio_shm_area))); in SetUp()
291 calloc(1, kBufferFrames * fr_bytes_ + sizeof(cras_audio_shm_area))); in SetUp()
549 calloc(1, kBufferFrames * fr_bytes_ + sizeof(cras_audio_shm_area))); in SetUp()
807 calloc(1, kBufferFrames * fr_bytes_ + sizeof(cras_audio_shm_area))); in SetUp()
Daudio_thread_unittest.cc126 rstream->shm.area = static_cast<cras_audio_shm_area*>( in SetupRstream()
702 struct cras_audio_shm_area shm_area; in TEST()
Dshm_unittest.cc20 static_cast<cras_audio_shm_area *>( in SetUp()
Ddev_stream_unittest.cc184 shm->area = static_cast<struct cras_audio_shm_area *>( in SetupShm()
185 calloc(1, kBufferFrames * 4 + sizeof(cras_audio_shm_area))); in SetupShm()
/external/adhd/cras/src/common/
Dcras_shm.h49 struct __attribute__ ((__packed__)) cras_audio_shm_area { struct
71 struct cras_audio_shm_area *area; argument
346 struct cras_audio_shm_area *area = shm->area; in cras_shm_buffer_read()
377 struct cras_audio_shm_area *area = shm->area; in cras_shm_buffer_read_current()
/external/adhd/cras/src/server/
Dcras_rstream.c37 shm_info->length = sizeof(struct cras_audio_shm_area) + samples_size; in setup_shm()
50 if (shm->area == (struct cras_audio_shm_area *)-1) { in setup_shm()
/external/adhd/cras/src/libcras/
Dcras_client.c1406 shm->area = (struct cras_audio_shm_area *)mmap( in config_shm()
1409 if (shm->area == (struct cras_audio_shm_area *)-1) { in config_shm()