/drivers/peripheral/audio/interfaces/include/ |
D | audio_scene.h | 59 …int32_t (*CheckSceneCapability)(AudioHandle handle, const struct AudioSceneDescriptor *scene, bool… 82 int32_t (*SelectScene)(AudioHandle handle, const struct AudioSceneDescriptor *scene);
|
D | audio_capture.h | 68 struct AudioScene scene; member
|
/drivers/peripheral/audio/hdi_service/primary_impl/vendor_include/include/ |
D | i_audio_scene.h | 59 …int32_t (*CheckSceneCapability)(AudioHandle handle, const struct AudioHwiSceneDescriptor *scene, b… 82 int32_t (*SelectScene)(AudioHandle handle, const struct AudioHwiSceneDescriptor *scene);
|
D | i_audio_capture.h | 68 struct AudioHwiScene scene; member
|
/drivers/peripheral/audio/interfaces/2.0/include/ |
D | audio_scene.h | 60 …int32_t (*CheckSceneCapability)(AudioHandle handle, const struct AudioSceneDescriptor *scene, bool… 83 int32_t (*SelectScene)(AudioHandle handle, const struct AudioSceneDescriptor *scene);
|
D | audio_capture.h | 69 struct AudioScene scene; member
|
/drivers/peripheral/bluetooth/audio/interfaces/include/ |
D | audio_scene.h | 59 …int32_t (*CheckSceneCapability)(AudioHandle handle, const struct AudioSceneDescriptor *scene, bool… 82 int32_t (*SelectScene)(AudioHandle handle, const struct AudioSceneDescriptor *scene);
|
/drivers/peripheral/audio/test/sample/ |
D | idl_render.c | 1001 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->desc.pins = PIN_OUT_SPEAKER; in PrintRenderSelectPinThird() [all …]
|
/drivers/peripheral/audio/test/unittest/common/render/ |
D | audio_render_common_test.cpp | 314 struct AudioSceneDescriptor scene; variable 316 EXPECT_EQ(HDF_ERR_INVALID_OBJECT, render_->CheckSceneCapability(nullptr, &scene, &supported)); 327 struct AudioSceneDescriptor scene; variable 328 EXPECT_EQ(HDF_ERR_INVALID_PARAM, render_->CheckSceneCapability(render_, &scene, nullptr)); 333 struct AudioSceneDescriptor scene; variable 335 scene.scene.id = INVALID_SCENE_ID; 336 scene.desc = devDescRender_; 337 int32_t ret = render_->CheckSceneCapability(render_, &scene, &supported); 343 struct AudioSceneDescriptor scene; variable 345 scene.scene.id = AUDIO_IN_MEDIA; [all …]
|
/drivers/peripheral/audio/test/systemtest/hdi_service/common/render/src/ |
D | audio_idl_hdirender_scene_test.cpp | 74 scenes.scene.id = 0; 94 scenes.scene.id = 5; 114 scenes.scene.id = 0; 148 scenes.scene.id = 0; 167 scenes.scene.id = 0; 190 scenes.scene.id = 0; 214 scenes.scene.id = 0; 246 scenes.scene.id = 5;
|
/drivers/peripheral/audio/test/systemtest/hdi_service/common/capture/src/ |
D | audio_idl_hdicapture_scene_test.cpp | 76 scenes.scene.id = 0; 96 scenes.scene.id = 5; // invlalid id 116 scenes.scene.id = 0; 154 scenes.scene.id = 0; 172 scenes.scene.id = 0; 193 scenes.scene.id = 0; 214 scenes.scene.id = 0; 247 scenes.scene.id = 5; // invlalid id
|
/drivers/peripheral/audio/hal/hdi_binder/server/src/ |
D | hdf_audio_server_capture.c | 442 struct AudioSceneDescriptor scene; in HdiServiceCaptureCheckSceneCapability() local 449 if (!HdfSbufReadUint32(data, &scene.scene.id)) { in HdiServiceCaptureCheckSceneCapability() 456 scene.desc.pins = (enum AudioPortPin) interimPins; in HdiServiceCaptureCheckSceneCapability() 457 if (capture == NULL || capture->scene.CheckSceneCapability == NULL) { in HdiServiceCaptureCheckSceneCapability() 461 ret = capture->scene.CheckSceneCapability((AudioHandle)capture, &scene, &supported); in HdiServiceCaptureCheckSceneCapability() 478 struct AudioSceneDescriptor scene; in HdiServiceCaptureSelectScene() local 485 if (!HdfSbufReadUint32(data, &scene.scene.id)) { in HdiServiceCaptureSelectScene() 491 scene.desc.pins = (enum AudioPortPin) tempPins; in HdiServiceCaptureSelectScene() 492 if (capture == NULL || capture->scene.SelectScene == NULL) { in HdiServiceCaptureSelectScene() 496 return capture->scene.SelectScene((AudioHandle)capture, &scene); in HdiServiceCaptureSelectScene()
|
D | hdf_audio_server_render.c | 444 struct AudioSceneDescriptor scene; in HdiServiceRenderCheckSceneCapability() local 451 if (!HdfSbufReadUint32(data, &scene.scene.id)) { in HdiServiceRenderCheckSceneCapability() 457 scene.desc.pins = (enum AudioPortPin)temporaryPins; in HdiServiceRenderCheckSceneCapability() 458 if (render == NULL || render->scene.CheckSceneCapability == NULL) { in HdiServiceRenderCheckSceneCapability() 462 ret = render->scene.CheckSceneCapability((AudioHandle)render, &scene, &supported); in HdiServiceRenderCheckSceneCapability() 480 struct AudioSceneDescriptor scene; in HdiServiceRenderSelectScene() local 486 if (!HdfSbufReadUint32(data, &scene.scene.id)) { in HdiServiceRenderSelectScene() 494 scene.desc.pins = (enum AudioPortPin)tempPins; in HdiServiceRenderSelectScene() 495 if (render == NULL || render->scene.SelectScene == NULL) { in HdiServiceRenderSelectScene() 499 return render->scene.SelectScene((AudioHandle)render, &scene); in HdiServiceRenderSelectScene()
|
/drivers/peripheral/audio/interfaces/sound/v1_0/ |
D | iaudio_capture_vdi.h | 33 …(*CheckSceneCapability)(struct IAudioCaptureVdi *self, const struct AudioSceneDescriptorVdi *scene, 35 …int32_t (*SelectScene)(struct IAudioCaptureVdi *self, const struct AudioSceneDescriptorVdi *scene);
|
D | iaudio_render_vdi.h | 42 … (*CheckSceneCapability)(struct IAudioRenderVdi *self, const struct AudioSceneDescriptorVdi *scene, 44 … int32_t (*SelectScene)(struct IAudioRenderVdi *self, const struct AudioSceneDescriptorVdi *scene);
|
/drivers/peripheral/audio/hdi_service/primary_impl/vendor_src/ |
D | audio_common_vendor.h | 31 int32_t AudioHwiCommonSceneToHwiScene(const struct AudioSceneDescriptor *scene,
|
D | audio_common_vendor.c | 382 int32_t AudioHwiCommonSceneToHwiScene(const struct AudioSceneDescriptor *scene, in AudioHwiCommonSceneToHwiScene() argument 385 CHECK_NULL_PTR_RETURN_VALUE(scene, HDF_ERR_INVALID_PARAM); in AudioHwiCommonSceneToHwiScene() 388 hwiScene->scene.id = scene->scene.id; in AudioHwiCommonSceneToHwiScene() 389 AudioHwiCommonDevDescToHwiDevDesc(&scene->desc, &hwiScene->desc); in AudioHwiCommonSceneToHwiScene()
|
/drivers/interface/camera/v1_1/ |
D | Types.idl | 121 * Capture mode, which dedicated to photo scene 138 * Night mode, which dedicated to night shooting scene 143 * Professional mode, which dedicated to professional photo scene
|
/drivers/peripheral/bluetooth/audio/hal/hdi_binder/server/src/ |
D | hdf_audio_server_render.cpp | 370 struct AudioSceneDescriptor scene; in HdiServiceRenderCheckSceneCapability() local 377 if (!HdfSbufReadUint32(data, &scene.scene.id)) { in HdiServiceRenderCheckSceneCapability() 383 scene.desc.pins = (AudioPortPin)temporaryPins; in HdiServiceRenderCheckSceneCapability() 384 ret = render->scene.CheckSceneCapability((AudioHandle)render, &scene, &supported); in HdiServiceRenderCheckSceneCapability() 402 struct AudioSceneDescriptor scene; in HdiServiceRenderSelectScene() local 408 if (!HdfSbufReadUint32(data, &scene.scene.id)) { in HdiServiceRenderSelectScene() 416 scene.desc.pins = (AudioPortPin)tempPins; in HdiServiceRenderSelectScene() 417 return render->scene.SelectScene((AudioHandle)render, &scene); in HdiServiceRenderSelectScene()
|
/drivers/peripheral/audio/hdi_service/primary_impl/vdi_src/ |
D | audio_common_vdi.h | 35 int32_t AudioCommonSceneToVdiSceneVdi(const struct AudioSceneDescriptor *scene,
|
D | audio_common_vdi.c | 377 int32_t AudioCommonSceneToVdiSceneVdi(const struct AudioSceneDescriptor *scene, in AudioCommonSceneToVdiSceneVdi() argument 380 CHECK_NULL_PTR_RETURN_VALUE(scene, HDF_ERR_INVALID_PARAM); in AudioCommonSceneToVdiSceneVdi() 383 vdiScene->scene.id = scene->scene.id; in AudioCommonSceneToVdiSceneVdi() 384 AudioCommonDevDescToVdiDevDescVdi(&scene->desc, &vdiScene->desc); in AudioCommonSceneToVdiSceneVdi()
|
/drivers/peripheral/audio/test/benchmarktest/render/ |
D | audio_render_benchmarktest.cpp | 381 struct AudioSceneDescriptor scene; in BENCHMARK_F() local 382 scene.scene.id = AUDIO_IN_MEDIA; in BENCHMARK_F() 383 scene.desc.pins = PIN_OUT_SPEAKER; in BENCHMARK_F() 384 scene.desc.desc = const_cast<char*>("primary"); in BENCHMARK_F() 387 ret = render_->SelectScene(render_, &scene); in BENCHMARK_F() 722 struct AudioSceneDescriptor scene; in BENCHMARK_F() local 724 scene.scene.id = AUDIO_IN_MEDIA; in BENCHMARK_F() 725 scene.desc = devDescRender_; in BENCHMARK_F() 728 ret = render_->CheckSceneCapability(render_, &scene, &supported); in BENCHMARK_F()
|
/drivers/peripheral/bluetooth/audio/hal/hdi_binder/proxy/src/ |
D | audio_proxy_render.cpp | 193 const struct AudioSceneDescriptor *scene, bool *supported) in AudioProxyRenderCheckSceneCapability() argument 195 if (scene == NULL || supported == NULL) { in AudioProxyRenderCheckSceneCapability() 210 if (!HdfSbufWriteUint32(data, scene->scene.id)) { in AudioProxyRenderCheckSceneCapability() 215 tempPins = (uint32_t)scene->desc.pins; in AudioProxyRenderCheckSceneCapability() 238 …2_t AudioProxyRenderSelectScene(const AudioHandle handle, const struct AudioSceneDescriptor *scene) in AudioProxyRenderSelectScene() argument 240 if (scene == NULL) { in AudioProxyRenderSelectScene() 253 if (!HdfSbufWriteUint32(data, scene->scene.id)) { in AudioProxyRenderSelectScene() 257 uint32_t temporaryPins = scene->desc.pins; in AudioProxyRenderSelectScene()
|
/drivers/interface/audio/v1_0/ |
D | IAudioCapture.idl | 66 * @brief Checks whether the configuration of an audio scene is supported. 69 * @param scene Indicates the pointer to the descriptor of the audio scene. 75 CheckSceneCapability([in] struct AudioSceneDescriptor scene, [out] boolean supported); 78 * @brief Selects an audio scene. 81 …* <li>To select a specific audio scene, you need to specify both the application scenario and ou… 82 …* For example, to select a scene using a smartphone speaker as the output device, set <b>scene… 89 * <b>scene</b> to <b>media</b>, <b>movie</b>, or <b>game</b>, respectively.</li> 91 * <b>scene</b> to <b>receiver</b>, <b>speaker</b>, or <b>headset</b>, respectively.</li> 94 * @param scene Indicates the pointer to the descriptor of the audio scene to select. 95 …* @return Returns <b>0</b> if the scene is selected successfully; returns a negative value otherwi… [all …]
|
/drivers/peripheral/bluetooth/audio/hal/hdi_binder/proxy/include/ |
D | audio_proxy_internal.h | 47 const struct AudioSceneDescriptor *scene, bool *supported); 49 const struct AudioSceneDescriptor *scene);
|