Home | History | Annotate | Download | only in slang

Lines Matching full:pfout

107     const RSSlangReflectUtils::BitCodeAccessorContext &context, FILE *pfout) {
108 fprintf(pfout, "/*\n");
109 fprintf(pfout, " * This file is auto-generated. DO NOT MODIFY!\n");
110 fprintf(pfout, " * The source Renderscript file: %s\n", context.rsFileName);
111 fprintf(pfout, " */\n\n");
112 fprintf(pfout, "package %s;\n\n", context.packageName);
120 const RSSlangReflectUtils::BitCodeAccessorContext &context, FILE *pfout) {
122 fprintf(pfout, " // return byte array representation of the bitcode.\n");
123 fprintf(pfout, " public static byte[] getBitCode() {\n");
130 const char *buff, int blen, int seg_num, FILE *pfout) {
132 fprintf(pfout, " private static byte[] getSegment_%d() {\n", seg_num);
133 fprintf(pfout, " byte[] data = {\n");
147 fprintf(pfout, " ");
148 fprintf(pfout, "%s", out_line);
149 fprintf(pfout, "\n");
154 fprintf(pfout, " };\n");
155 fprintf(pfout, " return data;\n");
156 fprintf(pfout, " }\n\n");
162 const RSSlangReflectUtils::BitCodeAccessorContext &context, FILE *pfout) {
170 GenerateAccessorMethodSignature(context, pfout);
171 fprintf(pfout, " return getBitCodeInternal();\n");
173 fprintf(pfout, " };\n\n");
184 GenerateSegmentMethod(buff, read_length, seg_num, pfout);
192 fprintf(pfout, " private static int bitCodeLength = %d;\n\n",
194 fprintf(pfout, " private static byte[] getBitCodeInternal() {\n");
195 fprintf(pfout, " byte[] bc = new byte[bitCodeLength];\n");
196 fprintf(pfout, " int offset = 0;\n");
197 fprintf(pfout, " byte[] seg;\n");
199 fprintf(pfout, " seg = getSegment_%d();\n", i);
200 fprintf(pfout, " System.arraycopy(seg, 0, bc, offset, seg.length);\n");
201 fprintf(pfout, " offset += seg.length;\n");
203 fprintf(pfout, " return bc;\n");
204 fprintf(pfout, " }\n\n");
211 const char *clazz_name, FILE *pfout) {
213 fprintf(pfout, "/**\n");
214 fprintf(pfout, " * @hide\n");
215 fprintf(pfout, " */\n");
216 fprintf(pfout, "public class %s {\n", clazz_name);
217 fprintf(pfout, "\n");
224 ret = GenerateJavaCodeAccessorMethod(context, pfout);
231 fprintf(pfout, "}\n");
257 FILE *pfout = fopen(output_filename.c_str(), "w");
258 if (pfout == NULL) {
264 bool ret = GenerateAccessorHeader(context, pfout) &&
265 GenerateAccessorClass(context, clazz_name.c_str(), pfout);
267 fclose(pfout);