Home
last modified time | relevance | path

Searched refs:ashmemLength (Results 1 – 25 of 35) sorted by relevance

12

/ohos5.0/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()
/ohos5.0/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; variable
68 EXPECT_EQ(HDF_SUCCESS, audioRenderlatencyImpl_->InitAshmem(ashmemLength));
77 EXPECT_EQ(HDF_SUCCESS, audioRenderlatencyImpl_->AudioDevDump(ashmemLength, fd));
99 int32_t ashmemLength = -1; variable
115 EXPECT_EQ(HDF_FAILURE, audioRenderlatencyImpl_->InitAshmem(ashmemLength));
/ohos5.0/docs/zh-cn/device-dev/reference/hdi-apis/distributed_audio/
H A Dinterface_i_d_audio_callback.md29 …[in] String adpName, [in] int devId, [in] FileDescriptor fd, [in] int ashmemLength, [in] int lengt…
157 …[in] String adpName, [in] int devId, [in] FileDescriptor fd, [in] int ashmemLength, [in] int lengt…
172 | ashmemLength | 共享内存总字节数。 |
/ohos5.0/drivers/peripheral/bluetooth/audio/hal/hdi_passthrough/src/
H A Dfast_audio_render.cpp331 int32_t ashmemLength = realSize * static_cast<int32_t>(attr.channelCount) * attr.format; in FastRenderReqMmapBuffer() local
332 if (ashmemLength < MIN_ASHMEM_LEN || ashmemLength > MAX_ASHMEM_LEN) { in FastRenderReqMmapBuffer()
333 HDF_LOGE("reqMmapBuffer failed, length is illegal %{public}d", ashmemLength); in FastRenderReqMmapBuffer()
336 int32_t fd = OHOS::Bluetooth::FastReqMmapBuffer(ashmemLength); in FastRenderReqMmapBuffer()
H A Daudio_bluetooth_manager.cpp345 int FastReqMmapBuffer(int32_t ashmemLength) in FastReqMmapBuffer() argument
347 return fastReqMmapBufferFunc(ashmemLength); in FastReqMmapBuffer()
/ohos5.0/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; variable
61 EXPECT_EQ(HDF_SUCCESS, audioCapturelatencyImpl_->InitAshmem(ashmemLength));
81 int32_t ashmemLength = -1; variable
82 EXPECT_EQ(HDF_FAILURE, audioCapturelatencyImpl_->InitAshmem(ashmemLength));
/ohos5.0/foundation/distributedhardware/distributed_audio/services/audiomanager/managersource/src/
H A Ddspeaker_dev.cpp331 int32_t fd, int32_t ashmemLength, int32_t lengthPerTrans) in RefreshAshmemInfo() argument
334 fd, ashmemLength, lengthPerTrans); in RefreshAshmemInfo()
340 if (ashmemLength < ASHMEM_MAX_LEN) { in RefreshAshmemInfo()
341 ashmem_ = sptr<Ashmem>(new Ashmem(fd, ashmemLength)); in RefreshAshmemInfo()
342 ashmemLength_ = ashmemLength; in RefreshAshmemInfo()
H A Ddmic_dev.cpp394 int32_t fd, int32_t ashmemLength, int32_t lengthPerTrans) in RefreshAshmemInfo() argument
397 fd, ashmemLength, lengthPerTrans); in RefreshAshmemInfo()
403 if (ashmemLength < ASHMEM_MAX_LEN) { in RefreshAshmemInfo()
404 ashmem_ = sptr<Ashmem>(new Ashmem(fd, ashmemLength)); in RefreshAshmemInfo()
405 ashmemLength_ = ashmemLength; in RefreshAshmemInfo()
/ohos5.0/foundation/distributedhardware/distributed_audio/services/audiohdiproxy/test/unittest/daudio_manager_callback/src/
H A Ddaudio_manager_callback_test.cpp368 int32_t ashmemLength = 240; variable
370 …EXPECT_EQ(HDF_SUCCESS, manCallback_->RefreshAshmemInfo(streamId, fd, ashmemLength, lengthPerTrans)…
372 …EXPECT_EQ(HDF_SUCCESS, manCallback_->RefreshAshmemInfo(streamId, fd, ashmemLength, lengthPerTrans)…
/ohos5.0/drivers/peripheral/bluetooth/audio/hal/hdi_passthrough/include/
H A Dbluetooth_audio_device.h50 typedef int32_t (*ReqMmapBufferFunc)(int32_t ashmemLength);
H A Daudio_bluetooth_manager.h54 int FastReqMmapBuffer(int32_t ashmemLength);
/ohos5.0/foundation/distributedhardware/distributed_audio/services/audiomanager/test/unittest/sourcedevice/src/
H A Ddspeaker_dev_test.cpp334 int32_t ashmemLength = 10; variable
337 EXPECT_EQ(DH_SUCCESS, spk_->RefreshAshmemInfo(streamId, fd, ashmemLength, lengthPerTrans));
339 …EXPECT_EQ(ERR_DH_AUDIO_NULLPTR, spk_->RefreshAshmemInfo(streamId, fd, ashmemLength, lengthPerTrans…
/ohos5.0/foundation/distributedhardware/distributed_audio/services/audiohdiproxy/include/
H A Didaudio_hdi_callback.h44 int32_t fd, int32_t ashmemLength, int32_t lengthPerTrans) = 0;
H A Ddaudio_manager_callback.h50 …int32_t RefreshAshmemInfo(int32_t streamId, int fd, int32_t ashmemLength, int32_t lengthPerTrans) …
/ohos5.0/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) … in RefreshAshmemInfo() argument
/ohos5.0/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;
/ohos5.0/foundation/distributedhardware/distributed_audio/services/audiohdiproxy/test/unittest/daudio_manager_callback/include/
H A Daudio_test_utils.h66 …int32_t RefreshAshmemInfo(const int32_t streamId, int32_t fd, int32_t ashmemLength, int32_t length… in RefreshAshmemInfo() argument
/ohos5.0/foundation/distributedhardware/distributed_audio/services/audiohdiproxy/src/
H A Ddaudio_manager_callback.cpp228 int32_t DAudioManagerCallback::RefreshAshmemInfo(int32_t streamId, int fd, int32_t ashmemLength, in RefreshAshmemInfo() argument
233 if (callback_->RefreshAshmemInfo(streamId, fd, ashmemLength, lengthPerTrans) != DH_SUCCESS) { in RefreshAshmemInfo()
/ohos5.0/foundation/ability/idl_tool/test/hdi_unittest/distributed_audio_audioext_v1_0/cpp_target/distributed_audio/audioext/v1_0/
H A Ddaudio_callback_proxy.h.txt58 … int32_t RefreshAshmemInfo(const std::string& adpName, int32_t devId, int fd, int32_t ashmemLength,
82 …int32_t RefreshAshmemInfo_(const std::string& adpName, int32_t devId, int fd, int32_t ashmemLength,
H A Ddaudio_callback_proxy.cpp.txt93 int32_t devId, int fd, int32_t ashmemLength, int32_t lengthPerTrans)
95 …xt::V1_0::DAudioCallbackProxy::RefreshAshmemInfo_(adpName, devId, fd, ashmemLength, lengthPerTrans…
387 …int32_t devId, int fd, int32_t ashmemLength, int32_t lengthPerTrans, const sptr<IRemoteObject> rem…
413 if (!dAudioCallbackData.WriteInt32(ashmemLength)) {
414 HDF_LOGE("%{public}s: write ashmemLength failed!", __func__);
/ohos5.0/drivers/interface/distributed_audio/audioext/v2_0/
H A DIDAudioCallback.idl139 * @param ashmemLength The total number of bytes of shared memory.
147 …RefreshAshmemInfo([in] int streamId, [in] FileDescriptor fd, [in] int ashmemLength, [in] int lengt…
/ohos5.0/foundation/distributedhardware/distributed_audio/services/audiohdiproxy/test/unittest/daudio_hdi_handler/include/
H A Daudio_test_utils.h93 …int32_t RefreshAshmemInfo(const int32_t streamId, int32_t fd, int32_t ashmemLength, int32_t length… in RefreshAshmemInfo() argument
/ohos5.0/drivers/interface/distributed_audio/audioext/v1_0/
H A DIDAudioCallback.idl28 …[in] String adpName, [in] int devId, [in] FileDescriptor fd, [in] int ashmemLength, [in] int lengt…
/ohos5.0/foundation/ability/idl_tool/test/hdi_unittest/distributed_audio_audioext_v1_0/foo/distributed_audio/audioext/v1_0/
H A DIDAudioCallback.idl28 …[in] String adpName, [in] int devId, [in] FileDescriptor fd, [in] int ashmemLength, [in] int lengt…

12