Home
last modified time | relevance | path

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

12345678910>>...95

/hardware/google/gfxstream/codegen/vulkan/vulkan-docs-next/scripts/
DcompImages.sh65 for file in `comm -12 $files1 $files2` ; do
66 echo "Comparing $file"
67 if diff -q $img1/$file $img2/$file > /dev/null ; then
68 identical+=( $file )
77 compfile="$compdir/$file"
78 compare $img1/$file $img2/$file $compfile
80 echo "=== $file
82 image::$branch1/$file[title=\"$file in $branch1\",align=\"center\",opts=\"inline\"]
84 image::$branch2/$file[title=\"$file in $branch2\",align=\"center\",opts=\"inline\"]
86 image::compare/$file[title=\"Comparison of branches\",align=\"center\",opts=\"inline\"]
[all …]
Dpromote.py31 print('[[' + anchorname(anchor) + ']]', file=fp)
32 print('This anchor:', anchorname(anchor), file=fp)
33 print('<<' + anchorname(anchor+1) + ', OINK>>', file=fp)
45 print('ifdef::VK_VERSION_1_1[]', file=fp)
46 print(line, file=fp, end='')
47 print('endif::VK_VERSION_1_1[]', file=fp)
48 print('', file=fp)
50 '[or the equivalent command]', file=fp)
51 print('', file=fp)
52 print('ifdef::' + extension + '[]', file=fp)
[all …]
Dextensionmetadocgenerator.py176 def resolveDeprecationChain(self, extensions, succeededBy, isRefpage, file): argument
178 …e extension `{succeededBy}` is not supported for the API specification being generated', file=file)
187 …to\n' + ext.conditionalLinkCoreAPI(ext.supercedingAPIVersion, '-promotions', isRefpage), file=file)
189 … turn was _promoted_ to extension\n' + ext.conditionalLinkExt(ext.supercedingExtension), file=file)
190 ext.resolveDeprecationChain(extensions, ext.supercedingExtension, file)
193 …y\n' + ext.conditionalLinkCoreAPI(ext.supercedingAPIVersion, '-new-feature', isRefpage), file=file)
195 …_deprecated_ by\n' + ext.conditionalLinkExt(ext.supercedingExtension) + ' extension', file=file)
196 ext.resolveDeprecationChain(extensions, ext.supercedingExtension, file)
198 write(' ** Which in turn was _deprecated_ without replacement', file=file)
201 …y\n' + ext.conditionalLinkCoreAPI(ext.supercedingAPIVersion, '-new-feature', isRefpage), file=file)
[all …]
Dreflib.py28 file = kwargs.pop('file',sys.stdout)
30 file.write(' '.join(str(arg) for arg in args))
31 file.write(end)
80 file = kwargs.pop('file', diagFile)
82 if file is not None:
83 file.write(logHeader('DIAG') + ' '.join(str(arg) for arg in args))
84 file.write(end)
87 file = kwargs.pop('file', warnFile)
89 if file is not None:
90 file.write(logHeader('WARN') + ' '.join(str(arg) for arg in args))
[all …]
Drubygenerator.py39 write(self.beginDict(name), file=self.outFile)
45 write(f'{enquote(key)} => {value},', file=self.outFile)
46 write(self.endDict(), file=self.outFile)
55 write('def {}'.format(name), file=self.outFile)
56 write(' @{}'.format(name), file=self.outFile)
57 write('end', file=self.outFile)
65 write('class APInames\n', ' def initialize', file=self.outFile)
85 write(self.beginDict('mapDict'), file=self.outFile)
89 file=self.outFile)
90 write(self.endDict(), file=self.outFile)
[all …]
DgenRef.py82 print('// Copyright 2014-2023 The Khronos Group Inc.', file=fp)
83 print('//', file=fp)
85 print('// SPDX' + '-License-Identifier: CC-BY-4.0', file=fp)
86 print('', file=fp)
112 sep='\n', file=fp)
240 sep='\n', file=fp)
247 sep='\n', file=fp)
255 sep='\n', file=fp)
260 sep='\n', file=fp)
268 sep='\n', file=fp)
[all …]
Dinterfacedocgenerator.py50 write('=== ' + title, file=fp)
51 write('',file=fp)
69 write('ifdef::' + required + '[]', file=fp)
70 write(f'If {requiredlink} is supported:', file=fp)
71 write('',file=fp)
76 write(' * ' + markup + api, file=fp)
84 write(' * Extending ' + parentstring + ':', file=fp)
86 write(' ** ' + markup + api, file=fp)
89 write(' * ' + markup + api, file=fp)
92 write('endif::' + required + '[]', file=fp)
[all …]
/hardware/samsung/nfc/halimpl/src/
Dutil.cc52 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/gfxstream/guest/mesa/src/util/
Dmesa_cache_db.c61 static inline bool mesa_db_seek_end(FILE *file) in mesa_db_seek_end() argument
63 return !fseek(file, 0, SEEK_END); in mesa_db_seek_end()
66 static inline bool mesa_db_seek(FILE *file, long pos) in mesa_db_seek() argument
68 return !fseek(file, pos, SEEK_SET); in mesa_db_seek()
71 static inline bool mesa_db_seek_cur(FILE *file, long pos) in mesa_db_seek_cur() argument
73 return !fseek(file, pos, SEEK_CUR); in mesa_db_seek_cur()
76 static inline bool mesa_db_read_data(FILE *file, void *data, size_t size) in mesa_db_read_data() argument
78 return fread(data, 1, size, file) == size; in mesa_db_read_data()
80 #define mesa_db_read(file, var) mesa_db_read_data(file, var, sizeof(*(var))) argument
82 static inline bool mesa_db_write_data(FILE *file, const void *data, size_t size) in mesa_db_write_data() argument
[all …]
Du_debug_memory.c68 const char *file; member
125 debug_malloc(const char *file, unsigned line, const char *function, in debug_malloc() argument
134 file, line, function, in debug_malloc()
140 hdr->file = file; in debug_malloc()
165 debug_free(const char *file, unsigned line, const char *function, in debug_free() argument
177 file, line, function, in debug_free()
186 hdr->file, hdr->line, hdr->function, in debug_free()
197 hdr->file = file; in debug_free()
213 debug_calloc(const char *file, unsigned line, const char *function, in debug_calloc() argument
216 void *ptr = debug_malloc( file, line, function, count * size ); in debug_calloc()
[all …]
Dfossilize_db.c82 check_files_opened_successfully(FILE *file, FILE *db_idx) in check_files_opened_successfully() argument
84 if (!file) { in check_files_opened_successfully()
91 if (file) in check_files_opened_successfully()
92 fclose(file); in check_files_opened_successfully()
220 int err = lock_file_with_timeout(foz_db->file[file_idx], 100000000); in load_foz_dbs()
247 sizeof(stream_reference_magic_and_version), foz_db->file[file_idx]) != in load_foz_dbs()
256 fflush(foz_db->file[file_idx]); in load_foz_dbs()
260 flock(fileno(foz_db->file[file_idx]), LOCK_UN); in load_foz_dbs()
277 flock(fileno(foz_db->file[file_idx]), LOCK_UN); in load_foz_dbs()
302 foz_db->file[file_idx] = fopen(filename, "rb"); in load_foz_dbs_ro()
[all …]
/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/google/gfxstream/codegen/vulkan/vulkan-docs-next/scripts/Retired/
DfixupRef.py34 file=fp)
39 file=fp)
40 print('--', file=fp)
44 print('--', file=fp)
56 file = loadFile(specFile)
57 if file == None:
63 pageMap = findRefs(file)
69 fixupRefs(pageMap, specFile, file)
90 if (file[pi.begin][0:11] == '// refBegin'):
105 if (file[pi.end][0:9] == '// refEnd'):
[all …]
DinsertTags.py23 file = loadFile(specFile)
24 if (file == None):
26 pageMap = findRefs(file)
30 fixupRefs(pageMap, specFile, file)
39 printPageInfo(pageMap[name], file)
41 line = len(file) - 1
66 if (file[line].find('// refBegin') == 0):
68 file[line] = newLine
72 file.insert(line, newLine)
73 file.insert(line, '\n')
[all …]
DextensionStubSource.py118 write('#ifndef VULKAN_EXT_H', file=self.outFileHeader)
119 write('#define VULKAN_EXT_H', file=self.outFileHeader)
120 write('', file=self.outFileHeader)
121 write('#ifdef __cplusplus', file=self.outFileHeader)
122 write('extern "C" {', file=self.outFileHeader)
123 write('#endif', file=self.outFileHeader)
129 write(s, file=self.outFile)
130 write(s, file=self.outFileHeader)
132 write(doc, file=self.outFileHeader)
134 write('#include <vulkan/vulkan.h>', file=self.outFile)
[all …]
/hardware/google/gfxstream/third-party/glm/include/glm/
DCMakeLists.txt1 file(GLOB ROOT_SOURCE *.cpp)
2 file(GLOB ROOT_INLINE *.inl)
3 file(GLOB ROOT_HEADER *.hpp)
4 file(GLOB ROOT_TEXT ../*.txt)
5 file(GLOB ROOT_MD ../*.md)
6 file(GLOB ROOT_NAT ../util/glm.natvis)
8 file(GLOB_RECURSE CORE_SOURCE ./detail/*.cpp)
9 file(GLOB_RECURSE CORE_INLINE ./detail/*.inl)
10 file(GLOB_RECURSE CORE_HEADER ./detail/*.hpp)
12 file(GLOB_RECURSE GTC_SOURCE ./gtc/*.cpp)
[all …]
/hardware/google/pixel-sepolicy/pixelstats/
Dpixelstats_vendor.te11 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;
28 allow pixelstats_vendor kernel:file r_file_perms;
29 allow pixelstats_vendor proc_meminfo:file r_file_perms;
30 allow pixelstats_vendor proc_pressure_cpu:file r_file_perms;
31 allow pixelstats_vendor proc_pressure_io:file r_file_perms;
32 allow pixelstats_vendor proc_pressure_mem:file r_file_perms;
33 allow pixelstats_vendor proc_stat:file r_file_perms;
34 allow pixelstats_vendor proc_vmstat:file r_file_perms;
[all …]
/hardware/google/pixel-sepolicy/wifi_perf_diag/
Dwifi_perf_diag.te11 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/google/gfxstream/guest/fuchsia/
Dport.cc28 static void linux_log_prefix(const char *prefix, const char *file, int line, const char *format, in linux_log_prefix() argument
32 char *dup = strdup(file); in linux_log_prefix()
59 int __android_log_print(int priority, const char* tag, const char* file, int line, in __android_log_print() argument
73 gfxstream_fuchsia_log(FUCHSIA_LOG_DEBUG, local_tag, file, line, format, ap); in __android_log_print()
78 gfxstream_fuchsia_log(FUCHSIA_LOG_INFO, local_tag, file, line, format, ap); in __android_log_print()
82 gfxstream_fuchsia_log(FUCHSIA_LOG_WARNING, local_tag, file, line, format, ap); in __android_log_print()
85 gfxstream_fuchsia_log(FUCHSIA_LOG_ERROR, local_tag, file, line, format, ap); in __android_log_print()
88 gfxstream_fuchsia_log(FUCHSIA_LOG_FATAL, local_tag, file, line, format, ap); in __android_log_print()
91 gfxstream_fuchsia_log(FUCHSIA_LOG_INFO, local_tag, file, line, format, ap); in __android_log_print()
96 linux_log_prefix(local_tag, file, line, format, ap); in __android_log_print()
[all …]
/hardware/google/gfxstream/guest/mesa/src/util/format/
Du_format_table.py134 def write_format_table_header(file): argument
135 …file is autogenerated by u_format_table.py from u_format.csv. Do not edit directly. */', file=file)
136 print(file=file)
138 print(CopyRight.strip(), file=file)
139 print(file=file)
140 print('#include "util/format/u_format.h"', file=file)
154 print('#ifdef __cplusplus', file=sys.stdout2)
155 print('extern "C" {', file=sys.stdout2)
156 print('#endif', file=sys.stdout2)
157 print(file=sys.stdout2)
[all …]
/hardware/google/gfxstream/common/detector/shaders/
Dgenerate_shader_embeds.sh1 for file in *.{frag,vert}; do
2 [ -f "${file}" ] || break
4 SHADER_GLSL="${file}"
7 SHADER_SPV="${file}.spv"
8 SHADER_EMBED="${file}.inl"
9 SHADER_BASENAME="${file}"
/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/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/google/aemu/host-common/include/host-common/
Dgoldfish_pipe.h94 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);
158 void (*dma_save_mappings)(QEMUFile* file);
159 void (*dma_load_mappings)(QEMUFile* file);

12345678910>>...95