Home
last modified time | relevance | path

Searched refs:OtaType (Results 1 – 4 of 4) sorted by relevance

/bootable/recovery/tests/unit/
Dinstall_test.cpp199 ASSERT_TRUE(CheckPackageMetadata(metadata, OtaType::AB)); in VerifyAbUpdateCommands()
212 ASSERT_FALSE(CheckPackageMetadata(metadata, OtaType::AB)); in VerifyAbUpdateCommands()
280 static void TestCheckPackageMetadata(const std::string& metadata_string, OtaType ota_type, in TestCheckPackageMetadata()
309 TestCheckPackageMetadata(metadata, OtaType::AB, false); in TEST()
319 TestCheckPackageMetadata(metadata, OtaType::AB, true); in TEST()
321 TestCheckPackageMetadata(metadata, OtaType::BRICK, false); in TEST()
331 TestCheckPackageMetadata(metadata, OtaType::BRICK, false); in TEST()
340 TestCheckPackageMetadata(metadata, OtaType::BRICK, false); in TEST()
354 TestCheckPackageMetadata(metadata, OtaType::BRICK, true); in TEST()
364 TestCheckPackageMetadata(metadata, OtaType::BRICK, false); in TEST()
[all …]
/bootable/recovery/install/include/install/
Dinstall.h42 enum class OtaType { enum
67 bool CheckPackageMetadata(const std::map<std::string, std::string>& metadata, OtaType ota_type);
/bootable/recovery/install/
Dinstall.cpp120 static std::string OtaTypeToString(OtaType type) { in OtaTypeToString()
122 case OtaType::AB: in OtaTypeToString()
124 case OtaType::BLOCK: in OtaTypeToString()
126 case OtaType::BRICK: in OtaTypeToString()
207 bool CheckPackageMetadata(const std::map<std::string, std::string>& metadata, OtaType ota_type) { in CheckPackageMetadata()
210 if (ota_type != OtaType::AB && ota_type != OtaType::BRICK) { in CheckPackageMetadata()
246 } else if (ota_type == OtaType::BRICK) { in CheckPackageMetadata()
263 if (ota_type == OtaType::AB) { in CheckPackageMetadata()
399 const bool package_is_ab = get_value(metadata, "ota-type") == OtaTypeToString(OtaType::AB); in TryUpdateBinary()
400 const bool package_is_brick = get_value(metadata, "ota-type") == OtaTypeToString(OtaType::BRICK); in TryUpdateBinary()
[all …]
Dwipe_device.cpp172 return CheckPackageMetadata(metadata, OtaType::BRICK); in CheckWipePackage()