Searched refs:file_ref (Results 1 – 9 of 9) sorted by relevance
/frameworks/base/tools/aapt2/optimize/ |
D | ResourcePathShortener.cpp | 92 FileReference* file_ref = ValueCast<FileReference>(config_value->value.get()); in Consume() local 93 if (file_ref) { in Consume() 94 file_refs.insert(file_ref); in Consume() 101 for (auto& file_ref : file_refs) { in Consume() local 103 util::ExtractResFilePathParts(*file_ref->path, &res_subdir, &actual_filename, &extension); in Consume() 109 std::string shortened_filename = ShortenFileName(*file_ref->path, num_chars); in Consume() 117 path_map_.insert({*file_ref->path, shortened_path}); in Consume() 118 file_ref->path = table->string_pool.MakeRef(shortened_path, file_ref->path.GetContext()); in Consume()
|
/frameworks/base/tools/aapt2/link/ |
D | TableMerger.cpp | 325 const std::string& package, const FileReference& file_ref) { in CloneAndMangleFile() argument 327 if (util::ExtractResFilePathParts(*file_ref.path, &prefix, &entry, &suffix)) { in CloneAndMangleFile() 332 new_file_ref->SetComment(file_ref.GetComment()); in CloneAndMangleFile() 333 new_file_ref->SetSource(file_ref.GetSource()); in CloneAndMangleFile() 334 new_file_ref->type = file_ref.type; in CloneAndMangleFile() 335 new_file_ref->file = file_ref.file; in CloneAndMangleFile() 338 return std::unique_ptr<FileReference>(file_ref.Clone(&master_table_->string_pool)); in CloneAndMangleFile() 344 std::unique_ptr<FileReference> file_ref = in MergeFile() local 346 file_ref->SetSource(file_desc.source); in MergeFile() 347 file_ref->type = file_desc.type; in MergeFile() [all …]
|
/frameworks/base/tools/aapt2/cmd/ |
D | Optimize.cpp | 251 auto* file_ref = ValueCast<FileReference>(config_value->value.get()); in WriteSplitApk() local 252 if (file_ref == nullptr) { in WriteSplitApk() 256 if (file_ref->file == nullptr) { in WriteSplitApk() 258 context_->GetDiagnostics()->Warn(DiagMessage(file_ref->GetSource()) in WriteSplitApk() 265 config_sorted_files[std::make_pair(config_value->config, entry_name)] = file_ref; in WriteSplitApk() 270 FileReference* file_ref = entry.second; in WriteSplitApk() local 271 if (!io::CopyFileToArchivePreserveCompression(context_, file_ref->file, *file_ref->path, in WriteSplitApk()
|
D | Link.cpp | 523 FileReference* file_ref = ValueCast<FileReference>(config_value->value.get()); in Flatten() local 524 if (!file_ref) { in Flatten() 528 io::IFile* file = file_ref->file; in Flatten() 530 context_->GetDiagnostics()->Error(DiagMessage(file_ref->GetSource()) in Flatten() 537 file_op.dst_path = *file_ref->path; in Flatten() 542 (file_ref->type == ResourceFile::Type::kBinaryXml || in Flatten() 543 file_ref->type == ResourceFile::Type::kProtoXml)) { in Flatten() 551 if (file_ref->type == ResourceFile::Type::kProtoXml) { in Flatten() 577 file_ref->type = XmlFileTypeForOutputFormat(options_.output_format); in Flatten() 580 file_op.xml_to_flatten->file.source = file_ref->GetSource(); in Flatten() [all …]
|
/frameworks/base/tools/aapt2/test/ |
D | Builders.cpp | 92 auto file_ref = util::make_unique<FileReference>(table_->string_pool.MakeRef(path)); in AddFileReference() local 93 file_ref->file = file; in AddFileReference() 94 return AddValue(name, id, std::move(file_ref)); in AddFileReference() 101 auto file_ref = util::make_unique<FileReference>(table_->string_pool.MakeRef(path)); in AddFileReference() local 102 file_ref->file = file; in AddFileReference() 103 return AddValue(name, config, {}, std::move(file_ref)); in AddFileReference()
|
/frameworks/base/tools/aapt2/format/binary/ |
D | BinaryResourceParser.cpp | 492 FileReference* file_ref = ValueCast<FileReference>(item.get()); in ParseValue() local 493 if (file_ref != nullptr) { in ParseValue() 494 file_ref->file = files_->FindFile(*file_ref->path); in ParseValue() 495 if (file_ref->file == nullptr) { in ParseValue() 497 << "' is a file reference to '" << *file_ref->path in ParseValue()
|
/frameworks/base/tools/aapt2/ |
D | ResourceUtils.cpp | 769 std::unique_ptr<FileReference> file_ref = in ParseBinaryResValue() local 773 file_ref->type = ResourceFile::Type::kUnknown; in ParseBinaryResValue() 774 } else if (util::EndsWith(*file_ref->path, ".xml")) { in ParseBinaryResValue() 775 file_ref->type = ResourceFile::Type::kBinaryXml; in ParseBinaryResValue() 776 } else if (util::EndsWith(*file_ref->path, ".png")) { in ParseBinaryResValue() 777 file_ref->type = ResourceFile::Type::kPng; in ParseBinaryResValue() 779 return std::move(file_ref); in ParseBinaryResValue()
|
D | LoadedApk.cpp | 212 FileReference* file_ref = ValueCast<FileReference>(config_value->value.get()); in WriteToArchive() local 213 if (file_ref) { in WriteToArchive() 214 referenced_resources.insert(*file_ref->path); in WriteToArchive()
|
/frameworks/base/tools/aapt2/format/proto/ |
D | ProtoDeserialize.cpp | 931 std::unique_ptr<FileReference> file_ref = in DeserializeItemFromPb() local 934 file_ref->type = DeserializeFileReferenceTypeFromPb(pb_file.type()); in DeserializeItemFromPb() 936 file_ref->file = files->FindFile(*file_ref->path); in DeserializeItemFromPb() 938 return std::move(file_ref); in DeserializeItemFromPb()
|