Home | History | Annotate | Download | only in aapt

Lines Matching refs:FILE

40                         const sp<AaptGroup>& group, const sp<AaptFile>& file);
68 * If the file already exists, fail unless "update" or "force" is set.
90 fprintf(stderr, "ERROR: '%s' exists and is not a regular file\n", outputFile.string());
103 fprintf(stderr, "ERROR: unable to open '%s' as Zip file for writing\n",
121 printf("Generated %d file%s\n", count, (count==1) ? "" : "s");
133 printf("Included %d file%s from jar/zip files.\n", count, (count==1) ? "" : "s");
159 printf("Removed %d file%s\n", removed, (removed==1) ? "" : "s");
174 delete zip; // close the file so we can remove it in Win32
181 // If we've been asked to generate a dependency file for the .ap_ package,
184 // The dependency file gets output to the same directory
185 // as the specified output file with an additional .d extension.
190 FILE* fp = fopen(dependencyFile.string(), "a");
191 // Add this file to the dependency file
288 * Process a regular file, adding it to the archive if appropriate.
290 * If we're in "update" mode, and the file already exists in the archive,
294 const sp<AaptGroup>& group, const sp<AaptFile>& file)
296 const bool hasData = file->hasData();
334 /* file already exists in archive; there can be only one */
338 file->getPrintableSource().string());
342 const String8& srcName = file->getSourceFile();
345 if (fileModWhen == (time_t) -1) { // file existence tested earlier,
374 result = zip->addGzip(file->getSourceFile().string(), storageName.string(), &entry);
381 result = zip->add(file->getSourceFile().string(), storageName.string(), compressionMethod,
384 result = zip->add(file->getData(), file->getSize(), storageName.string(),
385 file->getCompressionMethod(), &entry);
400 fprintf(stderr, " Unable to add '%s': file already in archive (try '-u'?)\n",
401 file->getPrintableSource().string());
404 file->getPrintableSource().string());
413 * Determine whether or not we want to try to compress this file based
414 * on the file extension.
489 fprintf(stderr, "ERROR: unable to open '%s' as a zip file: %d\n",