Home
last modified time | relevance | path

Searched refs:file_name (Results 1 – 25 of 38) sorted by relevance

12

/hardware/knowles/athletico/sound_trigger_hal/tests/
Dcrash_event_logger.c95 char file_name[MAX_FILENAME_LEN] = {0}; in dump_crash_reason() local
101 snprintf(file_name, MAX_FILENAME_LEN, "%s%s%s%s%s", in dump_crash_reason()
106 snprintf(file_name, MAX_FILENAME_LEN, "%s%s%s", in dump_crash_reason()
111 out_fp = fopen(file_name, "w"); in dump_crash_reason()
113 ALOGE("Failed to open %s for writting", file_name); in dump_crash_reason()
132 ALOGI("Crash logs saved to %s", file_name); in dump_crash_reason()
148 char file_name[MAX_FILENAME_LEN] = {0}; in split_crash_dump_buffer() local
179 snprintf(file_name, MAX_FILENAME_LEN, "%s%s%s", in split_crash_dump_buffer()
183 fp = fopen(file_name, "w+"); in split_crash_dump_buffer()
190 ALOGI("Crash logs saved to %s", file_name); in split_crash_dump_buffer()
[all …]
Dcrash_analyzer_defs.h203 enum file_name enum
/hardware/libhardware/modules/thermal/
Dthermal.c40 char file_name[MAX_LENGTH]; in get_temperatures() local
58 snprintf(file_name, MAX_LENGTH, "%s/%s/temp", TEMPERATURE_DIR, de->d_name); in get_temperatures()
59 file = fopen(file_name, "r"); in get_temperatures()
93 char file_name[MAX_LENGTH]; in get_cpu_usages() local
127 snprintf(file_name, MAX_LENGTH, CPU_ONLINE_FILE_FORMAT, cpu_num); in get_cpu_usages()
128 cpu_file = fopen(file_name, "r"); in get_cpu_usages()
131 ALOGE("%s: failed to open file: %s (%s)", __func__, file_name, strerror(errno)); in get_cpu_usages()
137 file_name, strerror(errno)); in get_cpu_usages()
/hardware/qcom/camera/msm8998/QCamera2/stack/mm-camera-test/src/
Dmm_qcamera_rdi.c45 char file_name[FILENAME_MAX]; in mm_app_rdi_dump_frame() local
50 snprintf(file_name, sizeof(file_name), in mm_app_rdi_dump_frame()
52 file_fd = open(file_name, O_RDWR | O_CREAT, 0777); in mm_app_rdi_dump_frame()
54 LOGE(" cannot open file %s \n", file_name); in mm_app_rdi_dump_frame()
63 LOGD(" dump rdi frame %s", file_name); in mm_app_rdi_dump_frame()
71 char file_name[FILENAME_MAX]; in mm_app_rdi_notify_cb() local
77 snprintf(file_name, sizeof(file_name), "RDI_dump_%d", pme->cam->camera_handle); in mm_app_rdi_notify_cb()
78 mm_app_rdi_dump_frame(frame, file_name, "raw", frame->frame_idx); in mm_app_rdi_notify_cb()
Dmm_qcamera_video.c291 char file_name[64]; in mm_app_preview_notify_cb() local
292 snprintf(file_name, sizeof(file_name), "P_C%d", pme->cam->camera_handle); in mm_app_preview_notify_cb()
293 mm_app_dump_frame(frame, file_name, "yuv", frame->frame_idx); in mm_app_preview_notify_cb()
315 char file_name[64]; in mm_app_video_notify_cb() local
321 snprintf(file_name, sizeof(file_name), "V_C%d", pme->cam->camera_handle); in mm_app_video_notify_cb()
322 mm_app_dump_frame(frame, file_name, "yuv", frame->frame_idx); in mm_app_video_notify_cb()
/hardware/qcom/sdm845/thermal/
Dthermal.c88 char file_name[MAX_LENGTH]; in get_cpu_usages() local
135 snprintf(file_name, MAX_LENGTH, CPU_ONLINE_FILE_FORMAT, cpu_num); in get_cpu_usages()
136 cpu_file = fopen(file_name, "r"); in get_cpu_usages()
139 ALOGE("%s: failed to open file: %s (%s)", __func__, file_name, strerror(errno)); in get_cpu_usages()
145 file_name, strerror(errno)); in get_cpu_usages()
Dthermal_common.c327 char file_name[MAX_LENGTH]; in read_temperature() local
332 snprintf(file_name, sizeof(file_name), TEMPERATURE_FILE_FORMAT, sensor_num); in read_temperature()
333 ret = read_line_from_file(file_name, buf, sizeof(buf)); in read_temperature()
/hardware/qcom/sm8150/thermal/
Dthermal.c88 char file_name[MAX_LENGTH]; in get_cpu_usages() local
135 snprintf(file_name, MAX_LENGTH, CPU_ONLINE_FILE_FORMAT, cpu_num); in get_cpu_usages()
136 cpu_file = fopen(file_name, "r"); in get_cpu_usages()
139 ALOGE("%s: failed to open file: %s (%s)", __func__, file_name, strerror(errno)); in get_cpu_usages()
145 file_name, strerror(errno)); in get_cpu_usages()
Dthermal_common.c327 char file_name[MAX_LENGTH]; in read_temperature() local
332 snprintf(file_name, sizeof(file_name), TEMPERATURE_FILE_FORMAT, sensor_num); in read_temperature()
333 ret = read_line_from_file(file_name, buf, sizeof(buf)); in read_temperature()
/hardware/nxp/secure_element/libese-spi/p73/utils/
Dese_config.cpp35 const string file_name = "libese-nxp.conf"; in findConfigPath() local
38 path.append(file_name); in findConfigPath()
Dconfig.cpp90 void ConfigFile::parseFromFile(const std::string& file_name) { in parseFromFile() argument
92 bool config_read = ReadFileToString(file_name, &config); in parseFromFile()
94 LOG(INFO) << "ConfigFile - Parsing file '" << file_name << "'"; in parseFromFile()
Dconfig.h43 void parseFromFile(const std::string& file_name);
/hardware/st/secure_element/ese-spi-driver/utils-lib/
Dese_config.cc37 const string file_name = "libese-hal-st.conf"; in findConfigPath() local
40 path.append(file_name); in findConfigPath()
Dconfig.cc85 void ConfigFile::parseFromFile(const std::string& file_name) { in parseFromFile() argument
87 bool config_read = ReadFileToString(file_name, &config); in parseFromFile()
89 LOG(INFO) << "ConfigFile - Parsing file '" << file_name << "'"; in parseFromFile()
Dconfig.h42 void parseFromFile(const std::string& file_name);
/hardware/invensense/6515/libsensors_iio/software/simple_apps/mpu_iio/
Dmpu_iio.c482 char file_name[100]; in init_dmp_event_fds() local
487 sprintf(file_name, "%s/%s", dev_dir_name, dmp_feat[i].sysfs_name); in init_dmp_event_fds()
488 pollfds[j].fd = open(file_name, O_RDONLY | O_NONBLOCK); in init_dmp_event_fds()
490 printf("Err: cannot open requested event file '%s'\n", file_name); in init_dmp_event_fds()
492 printf("INFO: opened event node '%s'\n", file_name); in init_dmp_event_fds()
530 char file_name[200]; in poll_dmp_event_fds() local
533 sprintf(file_name, "%s/%s", in poll_dmp_event_fds()
535 FILE *fp = fopen(file_name, "rt"); in poll_dmp_event_fds()
/hardware/qcom/display/msm8909/sdm/libs/core/fb/
Dhw_device.cpp797 string file_name = fb_path_ + to_string(device_node) + "/msm_fb_panel_info"; in GetHWPanelNameByNode() local
799 Sys::fstream fs(file_name, fstream::in); in GetHWPanelNameByNode()
820 string file_name = fb_path_ + to_string(device_node) + "/msm_fb_panel_info"; in GetHWPanelInfoByNode() local
822 Sys::fstream fs(file_name, fstream::in); in GetHWPanelInfoByNode()
913 string file_name = fb_path_ + to_string(device_node) + "/msm_fb_type"; in GetHWDisplayPortAndMode() local
915 Sys::fstream fs(file_name, fstream::in); in GetHWDisplayPortAndMode()
917 DLOGW("File not found %s", file_name.c_str()); in GetHWDisplayPortAndMode()
954 string file_name = fb_path_ + to_string(device_node) + "/msm_fb_split"; in GetSplitInfo() local
956 Sys::fstream fs(file_name, fstream::in); in GetSplitInfo()
958 DLOGW("File not found %s", file_name.c_str()); in GetSplitInfo()
[all …]
/hardware/qcom/display/msm8909w_3100/sdm/libs/core/fb/
Dhw_device.cpp802 string file_name = fb_path_ + to_string(device_node) + "/msm_fb_panel_info"; in GetHWPanelNameByNode() local
804 Sys::fstream fs(file_name, fstream::in); in GetHWPanelNameByNode()
825 string file_name = fb_path_ + to_string(device_node) + "/msm_fb_panel_info"; in GetHWPanelInfoByNode() local
827 Sys::fstream fs(file_name, fstream::in); in GetHWPanelInfoByNode()
918 string file_name = fb_path_ + to_string(device_node) + "/msm_fb_type"; in GetHWDisplayPortAndMode() local
920 Sys::fstream fs(file_name, fstream::in); in GetHWDisplayPortAndMode()
922 DLOGW("File not found %s", file_name.c_str()); in GetHWDisplayPortAndMode()
959 string file_name = fb_path_ + to_string(device_node) + "/msm_fb_split"; in GetSplitInfo() local
961 Sys::fstream fs(file_name, fstream::in); in GetSplitInfo()
963 DLOGW("File not found %s", file_name.c_str()); in GetSplitInfo()
[all …]
/hardware/qcom/sdm845/display/sdm/libs/core/fb/
Dhw_device.cpp797 string file_name = fb_path_ + to_string(device_node) + "/msm_fb_panel_info"; in GetHWPanelNameByNode() local
799 Sys::fstream fs(file_name, fstream::in); in GetHWPanelNameByNode()
822 string file_name = fb_path_ + to_string(device_node) + "/msm_fb_panel_info"; in GetHWPanelInfoByNode() local
824 Sys::fstream fs(file_name, fstream::in); in GetHWPanelInfoByNode()
915 string file_name = fb_path_ + to_string(device_node) + "/msm_fb_type"; in GetHWDisplayPortAndMode() local
917 Sys::fstream fs(file_name, fstream::in); in GetHWDisplayPortAndMode()
919 DLOGW("File not found %s", file_name.c_str()); in GetHWDisplayPortAndMode()
956 string file_name = fb_path_ + to_string(device_node) + "/msm_fb_split"; in GetSplitInfo() local
958 Sys::fstream fs(file_name, fstream::in); in GetSplitInfo()
960 DLOGW("File not found %s", file_name.c_str()); in GetSplitInfo()
[all …]
/hardware/qcom/sm8150/display/sdm/libs/core/fb/
Dhw_device.cpp809 string file_name = fb_path_ + to_string(device_node) + "/msm_fb_panel_info"; in GetHWPanelNameByNode() local
811 Sys::fstream fs(file_name, fstream::in); in GetHWPanelNameByNode()
834 string file_name = fb_path_ + to_string(device_node) + "/msm_fb_panel_info"; in GetHWPanelInfoByNode() local
836 Sys::fstream fs(file_name, fstream::in); in GetHWPanelInfoByNode()
927 string file_name = fb_path_ + to_string(device_node) + "/msm_fb_type"; in GetHWDisplayPortAndMode() local
929 Sys::fstream fs(file_name, fstream::in); in GetHWDisplayPortAndMode()
931 DLOGW("File not found %s", file_name.c_str()); in GetHWDisplayPortAndMode()
968 string file_name = fb_path_ + to_string(device_node) + "/msm_fb_split"; in GetSplitInfo() local
970 Sys::fstream fs(file_name, fstream::in); in GetSplitInfo()
972 DLOGW("File not found %s", file_name.c_str()); in GetSplitInfo()
[all …]
/hardware/qcom/display/msm8998/sdm/libs/core/fb/
Dhw_device.cpp803 string file_name = fb_path_ + to_string(device_node) + "/msm_fb_panel_info"; in GetHWPanelNameByNode() local
805 Sys::fstream fs(file_name, fstream::in); in GetHWPanelNameByNode()
826 string file_name = fb_path_ + to_string(device_node) + "/msm_fb_panel_info"; in GetHWPanelInfoByNode() local
828 Sys::fstream fs(file_name, fstream::in); in GetHWPanelInfoByNode()
919 string file_name = fb_path_ + to_string(device_node) + "/msm_fb_type"; in GetHWDisplayPortAndMode() local
921 Sys::fstream fs(file_name, fstream::in); in GetHWDisplayPortAndMode()
923 DLOGW("File not found %s", file_name.c_str()); in GetHWDisplayPortAndMode()
960 string file_name = fb_path_ + to_string(device_node) + "/msm_fb_split"; in GetSplitInfo() local
962 Sys::fstream fs(file_name, fstream::in); in GetSplitInfo()
964 DLOGW("File not found %s", file_name.c_str()); in GetSplitInfo()
[all …]
/hardware/qcom/display/msm8996/sdm/libs/core/fb/
Dhw_device.cpp739 string file_name = fb_path_ + to_string(device_node) + "/msm_fb_panel_info"; in GetHWPanelNameByNode() local
741 Sys::fstream fs(file_name, fstream::in); in GetHWPanelNameByNode()
762 string file_name = fb_path_ + to_string(device_node) + "/msm_fb_panel_info"; in GetHWPanelInfoByNode() local
764 Sys::fstream fs(file_name, fstream::in); in GetHWPanelInfoByNode()
816 string file_name = fb_path_ + to_string(device_node) + "/msm_fb_type"; in GetHWDisplayPortAndMode() local
818 Sys::fstream fs(file_name, fstream::in); in GetHWDisplayPortAndMode()
820 DLOGW("File not found %s", file_name.c_str()); in GetHWDisplayPortAndMode()
854 string file_name = fb_path_ + to_string(device_node) + "/msm_fb_split"; in GetSplitInfo() local
856 Sys::fstream fs(file_name, fstream::in); in GetSplitInfo()
858 DLOGW("File not found %s", file_name.c_str()); in GetSplitInfo()
/hardware/knowles/athletico/sound_trigger_hal/
Diaxxx_odsp_hw.c360 strlcpy(pcc.file_name, cdata.data.fdata.filename, NAME_MAX_SIZE); in iaxxx_odsp_plugin_set_creation_config()
361 ALOGV("%s: Configuration file name %s", __func__, pcc.file_name); in iaxxx_odsp_plugin_set_creation_config()
671 ppb.file_name[0] = '\0'; in iaxxx_odsp_plugin_set_parameter_blk()
699 const char *file_name) in iaxxx_odsp_plugin_set_parameter_blk_from_file() argument
713 __func__, inst_id, block_id, file_name, param_blk_id); in iaxxx_odsp_plugin_set_parameter_blk_from_file()
720 strlcpy(ppb.file_name, file_name, NAME_MAX_SIZE); in iaxxx_odsp_plugin_set_parameter_blk_from_file()
768 strlcpy(pcc.file_name, filename, NAME_MAX_SIZE); in iaxxx_odsp_plugin_set_custom_cfg()
/hardware/invensense/6515/libsensors_iio/software/simple_apps/stress_iio/
Dstress_iio.c296 char file_name[100]; in get_dmp_event() local
306 sprintf(file_name, "%s/%s", dev_dir_name, event_file[i].fname); in get_dmp_event()
307 pfd[i].fd = open(file_name, O_RDONLY | O_NONBLOCK); in get_dmp_event()
320 sprintf(file_name, "%s/%s", dev_dir_name, event_file[i].fname); in get_dmp_event()
321 fp = fopen(file_name, "rt"); in get_dmp_event()
/hardware/qcom/audio/legacy/libalsa-intf/
Dalsa_ucm.c2125 char *p = NULL, *verb_name = NULL, *file_name = NULL, *temp_ptr = NULL; in second_stage_parsing_thread() local
2198 file_name = (char *)malloc((strlen(p)+1)*sizeof(char)); in second_stage_parsing_thread()
2199 if(file_name == NULL) { in second_stage_parsing_thread()
2203 strlcpy(file_name, p, (strlen(p)+1)*sizeof(char)); in second_stage_parsing_thread()
2207 if (file_name != NULL) { in second_stage_parsing_thread()
2208 ret = snd_ucm_parse_verb(uc_mgr, file_name, index); in second_stage_parsing_thread()
2228 free(file_name); in second_stage_parsing_thread()
2229 file_name = NULL; in second_stage_parsing_thread()
2245 if (file_name != NULL) { in second_stage_parsing_thread()
2246 free(file_name); in second_stage_parsing_thread()
[all …]

12