Searched refs:OtaType (Results 1 – 4 of 4) sorted by relevance
/bootable/recovery/tests/unit/ |
D | install_test.cpp | 199 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/ |
D | install.h | 41 enum class OtaType { enum 65 bool CheckPackageMetadata(const std::map<std::string, std::string>& metadata, OtaType ota_type);
|
/bootable/recovery/install/ |
D | install.cpp | 114 static std::string OtaTypeToString(OtaType type) { in OtaTypeToString() 116 case OtaType::AB: in OtaTypeToString() 118 case OtaType::BLOCK: in OtaTypeToString() 120 case OtaType::BRICK: in OtaTypeToString() 190 bool CheckPackageMetadata(const std::map<std::string, std::string>& metadata, OtaType ota_type) { in CheckPackageMetadata() 193 if (ota_type != OtaType::AB && ota_type != OtaType::BRICK) { in CheckPackageMetadata() 230 if (ota_type == OtaType::AB) { in CheckPackageMetadata() 339 bool package_is_ab = get_value(metadata, "ota-type") == OtaTypeToString(OtaType::AB); in TryUpdateBinary() 354 if (!CheckPackageMetadata(metadata, OtaType::AB)) { in TryUpdateBinary()
|
D | wipe_device.cpp | 167 return CheckPackageMetadata(metadata, OtaType::BRICK); in CheckWipePackage()
|