Lines Matching refs:diag

75 std::unique_ptr<LoadedApk> LoadedApk::LoadApkFromPath(const StringPiece& path, IDiagnostics* diag) {  in LoadApkFromPath()  argument
80 diag->Error(DiagMessage(path) << "failed opening zip: " << error); in LoadApkFromPath()
87 return LoadBinaryApkFromFileCollection(source, std::move(apk), diag); in LoadApkFromPath()
89 return LoadProtoApkFromFileCollection(source, std::move(apk), diag); in LoadApkFromPath()
91 diag->Error(DiagMessage(path) << "could not identify format of APK"); in LoadApkFromPath()
97 const Source& source, unique_ptr<io::IFileCollection> collection, IDiagnostics* diag) { in LoadProtoApkFromFileCollection() argument
105 diag->Error(DiagMessage(source) << "failed to open " << kProtoResourceTablePath); in LoadProtoApkFromFileCollection()
111 diag->Error(DiagMessage(source) << "failed to read " << kProtoResourceTablePath); in LoadProtoApkFromFileCollection()
118 diag->Error(DiagMessage(source) in LoadProtoApkFromFileCollection()
126 diag->Error(DiagMessage(source) << "failed to find " << kAndroidManifestPath); in LoadProtoApkFromFileCollection()
132 diag->Error(DiagMessage(source) << "failed to open " << kAndroidManifestPath); in LoadProtoApkFromFileCollection()
139 diag->Error(DiagMessage(source) << "failed to read proto " << kAndroidManifestPath); in LoadProtoApkFromFileCollection()
146 diag->Error(DiagMessage(source) in LoadProtoApkFromFileCollection()
155 const Source& source, unique_ptr<io::IFileCollection> collection, IDiagnostics* diag) { in LoadBinaryApkFromFileCollection() argument
163 diag->Error(DiagMessage(source) << "failed to open " << kApkResourceTablePath); in LoadBinaryApkFromFileCollection()
166 BinaryResourceParser parser(diag, table.get(), source, data->data(), data->size(), in LoadBinaryApkFromFileCollection()
175 diag->Error(DiagMessage(source) << "failed to find " << kAndroidManifestPath); in LoadBinaryApkFromFileCollection()
181 diag->Error(DiagMessage(source) << "failed to open " << kAndroidManifestPath); in LoadBinaryApkFromFileCollection()
189 diag->Error(DiagMessage(source) in LoadBinaryApkFromFileCollection()
305 IDiagnostics* diag) const { in LoadXml()
308 diag->Error(DiagMessage() << "failed to find file"); in LoadXml()
316 diag->Error(DiagMessage() << "failed to open file"); in LoadXml()
323 diag->Error(DiagMessage() << "failed to parse file as proto XML"); in LoadXml()
330 diag->Error(DiagMessage() << "failed to deserialize proto XML: " << err); in LoadXml()
336 diag->Error(DiagMessage() << "failed to open file"); in LoadXml()
343 diag->Error(DiagMessage() << "failed to parse file as binary XML: " << err); in LoadXml()