/ohos5.0/drivers/peripheral/distributed_audio/hdi_service/audio/v1_0/src/ |
H A D | audio_capture_ext_impl.cpp | 50 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 D | audio_render_ext_impl.cpp | 48 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 D | audio_render_ext_impl_test.cpp | 64 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 D | interface_i_d_audio_callback.md | 29 …[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 D | fast_audio_render.cpp | 331 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 D | audio_bluetooth_manager.cpp | 345 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 D | audio_capture_ext_impl_test.cpp | 60 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 D | dspeaker_dev.cpp | 331 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 D | dmic_dev.cpp | 394 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 D | daudio_manager_callback_test.cpp | 368 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 D | bluetooth_audio_device.h | 50 typedef int32_t (*ReqMmapBufferFunc)(int32_t ashmemLength);
|
H A D | audio_bluetooth_manager.h | 54 int FastReqMmapBuffer(int32_t ashmemLength);
|
/ohos5.0/foundation/distributedhardware/distributed_audio/services/audiomanager/test/unittest/sourcedevice/src/ |
H A D | dspeaker_dev_test.cpp | 334 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 D | idaudio_hdi_callback.h | 44 int32_t fd, int32_t ashmemLength, int32_t lengthPerTrans) = 0;
|
H A D | daudio_manager_callback.h | 50 …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 D | daudio_test_utils.h | 65 …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 D | i_daudio_hdf_callback.h | 35 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 D | audio_test_utils.h | 66 …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 D | daudio_manager_callback.cpp | 228 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 D | daudio_callback_proxy.h.txt | 58 … 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 D | daudio_callback_proxy.cpp.txt | 93 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 D | IDAudioCallback.idl | 139 * @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 D | audio_test_utils.h | 93 …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 D | IDAudioCallback.idl | 28 …[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 D | IDAudioCallback.idl | 28 …[in] String adpName, [in] int devId, [in] FileDescriptor fd, [in] int ashmemLength, [in] int lengt…
|