Lines Matching refs:file_name
74 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()
186 char file_name[MAX_LENGTH]; in get_cpu_usages() local
231 snprintf(file_name, MAX_LENGTH, CPU_ONLINE_FILE_FORMAT, cpu_num); in get_cpu_usages()
232 cpu_file = fopen(file_name, "r"); in get_cpu_usages()
235 ALOGE("%s: failed to open file: %s (%s)", __func__, file_name, strerror(errno)); in get_cpu_usages()
241 file_name, strerror(errno)); in get_cpu_usages()