Lines Matching refs:diag
76 android::IDiagnostics* diag) { in LoadApkFromPath() argument
81 diag->Error(android::DiagMessage(path) << "failed opening zip: " << error); in LoadApkFromPath()
88 return LoadBinaryApkFromFileCollection(source, std::move(apk), diag); in LoadApkFromPath()
90 return LoadProtoApkFromFileCollection(source, std::move(apk), diag); in LoadApkFromPath()
92 diag->Error(android::DiagMessage(path) << "could not identify format of APK"); in LoadApkFromPath()
99 android::IDiagnostics* diag) { in LoadProtoApkFromFileCollection() argument
107 diag->Error(android::DiagMessage(source) << "failed to open " << kProtoResourceTablePath); in LoadProtoApkFromFileCollection()
113 diag->Error(android::DiagMessage(source) << "failed to read " << kProtoResourceTablePath); in LoadProtoApkFromFileCollection()
120 diag->Error(android::DiagMessage(source) in LoadProtoApkFromFileCollection()
128 diag->Error(android::DiagMessage(source) << "failed to find " << kAndroidManifestPath); in LoadProtoApkFromFileCollection()
134 diag->Error(android::DiagMessage(source) << "failed to open " << kAndroidManifestPath); in LoadProtoApkFromFileCollection()
141 diag->Error(android::DiagMessage(source) << "failed to read proto " << kAndroidManifestPath); in LoadProtoApkFromFileCollection()
148 diag->Error(android::DiagMessage(source) in LoadProtoApkFromFileCollection()
158 android::IDiagnostics* diag) { in LoadBinaryApkFromFileCollection() argument
166 diag->Error(android::DiagMessage(source) << "failed to open " << kApkResourceTablePath); in LoadBinaryApkFromFileCollection()
169 BinaryResourceParser parser(diag, table.get(), source, data->data(), data->size(), in LoadBinaryApkFromFileCollection()
178 diag->Error(android::DiagMessage(source) << "failed to find " << kAndroidManifestPath); in LoadBinaryApkFromFileCollection()
184 diag->Error(android::DiagMessage(source) << "failed to open " << kAndroidManifestPath); in LoadBinaryApkFromFileCollection()
192 diag->Error(android::DiagMessage(source) in LoadBinaryApkFromFileCollection()
315 android::IDiagnostics* diag) const { in LoadXml()
318 diag->Error(android::DiagMessage() << "failed to find file"); in LoadXml()
326 diag->Error(android::DiagMessage() << "failed to open file"); in LoadXml()
333 diag->Error(android::DiagMessage() << "failed to parse file as proto XML"); in LoadXml()
340 diag->Error(android::DiagMessage() << "failed to deserialize proto XML: " << err); in LoadXml()
346 diag->Error(android::DiagMessage() << "failed to open file"); in LoadXml()
353 diag->Error(android::DiagMessage() << "failed to parse file as binary XML: " << err); in LoadXml()