Lines Matching refs:outputFile
52 status_t writeAPK(Bundle* bundle, const String8& outputFile, const sp<OutputSet>& outputSet) in writeAPK() argument
72 FileType fileType = getFileType(outputFile.string()); in writeAPK()
79 if (unlink(outputFile.string()) != 0) { in writeAPK()
80 fprintf(stderr, "ERROR: unable to remove '%s': %s\n", outputFile.string(), in writeAPK()
86 outputFile.string()); in writeAPK()
90 fprintf(stderr, "ERROR: '%s' exists and is not a regular file\n", outputFile.string()); in writeAPK()
96 outputFile.string()); in writeAPK()
101 status = zip->open(outputFile.string(), ZipFile::kOpenReadWrite | ZipFile::kOpenCreate); in writeAPK()
104 outputFile.string()); in writeAPK()
115 outputFile.string()); in writeAPK()
127 outputFile.string()); in writeAPK()
172 printf("Archive is empty -- removing %s\n", outputFile.getPathLeaf().string()); in writeAPK()
176 if (unlink(outputFile.string()) != 0) { in writeAPK()
177 fprintf(stderr, "warning: could not unlink '%s'\n", outputFile.string()); in writeAPK()
187 String8 dependencyFile = outputFile; in writeAPK()
192 fprintf(fp, "%s \\\n", outputFile.string()); in writeAPK()
202 printf("Removing %s due to earlier failures\n", outputFile.string()); in writeAPK()
204 if (unlink(outputFile.string()) != 0) { in writeAPK()
205 fprintf(stderr, "warning: could not unlink '%s'\n", outputFile.string()); in writeAPK()