Home
last modified time | relevance | path

Searched refs:filename (Results 1 – 25 of 41) sorted by relevance

12

/device/generic/opengl-transport/host/commands/emugen/
DApiGen.h36 int readSpec(const std::string & filename);
69 int genOpcodes(const std::string &filename);
70 int genAttributesTemplate(const std::string &filename);
71 int genProcTypes(const std::string &filename, SideType side);
72 int genFuncTable(const std::string &filename, SideType side);
74 int genContext(const std::string &filename, SideType side);
75 int genContextImpl(const std::string &filename, SideType side);
77 int genEntryPoints(const std::string &filename, SideType side);
79 int genEncoderHeader(const std::string &filename);
80 int genEncoderImpl(const std::string &filename);
[all …]
DApiGen.cpp69 int ApiGen::genProcTypes(const std::string &filename, SideType side) in genProcTypes() argument
71 FILE *fp = fopen(filename.c_str(), "wt"); in genProcTypes()
73 perror(filename.c_str()); in genProcTypes()
130 int ApiGen::genFuncTable(const std::string &filename, SideType side) in genFuncTable() argument
132 FILE *fp = fopen(filename.c_str(), "wt"); in genFuncTable()
134 perror(filename.c_str()); in genFuncTable()
161 int ApiGen::genContext(const std::string & filename, SideType side) in genContext() argument
163 FILE *fp = fopen(filename.c_str(), "wt"); in genContext()
165 perror(filename.c_str()); in genContext()
223 int ApiGen::genEntryPoints(const std::string & filename, SideType side) in genEntryPoints() argument
[all …]
Dmain.cpp30 void usage(const char *filename) in usage() argument
32 fprintf(stderr, "Usage: %s [options] <base name>\n", filename); in usage()
103 std::string filename = inDir + "/" + baseName + SPEC_EXTENSION; in main() local
104 if (apiEntries.readSpec(filename) < 0) { in main()
105 perror(filename.c_str()); in main()
DTypeFactory.cpp51 int TypeFactory::initFromFile(const std::string &filename) in initFromFile() argument
57 FILE *fp = fopen(filename.c_str(), "rt"); in initFromFile()
59 perror(filename.c_str()); in initFromFile()
/device/google/cuttlefish_vmm/x86_64-linux-gnu/
DAndroid.bp20 filename: "9p_device.policy",
26 filename: "balloon_device.policy",
32 filename: "block_device.policy",
38 filename: "common_device.policy",
44 filename: "cras_audio_device.policy",
50 filename: "fs_device.policy",
56 filename: "gpu_device.policy",
62 filename: "input_device.policy",
68 filename: "net_device.policy",
74 filename: "null_audio_device.policy",
[all …]
/device/google/cuttlefish_vmm/aarch64-linux-gnu/
DAndroid.bp20 filename: "9p_device.policy",
26 filename: "balloon_device.policy",
32 filename: "block_device.policy",
38 filename: "common_device.policy",
44 filename: "cras_audio_device.policy",
50 filename: "fs_device.policy",
56 filename: "gpu_device.policy",
62 filename: "input_device.policy",
68 filename: "net_device.policy",
74 filename: "null_audio_device.policy",
[all …]
/device/google/coral/json-c/
Djson_util.c67 struct json_object* json_object_from_file(const char *filename) in json_object_from_file() argument
74 if((fd = open(filename, O_RDONLY)) < 0) { in json_object_from_file()
76 filename, strerror(errno)); in json_object_from_file()
90 filename, strerror(errno)); in json_object_from_file()
101 int json_object_to_file_ext(const char *filename, struct json_object *obj, int flags) in json_object_to_file_ext() argument
112 if((fd = open(filename, O_WRONLY | O_TRUNC | O_CREAT, 0644)) < 0) { in json_object_to_file_ext()
114 filename, strerror(errno)); in json_object_to_file_ext()
129 filename, strerror(errno)); in json_object_to_file_ext()
143 int json_object_to_file(const char *filename, struct json_object *obj) in json_object_to_file() argument
145 return json_object_to_file_ext(filename, obj, JSON_C_TO_STRING_PLAIN); in json_object_to_file()
Djson_util.h33 extern struct json_object* json_object_from_file(const char *filename);
34 extern int json_object_to_file(const char *filename, struct json_object *obj);
35 extern int json_object_to_file_ext(const char *filename, struct json_object *obj, int flags);
/device/google/crosshatch/json-c/
Djson_util.c67 struct json_object* json_object_from_file(const char *filename) in json_object_from_file() argument
74 if((fd = open(filename, O_RDONLY)) < 0) { in json_object_from_file()
76 filename, strerror(errno)); in json_object_from_file()
90 filename, strerror(errno)); in json_object_from_file()
101 int json_object_to_file_ext(const char *filename, struct json_object *obj, int flags) in json_object_to_file_ext() argument
112 if((fd = open(filename, O_WRONLY | O_TRUNC | O_CREAT, 0644)) < 0) { in json_object_to_file_ext()
114 filename, strerror(errno)); in json_object_to_file_ext()
129 filename, strerror(errno)); in json_object_to_file_ext()
143 int json_object_to_file(const char *filename, struct json_object *obj) in json_object_to_file() argument
145 return json_object_to_file_ext(filename, obj, JSON_C_TO_STRING_PLAIN); in json_object_to_file()
Djson_util.h33 extern struct json_object* json_object_from_file(const char *filename);
34 extern int json_object_to_file(const char *filename, struct json_object *obj);
35 extern int json_object_to_file_ext(const char *filename, struct json_object *obj, int flags);
/device/google/bonito/json-c/
Djson_util.c67 struct json_object* json_object_from_file(const char *filename) in json_object_from_file() argument
74 if((fd = open(filename, O_RDONLY)) < 0) { in json_object_from_file()
76 filename, strerror(errno)); in json_object_from_file()
90 filename, strerror(errno)); in json_object_from_file()
101 int json_object_to_file_ext(const char *filename, struct json_object *obj, int flags) in json_object_to_file_ext() argument
112 if((fd = open(filename, O_WRONLY | O_TRUNC | O_CREAT, 0644)) < 0) { in json_object_to_file_ext()
114 filename, strerror(errno)); in json_object_to_file_ext()
129 filename, strerror(errno)); in json_object_to_file_ext()
143 int json_object_to_file(const char *filename, struct json_object *obj) in json_object_to_file() argument
145 return json_object_to_file_ext(filename, obj, JSON_C_TO_STRING_PLAIN); in json_object_to_file()
Djson_util.h33 extern struct json_object* json_object_from_file(const char *filename);
34 extern int json_object_to_file(const char *filename, struct json_object *obj);
35 extern int json_object_to_file_ext(const char *filename, struct json_object *obj, int flags);
/device/google/wahoo/usb/
DUsb.cpp52 static int32_t readFile(const std::string &filename, std::string *contents) { in readFile() argument
58 fp = fopen(filename.c_str(), "r"); in readFile()
69 ALOGE("fopen failed in readFile %s, errno=%d", filename.c_str(), errno); in readFile()
75 static int32_t writeFile(const std::string &filename, in writeFile() argument
80 fp = fopen(filename.c_str(), "w"); in writeFile()
85 ALOGE("fputs failed in writeFile %s", filename.c_str()); in writeFile()
90 ALOGE("fopen failed in writeFile %s, errno=%d", filename.c_str(), errno); in writeFile()
141 std::string filename = in switchToDrp() local
145 if (filename != "") { in switchToDrp()
146 fp = fopen(filename.c_str(), "w"); in switchToDrp()
[all …]
/device/google/cuttlefish/host/frontend/gcastv2/signaling_server/
DAndroid.bp59 filename: "index.html",
66 filename: "style.css",
73 filename: "logcat.js",
80 filename: "cf_webrtc.js",
87 filename: "app.js",
94 filename: "server.crt",
101 filename: "server.key",
108 filename: "server.p12",
115 filename: "trusted.pem",
/device/google/coral/usb/
DUsb.cpp58 int32_t readFile(const std::string &filename, std::string *contents) { in readFile() argument
64 fp = fopen(filename.c_str(), "r"); in readFile()
82 int32_t writeFile(const std::string &filename, const std::string &contents) { in writeFile() argument
86 fp = fopen(filename.c_str(), "w"); in writeFile()
91 if ((ret != EOF) && !readFile(filename, &written) && written == contents) in writeFile()
206 std::string filename = appendRoleNodeHelper(std::string(portName.c_str()), PortRoleType::MODE); in switchToDrp() local
209 if (filename != "") { in switchToDrp()
210 fp = fopen(filename.c_str(), "w"); in switchToDrp()
225 std::string filename = appendRoleNodeHelper(std::string(portName.c_str()), newRole.type); in switchMode() local
230 if (filename == "") { in switchMode()
[all …]
/device/google/bonito/usb/
DUsb.cpp47 int32_t readFile(const std::string &filename, std::string *contents) { in readFile() argument
53 fp = fopen(filename.c_str(), "r"); in readFile()
115 std::string filename = in switchToDrp() local
119 if (filename != "") { in switchToDrp()
120 fp = fopen(filename.c_str(), "w"); in switchToDrp()
136 std::string filename = in switchMode() local
142 if (filename == "") { in switchMode()
147 fp = fopen(filename.c_str(), "w"); in switchMode()
216 std::string filename = in switchRole() local
222 if (filename == "") { in switchRole()
[all …]
/device/google/crosshatch/usb/
DUsb.cpp49 int32_t readFile(const std::string &filename, std::string *contents) { in readFile() argument
55 fp = fopen(filename.c_str(), "r"); in readFile()
117 std::string filename = in switchToDrp() local
121 if (filename != "") { in switchToDrp()
122 fp = fopen(filename.c_str(), "w"); in switchToDrp()
138 std::string filename = in switchMode() local
144 if (filename == "") { in switchMode()
149 fp = fopen(filename.c_str(), "w"); in switchMode()
218 std::string filename = in switchRole() local
224 if (filename == "") { in switchRole()
[all …]
/device/google/coral/pixelstats/
Dservice.cpp31 #define MAXIM_DIR(filename) "/sys/class/power_supply/maxfg/" #filename argument
32 #define UFSHC_PATH(filename) "/sys/devices/platform/soc/1d84000.ufshc/" #filename argument
/device/google/cuttlefish/tools/
Dmake_manifest.sh89 filename=$(basename $path)
98 if [ ! "${path}" -ef "${FLAGS_tftpdir}/${filename}" ]; then
102 unset filename
105 addKVToManifest "${key}" "${filename}"
/device/generic/opengl-transport/host/libs/virglrenderer/
Dgen_entries.py121 def gen_functions_header(entries, prefix_name, verbatim, filename, with_args): argument
154 def gen_dll_wrapper(entries, prefix_name, verbatim, filename): argument
249 def parse_file(filename, lines, mode): argument
257 print >> sys.stderr, "ERROR: %s:%s" % (filename, error)
268 gen_dll_wrapper(entries, prefix_name, verbatim, filename)
274 gen_functions_header(entries, prefix_name, verbatim, filename, False)
276 gen_functions_header(entries, prefix_name, verbatim, filename, True)
/device/google/cuttlefish/host/commands/launch/
Dflag_forwarder.cc81 const std::string& help, const std::string& filename, in DynamicFlag() argument
83 : SubprocessFlag(subprocess, name), help_(help), filename_(filename), in DynamicFlag()
156 flag_info.filename, in MakeDynamicFlag()
162 flag_info.filename, in MakeDynamicFlag()
168 flag_info.filename, in MakeDynamicFlag()
174 flag_info.filename, in MakeDynamicFlag()
180 flag_info.filename, in MakeDynamicFlag()
186 flag_info.filename, in MakeDynamicFlag()
192 flag_info.filename, in MakeDynamicFlag()
219 flag_info.filename = xmlContent(xmlChildWithName(flag, "file")); in FlagsForSubprocess()
/device/linaro/dragonboard/qcom/tqftpserv/
Dtqftpserv.c202 const char *filename; in handle_rrq() local
220 filename = p; in handle_rrq()
232 printf("[TQFTP] RRQ: %s (%s)\n", filename, mode); in handle_rrq()
276 fd = translate_open(filename, O_RDONLY); in handle_rrq()
278 printf("[TQFTP] unable to open %s (%d), reject\n", filename, errno); in handle_rrq()
315 const char *filename; in handle_wrq() local
321 filename = buf + 2; in handle_wrq()
322 mode = buf + 2 + strlen(filename) + 1; in handle_wrq()
330 printf("[TQFTP] WRQ: %s (%s)\n", filename, mode); in handle_wrq()
332 fd = translate_open(filename, O_WRONLY | O_CREAT); in handle_wrq()
[all …]
/device/generic/goldfish/tools/
Dmk_combined_img.py14 def check_sparse(filename): argument
16 with open(filename, 'rb') as i:
98 def clear_partition_table(filename): argument
100 print("%s --clear %s" % (sgdisk, filename))
101 shell_command([sgdisk, '--clear', filename])
/device/google/crosshatch/pixelstats/
Dservice.cpp31 #define UFSHC_PATH(filename) "/sys/devices/platform/soc/1d84000.ufshc/" #filename argument
/device/linaro/hikey/hifi/xaf/host-apf/playback/
Dxa_playback.c97 char *filename;
106 filename = argv[1];
107 file = fopen(filename, "rb");
109 fprintf(stderr, "Unable to open file '%s'\n", filename);
116 fprintf(stderr, "Error: '%s' is not a riff/wave file\n", filename);

12