Home
last modified time | relevance | path

Searched refs:ashmemLength (Results 1 - 13 of 13) sorted by relevance

/drivers/peripheral/bluetooth/audio/hal/hdi_passthrough/src/
H A Dfast_audio_render.cpp310 int32_t ashmemLength = realSize * static_cast<int32_t>(attr.channelCount) * attr.format; in FastRenderReqMmapBuffer() local
311 if (ashmemLength < MIN_ASHMEM_LEN || ashmemLength > MAX_ASHMEM_LEN) { in FastRenderReqMmapBuffer()
312 HDF_LOGE("reqMmapBuffer failed, length is illegal %{public}d", ashmemLength); in FastRenderReqMmapBuffer()
315 int32_t fd = OHOS::Bluetooth::FastReqMmapBuffer(ashmemLength); in FastRenderReqMmapBuffer()
H A Daudio_bluetooth_manager.cpp307 int FastReqMmapBuffer(int32_t ashmemLength) in FastReqMmapBuffer() argument
309 return fastReqMmapBufferFunc(ashmemLength); in FastReqMmapBuffer()
/drivers/peripheral/distributed_audio/hdi_service/audio/v1_0/src/
H A Daudio_capture_ext_impl.cpp50 int32_t AudioCaptureExtImpl::InitAshmem(int32_t ashmemLength) in InitAshmem() argument
53 if (ashmemLength < DAUDIO_MIN_ASHMEM_LEN || ashmemLength > DAUDIO_MAX_ASHMEM_LEN) { in InitAshmem()
57 ashmem_ = OHOS::Ashmem::CreateAshmem(memory_name.c_str(), ashmemLength); in InitAshmem()
67 DHLOGI("Init Ashmem success, fd: %{public}d, length: %{public}d", fd_, ashmemLength); in InitAshmem()
H A Daudio_render_ext_impl.cpp48 int32_t AudioRenderExtImpl::InitAshmem(int32_t ashmemLength) in InitAshmem() argument
51 if (ashmemLength < DAUDIO_MIN_ASHMEM_LEN || ashmemLength > DAUDIO_MAX_ASHMEM_LEN) { in InitAshmem()
55 ashmem_ = OHOS::Ashmem::CreateAshmem(memory_name.c_str(), ashmemLength); in InitAshmem()
66 DHLOGI("Init Ashmem success, fd: %{public}d, length: %{public}d", fd_, ashmemLength); in InitAshmem()
/drivers/peripheral/distributed_audio/hdi_service/audio/v1_0/test/unittest/audio_render_extension/src/
H A Daudio_render_ext_impl_test.cpp64 int32_t ashmemLength = 1024; in HWTEST_F() local
68 EXPECT_EQ(HDF_SUCCESS, audioRenderlatencyImpl_->InitAshmem(ashmemLength)); in HWTEST_F()
77 EXPECT_EQ(HDF_SUCCESS, audioRenderlatencyImpl_->AudioDevDump(ashmemLength, fd)); in HWTEST_F()
99 int32_t ashmemLength = -1; in HWTEST_F() local
115 EXPECT_EQ(HDF_FAILURE, audioRenderlatencyImpl_->InitAshmem(ashmemLength)); in HWTEST_F()
/drivers/peripheral/bluetooth/audio/hal/hdi_passthrough/include/
H A Dbluetooth_audio_device.h40 typedef int32_t (*ReqMmapBufferFunc)(int32_t ashmemLength);
H A Daudio_bluetooth_manager.h54 int FastReqMmapBuffer(int32_t ashmemLength);
/drivers/peripheral/distributed_audio/hdi_service/audio/v1_0/test/unittest/audio_capture_extension/src/
H A Daudio_capture_ext_impl_test.cpp60 int32_t ashmemLength = 1024; in HWTEST_F() local
61 EXPECT_EQ(HDF_SUCCESS, audioCapturelatencyImpl_->InitAshmem(ashmemLength)); in HWTEST_F()
81 int32_t ashmemLength = -1; in HWTEST_F() local
82 EXPECT_EQ(HDF_FAILURE, audioCapturelatencyImpl_->InitAshmem(ashmemLength)); in HWTEST_F()
/drivers/peripheral/distributed_audio/hdi_service/audio_ext/v1_0/test/unittest/include/
H A Ddaudio_test_utils.h65 int32_t RefreshAshmemInfo(int32_t streamId, int fd, int32_t ashmemLength, int32_t lengthPerTrans) override
/drivers/peripheral/distributed_audio/interface/audio_ext/v1_0/
H A Di_daudio_hdf_callback.h35 int32_t fd, int32_t ashmemLength, int32_t lengthPerTrans) = 0;
/drivers/peripheral/distributed_audio/hdi_service/audio/v1_0/include/
H A Daudio_capture_ext_impl.h83 int32_t InitAshmem(int32_t ashmemLength);
H A Daudio_render_ext_impl.h98 int32_t InitAshmem(int32_t ashmemLength);
/drivers/peripheral/distributed_audio/hdi_service/audio/v1_0/test/unittest/audio_test_utils/
H A Daudio_test_utils.h80 int32_t RefreshAshmemInfo(int32_t streamId, int fd, int32_t ashmemLength, int32_t lengthPerTrans) override
522 int32_t RefreshAshmemInfo(int32_t streamId, int fd, int32_t ashmemLength, int32_t lengthPerTrans) override

Completed in 7 milliseconds