Searched refs:OtaType (Results 1 – 4 of 4) sorted by relevance
/bootable/recovery/tests/component/ |
D | install_test.cpp | 280 ASSERT_EQ(0, CheckPackageMetadata(metadata, OtaType::AB)); in VerifyAbUpdateCommands() 293 ASSERT_EQ(INSTALL_ERROR, CheckPackageMetadata(metadata, OtaType::AB)); in VerifyAbUpdateCommands() 361 static void test_check_package_metadata(const std::string& metadata_string, OtaType ota_type, in test_check_package_metadata() 390 test_check_package_metadata(metadata, OtaType::AB, INSTALL_ERROR); in TEST() 400 test_check_package_metadata(metadata, OtaType::AB, 0); in TEST() 402 test_check_package_metadata(metadata, OtaType::BRICK, INSTALL_ERROR); in TEST() 412 test_check_package_metadata(metadata, OtaType::BRICK, INSTALL_ERROR); in TEST() 421 test_check_package_metadata(metadata, OtaType::BRICK, INSTALL_ERROR); in TEST() 435 test_check_package_metadata(metadata, OtaType::BRICK, 0); in TEST() 445 test_check_package_metadata(metadata, OtaType::BRICK, INSTALL_ERROR); in TEST() [all …]
|
/bootable/recovery/install/include/install/ |
D | install.h | 41 enum class OtaType { enum 71 int CheckPackageMetadata(const std::map<std::string, std::string>& metadata, OtaType ota_type);
|
/bootable/recovery/install/ |
D | install.cpp | 111 static std::string OtaTypeToString(OtaType type) { in OtaTypeToString() 113 case OtaType::AB: in OtaTypeToString() 115 case OtaType::BLOCK: in OtaTypeToString() 117 case OtaType::BRICK: in OtaTypeToString() 186 int CheckPackageMetadata(const std::map<std::string, std::string>& metadata, OtaType ota_type) { in CheckPackageMetadata() 189 if (ota_type != OtaType::AB && ota_type != OtaType::BRICK) { in CheckPackageMetadata() 225 if (ota_type == OtaType::AB) { in CheckPackageMetadata() 339 if (int check_status = is_ab ? CheckPackageMetadata(metadata, OtaType::AB) : 0; in try_update_binary()
|
/bootable/recovery/ |
D | recovery.cpp | 304 return CheckPackageMetadata(metadata, OtaType::BRICK) == 0; in CheckWipePackage()
|