Home
last modified time | relevance | path

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

/device/lge/bullhead/thermal/
Dthermal.c74 static ssize_t read_temperature(const char *file_name, const char *temperature_format, int type, in read_temperature() argument
80 file = fopen(file_name, "r"); in read_temperature()
109 char file_name[MAX_LENGTH]; in get_cpu_temperatures() local
115 sprintf(file_name, TEMPERATURE_FILE_FORMAT, CPU_SENSORS[cpu]); in get_cpu_temperatures()
117 ssize_t result = read_temperature(file_name, "%f", DEVICE_TEMPERATURE_CPU, CPU_LABEL[cpu], in get_cpu_temperatures()
129 char file_name[MAX_LENGTH]; in get_temperatures() local
144 sprintf(file_name, TEMPERATURE_FILE_FORMAT, GPU_SENSOR_NUM); in get_temperatures()
145 result = read_temperature(file_name, "%f", DEVICE_TEMPERATURE_GPU, GPU_LABEL, 1, in get_temperatures()
156 sprintf(file_name, TEMPERATURE_FILE_FORMAT, BATTERY_SENSOR_NUM); in get_temperatures()
157 result = read_temperature(file_name, "%f", DEVICE_TEMPERATURE_BATTERY, BATTERY_LABEL, in get_temperatures()
[all …]
/device/htc/flounder/thermal/
Dthermal.c66 char file_name[MAX_LENGTH]; in read_temperature() local
69 sprintf(file_name, TEMPERATURE_FILE_FORMAT, sensor_num); in read_temperature()
70 file = fopen(file_name, "r"); in read_temperature()
150 char file_name[MAX_LENGTH]; in get_cpu_usages() local
195 snprintf(file_name, MAX_LENGTH, CPU_ONLINE_FILE_FORMAT, cpu_num); in get_cpu_usages()
196 cpu_file = fopen(file_name, "r"); in get_cpu_usages()
199 ALOGE("%s: failed to open file: %s (%s)", __func__, file_name, strerror(errno)); in get_cpu_usages()
205 file_name, strerror(errno)); in get_cpu_usages()
/device/huawei/angler/thermal/
Dthermal.c78 char file_name[MAX_LENGTH]; in read_temperature() local
81 sprintf(file_name, TEMPERATURE_FILE_FORMAT, sensor_num); in read_temperature()
82 file = fopen(file_name, "r"); in read_temperature()
184 char file_name[MAX_LENGTH]; in get_cpu_usages() local
229 snprintf(file_name, MAX_LENGTH, CPU_ONLINE_FILE_FORMAT, cpu_num); in get_cpu_usages()
230 cpu_file = fopen(file_name, "r"); in get_cpu_usages()
233 ALOGE("%s: failed to open file: %s (%s)", __func__, file_name, strerror(errno)); in get_cpu_usages()
239 file_name, strerror(errno)); in get_cpu_usages()
/device/moto/shamu/thermal/
Dthermal.c74 char file_name[MAX_LENGTH]; in read_temperature() local
77 sprintf(file_name, TEMPERATURE_FILE_FORMAT, sensor_num); in read_temperature()
78 file = fopen(file_name, "r"); in read_temperature()
176 char file_name[MAX_LENGTH]; in get_cpu_usages() local
221 snprintf(file_name, MAX_LENGTH, CPU_ONLINE_FILE_FORMAT, cpu_num); in get_cpu_usages()
222 cpu_file = fopen(file_name, "r"); in get_cpu_usages()
225 ALOGE("%s: failed to open file: %s (%s)", __func__, file_name, strerror(errno)); in get_cpu_usages()
231 file_name, strerror(errno)); in get_cpu_usages()
/device/huawei/angler/camera/QCamera2/stack/mm-camera-test/src/
Dmm_qcamera_rdi.c40 char file_name[FILENAME_MAX]; in mm_app_rdi_dump_frame() local
45 snprintf(file_name, sizeof(file_name), in mm_app_rdi_dump_frame()
47 file_fd = open(file_name, O_RDWR | O_CREAT, 0777); in mm_app_rdi_dump_frame()
49 CDBG_ERROR("%s: cannot open file %s \n", __func__, file_name); in mm_app_rdi_dump_frame()
58 CDBG("%s: dump rdi frame %s", __func__,file_name); in mm_app_rdi_dump_frame()
66 char file_name[FILENAME_MAX]; in mm_app_rdi_notify_cb() local
72 snprintf(file_name, sizeof(file_name), "RDI_dump_%d", pme->cam->camera_handle); in mm_app_rdi_notify_cb()
73 mm_app_rdi_dump_frame(frame, file_name, "raw", frame->frame_idx); in mm_app_rdi_notify_cb()
Dmm_qcamera_video.c36 char file_name[64]; in mm_app_video_notify_cb() local
42 snprintf(file_name, sizeof(file_name), "V_C%d", pme->cam->camera_handle); in mm_app_video_notify_cb()
43 mm_app_dump_frame(frame, file_name, "yuv", frame->frame_idx); in mm_app_video_notify_cb()
Dmm_qcamera_preview.c171 char file_name[64]; in mm_app_preview_notify_cb() local
172 snprintf(file_name, sizeof(file_name), "P_C%d", pme->cam->camera_handle); in mm_app_preview_notify_cb()
173 mm_app_dump_frame(frame, file_name, "yuv", frame->frame_idx); in mm_app_preview_notify_cb()
Dmm_qcamera_app.c241 char file_name[FILENAME_MAX]; in mm_app_dump_frame() local
246 snprintf(file_name, sizeof(file_name), in mm_app_dump_frame()
248 file_fd = open(file_name, O_RDWR | O_CREAT, 0777); in mm_app_dump_frame()
250 CDBG_ERROR("%s: cannot open file %s \n", __func__, file_name); in mm_app_dump_frame()
263 CDBG("dump %s", file_name); in mm_app_dump_frame()
/device/moto/shamu/camera/QCamera2/stack/mm-camera-test/src/
Dmm_qcamera_rdi.c40 char file_name[64]; in mm_app_rdi_dump_frame() local
46 snprintf(file_name, sizeof(file_name), "/data/%s_%03d.%s", name, frame_idx, ext); in mm_app_rdi_dump_frame()
47 file_fd = open(file_name, O_RDWR | O_CREAT, 0777); in mm_app_rdi_dump_frame()
49 CDBG_ERROR("%s: cannot open file %s \n", __func__, file_name); in mm_app_rdi_dump_frame()
58 CDBG("%s: dump rdi frame %s", __func__,file_name); in mm_app_rdi_dump_frame()
66 char file_name[64]; in mm_app_rdi_notify_cb() local
72 snprintf(file_name, sizeof(file_name), "RDI_dump_%d", pme->cam->camera_handle); in mm_app_rdi_notify_cb()
73 mm_app_rdi_dump_frame(frame, file_name, "raw", frame->frame_idx); in mm_app_rdi_notify_cb()
Dmm_qcamera_video.c36 char file_name[64]; in mm_app_video_notify_cb() local
42 snprintf(file_name, sizeof(file_name), "V_C%d", pme->cam->camera_handle); in mm_app_video_notify_cb()
43 mm_app_dump_frame(frame, file_name, "yuv", frame->frame_idx); in mm_app_video_notify_cb()
Dmm_qcamera_preview.c160 char file_name[64]; in mm_app_preview_notify_cb() local
161 snprintf(file_name, sizeof(file_name), "P_C%d", pme->cam->camera_handle); in mm_app_preview_notify_cb()
162 mm_app_dump_frame(frame, file_name, "yuv", frame->frame_idx); in mm_app_preview_notify_cb()
Dmm_qcamera_app.c241 char file_name[64]; in mm_app_dump_frame() local
246 snprintf(file_name, sizeof(file_name), "/data/test/%s_%04d.%s", name, frame_idx, ext); in mm_app_dump_frame()
247 file_fd = open(file_name, O_RDWR | O_CREAT, 0777); in mm_app_dump_frame()
249 CDBG_ERROR("%s: cannot open file %s \n", __func__, file_name); in mm_app_dump_frame()
261 CDBG("dump %s", file_name); in mm_app_dump_frame()
/device/lge/bullhead/camera/QCamera2/stack/mm-camera-test/src/
Dmm_qcamera_rdi.c40 char file_name[FILENAME_MAX]; in mm_app_rdi_dump_frame() local
45 snprintf(file_name, sizeof(file_name), in mm_app_rdi_dump_frame()
47 file_fd = open(file_name, O_RDWR | O_CREAT, 0777); in mm_app_rdi_dump_frame()
49 CDBG_ERROR("%s: cannot open file %s \n", __func__, file_name); in mm_app_rdi_dump_frame()
58 CDBG("%s: dump rdi frame %s", __func__,file_name); in mm_app_rdi_dump_frame()
66 char file_name[FILENAME_MAX]; in mm_app_rdi_notify_cb() local
72 snprintf(file_name, sizeof(file_name), "RDI_dump_%d", pme->cam->camera_handle); in mm_app_rdi_notify_cb()
73 mm_app_rdi_dump_frame(frame, file_name, "raw", frame->frame_idx); in mm_app_rdi_notify_cb()
Dmm_qcamera_video.c36 char file_name[64]; in mm_app_video_notify_cb() local
42 snprintf(file_name, sizeof(file_name), "V_C%d", pme->cam->camera_handle); in mm_app_video_notify_cb()
43 mm_app_dump_frame(frame, file_name, "yuv", frame->frame_idx); in mm_app_video_notify_cb()
Dmm_qcamera_preview.c171 char file_name[64]; in mm_app_preview_notify_cb() local
172 snprintf(file_name, sizeof(file_name), "P_C%d", pme->cam->camera_handle); in mm_app_preview_notify_cb()
173 mm_app_dump_frame(frame, file_name, "yuv", frame->frame_idx); in mm_app_preview_notify_cb()
Dmm_qcamera_app.c241 char file_name[FILENAME_MAX]; in mm_app_dump_frame() local
246 snprintf(file_name, sizeof(file_name), in mm_app_dump_frame()
248 file_fd = open(file_name, O_RDWR | O_CREAT, 0777); in mm_app_dump_frame()
250 CDBG_ERROR("%s: cannot open file %s \n", __func__, file_name); in mm_app_dump_frame()
263 CDBG("dump %s", file_name); in mm_app_dump_frame()