/hardware/invensense/6515/libsensors_iio/software/simple_apps/playback/linux/ |
D | and_constructor.c | 36 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/ |
D | lights.c | 101 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/sm8150/thermal/ |
D | thermal.c | 45 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/sdm845/thermal/ |
D | thermal.c | 45 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/ |
D | thermal.c | 41 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/google/pixel-sepolicy/mm/ |
D | init-mm-logging.sh.te | 6 dontaudit init-mm-logging-sh { domain -kernel }:{ file dir } *; 10 allow init-mm-logging-sh vendor_toolbox_exec:file rx_file_perms; 11 allow init-mm-logging-sh proc_vmstat:file r_file_perms; 13 allow init-mm-logging-sh mm_logd_vendor_data_file:file create_file_perms; 16 allow init-mm-logging-sh kernel:file r_file_perms; 17 allow init-mm-logging-sh proc_stat:file r_file_perms;
|
/hardware/qcom/msm8998/json-c/ |
D | config.h.in | 32 /* 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 …]
|
D | Android.configure.mk | 30 for file in $(JSON_C_BUILT_SOURCES); do \ 31 rm -f $$file && \ 32 make -C $$(dirname $$file) $$(basename $$file) ; \
|
/hardware/interfaces/health/1.0/ |
D | types.hal | 5 * 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/ |
D | data_builder.c | 52 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/ |
D | ConfigParser.cpp | 78 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/ |
D | ConfigParser.cpp | 77 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/ |
D | vibrator.c | 35 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/google/pixel-sepolicy/pixelstats/ |
D | pixelstats_vendor.te | 2 allow pixelstats_vendor sysfs_scsi_devices_0000:file r_file_perms; 4 allow pixelstats_vendor sysfs_fs_f2fs:file r_file_perms; 11 allow pixelstats_vendor sysfs_zram:file r_file_perms;
|
/hardware/invensense/6515/libsensors_iio/software/core/mllite/ |
D | data_builder.c | 53 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/google/pixel/vibrator/common/ |
D | utils.h | 102 static void openNoCreate(const std::string &file, T *outStream) { in openNoCreate() argument 106 outStream->open(file, mode | std::ios_base::in); in openNoCreate() 108 ALOGE("Failed to open %s (%d): %s", file.c_str(), errno, strerror(errno)); in openNoCreate() 114 auto file = std::getenv(env); 116 if (file == nullptr) { 122 *outName = std::string(file); 125 openNoCreate(file, outStream);
|
/hardware/interfaces/dumpstate/1.0/ |
D | IDumpstateDevice.hal | 5 * 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/ |
D | IOffloadConfig.hal | 5 * 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/google/pixel-sepolicy/thermal/ |
D | hal_thermal_default.te | 2 allow hal_thermal_default sysfs_thermal:file rw_file_perms; 3 allow hal_thermal_default proc_stat:file r_file_perms;
|
/hardware/interfaces/usb/1.0/default/ |
D | Usb.cpp | 42 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/msm8909w_3100/gpu_tonemapper/ |
D | glengine.h | 44 void checkGlError(const char *file, int line); 45 void checkEglError(const char *file, int line);
|
/hardware/qcom/display/msm8909/gpu_tonemapper/ |
D | glengine.h | 44 void checkGlError(const char *file, int line); 45 void checkEglError(const char *file, int line);
|
/hardware/qcom/display/msm8998/gpu_tonemapper/ |
D | glengine.h | 44 void checkGlError(const char *file, int line); 45 void checkEglError(const char *file, int line);
|
/hardware/qcom/sm8150/display/gpu_tonemapper/ |
D | glengine.h | 44 void checkGlError(const char *file, int line); 45 void checkEglError(const char *file, int line);
|
/hardware/qcom/sdm845/display/gpu_tonemapper/ |
D | glengine.h | 44 void checkGlError(const char *file, int line); 45 void checkEglError(const char *file, int line);
|