Home
last modified time | relevance | path

Searched refs:file (Results 1 – 25 of 1324) sorted by relevance

12345678910>>...53

/hardware/invensense/6515/libsensors_iio/software/simple_apps/playback/linux/
Dand_constructor.c36 FILE *file; member
126 if (inv_construct.file == NULL) { in inv_playback()
127 inv_construct.file = fopen(playback_filename, "rb"); in inv_playback()
128 if (!inv_construct.file) { in inv_playback()
136 r = fread(&type, sizeof(type), 1, inv_construct.file); in inv_playback()
140 fclose(inv_construct.file); in inv_playback()
146 r = fread(gyro, sizeof(gyro[0]), 3, inv_construct.file); in inv_playback()
147 r = fread(&ts, sizeof(ts), 1, inv_construct.file); in inv_playback()
155 r = fread(buffer, sizeof(buffer[0]), 3, inv_construct.file); in inv_playback()
156 r = fread(&ts, sizeof(ts), 1, inv_construct.file); in inv_playback()
[all …]
/hardware/qcom/sm8150/display/liblight/
Dlights.c101 static bool file_exists(const char *file) in file_exists() argument
105 fd = open(file, O_RDWR); in file_exists()
107 ALOGE("failed to open %s, errno=%d\n", file, errno); in file_exists()
171 char file[48]; in set_rgb_led_brightness() local
173 snprintf(file, sizeof(file), "/sys/class/leds/%s/brightness", led_names[led]); in set_rgb_led_brightness()
174 return write_int(file, brightness); in set_rgb_led_brightness()
179 char file[48]; in set_rgb_led_timer_trigger() local
182 snprintf(file, sizeof(file), "/sys/class/leds/%s/delay_off", led_names[led]); in set_rgb_led_timer_trigger()
183 rc = write_int(file, offMS); in set_rgb_led_timer_trigger()
187 snprintf(file, sizeof(file), "/sys/class/leds/%s/delay_on", led_names[led]); in set_rgb_led_timer_trigger()
[all …]
/hardware/qcom/sdm845/thermal/
Dthermal.c45 FILE *file; in get_num_cpus() local
53 file = fopen(CPU_PRESENT_FILE, "r"); in get_num_cpus()
54 if (file == NULL) { in get_num_cpus()
59 if ((read = getline(&line, &len, file)) != -1) { in get_num_cpus()
70 fclose(file); in get_num_cpus()
89 FILE *file; in get_cpu_usages() local
99 file = fopen(CPU_USAGE_FILE, "r"); in get_cpu_usages()
100 if (file == NULL) { in get_cpu_usages()
105 while ((read = getline(&line, &len, file)) != -1) { in get_cpu_usages()
127 fclose(file); in get_cpu_usages()
[all …]
/hardware/qcom/sm8150/thermal/
Dthermal.c45 FILE *file; in get_num_cpus() local
53 file = fopen(CPU_PRESENT_FILE, "r"); in get_num_cpus()
54 if (file == NULL) { in get_num_cpus()
59 if ((read = getline(&line, &len, file)) != -1) { in get_num_cpus()
70 fclose(file); in get_num_cpus()
89 FILE *file; in get_cpu_usages() local
99 file = fopen(CPU_USAGE_FILE, "r"); in get_cpu_usages()
100 if (file == NULL) { in get_cpu_usages()
105 while ((read = getline(&line, &len, file)) != -1) { in get_cpu_usages()
127 fclose(file); in get_cpu_usages()
[all …]
/hardware/libhardware/modules/thermal/
Dthermal.c41 FILE *file; in get_temperatures() local
59 file = fopen(file_name, "r"); in get_temperatures()
60 if (file == NULL) { in get_temperatures()
63 if (1 != fscanf(file, "%f", &temp)) { in get_temperatures()
64 fclose(file); in get_temperatures()
78 fclose(file); in get_temperatures()
95 FILE *file = fopen(CPU_USAGE_FILE, "r"); in get_cpu_usages() local
97 if (file == NULL) { in get_cpu_usages()
102 while ((read = getline(&line, &len, file)) != -1) { in get_cpu_usages()
119 fclose(file); in get_cpu_usages()
[all …]
/hardware/qcom/msm8998/json-c/
Dconfig.h.in32 /* Define to 1 if you have the <dlfcn.h> header file. */
38 /* Define to 1 if you have the <endian.h> header file. */
41 /* Define to 1 if you have the <fcntl.h> header file. */
44 /* Define to 1 if you have the <inttypes.h> header file. */
47 /* Define to 1 if you have the <limits.h> header file. */
50 /* Define to 1 if you have the <locale.h> header file. */
57 /* Define to 1 if you have the <memory.h> header file. */
73 /* Define to 1 if you have the <stdarg.h> header file. */
76 /* Define to 1 if you have the <stdint.h> header file. */
79 /* Define to 1 if you have the <stdlib.h> header file. */
[all …]
DAndroid.configure.mk30 for file in $(JSON_C_BUILT_SOURCES); do \
31 rm -f $$file && \
32 make -C $$(dirname $$file) $$(basename $$file) ; \
/hardware/interfaces/health/1.0/
Dtypes.hal5 * you may not use this file except in compliance with the License.
83 * power_supply sysfs attribute file paths. Set these to specific paths
90 * batteryStatusPath - file path to read battery charging status.
97 * batteryHealthPath - file path to read battery health.
103 * batteryPresentPath - file path to read battery present status.
110 * batteryCapacityPath - file path to read remaining battery capacity.
116 * batteryVoltagePath - file path to read battery voltage.
122 * batteryTemperaturePath - file path to read battery temperature in tenths
128 * batteryTechnologyPath - file path to read battery technology.
134 * batteryCurrentNowPath - file path to read battery instantaneous current.
[all …]
/hardware/invensense/65xx/libsensors_iio/software/core/mllite/
Ddata_builder.c52 FILE *file; member
67 void inv_turn_on_data_logging(FILE *file) in inv_turn_on_data_logging() argument
70 inv_data_builder.file = file; in inv_turn_on_data_logging()
81 inv_data_builder.file = NULL; in inv_turn_off_data_logging()
249 fwrite(&type, sizeof(type), 1, inv_data_builder.file); in inv_set_gyro_orientation_and_scale()
250 fwrite(&orientation, sizeof(orientation), 1, inv_data_builder.file); in inv_set_gyro_orientation_and_scale()
251 fwrite(&sensitivity, sizeof(sensitivity), 1, inv_data_builder.file); in inv_set_gyro_orientation_and_scale()
266 fwrite(&type, sizeof(type), 1, inv_data_builder.file); in inv_set_gyro_sample_rate()
267 fwrite(&sample_rate_us, sizeof(sample_rate_us), 1, inv_data_builder.file); in inv_set_gyro_sample_rate()
285 fwrite(&type, sizeof(type), 1, inv_data_builder.file); in inv_set_accel_sample_rate()
[all …]
/hardware/qcom/sm8150/media/libplatformconfig/
DConfigParser.cpp78 FILE *file; in initAndParse() local
79 file = fopen(configFile.c_str(), "r"); in initAndParse()
80 if (!file) { in initAndParse()
109 bytesRead = fread(buf, 1, BUF_SIZE, file); in initAndParse()
131 fclose(file); in initAndParse()
/hardware/qcom/sdm845/media/libplatformconfig/
DConfigParser.cpp77 FILE *file; in initAndParse() local
78 file = fopen(configFile.c_str(), "r"); in initAndParse()
79 if (!file) { in initAndParse()
108 bytesRead = fread(buf, 1, BUF_SIZE, file); in initAndParse()
130 fclose(file); in initAndParse()
/hardware/libhardware/modules/vibrator/
Dvibrator.c35 static bool device_exists(const char *file) { in device_exists() argument
38 fd = TEMP_FAILURE_RETRY(open(file, O_RDWR)); in device_exists()
51 static int write_value(const char *file, const char *value) in write_value() argument
55 fd = TEMP_FAILURE_RETRY(open(file, O_WRONLY)); in write_value()
101 static int write_led_file(const char *file, const char *value) in write_led_file() argument
105 snprintf(file_str, sizeof(file_str), "%s/%s", LED_DEVICE, file); in write_led_file()
/hardware/invensense/6515/libsensors_iio/software/core/mllite/
Ddata_builder.c53 FILE *file; member
68 void inv_turn_on_data_logging(FILE *file) in inv_turn_on_data_logging() argument
71 inv_data_builder.file = file; in inv_turn_on_data_logging()
82 inv_data_builder.file = NULL; in inv_turn_off_data_logging()
250 fwrite(&type, sizeof(type), 1, inv_data_builder.file); in inv_set_gyro_orientation_and_scale()
251 fwrite(&orientation, sizeof(orientation), 1, inv_data_builder.file); in inv_set_gyro_orientation_and_scale()
252 fwrite(&sensitivity, sizeof(sensitivity), 1, inv_data_builder.file); in inv_set_gyro_orientation_and_scale()
267 fwrite(&type, sizeof(type), 1, inv_data_builder.file); in inv_set_gyro_sample_rate()
268 fwrite(&sample_rate_us, sizeof(sample_rate_us), 1, inv_data_builder.file); in inv_set_gyro_sample_rate()
286 fwrite(&type, sizeof(type), 1, inv_data_builder.file); in inv_set_accel_sample_rate()
[all …]
/hardware/interfaces/dumpstate/1.0/
DIDumpstateDevice.hal5 * you may not use this file except in compliance with the License.
21 * Dump device-specific state into the given file descriptors.
23 * One file descriptor must be passed to this method but two may be passed:
28 * @param h A native handle with one or two valid file descriptors.
/hardware/interfaces/tetheroffload/config/1.0/
DIOffloadConfig.hal5 * you may not use this file except in compliance with the License.
25 * Provides bound netlink file descriptors for use in the management process
27 * @param fd1 A file descriptor bound to the following netlink groups
29 * @param fd2 A file descriptor bound to the following netlink groups
/hardware/interfaces/usb/1.0/default/
DUsb.cpp42 std::ifstream file(filename); in readFile() local
44 if (file.is_open()) { in readFile()
45 getline(file, contents); in readFile()
46 file.close(); in readFile()
89 std::ofstream file(filename); in switchRole() local
94 if (file.is_open()) { in switchRole()
95 file << convertRoletoString(newRole).c_str(); in switchRole()
96 file.close(); in switchRole()
209 std::ofstream file(filename); in canSwitchRoleHelper() local
211 if (file.is_open()) { in canSwitchRoleHelper()
[all …]
/hardware/qcom/display/msm8998/gpu_tonemapper/
Dglengine.h44 void checkGlError(const char *file, int line);
45 void checkEglError(const char *file, int line);
/hardware/qcom/display/msm8909/gpu_tonemapper/
Dglengine.h44 void checkGlError(const char *file, int line);
45 void checkEglError(const char *file, int line);
/hardware/qcom/display/msm8909w_3100/gpu_tonemapper/
Dglengine.h44 void checkGlError(const char *file, int line);
45 void checkEglError(const char *file, int line);
/hardware/qcom/sm8150/display/gpu_tonemapper/
Dglengine.h44 void checkGlError(const char *file, int line);
45 void checkEglError(const char *file, int line);
/hardware/qcom/sdm845/display/gpu_tonemapper/
Dglengine.h44 void checkGlError(const char *file, int line);
45 void checkEglError(const char *file, int line);
/hardware/invensense/65xx/libsensors_iio/software/core/driver/include/
Dmlinclude.h21 extern int functionEnterLog(const char *file, const char *func);
22 extern int functionExitLog(const char *file, const char *func);
/hardware/invensense/6515/libsensors_iio/software/core/driver/include/
Dmlinclude.h21 extern int functionEnterLog(const char *file, const char *func);
22 extern int functionExitLog(const char *file, const char *func);
/hardware/qcom/audio/hal/audio_extn/
Daudiozoom.c122 FILE *file; in audio_extn_audiozoom_parse_info() local
128 file = fopen(filename, "r"); in audio_extn_audiozoom_parse_info()
129 if (!file) { in audio_extn_audiozoom_parse_info()
152 bytes_read = fread(buf, 1, kBufSize, file); in audio_extn_audiozoom_parse_info()
174 fclose(file); in audio_extn_audiozoom_parse_info()
/hardware/interfaces/
DOWNERS1 per-file *.hal,*.aidl,OWNERS = set noparent
2 per-file *.hal,*.aidl,OWNERS = elsk@google.com,malchev@google.com,smoreland@google.com

12345678910>>...53