Home | History | Annotate | Download | only in slang

Lines Matching full:fprintf

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);
122 fprintf(pfout, " // return byte array representation of the bitcode.\n");
123 fprintf(pfout, " public static byte[] getBitCode() {\n");
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");
165 fprintf(stderr, "Error: could not read file %s\n", context.bcFileName);
171 fprintf(pfout, " return getBitCodeInternal();\n");
173 fprintf(pfout, " };\n\n");
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");
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");
231 fprintf(pfout, "}\n");
243 fprintf(stderr, "Error: could not create dir %s\n",
259 fprintf(stderr, "Error: could not write to file %s\n",