Lines Matching refs:fp
197 void printAnnotations(FILE* fp, const char* indentStr) { in printAnnotations() argument
199 fprintf(fp, "%s@Deprecated\n", indentStr); in printAnnotations()
202 fprintf(fp, "%s@android.annotation.SystemApi\n", indentStr); in printAnnotations()
1713 FILE* fp = fopen(bundle->getPublicOutputFile(), "w+"); in buildResources() local
1714 if (fp == NULL) { in buildResources()
1722 table.writePublicDefinitions(String16(assets->getPackage()), fp); in buildResources()
1723 fclose(fp); in buildResources()
2085 FILE* fp, const sp<AaptAssets>& assets, in writeResourceLoadedCallbackForLayoutClasses() argument
2101 fprintf(fp, in writeResourceLoadedCallbackForLayoutClasses()
2114 FILE* fp, const sp<AaptAssets>& assets, bool includePrivate, in writeResourceLoadedCallback() argument
2130 fprintf(fp, in writeResourceLoadedCallback()
2142 fp, assets, nsymbols, indent, includePrivate); in writeResourceLoadedCallback()
2144 err = writeResourceLoadedCallback(fp, assets, includePrivate, nsymbols, in writeResourceLoadedCallback()
2156 FILE* fp, const sp<AaptAssets>& assets, in writeLayoutClasses() argument
2161 fprintf(fp, "%s/** @doconly */\n", indentStr); in writeLayoutClasses()
2163 fprintf(fp, "%spublic static final class styleable {\n", indentStr); in writeLayoutClasses()
2213 fprintf(fp, "%s/** ", indentStr); in writeLayoutClasses()
2217 fprintf(fp, "%s\n", cmt.string()); in writeLayoutClasses()
2219 fprintf(fp, "Attributes that can be used with a %s.\n", nclassName.string()); in writeLayoutClasses()
2227 fprintf(fp, in writeLayoutClasses()
2264 fprintf(fp, "%s <tr><td><code>{@link #%s_%s %s:%s}</code></td><td>%s</td></tr>\n", in writeLayoutClasses()
2273 fprintf(fp, "%s </table>\n", indentStr); in writeLayoutClasses()
2282 fprintf(fp, "%s @see #%s_%s\n", in writeLayoutClasses()
2287 fprintf(fp, "%s */\n", getIndentSpace(indent)); in writeLayoutClasses()
2289 ann.printAnnotations(fp, indentStr); in writeLayoutClasses()
2291 fprintf(fp, in writeLayoutClasses()
2300 fprintf(fp, ",\n%s", getIndentSpace(indent+1)); in writeLayoutClasses()
2302 fprintf(fp, ", "); in writeLayoutClasses()
2305 fprintf(fp, "0x%08x", idents[a]); in writeLayoutClasses()
2308 fprintf(fp, "\n%s};\n", indentStr); in writeLayoutClasses()
2337 fprintf(fp, "%s/**\n", indentStr); in writeLayoutClasses()
2341 fprintf(fp, "%s <p>\n%s @attr description\n", indentStr, indentStr); in writeLayoutClasses()
2342 fprintf(fp, "%s %s\n", indentStr, cmt.string()); in writeLayoutClasses()
2344 fprintf(fp, in writeLayoutClasses()
2355 fprintf(fp, "\n\n%s %s\n", indentStr, cmt.string()); in writeLayoutClasses()
2359 fprintf(fp, in writeLayoutClasses()
2366 fprintf(fp, in writeLayoutClasses()
2370 fprintf(fp, "%s @attr name %s:%s\n", indentStr, in writeLayoutClasses()
2373 fprintf(fp, "%s*/\n", indentStr); in writeLayoutClasses()
2374 ann.printAnnotations(fp, indentStr); in writeLayoutClasses()
2380 fprintf(fp, in writeLayoutClasses()
2389 fprintf(fp, "%s};\n", getIndentSpace(indent)); in writeLayoutClasses()
2394 FILE* fp, const sp<AaptAssets>& assets, in writeTextLayoutClasses() argument
2441 fprintf(fp, "int[] styleable %s {", nclassName.string()); in writeTextLayoutClasses()
2445 fprintf(fp, ","); in writeTextLayoutClasses()
2447 fprintf(fp, " 0x%08x", idents[a]); in writeTextLayoutClasses()
2450 fprintf(fp, " }\n"); in writeTextLayoutClasses()
2478 fprintf(fp, in writeTextLayoutClasses()
2490 FILE* fp, const sp<AaptAssets>& assets, bool includePrivate, in writeSymbolClass() argument
2494 fprintf(fp, "%spublic %sfinal class %s {\n", in writeSymbolClass()
2523 fprintf(fp, in writeSymbolClass()
2537 fprintf(fp, in writeSymbolClass()
2540 fprintf(fp, in writeSymbolClass()
2545 fprintf(fp,"%s */\n", getIndentSpace(indent)); in writeSymbolClass()
2547 ann.printAnnotations(fp, getIndentSpace(indent)); in writeSymbolClass()
2548 fprintf(fp, id_format, in writeSymbolClass()
2567 fprintf(fp, in writeSymbolClass()
2577 ann.printAnnotations(fp, getIndentSpace(indent)); in writeSymbolClass()
2578 fprintf(fp, "%spublic static final String %s=\"%s\";\n", in writeSymbolClass()
2592 err = writeSymbolClass(fp, assets, includePrivate, nsymbols, nclassName, in writeSymbolClass()
2601 … err = writeLayoutClasses(fp, assets, styleableSymbols, indent, includePrivate, nonConstantId); in writeSymbolClass()
2608 fprintf(fp, "%spublic static void onResourcesLoaded(int packageId) {\n", in writeSymbolClass()
2610 writeResourceLoadedCallback(fp, assets, includePrivate, symbols, className, indent + 1); in writeSymbolClass()
2611 fprintf(fp, "%s}\n", getIndentSpace(indent)); in writeSymbolClass()
2615 fprintf(fp, "%s}\n", getIndentSpace(indent)); in writeSymbolClass()
2620 FILE* fp, const sp<AaptAssets>& assets, bool includePrivate, in writeTextSymbolClass() argument
2638 fprintf(fp, "int %s %s 0x%08x\n", in writeTextSymbolClass()
2648 err = writeTextLayoutClasses(fp, assets, nsymbols, includePrivate); in writeTextSymbolClass()
2650 err = writeTextSymbolClass(fp, assets, includePrivate, nsymbols, nclassName); in writeTextSymbolClass()
2696 FILE* fp = fopen(dest.string(), "w+"); in writeResourceSymbols() local
2697 if (fp == NULL) { in writeResourceSymbols()
2706 fprintf(fp, in writeResourceSymbols()
2716 status_t err = writeSymbolClass(fp, assets, includePrivate, symbols, in writeResourceSymbols()
2718 fclose(fp); in writeResourceSymbols()
2728 FILE* fp = fopen(textDest.string(), "w+"); in writeResourceSymbols() local
2729 if (fp == NULL) { in writeResourceSymbols()
2738 status_t err = writeTextSymbolClass(fp, assets, includePrivate, symbols, in writeResourceSymbols()
2740 fclose(fp); in writeResourceSymbols()
2753 FILE *fp = fopen(dependencyFile.string(), "a"); in writeResourceSymbols() local
2754 fprintf(fp,"%s \\\n", dest.string()); in writeResourceSymbols()
2755 fclose(fp); in writeResourceSymbols()
3120 FILE* fp = fopen(bundle->getProguardFile(), "w+"); in writeProguardFile() local
3121 if (fp == NULL) { in writeProguardFile()
3133 fprintf(fp, "# %s\n", locations.itemAt(j).string()); in writeProguardFile()
3135 fprintf(fp, "%s\n\n", rules.keyAt(i).string()); in writeProguardFile()
3137 fclose(fp); in writeProguardFile()
3144 status_t writePathsToFile(const sp<FilePathStore>& files, FILE* fp) in writePathsToFile() argument
3149 fprintf(fp, "%s \\\n", files->itemAt(file_i).string()); in writePathsToFile()
3156 writeDependencyPreReqs(Bundle* /* bundle */, const sp<AaptAssets>& assets, FILE* fp, bool includeRa… in writeDependencyPreReqs() argument
3159 deps += writePathsToFile(assets->getFullResPaths(), fp); in writeDependencyPreReqs()
3161 deps += writePathsToFile(assets->getFullAssetPaths(), fp); in writeDependencyPreReqs()