Home
last modified time | relevance | path

Searched refs:scene (Results 1 - 25 of 66) sorted by relevance

123

/drivers/peripheral/audio/interfaces/include/
H A Daudio_scene.h42 * @brief Provides scene-related APIs for audio rendering or capturing, including functions to
43 * select an audio scene and check whether the configuration of an audio scene is supported.
50 * @brief Checks whether the configuration of an audio scene is supported.
53 * @param scene Indicates the pointer to the descriptor of the audio scene.
59 int32_t (*CheckSceneCapability)(AudioHandle handle, const struct AudioSceneDescriptor *scene, bool *supported);
62 * @brief Selects an audio scene.
65 * <li>To select a specific audio scene, you need to specify both the application scenario and output device.
66 * For example, to select a scene usin
[all...]
H A Daudio_capture.h66 * @brief Defines the audio scene. For details, see {@link AudioScene}.
68 struct AudioScene scene; member
/drivers/peripheral/audio/interfaces/2.0/include/
H A Daudio_scene.h43 * @brief Provides scene-related APIs for audio rendering or capturing, including functions to
44 * select an audio scene and check whether the configuration of an audio scene is supported.
51 * @brief Checks whether the configuration of an audio scene is supported.
54 * @param scene Indicates the pointer to the descriptor of the audio scene.
60 int32_t (*CheckSceneCapability)(AudioHandle handle, const struct AudioSceneDescriptor *scene, bool *supported);
63 * @brief Selects an audio scene.
66 * <li>To select a specific audio scene, you need to specify both the application scenario and output device.
67 * For example, to select a scene usin
[all...]
H A Daudio_capture.h67 * @brief Defines the audio scene. For details, see {@link AudioScene}.
69 struct AudioScene scene; member
H A Daudio_render.h68 * @brief Defines the audio scene. For details, see {@link AudioScene}.
70 struct AudioScene scene; member
/drivers/peripheral/bluetooth/audio/interfaces/include/
H A Daudio_scene.h42 * @brief Provides scene-related APIs for audio rendering or capturing, including functions to
43 * select an audio scene and check whether the configuration of an audio scene is supported.
50 * @brief Checks whether the configuration of an audio scene is supported.
53 * @param scene Indicates the pointer to the descriptor of the audio scene.
59 int32_t (*CheckSceneCapability)(AudioHandle handle, const struct AudioSceneDescriptor *scene, bool *supported);
62 * @brief Selects an audio scene.
65 * <li>To select a specific audio scene, you need to specify both the application scenario and output device.
66 * For example, to select a scene usin
[all...]
H A Daudio_render.h66 * @brief Defines the audio scene. For details, see {@link AudioScene}.
68 struct AudioScene scene; member
/drivers/peripheral/distributed_audio/interface/audio/v1_0/
H A Di_audio_scene.h25 virtual int32_t CheckSceneCapability(const AudioSceneDescriptorHAL &scene, bool &support) = 0;
27 virtual int32_t SelectScene(const AudioSceneDescriptorHAL &scene) = 0;
/drivers/peripheral/audio/test/sample/
H A Didl_render.c1001 static int32_t PrintRenderSelectPinFirst(struct AudioSceneDescriptor *scene) in PrintRenderSelectPinFirst() argument
1019 scene->desc.pins = PIN_OUT_HEADSET; in PrintRenderSelectPinFirst()
1021 scene->desc.pins = PIN_OUT_SPEAKER; in PrintRenderSelectPinFirst()
1027 static int32_t PrintRenderSelectPinSecond(struct AudioSceneDescriptor *scene) in PrintRenderSelectPinSecond() argument
1046 scene->desc.pins = PIN_OUT_HEADSET; in PrintRenderSelectPinSecond()
1048 scene->desc.pins = PIN_OUT_SPEAKER; in PrintRenderSelectPinSecond()
1050 scene->desc.pins = PIN_OUT_SPEAKER | PIN_OUT_HEADSET; in PrintRenderSelectPinSecond()
1056 static int32_t PrintRenderSelectPinThird(struct AudioSceneDescriptor *scene) in PrintRenderSelectPinThird() argument
1074 scene->desc.pins = PIN_OUT_HEADSET; in PrintRenderSelectPinThird()
1076 scene in PrintRenderSelectPinThird()
1098 struct AudioSceneDescriptor scene; SelectRenderScene() local
[all...]
/drivers/peripheral/audio/test/systemtest/hdi_service/common/capture/src/
H A Daudio_idl_hdicapture_scene_test.cpp67 * @tc.desc Test AudioCaptureCheckSceneCapability interface,return 0 if check scene's capability successful.
76 scenes.scene.id = 0; in HWTEST_F()
87 * @tc.desc Test AudioCreateCapture interface,return -1 if the scene is not configured in the json.
96 scenes.scene.id = 5; // invlalid id in HWTEST_F()
116 scenes.scene.id = 0; in HWTEST_F()
128 * @tc.desc Test AudioCreateCapture interface,return -3 if the scene is nullptr.
154 scenes.scene.id = 0; in HWTEST_F()
164 * @tc.desc Test AudioCaptureSelectScene interface,return 0 if select capture's scene successful.
172 scenes.scene.id = 0; in HWTEST_F()
181 * @tc.desc Test AudioCaptureSelectScene, return 0 if select capture's scene successfu
[all...]
/drivers/peripheral/audio/test/systemtest/hdi_service/common/render/src/
H A Daudio_idl_hdirender_scene_test.cpp66 * @tc.desc Test AudioRenderCheckSceneCapability interface,return 0 if check scene's capability successful.
74 scenes.scene.id = 0; in HWTEST_F()
86 * @tc.desc Test RenderCheckSceneCapability interface,return -1 if the scene is not configed in the josn.
94 scenes.scene.id = 5; in HWTEST_F()
114 scenes.scene.id = 0; in HWTEST_F()
125 * @tc.desc Test AudioRenderCheckSceneCapability interface,return -3 if the scene is nullptr.
148 scenes.scene.id = 0; in HWTEST_F()
160 * @tc.desc Test RenderSelectScene interface,return 0 if select Render's scene successful.
167 scenes.scene.id = 0; in HWTEST_F()
183 * @tc.desc Test RenderSelectScene, return 0 if select Render's scene successfu
[all...]
/drivers/peripheral/audio/test/fuzztest/audio_hdi_fuzzer/audiocapture_fuzzer/
H A Daudiocapture_fuzzer.cpp47 static int32_t InitScene(const struct AudioSceneDescriptor *scene) in InitScene() argument
49 if (scene == nullptr) { in InitScene()
53 g_scene.scene = {0}; in InitScene()
54 g_scene.desc.portId = scene->desc.portId; in InitScene()
55 g_scene.desc.pins = scene->desc.pins; in InitScene()
/drivers/peripheral/audio/test/fuzztest/audio_hdi_fuzzer/audiorender_fuzzer/
H A Daudiorender_fuzzer.cpp48 static int32_t InitScene(const struct AudioSceneDescriptor *scene) in InitScene() argument
50 if (scene == nullptr) { in InitScene()
54 g_scene.scene = {0}; in InitScene()
55 g_scene.desc.portId = scene->desc.portId; in InitScene()
56 g_scene.desc.pins = scene->desc.pins; in InitScene()
/drivers/peripheral/audio/test/unittest/common/render/
H A Daudio_render_common_test.cpp314 struct AudioSceneDescriptor scene; in HWTEST_F() local
316 EXPECT_EQ(HDF_ERR_INVALID_OBJECT, render_->CheckSceneCapability(nullptr, &scene, &supported)); in HWTEST_F()
327 struct AudioSceneDescriptor scene; in HWTEST_F() local
328 EXPECT_EQ(HDF_ERR_INVALID_PARAM, render_->CheckSceneCapability(render_, &scene, nullptr)); in HWTEST_F()
333 struct AudioSceneDescriptor scene; in HWTEST_F() local
335 scene.scene.id = INVALID_SCENE_ID; in HWTEST_F()
336 scene.desc = devDescRender_; in HWTEST_F()
337 int32_t ret = render_->CheckSceneCapability(render_, &scene, &supported); in HWTEST_F()
343 struct AudioSceneDescriptor scene; in HWTEST_F() local
352 struct AudioSceneDescriptor scene; HWTEST_F() local
363 struct AudioSceneDescriptor scene; HWTEST_F() local
374 struct AudioSceneDescriptor scene; HWTEST_F() local
[all...]
/drivers/peripheral/audio/test/hal_mock/
H A Daudio_render_mock.c134 static int32_t CheckSceneCapability(struct IAudioRenderVdi* render, const struct AudioSceneDescriptor *scene, in CheckSceneCapability() argument
137 if (render == NULL || scene == NULL || support == NULL) { in CheckSceneCapability()
142 (void *)scene; in CheckSceneCapability()
147 static int32_t SelectScene(struct IAudioRenderVdi* render, const struct AudioSceneDescriptor *scene) in SelectScene() argument
149 if (render == NULL || scene == NULL) { in SelectScene()
153 (void *)scene; in SelectScene()
/drivers/peripheral/bluetooth/audio/hal/hdi_binder/server/src/
H A Dhdf_audio_server_render.cpp378 struct AudioSceneDescriptor scene; in HdiServiceRenderCheckSceneCapability() local
385 if (!HdfSbufReadUint32(data, &scene.scene.id)) { in HdiServiceRenderCheckSceneCapability()
391 scene.desc.pins = (AudioPortPin)temporaryPins; in HdiServiceRenderCheckSceneCapability()
392 ret = render->scene.CheckSceneCapability((AudioHandle)render, &scene, &supported); in HdiServiceRenderCheckSceneCapability()
410 struct AudioSceneDescriptor scene; in HdiServiceRenderSelectScene() local
416 if (!HdfSbufReadUint32(data, &scene.scene.id)) { in HdiServiceRenderSelectScene()
424 scene in HdiServiceRenderSelectScene()
[all...]
/drivers/peripheral/audio/test/benchmarktest/render/
H A Daudio_render_benchmarktest.cpp380 struct AudioSceneDescriptor scene; in BENCHMARK_F() local
381 scene.scene.id = AUDIO_IN_MEDIA; in BENCHMARK_F()
382 scene.desc.pins = PIN_OUT_SPEAKER; in BENCHMARK_F()
383 scene.desc.desc = const_cast<char*>("primary"); in BENCHMARK_F()
386 ret = render_->SelectScene(render_, &scene); in BENCHMARK_F()
721 struct AudioSceneDescriptor scene; in BENCHMARK_F() local
723 scene.scene.id = AUDIO_IN_MEDIA; in BENCHMARK_F()
724 scene in BENCHMARK_F()
[all...]
/drivers/peripheral/audio/interfaces/sound/v1_0/
H A Diaudio_render_vdi.h42 int32_t (*CheckSceneCapability)(struct IAudioRenderVdi *self, const struct AudioSceneDescriptorVdi *scene,
44 int32_t (*SelectScene)(struct IAudioRenderVdi *self, const struct AudioSceneDescriptorVdi *scene);
H A Diaudio_capture_vdi.h34 int32_t (*CheckSceneCapability)(struct IAudioCaptureVdi *self, const struct AudioSceneDescriptorVdi *scene,
36 int32_t (*SelectScene)(struct IAudioCaptureVdi *self, const struct AudioSceneDescriptorVdi *scene);
/drivers/peripheral/bluetooth/audio/hal/hdi_binder/proxy/include/
H A Daudio_proxy_internal.h47 const struct AudioSceneDescriptor *scene, bool *supported);
49 const struct AudioSceneDescriptor *scene);
/drivers/peripheral/bluetooth/audio/hal/hdi_passthrough/include/
H A Dfast_audio_render.h34 int32_t FastRenderCheckSceneCapability(AudioHandle handle, const struct AudioSceneDescriptor *scene, bool *supported);
35 int32_t FastRenderSelectScene(AudioHandle handle, const struct AudioSceneDescriptor *scene);
/drivers/peripheral/bluetooth/audio/hal/hdi_passthrough/src/
H A Dfast_audio_render.cpp135 int32_t FastRenderCheckSceneCapability(AudioHandle handle, const struct AudioSceneDescriptor *scene, bool *supported) in FastRenderCheckSceneCapability() argument
139 (void)scene; in FastRenderCheckSceneCapability()
144 int32_t FastRenderSelectScene(AudioHandle handle, const struct AudioSceneDescriptor *scene) in FastRenderSelectScene() argument
148 (void)scene; in FastRenderSelectScene()
/drivers/peripheral/distributed_audio/hdi_service/audio/v1_0/src/
H A Daudio_capture_ext_impl.cpp182 int32_t AudioCaptureExtImpl::CheckSceneCapability(const AudioSceneDescriptor &scene, bool &supported) in CheckSceneCapability() argument
184 DHLOGI("Check scene capability."); in CheckSceneCapability()
185 (void)scene; in CheckSceneCapability()
190 int32_t AudioCaptureExtImpl::SelectScene(const AudioSceneDescriptor &scene) in SelectScene() argument
192 DHLOGI("Select audio scene, not support yet."); in SelectScene()
193 (void)scene; in SelectScene()
H A Daudio_capture_interface_impl.cpp220 int32_t AudioCaptureInterfaceImpl::CheckSceneCapability(const AudioSceneDescriptor &scene, bool &supported) in CheckSceneCapability() argument
222 DHLOGI("Check scene capability."); in CheckSceneCapability()
223 (void)scene; in CheckSceneCapability()
228 int32_t AudioCaptureInterfaceImpl::SelectScene(const AudioSceneDescriptor &scene) in SelectScene() argument
230 DHLOGI("Select audio scene, not support yet."); in SelectScene()
231 (void)scene; in SelectScene()
/drivers/peripheral/audio/hdi_service/primary_impl/vdi_src/
H A Daudio_common_vdi.h35 int32_t AudioCommonSceneToVdiSceneVdi(const struct AudioSceneDescriptor *scene,

Completed in 13 milliseconds

123