/device/generic/opengl-transport/host/commands/emugen/ |
D | ApiGen.cpp | 63 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 …]
|
D | Var.h | 98 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
|
D | TypeFactory.cpp | 57 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()
|
D | EntryPoint.cpp | 128 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()
|
D | EntryPoint.h | 35 void print(FILE *fp = stdout, bool newline = true,
|
D | ApiGen.h | 86 virtual void printHeader(FILE *fp) const;
|
/device/generic/goldfish-opengl/system/codecs/omx/avcdec/ |
D | GoldfishAVCDec.h | 147 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/ |
D | fingerprint.c | 102 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/ |
D | Usb.cpp | 53 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/ |
D | Usb.cpp | 59 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/ |
D | xaf-dec-test.c | 44 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()
|
D | xaf-dec-mix-test.c | 111 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/ |
D | Usb.cpp | 48 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/ |
D | Usb.cpp | 50 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/ |
D | nanoapp_cmd.c | 215 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/ |
D | environment.cpp | 58 [](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/ |
D | egl.cpp | 124 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/ |
D | audio_hw.c | 106 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()
|