Lines Matching refs:source

70     Source source;
167 configValue.source,
209 Source source;
216 Source source;
259 return table->addResource(item.name, item.config, item.source.line(0),
322 IdCollector(const Source& source, const std::shared_ptr<ResourceTable>& table) :
323 mSource(source), mTable(table) {
359 std::ifstream in(item.source.path, std::ifstream::binary);
361 Logger::error(item.source) << strerror(errno) << std::endl;
365 SourceLogger logger(item.source);
372 IdCollector idCollector(item.source, table);
384 Logger::error(options.output) << "failed to write compiled '" << item.source
426 SourceLogger logger(item.source);
444 proguard::collectProguardRules(item.name.type, item.source, root.get(), keepSet);
448 Maybe<size_t> minStrippedSdk = xml::flattenAndLink(item.source, root.get(),
486 std::ifstream in(item.source.path, std::ifstream::binary);
488 Logger::error(item.source) << strerror(errno) << std::endl;
495 if (!png.process(item.source, in, &outBuffer, {}, &err)) {
496 Logger::error(item.source) << err << std::endl;
502 Logger::error(options.output) << "failed to write compiled '" << item.source
510 if (outApk->add(item.source.path.data(), buildFileReference(item).data(),
512 Logger::error(options.output) << "failed to copy file '" << item.source << "' to apk."
546 const Source& libSource = entry.second.source;
601 static bool compileValues(const std::shared_ptr<ResourceTable>& table, const Source& source,
603 std::ifstream in(source.path, std::ifstream::binary);
605 Logger::error(source) << strerror(errno) << std::endl;
610 ResourceParser parser(table, source, config, xmlParser);
625 static Maybe<ResourcePathData> extractResourcePathData(const Source& source) {
627 std::vector<std::string> parts = util::splitAndLowercase(source.path, '/');
629 Logger::error(source) << "bad resource path." << std::endl;
641 Logger::error(source)
695 static void addApkFilesToLinkQueue(const std::u16string& package, const Source& source,
710 Source newSource = source;
740 for (const Source& source : options.input) {
742 if (zipFile->open(source.path.data(), ZipFile::kOpenReadOnly) != android::NO_ERROR) {
743 Logger::error(source) << "failed to open: " << strerror(errno) << std::endl;
751 Logger::error(source) << "missing 'resources.arsc'." << std::endl;
759 BinaryResourceParser parser(table, resolver, source, options.appInfo.package,
766 apkFiles[table] = StaticLibraryData{ source, std::move(zipFile) };
777 addApkFilesToLinkQueue(options.appInfo.package, p.second.source, inTable, p.second.apk,
806 for (const auto& source : entry.second) {
807 Logger::error(source) << "unresolved symbol '" << entry.first << "'."
835 Logger::error(item.source) << "failed to find '" << item.originalPath << "'."
956 for (const Source& source : options.input) {
958 Maybe<ResourcePathData> maybePathData = extractResourcePathData(source);
968 Logger::note(source) << "compiling values." << std::endl;
971 error |= !compileValues(table, source, pathData.config);
977 Logger::error(source) << "invalid resource type '" << pathData.resourceDir << "'."
985 source,
1036 bool loadAppInfo(const Source& source, AppInfo* outInfo) {
1037 std::ifstream ifs(source.path, std::ifstream::in | std::ifstream::binary);
1039 Logger::error(source) << strerror(errno) << std::endl;
1045 return parser.parse(source, pullParser, outInfo);
1169 for (const Source& source : options.input) {
1171 if (zipFile->open(source.path.data(), ZipFile::kOpenReadOnly) != android::NO_ERROR) {
1172 Logger::error(source) << "failed to open: " << strerror(errno) << std::endl;
1183 Logger::error(source) << "missing 'resources.arsc'." << std::endl;
1191 BinaryResourceParser parser(table, resolver, source, {}, uncompressedData.get(),
1243 for (const Source& source : options.libraries) {
1247 if (!assetManager->addAssetPath(android::String8(source.path.data()), &cookie)) {
1248 Logger::error(source) << "failed to load library." << std::endl;
1253 Logger::error(source) << "failed to load library." << std::endl;