/drivers/peripheral/audio/hdi_service/primary_impl/src/ |
H A D | audio_manager.c | 108 char pathBuf[PATH_MAX] = {'\0'}; in InitCapturePassthroughHandle() local 109 if (realpath(capturePassthroughPath, pathBuf) == NULL) { in InitCapturePassthroughHandle() 113 g_ptrCaptureHandle = dlopen(pathBuf, RTLD_LAZY); in InitCapturePassthroughHandle() 139 char pathBuf[PATH_MAX] = {'\0'}; in InitRenderPassthroughHandle() local 140 if (realpath(renderPassthroughPath, pathBuf) == NULL) { in InitRenderPassthroughHandle() 144 g_ptrRenderHandle = dlopen(pathBuf, RTLD_LAZY); in InitRenderPassthroughHandle() 171 char pathBuf[PATH_MAX] = {'\0'}; in InitPathSelectPassthroughHandle() local 172 if (realpath(pathSelectPassthroughPath, pathBuf) == NULL) { in InitPathSelectPassthroughHandle() 176 g_ptrPathSelHandle = dlopen(pathBuf, RTLD_LAZY); in InitPathSelectPassthroughHandle()
|
/drivers/peripheral/audio/effect/model/src/ |
H A D | effect_model.c | 221 char pathBuf[PATH_MAX] = {'\0'};
in RegLibraryInstByName() local 222 if (realpath(libPath, pathBuf) == NULL) {
in RegLibraryInstByName() 227 if (strncmp(HDF_LIBRARY_DIR, pathBuf, strlen(HDF_LIBRARY_DIR)) != 0) {
in RegLibraryInstByName() 232 libHandle = dlopen(pathBuf, RTLD_LAZY);
in RegLibraryInstByName() 259 char pathBuf[PATH_MAX];
in RegLibraryInst() local 276 if (realpath(path, pathBuf) == NULL) {
in RegLibraryInst()
|
/drivers/peripheral/usb/ddk/host/src/ |
H A D | ddk_device_manager.c | 255 char pathBuf[PATH_MAX] = {'\0'}; in DdkDevMgrGetGadgetLinkStatusSafe() local 256 if (realpath(g_gadgetStatePath, pathBuf) == NULL) { in DdkDevMgrGetGadgetLinkStatusSafe() 261 if (strncmp(USB_GADGET_STATE_PATH, pathBuf, strlen(USB_GADGET_STATE_PATH)) != 0) { in DdkDevMgrGetGadgetLinkStatusSafe() 266 int32_t fd = open(pathBuf, O_RDONLY | O_CLOEXEC); in DdkDevMgrGetGadgetLinkStatusSafe() 292 char pathBuf[PATH_MAX] = {'\0'}; in DdkDevMgrGetGadgetLinkStatus() local 293 if (realpath(g_gadgetStatePath, pathBuf) == NULL) { in DdkDevMgrGetGadgetLinkStatus() 298 if (strncmp(USB_GADGET_STATE_PATH, pathBuf, strlen(USB_GADGET_STATE_PATH)) != 0) { in DdkDevMgrGetGadgetLinkStatus() 303 int32_t fd = open(pathBuf, O_RDONLY | O_CLOEXEC); in DdkDevMgrGetGadgetLinkStatus()
|
H A D | linux_adapter.c | 143 static int32_t GetUsbDevicePath(struct UsbDevice *dev, char *pathBuf, size_t length) in GetUsbDevicePath() argument 152 if (realpath(path, pathBuf) == NULL) { in GetUsbDevicePath() 162 if (strncmp(USB_DEV_FS_PATH, pathBuf, strlen(USB_DEV_FS_PATH)) != 0) { in GetUsbDevicePath() 182 char pathBuf[PATH_LEN] = {'\0'}; in OsGetUsbFd() local 183 ret = GetUsbDevicePath(dev, pathBuf, PATH_LEN); in OsGetUsbFd() 189 int32_t fd = open(pathBuf, mode | O_CLOEXEC); in OsGetUsbFd() 197 fd = open(pathBuf, mode | O_CLOEXEC); in OsGetUsbFd()
|
/drivers/peripheral/usb/hdi_service/src/ |
H A D | usbd_port.cpp | 62 char pathBuf[PATH_MAX] = {'\0'};
in OpenPortFile() local 63 if (realpath(path_.c_str(), pathBuf) == NULL) {
in OpenPortFile() 68 return open(pathBuf, flags);
in OpenPortFile()
|
/drivers/peripheral/audio/test/sample/ |
H A D | idl_render.c | 265 char pathBuf[PATH_MAX] = {'\0'}; in FrameStartMmap() local 266 if (realpath(g_path, pathBuf) == NULL) { in FrameStartMmap() 271 FILE *fp = fopen(pathBuf, "rb+"); in FrameStartMmap() 291 mmapDesc.filePath = strdup(pathBuf); in FrameStartMmap() 474 char pathBuf[PATH_MAX] = {'\0'}; in PlayingAudioInitFile() local 475 if (realpath(g_path, pathBuf) == NULL) { in PlayingAudioInitFile() 479 g_file = fopen(pathBuf, "rb"); in PlayingAudioInitFile() 1285 char pathBuf[PATH_MAX] = {'\0'}; in main() local 1286 if (realpath(g_path, pathBuf) == NULL) { in main()
|
H A D | idl_capture.c | 492 char pathBuf[PATH_MAX] = {'\0'}; in RecordingAudioInitFile() local 493 if (realpath(g_path, pathBuf) == NULL) { in RecordingAudioInitFile() 498 (void)memcpy_s(g_path, PATH_MAX, pathBuf, PATH_MAX); in RecordingAudioInitFile()
|
/drivers/peripheral/audio/test/systemtest/hdi_service/common/capture/src/ |
H A D | audio_idl_hdicapture_control_test.cpp | 446 char pathBuf[] = "./DevDump.log"; in HWTEST_F() local 448 FILE *fp = fopen(pathBuf, "wb+"); in HWTEST_F() 523 char pathBuf[] = "./DevDump.log"; in HWTEST_F() local 525 FILE *file = fopen(pathBuf, "wb+"); in HWTEST_F() 547 char pathBuf[] = "./DevDump.log"; in HWTEST_F() local 549 FILE *fp = fopen(pathBuf, "wb+"); in HWTEST_F()
|
/drivers/peripheral/audio/test/systemtest/hdi_service/common/render/src/ |
H A D | audio_idl_hdirender_control_test.cpp | 498 char pathBuf[] = "./DevDump.log"; in HWTEST_F() local 500 FILE *file = fopen(pathBuf, "wb+"); in HWTEST_F() 576 char pathBuf[] = "./DevDump.log"; in HWTEST_F() local 578 FILE *fp = fopen(pathBuf, "wb+"); in HWTEST_F() 600 char pathBuf[] = "./DevDump.log"; in HWTEST_F() local 602 FILE *fp = fopen(pathBuf, "wb+"); in HWTEST_F()
|
/drivers/peripheral/bluetooth/audio/hal/hdi_passthrough/src/ |
H A D | audio_bluetooth_manager.cpp | 204 char pathBuf[PATH_MAX] = {'\0'};
in InitAudioDeviceSoHandle() local 205 if (realpath(path, pathBuf) == NULL) {
in InitAudioDeviceSoHandle() 209 g_ptrAudioDeviceHandle = dlopen(pathBuf, RTLD_LAZY);
in InitAudioDeviceSoHandle()
|
/drivers/peripheral/audio/effect/config/src/ |
H A D | parse_effect_config.c | 43 char pathBuf[PATH_MAX] = {'\0'};
in GetAudioEffectConfig() local 44 if (realpath(fpath, pathBuf) == NULL) {
in GetAudioEffectConfig() 49 FILE *fp = fopen(pathBuf, "r");
in GetAudioEffectConfig()
|
/drivers/peripheral/audio/supportlibs/alsa_adapter/src/ |
H A D | alsa_soundcard.c | 57 char pathBuf[PATH_MAX] = {0};
in CfgReadAdapterFile() local 63 if (realpath(fpath, pathBuf) == NULL) {
in CfgReadAdapterFile() 68 fp = fopen(pathBuf, "r");
in CfgReadAdapterFile()
|
/drivers/peripheral/audio/test/benchmarktest/render/ |
H A D | audio_render_benchmarktest.cpp | 282 char pathBuf[] = "/data/RenderDump.log";
in BENCHMARK_F() local 284 FILE *file = fopen(pathBuf, "wb+");
in BENCHMARK_F()
|
/drivers/peripheral/audio/test/benchmarktest/capture/ |
H A D | audio_capture_benchmarktest.cpp | 347 char pathBuf[] = "/data/CaptureDump.log";
in BENCHMARK_F() local 349 FILE *file = fopen(pathBuf, "wb+");
in BENCHMARK_F()
|
/drivers/peripheral/audio/test/unittest/common/render/ |
H A D | audio_render_common_test.cpp | 522 char pathBuf[] = "/data/RenderDump.log"; in HWTEST_F() local 524 FILE *file = fopen(pathBuf, "wb+"); in HWTEST_F()
|
/drivers/peripheral/audio/test/unittest/common/capture/ |
H A D | audio_capture_common_test.cpp | 453 char pathBuf[] = "/data/CaptureDump.log";
in HWTEST_F() local 455 FILE *file = fopen(pathBuf, "wb+");
in HWTEST_F()
|