/hardware/samsung/nfc/halimpl/src/ |
D | util.cc | 52 bool find_by_name_from_current(FILE* file, const char* field) { in find_by_name_from_current() argument 60 if (!file || !field) return false; in find_by_name_from_current() 63 while (!feof(file) && fgets(buffer, sizeof(buffer) - 1, file)) { in find_by_name_from_current() 77 return (fseek(file, fp, SEEK_CUR) == 0) ? true : false; in find_by_name_from_current() 83 bool find_by_name(FILE* file, const char* field) { in find_by_name() argument 84 fseek(file, 0x00, SEEK_SET); in find_by_name() 85 return find_by_name_from_current(file, field); in find_by_name() 90 FILE* file; in __get_config_int() local 98 if ((file = fopen(CFG_FILE_1, "rb")) == NULL) { in __get_config_int() 100 if ((file = fopen(CFG_FILE_2, "rb")) == NULL) { in __get_config_int() [all …]
|
/hardware/google/pixel-sepolicy/wifi_perf_diag/ |
D | wifi_perf_diag.te | 11 allow wifi_perf_diag wifi_logging_data_file:file create_file_perms; 12 allow wifi_perf_diag vendor_shell_exec:file execute_no_trans; 13 allow wifi_perf_diag wifi_perf_diag_exec:file execute_no_trans; 20 allow wifi_perf_diag device:file rw_file_perms; 22 allow wifi_perf_diag init:file r_file_perms; 24 allow wifi_perf_diag kernel:file r_file_perms; 26 allow wifi_perf_diag logd:file r_file_perms; 28 allow wifi_perf_diag netd:file r_file_perms; 29 allow wifi_perf_diag proc_interrupts:file r_file_perms; 30 allow wifi_perf_diag proc_net:file r_file_perms; [all …]
|
/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/google/pixel-sepolicy/pixelstats/ |
D | pixelstats_vendor.te | 11 allow pixelstats_vendor sysfs_batteryinfo:file w_file_perms; 16 allow pixelstats_vendor sysfs_scsi_devices_0000:file rw_file_perms; 18 allow pixelstats_vendor sysfs_fs_f2fs:file rw_file_perms; 26 allow pixelstats_vendor sysfs_zram:file r_file_perms; 28 allow pixelstats_vendor sysfs_pixel_stat:file r_file_perms; 31 …allow pixelstats_vendor { proc_pressure_cpu proc_pressure_io proc_pressure_mem }:file r_file_perms; 32 allow pixelstats_vendor proc_vmstat:file r_file_perms; 34 allow pixelstats_vendor sysfs_ion:file r_file_perms; 36 allow pixelstats_vendor sysfs_dma_heap:file r_file_perms; 38 allow pixelstats_vendor kernel:file r_file_perms;
|
/hardware/google/aemu/host-common/include/host-common/ |
D | android_pipe_device.h | 128 ANDROID_PIPE_DEVICE_EXPORT void android_pipe_guest_pre_load(Stream* file); 129 ANDROID_PIPE_DEVICE_EXPORT void android_pipe_guest_post_load(Stream* file); 130 ANDROID_PIPE_DEVICE_EXPORT void android_pipe_guest_pre_save(Stream* file); 131 ANDROID_PIPE_DEVICE_EXPORT void android_pipe_guest_post_save(Stream* file); 138 void* internal_pipe, Stream* file); 148 Stream* file, void* hwpipe, char* force_close); 159 Stream* file, void* hwpipe, uint64_t* channel,
|
D | goldfish_pipe.h | 94 void (*guest_pre_load)(QEMUFile *file); 95 void (*guest_post_load)(QEMUFile *file); 96 void (*guest_pre_save)(QEMUFile *file); 97 void (*guest_post_save)(QEMUFile *file); 105 GoldfishHostPipe* (*guest_load)(QEMUFile *file, GoldfishHwPipe *hw_pipe, 111 void (*guest_save)(GoldfishHostPipe *host_pipe, QEMUFile *file); 152 void (*dma_save_mappings)(QEMUFile* file); 153 void (*dma_load_mappings)(QEMUFile* file);
|
/hardware/google/pixel-sepolicy/hardware_info_app/ |
D | hardware_info_app.te | 8 allow hardware_info_app sysfs_scsi_devices_0000:file r_file_perms; 11 allow hardware_info_app sysfs_pixelstats:file r_file_perms; 15 allow hardware_info_app sysfs_batteryinfo:file r_file_perms; 19 allow hardware_info_app sysfs_display:file r_file_perms; 22 allow hardware_info_app sysfs_soc:file r_file_perms; 23 allow hardware_info_app sysfs_chip_id:file r_file_perms;
|
/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/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/gki/ |
D | vendor_init.te | 1 allow vendor_init proc_watermark_boost_factor:file w_file_perms; 2 allow vendor_init proc_lowmem_reserve_ratio:file w_file_perms; 3 allow vendor_init proc_min_free_kbytes:file w_file_perms; 6 allow vendor_init debugfs_tracing_instances:file w_file_perms;
|
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/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/interfaces/health/aidl/default/ |
D | android.hardware.health-service.example.rc | 6 file /dev/kmsg w 14 file /dev/kmsg w 15 file /sys/fs/pstore/console-ramoops-0 r 16 file /sys/fs/pstore/console-ramoops r 17 file /proc/last_kmsg r
|
/hardware/google/pixel-sepolicy/ramdump/ |
D | bug_map | 1 ramdump vendor_hw_plat_prop file b/161103878 2 ramdump public_vendor_default_prop file b/161103878 3 ramdump proc_bootconfig file b/181615626
|
/hardware/google/aemu/host-common/ |
D | logging.cpp | 54 const char* GetFileBasename(const char* file) { in GetFileBasename() argument 56 const char* last_backslash = strrchr(file, '\\'); in GetFileBasename() 61 const char* last_slash = strrchr(file, '/'); in GetFileBasename() 65 return file; in GetFileBasename() 70 void OutputLog(FILE* stream, char severity, const char* file, unsigned int line, in OutputLog() argument 94 ts_parts.tm_sec, microseconds, getCachedThreadID(), GetFileBasename(file), line); in OutputLog()
|
/hardware/google/pixel-sepolicy/sscoredump/ |
D | sscoredump.te | 11 allow sscoredump sscoredump_vendor_data_crashinfo_file:file create_file_perms; 12 allow sscoredump sysfs_sscoredump_subsystem_report_count:file r_file_perms; 15 allow sscoredump sysfs_sscoredump_level:file rw_file_perms; 17 allow sscoredump sscoredump_vendor_data_coredump_file:file create_file_perms;
|
/hardware/google/aemu/base/include/aemu/base/logging/ |
D | Log.h | 267 : file(a_file), lineno(a_lineno), severity(a_severity), quiet(quiet) {} in file() function 272 ((s1.file == nullptr && s2.file == nullptr) || // both null.. 273 (s1.file != nullptr && s2.file != nullptr && 274 (s1.file == s2.file || 275 strcmp(s1.file, s2.file) == 0)) // or the same 279 const char* file = nullptr; member 309 LogStream(const char* file, int lineno, LogSeverity severity, bool quiet); 354 LogMessage(const char* file, 395 ErrnoLogMessage(const char* file,
|
/hardware/google/pixel-sepolicy/power-libperfmgr/ |
D | hal_power_default.te | 3 allow hal_power_default sysfs_devices_system_cpu:file rw_file_perms; 5 allow hal_power_default cgroup:file r_file_perms; 27 allow hal_power_default proc_stat:file r_file_perms; 29 allow hal_power_default proc_vendor_sched:file r_file_perms; 34 allow hal_power_default sysfs_thermal:file rw_file_perms; 40 allow hal_power_default vendor_data_file:file r_file_perms;
|
/hardware/qcom/sm7250/display/liblight/ |
D | lights.c | 121 static bool file_exists(const char *file) in file_exists() argument 125 fd = open(file, O_RDWR); in file_exists() 127 ALOGE("failed to open %s, errno=%d\n", file, errno); in file_exists() 194 char file[48]; in set_rgb_led_brightness() local 197 snprintf(file, sizeof(file), "/sys/class/leds/%s/trigger", led_names[led]); in set_rgb_led_brightness() 198 rc = write_str(file, "none"); in set_rgb_led_brightness() 204 snprintf(file, sizeof(file), "/sys/class/leds/%s/brightness", led_names[led]); in set_rgb_led_brightness() 205 rc = write_int(file, brightness); in set_rgb_led_brightness() 252 char file[48]; in set_rgb_led_hw_blink() local 254 snprintf(file, sizeof(file), "/sys/class/leds/%s/breath", led_names[led]); in set_rgb_led_hw_blink() [all …]
|
/hardware/qcom/sm7250/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/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/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/google/graphics/common/memtrack-pixel/core/ |
D | GpuSysfsReader.cpp | 29 std::ifstream file(path.c_str()); in readNode() local 30 if (!file.is_open()) { in readNode() 36 file >> out; in readNode() 37 file.close(); in readNode()
|
/hardware/google/pixel-sepolicy/wifi_diagnostic/ |
D | wifi_diagnostic.te | 11 allow wifi_diagnostic wifi_logging_data_file:file create_file_perms; 12 allow wifi_diagnostic vendor_shell_exec:file execute_no_trans; 13 allow wifi_diagnostic wifi_diagnostic_exec:file execute_no_trans; 23 allow wifi_diagnostic vendor_file:file execute_no_trans;
|