Home
last modified time | relevance | path

Searched refs:fp (Results 1 – 18 of 18) sorted by relevance

/device/generic/opengl-transport/host/commands/emugen/
DApiGen.cpp63 void ApiGen::printHeader(FILE *fp) const in printHeader()
65 fprintf(fp, "// Generated Code - DO NOT EDIT !!\n"); in printHeader()
66 fprintf(fp, "// generated by 'emugen'\n"); in printHeader()
71 FILE *fp = fopen(filename.c_str(), "wt"); in genProcTypes() local
72 if (fp == NULL) { in genProcTypes()
76 printHeader(fp); in genProcTypes()
80 fprintf(fp, "#ifndef __%s_%s_proc_t_h\n", basename, sideString(side)); in genProcTypes()
81 fprintf(fp, "#define __%s_%s_proc_t_h\n", basename, sideString(side)); in genProcTypes()
82 fprintf(fp, "\n\n"); in genProcTypes()
83 fprintf(fp, "\n#include \"%s_types.h\"\n",basename); in genProcTypes()
[all …]
DVar.h98 void printType(FILE *fp) { fprintf(fp, "%s", m_type->name().c_str()); } in printType() argument
99 void printTypeName(FILE *fp) { printType(fp); fprintf(fp, " %s", m_name.c_str()); } in printTypeName() argument
DTypeFactory.cpp57 FILE *fp = fopen(filename.c_str(), "rt"); in initFromFile() local
58 if (fp == NULL) { in initFromFile()
64 while(fgets(line, sizeof(line), fp) != NULL) { in initFromFile()
DEntryPoint.cpp128 void EntryPoint::print(FILE *fp, bool newline, in print() argument
133 fprintf(fp, "%s %s%s%s(", in print()
139 if (ctx_param != "") fprintf(fp, "%s ", ctx_param.c_str()); in print()
143 if (i != 0 || ctx_param != "") fprintf(fp, ", "); in print()
144 fprintf(fp, "%s %s", m_vars[i].type()->name().c_str(), in print()
147 fprintf(fp, ")%s", newline? "\n" : ""); in print()
DEntryPoint.h35 void print(FILE *fp = stdout, bool newline = true,
DApiGen.h86 virtual void printHeader(FILE *fp) const;
/device/generic/goldfish-opengl/system/codecs/omx/avcdec/
DGoldfishAVCDec.h147 FILE *fp = fopen(m_filename, "wb"); \
148 if (fp != NULL) { \
149 fclose(fp); \
156 FILE *fp = fopen(m_filename, "ab"); \
157 if (fp != NULL && m_buf != NULL && m_offset == 0) { \
159 i = fwrite(m_buf, 1, m_size, fp); \
165 } else if (fp == NULL) { \
168 if (fp) { \
169 fclose(fp); \
/device/generic/goldfish/fingerprint/
Dfingerprint.c102 FILE* fp = openForWrite(listener->fp_filename); in saveFingerprint() local
103 if (fp == NULL) { in saveFingerprint()
114 if (fseek(fp, (idx) * sizeof(uint64_t), SEEK_SET) < 0) { in saveFingerprint()
117 fclose(fp); in saveFingerprint()
120 int ns = fwrite(&listener->secureid[idx], sizeof(uint64_t), 1, fp); in saveFingerprint()
122 if (fseek(fp, (MAX_NUM_FINGERS + idx) * sizeof(uint64_t), SEEK_SET) < 0) { in saveFingerprint()
125 fclose(fp); in saveFingerprint()
128 int nf = fwrite(&listener->fingerid[idx], sizeof(uint64_t), 1, fp); in saveFingerprint()
133 fclose(fp); in saveFingerprint()
142 FILE* fp = fopen(filename, "r+"); // write but don't truncate in openForWrite() local
[all …]
/device/google/wahoo/usb/
DUsb.cpp53 FILE *fp; in readFile() local
58 fp = fopen(filename.c_str(), "r"); in readFile()
59 if (fp != NULL) { in readFile()
60 if ((read = getline(&line, &len, fp)) != -1) { in readFile()
66 fclose(fp); in readFile()
77 FILE *fp; in writeFile() local
80 fp = fopen(filename.c_str(), "w"); in writeFile()
81 if (fp != NULL) { in writeFile()
82 ret = fputs(contents.c_str(), fp); in writeFile()
83 fclose(fp); in writeFile()
[all …]
/device/google/coral/usb/
DUsb.cpp59 FILE *fp; in readFile() local
64 fp = fopen(filename.c_str(), "r"); in readFile()
65 if (fp != NULL) { in readFile()
66 if ((read = getline(&line, &len, fp)) != -1) { in readFile()
73 fclose(fp); in readFile()
83 FILE *fp; in writeFile() local
86 fp = fopen(filename.c_str(), "w"); in writeFile()
87 if (fp != NULL) { in writeFile()
89 int ret = fputs(contents.c_str(), fp); in writeFile()
90 fclose(fp); in writeFile()
[all …]
/device/linaro/hikey/hifi/xaf/host-apf/utest/
Dxaf-dec-test.c44 FILE *fp, *ofp=NULL; variable
100 FILE *fp = p_output; in consume_output() local
101 fwrite(p_buf, 1, buf_length, fp); in consume_output()
119 FILE *fp = p_input; in read_input() local
120 *read_length = fread(p_buf, 1, buf_length, fp); in read_input()
251 if ((fp = fopen(argv[1], "rb")) == NULL) in main()
261 p_input = fp; in main()
336 if (fp) fclose(fp); in main()
Dxaf-dec-mix-test.c111 FILE *fp = p_output; in consume_output() local
112 fwrite(p_buf, 1, buf_length, fp); in consume_output()
130 FILE *fp = p_input; in read_input() local
131 *read_length = fread(p_buf, 1, buf_length, fp); in read_input()
215 FILE *fp, *ofp; in main() local
284 if ((fp = fopen(argv[i+1], "rb")) == NULL) in main()
289 p_input[i] = fp; in main()
/device/google/bonito/usb/
DUsb.cpp48 FILE *fp; in readFile() local
53 fp = fopen(filename.c_str(), "r"); in readFile()
54 if (fp != NULL) { in readFile()
55 if ((read = getline(&line, &len, fp)) != -1) { in readFile()
61 fclose(fp); in readFile()
117 FILE *fp; in switchToDrp() local
120 fp = fopen(filename.c_str(), "w"); in switchToDrp()
121 if (fp != NULL) { in switchToDrp()
122 int ret = fputs("dual", fp); in switchToDrp()
123 fclose(fp); in switchToDrp()
[all …]
/device/google/crosshatch/usb/
DUsb.cpp50 FILE *fp; in readFile() local
55 fp = fopen(filename.c_str(), "r"); in readFile()
56 if (fp != NULL) { in readFile()
57 if ((read = getline(&line, &len, fp)) != -1) { in readFile()
63 fclose(fp); in readFile()
119 FILE *fp; in switchToDrp() local
122 fp = fopen(filename.c_str(), "w"); in switchToDrp()
123 if (fp != NULL) { in switchToDrp()
124 int ret = fputs("dual", fp); in switchToDrp()
125 fclose(fp); in switchToDrp()
[all …]
/device/google/contexthub/util/nanoapp_cmd/
Dnanoapp_cmd.c215 FILE *fp; in parseInstalledAppInfo() local
222 fp = openFile("/sys/class/nanohub/nanohub/app_info", "r"); in parseInstalledAppInfo()
223 if (!fp) in parseInstalledAppInfo()
226 while ((numRead = getline(&line, &len, fp)) != -1) { in parseInstalledAppInfo()
231 fclose(fp); in parseInstalledAppInfo()
252 FILE *fp; in findAppIdByName() local
258 fp = openFile("/vendor/firmware/napp_list.cfg", "r"); in findAppIdByName()
259 if (!fp) in findAppIdByName()
262 while ((numRead = getline(&line, &len, fp)) != -1) { in findAppIdByName()
274 fclose(fp); in findAppIdByName()
[all …]
/device/google/cuttlefish/common/libs/utils/
Denvironment.cpp58 [](FILE* fp, size_t len) { in HostArch() argument
69 if (fscanf(fp, format.c_str(), buf.get()) == EOF) { in HostArch()
/device/generic/goldfish-opengl/tests/gles_android_wrapper/
Degl.cpp124 FILE *fp = fopen(GLES_EMUL_TARGETS_FILE, "rt"); in isNeedEncode() local
125 if (fp == NULL) { in isNeedEncode()
134 while (fgets(line, sizeof(line), fp) != NULL) { in isNeedEncode()
145 fclose(fp); in isNeedEncode()
/device/amlogic/yukawa/hal/audio/
Daudio_hw.c106 FILE* fp = fopen(filename, "r"); in read_filter_from_file() local
107 if (fp == NULL) { in read_filter_from_file()
114 while (!feof(fp)) { in read_filter_from_file()
115 size_t size = getline(&line, &len, fp); in read_filter_from_file()
131 fclose(fp); in read_filter_from_file()