Lines Matching refs:path

49   virtual bool SerializeXml(const xml::XmlResource* xml, const std::string& path, bool utf16,
70 bool SerializeXml(const xml::XmlResource* xml, const std::string& path, bool utf16, in SerializeXml() argument
80 return io::CopyInputStreamToArchive(context_, &input_stream, path, compression_flags, writer); in SerializeXml()
100 << "failed to open file " << *file->path); in SerializeFile()
108 << "failed to parse proto XML " << *file->path); in SerializeFile()
117 << *file->path << ": " << error); in SerializeFile()
121 if (!SerializeXml(xml.get(), *file->path, false /*utf16*/, writer, in SerializeFile()
124 << "failed to serialize to binary XML: " << *file->path); in SerializeFile()
130 if (!io::CopyFileToArchivePreserveCompression(context_, file->file, *file->path, writer)) { in SerializeFile()
132 << "failed to copy file " << *file->path); in SerializeFile()
152 bool SerializeXml(const xml::XmlResource* xml, const std::string& path, bool utf16, in SerializeXml() argument
156 return io::CopyProtoToArchive(context_, &pb_node, path, compression_flags, writer); in SerializeXml()
171 << "failed to open file " << *file->path); in SerializeFile()
183 if (!SerializeXml(xml.get(), *file->path, false /*utf16*/, writer, in SerializeFile()
186 << "failed to serialize to proto XML: " << *file->path); in SerializeFile()
192 if (!io::CopyFileToArchivePreserveCompression(context_, file->file, *file->path, writer)) { in SerializeFile()
194 << "failed to copy file " << *file->path); in SerializeFile()
307 if (files_written.insert(*file->path).second) { in Convert()
310 << "failed to serialize file " << *file->path); in Convert()
332 std::string path = file->GetSource().path; in Convert() local
335 if (path == kAndroidManifestPath || in Convert()
336 path == kApkResourceTablePath || in Convert()
337 path == kProtoResourceTablePath || in Convert()
338 path.find("res/") == 0) { in Convert()
342 if (!io::CopyFileToArchivePreserveCompression(context, file, path, output_writer)) { in Convert()
344 << "failed to copy file " << path); in Convert()
363 const StringPiece& path = args[0]; in Action() local
364 unique_ptr<LoadedApk> apk = LoadedApk::LoadApkFromPath(path, context.GetDiagnostics()); in Action()
366 context.GetDiagnostics()->Error(DiagMessage(path) << "failed to load APK"); in Action()
389 context.GetDiagnostics()->Error(DiagMessage(path) << "Invalid value for flag --output-format: " in Action()