Home
last modified time | relevance | path

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

/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/intel/common/libva/va/
Dva_fool.c271 char file_name[1024]; in va_FoolFillCodedBufEnc() local
278 snprintf(file_name, 1024, "%s.%d", in va_FoolFillCodedBufEnc()
282 if ((fd = open(file_name, O_RDONLY)) != -1) { in va_FoolFillCodedBufEnc()
294 va_errorMessage("Open file %s failed:%s\n", file_name, strerror(errno)); in va_FoolFillCodedBufEnc()
/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/msm8998/sdm/libs/core/fb/
Dhw_device.cpp770 string file_name = fb_path_ + to_string(device_node) + "/msm_fb_panel_info"; in GetHWPanelNameByNode() local
772 Sys::fstream fs(file_name, fstream::in); in GetHWPanelNameByNode()
793 string file_name = fb_path_ + to_string(device_node) + "/msm_fb_panel_info"; in GetHWPanelInfoByNode() local
795 Sys::fstream fs(file_name, fstream::in); in GetHWPanelInfoByNode()
886 string file_name = fb_path_ + to_string(device_node) + "/msm_fb_type"; in GetHWDisplayPortAndMode() local
888 Sys::fstream fs(file_name, fstream::in); in GetHWDisplayPortAndMode()
890 DLOGW("File not found %s", file_name.c_str()); in GetHWDisplayPortAndMode()
927 string file_name = fb_path_ + to_string(device_node) + "/msm_fb_split"; in GetSplitInfo() local
929 Sys::fstream fs(file_name, fstream::in); in GetSplitInfo()
931 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/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 …]
Dmsm8960_use_cases.h296 static int snd_ucm_parse_verb(snd_use_case_mgr_t **uc_mgr, const char *file_name, int index);
/hardware/qcom/audio/post_proc/
Dvolume_listener.c570 static bool resolve_audio_hal_path(char *file_name, int mode) { in resolve_audio_hal_path() argument
576 primary_audio_hal_path[i], file_name); in resolve_audio_hal_path()
578 strcpy(file_name, file_path); in resolve_audio_hal_path()
/hardware/qcom/media/msm8974/mm-video-legacy/vidc/venc/test/
Dvideo_encoder_test.c71 char *file_name = NULL; in main() local
77 file_name = argv [1]; in main()
78 file_ptr = fopen (file_name,"rb"); in main()
/hardware/qcom/media/msm8974/mm-video-legacy/vidc/vdec/test/
Ddecoder_driver_test.c72 char *file_name = NULL; in main() local
78 file_name = argv [1]; in main()
79 file_ptr = fopen (file_name,"rb"); in main()
/hardware/qcom/media/msm8974/mm-video-v4l2/vidc/vdec/test/
Ddecoder_driver_test.c72 char *file_name = NULL; in main() local
78 file_name = argv [1]; in main()
79 file_ptr = fopen (file_name,"rb"); in main()
/hardware/qcom/audio/hal/msm8974/
Dplatform.c1109 bool resolveConfigFile(char file_name[MIXER_PATH_MAX_LENGTH]) { in resolveConfigFile()
1116 file_name); in resolveConfigFile()
1118 strcpy(file_name, full_config_path); in resolveConfigFile()