Home
last modified time | relevance | path

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

12345678910>>...47

/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/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/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) ; \
DDoxyfile3 # This file describes the settings to be used by the documentation system
40 # cause performance problems for the file system.
68 # the file and class documentation (similar to JavaDoc).
86 # name of the entity): "The $name class" "The $name widget" "The $name file"
105 # path before files name in the file list and in the header files. If set
106 # to NO the shortest path that makes the file name unique will be used.
113 # the path. The tag can be used to show relative paths in the file list.
121 # the reader which header file to include in order to use a class.
122 # If left blank only the name of the header file containing the class
129 # (but less readable) file names. This can be useful is your file systems
[all …]
/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/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/sdm845/display/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/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/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/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/qcom/msm8996/original-kernel-headers/linux/
Dqcedev.h231 struct file;
232 extern long qcedev_ioctl(struct file *file,
/hardware/interfaces/fastboot/1.0/
Dtypes.hal5 * you may not use this file except in compliance with the License.
40 * Fourth extended file system.
48 * Raw file system.
/hardware/qcom/msm8x09/original-kernel-headers/linux/
Dqcedev.h231 struct file;
232 extern long qcedev_ioctl(struct file *file,
/hardware/interfaces/neuralnetworks/1.2/
DIDevice.hal5 * you may not use this file except in compliance with the License.
129 * There are two types of cache file descriptors provided to the driver: model cache
150 * IDevice::prepareModelFromCache or providing cache file descriptors to
180 * two types of cache file handles provided to the driver: model cache
184 * The file descriptors must be opened with read and write permission. A file may
185 * have any size, and the corresponding file descriptor may have any offset. The
186 * driver must truncate a file to zero size before writing to that file. The file
188 * finished. The driver must dup a file descriptor if it wants to get access to
189 * the cache file later.
235 * cache file descriptor for the security-sensitive cache. The length of
[all …]

12345678910>>...47