Searched refs:file_ref (Results 1 – 9 of 9) sorted by relevance
/frameworks/base/tools/aapt2/optimize/ |
D | Obfuscator.cpp | 122 FileReference* file_ref = ValueCast<FileReference>(config_value->value.get()); in HandleShortenFilePaths() local 123 if (file_ref) { in HandleShortenFilePaths() 124 file_refs.insert(file_ref); in HandleShortenFilePaths() 131 for (auto& file_ref : file_refs) { in HandleShortenFilePaths() local 133 util::ExtractResFilePathParts(*file_ref->path, &res_subdir, &actual_filename, &extension); in HandleShortenFilePaths() 139 RenameDisallowedFileNames(ShortenFileName(*file_ref->path, num_chars)); in HandleShortenFilePaths() 147 shortened_path_map.insert({*file_ref->path, shortened_path}); in HandleShortenFilePaths() 148 file_ref->path = table->string_pool.MakeRef(shortened_path, file_ref->path.GetContext()); in HandleShortenFilePaths()
|
/frameworks/base/tools/aapt2/link/ |
D | TableMerger.cpp | 326 const std::string& package, const FileReference& file_ref) { in CloneAndMangleFile() argument 328 if (util::ExtractResFilePathParts(*file_ref.path, &prefix, &entry, &suffix)) { in CloneAndMangleFile() 333 new_file_ref->SetComment(file_ref.GetComment()); in CloneAndMangleFile() 334 new_file_ref->SetSource(file_ref.GetSource()); in CloneAndMangleFile() 335 new_file_ref->type = file_ref.type; in CloneAndMangleFile() 336 new_file_ref->file = file_ref.file; in CloneAndMangleFile() 341 return std::unique_ptr<FileReference>(file_ref.Transform(cloner)); in CloneAndMangleFile() 347 std::unique_ptr<FileReference> file_ref = in MergeFile() local 349 file_ref->SetSource(file_desc.source); in MergeFile() 350 file_ref->type = file_desc.type; in MergeFile() [all …]
|
/frameworks/base/tools/aapt2/cmd/ |
D | Optimize.cpp | 266 auto* file_ref = ValueCast<FileReference>(config_value->value.get()); in WriteSplitApk() local 267 if (file_ref == nullptr) { in WriteSplitApk() 271 if (file_ref->file == nullptr) { in WriteSplitApk() 273 context_->GetDiagnostics()->Warn(android::DiagMessage(file_ref->GetSource()) in WriteSplitApk() 280 config_sorted_files[std::make_pair(config_value->config, entry_name)] = file_ref; in WriteSplitApk() 285 FileReference* file_ref = entry.second; in WriteSplitApk() local 286 if (!io::CopyFileToArchivePreserveCompression(context_, file_ref->file, *file_ref->path, in WriteSplitApk()
|
D | Link.cpp | 546 FileReference* file_ref = ValueCast<FileReference>(config_value->value.get()); in Flatten() local 547 if (!file_ref) { in Flatten() 551 io::IFile* file = file_ref->file; in Flatten() 553 context_->GetDiagnostics()->Error(android::DiagMessage(file_ref->GetSource()) in Flatten() 560 file_op.dst_path = *file_ref->path; in Flatten() 565 (file_ref->type == ResourceFile::Type::kBinaryXml || in Flatten() 566 file_ref->type == ResourceFile::Type::kProtoXml)) { in Flatten() 574 if (file_ref->type == ResourceFile::Type::kProtoXml) { in Flatten() 600 file_ref->type = XmlFileTypeForOutputFormat(options_.output_format); in Flatten() 603 file_op.xml_to_flatten->file.source = file_ref->GetSource(); in Flatten() [all …]
|
/frameworks/base/tools/aapt2/test/ |
D | Builders.cpp | 78 auto file_ref = util::make_unique<FileReference>(table_->string_pool.MakeRef(path)); in AddFileReference() local 79 file_ref->file = file; in AddFileReference() 80 return AddValue(name, id, std::move(file_ref)); in AddFileReference() 86 auto file_ref = util::make_unique<FileReference>(table_->string_pool.MakeRef(path)); in AddFileReference() local 87 file_ref->file = file; in AddFileReference() 88 return AddValue(name, config, {}, std::move(file_ref)); in AddFileReference()
|
/frameworks/base/tools/aapt2/format/binary/ |
D | BinaryResourceParser.cpp | 568 FileReference* file_ref = ValueCast<FileReference>(item.get()); in ParseValue() local 569 if (file_ref != nullptr) { in ParseValue() 570 file_ref->file = files_->FindFile(*file_ref->path); in ParseValue() 571 if (file_ref->file == nullptr) { in ParseValue() 573 << "' is a file reference to '" << *file_ref->path in ParseValue()
|
/frameworks/base/tools/aapt2/ |
D | ResourceUtils.cpp | 792 std::unique_ptr<FileReference> file_ref = util::make_unique<FileReference>( in ParseBinaryResValue() local 796 file_ref->type = ResourceFile::Type::kUnknown; in ParseBinaryResValue() 797 } else if (util::EndsWith(*file_ref->path, ".xml")) { in ParseBinaryResValue() 798 file_ref->type = ResourceFile::Type::kBinaryXml; in ParseBinaryResValue() 799 } else if (util::EndsWith(*file_ref->path, ".png")) { in ParseBinaryResValue() 800 file_ref->type = ResourceFile::Type::kPng; in ParseBinaryResValue() 802 return std::move(file_ref); in ParseBinaryResValue()
|
D | LoadedApk.cpp | 215 FileReference* file_ref = ValueCast<FileReference>(config_value->value.get()); in WriteToArchive() local 216 if (file_ref) { in WriteToArchive() 217 referenced_resources.insert(*file_ref->path); in WriteToArchive()
|
/frameworks/base/tools/aapt2/format/proto/ |
D | ProtoDeserialize.cpp | 992 std::unique_ptr<FileReference> file_ref = in DeserializeItemFromPb() local 996 file_ref->type = DeserializeFileReferenceTypeFromPb(pb_file.type()); in DeserializeItemFromPb() 998 file_ref->file = files->FindFile(*file_ref->path); in DeserializeItemFromPb() 1000 return std::move(file_ref); in DeserializeItemFromPb()
|