• Home
  • Raw
  • Download

Lines Matching refs:pfout

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