Home
last modified time | relevance | path

Searched refs:metadata (Results 1 – 6 of 6) sorted by relevance

/bootable/recovery/tests/component/
Dinstall_test.cpp83 std::map<std::string, std::string> metadata; in TEST() local
84 ASSERT_TRUE(ReadMetadataFromPackage(zip, &metadata)); in TEST()
85 ASSERT_EQ("defg", metadata["abc"]); in TEST()
93 metadata.clear(); in TEST()
94 ASSERT_TRUE(ReadMetadataFromPackage(zip, &metadata)); in TEST()
95 ASSERT_EQ("defg", metadata["abc"]); in TEST()
105 std::map<std::string, std::string> metadata; in TEST() local
106 ASSERT_FALSE(ReadMetadataFromPackage(zip, &metadata)); in TEST()
277 std::map<std::string, std::string> metadata; in VerifyAbUpdateCommands() local
278 ASSERT_TRUE(ReadMetadataFromPackage(zip, &metadata)); in VerifyAbUpdateCommands()
[all …]
/bootable/recovery/install/
Dinstall.cpp72 bool ReadMetadataFromPackage(ZipArchiveHandle zip, std::map<std::string, std::string>* metadata) { in ReadMetadataFromPackage() argument
73 CHECK(metadata != nullptr); in ReadMetadataFromPackage()
95 metadata->emplace(android::base::Trim(line.substr(0, eq)), in ReadMetadataFromPackage()
105 static std::string get_value(const std::map<std::string, std::string>& metadata, in get_value() argument
107 const auto& it = metadata.find(key); in get_value()
108 return (it == metadata.end()) ? "" : it->second; in get_value()
123 static void ReadSourceTargetBuild(const std::map<std::string, std::string>& metadata, in ReadSourceTargetBuild() argument
128 auto source_build = get_value(metadata, "pre-build-incremental"); in ReadSourceTargetBuild()
133 auto target_build = get_value(metadata, "post-build-incremental"); in ReadSourceTargetBuild()
142 static int CheckAbSpecificMetadata(const std::map<std::string, std::string>& metadata) { in CheckAbSpecificMetadata() argument
[all …]
/bootable/recovery/install/include/install/
Dinstall.h59 bool ReadMetadataFromPackage(ZipArchiveHandle zip, std::map<std::string, std::string>* metadata);
71 int CheckPackageMetadata(const std::map<std::string, std::string>& metadata, OtaType ota_type);
/bootable/recovery/updater/
Ddynamic_partitions.cpp412 auto metadata = builder->Export(); in UpdateDynamicPartitionsFn() local
413 if (metadata == nullptr) { in UpdateDynamicPartitionsFn()
418 if (!UpdatePartitionTable(super_device, *metadata, 0)) { in UpdateDynamicPartitionsFn()
/bootable/recovery/
Drecovery.cpp298 std::map<std::string, std::string> metadata; in CheckWipePackage() local
299 if (!ReadMetadataFromPackage(zip, &metadata)) { in CheckWipePackage()
304 return CheckPackageMetadata(metadata, OtaType::BRICK) == 0; in CheckWipePackage()
/bootable/recovery/fonts/
DOFL.txt60 in the appropriate machine-readable metadata fields within text or