Home
last modified time | relevance | path

Searched refs:file_ref (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/tools/aapt2/cmd/
DOptimize.cpp209 FileReference* file_ref = ValueCast<FileReference>(config_value->value.get()); in WriteSplitApk() local
210 if (file_ref == nullptr) { in WriteSplitApk()
214 if (file_ref->file == nullptr) { in WriteSplitApk()
216 context_->GetDiagnostics()->Warn(DiagMessage(file_ref->GetSource()) in WriteSplitApk()
223 config_sorted_files[std::make_pair(config_value->config, entry_name)] = file_ref; in WriteSplitApk()
228 FileReference* file_ref = entry.second; in WriteSplitApk() local
230 file_ref->file->WasCompressed() ? ArchiveEntry::kCompress : 0u; in WriteSplitApk()
231 if (!io::CopyFileToArchive(context_, file_ref->file, *file_ref->path, compression_flags, in WriteSplitApk()
DLink.cpp519 FileReference* file_ref = ValueCast<FileReference>(config_value->value.get()); in Flatten() local
520 if (!file_ref) { in Flatten()
524 io::IFile* file = file_ref->file; in Flatten()
526 context_->GetDiagnostics()->Error(DiagMessage(file_ref->GetSource()) in Flatten()
533 file_op.dst_path = *file_ref->path; in Flatten()
555 file_op.xml_to_flatten->file.source = file_ref->GetSource(); in Flatten()
/frameworks/base/tools/aapt2/link/
DTableMerger.cpp336 const std::string& package, const FileReference& file_ref) { in CloneAndMangleFile() argument
338 if (util::ExtractResFilePathParts(*file_ref.path, &prefix, &entry, &suffix)) { in CloneAndMangleFile()
343 new_file_ref->SetComment(file_ref.GetComment()); in CloneAndMangleFile()
344 new_file_ref->SetSource(file_ref.GetSource()); in CloneAndMangleFile()
347 return std::unique_ptr<FileReference>(file_ref.Clone(&master_table_->string_pool)); in CloneAndMangleFile()
353 std::unique_ptr<FileReference> file_ref = in MergeFileImpl() local
355 file_ref->SetSource(file_desc.source); in MergeFileImpl()
356 file_ref->file = file; in MergeFileImpl()
362 ->value = std::move(file_ref); in MergeFileImpl()
/frameworks/base/tools/aapt2/
DLoadedApk.cpp66 FileReference* file_ref = ValueCast<FileReference>(config_value->value.get()); in WriteToArchive() local
67 if (file_ref) { in WriteToArchive()
68 referenced_resources.insert(*file_ref->path); in WriteToArchive()
/frameworks/base/tools/aapt2/unflatten/
DBinaryResourceParser.cpp438 FileReference* file_ref = ValueCast<FileReference>(item.get()); in ParseValue() local
439 if (file_ref != nullptr) { in ParseValue()
440 file_ref->file = files_->FindFile(*file_ref->path); in ParseValue()
441 if (file_ref->file == nullptr) { in ParseValue()
444 << *file_ref->path in ParseValue()