Home
last modified time | relevance | path

Searched refs:MergeStatus (Results 1 – 11 of 11) sorted by relevance

/system/extras/bootctl/
Dbootctl.cpp32 using android::hardware::boot::V1_1::MergeStatus;
153 std::optional<MergeStatus> stringToMergeStatus(const std::string& status) { in stringToMergeStatus()
154 if (status == "cancelled") return MergeStatus::CANCELLED; in stringToMergeStatus()
155 if (status == "merging") return MergeStatus::MERGING; in stringToMergeStatus()
156 if (status == "none") return MergeStatus::NONE; in stringToMergeStatus()
157 if (status == "snapshotted") return MergeStatus::SNAPSHOTTED; in stringToMergeStatus()
158 if (status == "unknown") return MergeStatus::UNKNOWN; in stringToMergeStatus()
183 std::ostream& operator<<(std::ostream& os, MergeStatus state) { in operator <<()
185 case MergeStatus::CANCELLED: in operator <<()
187 case MergeStatus::MERGING: in operator <<()
[all …]
/system/core/fs_mgr/libsnapshot/
Ddevice_info.h29 using MergeStatus = android::hardware::boot::V1_1::MergeStatus; variable
38 bool SetBootControlMergeStatus(MergeStatus status) override;
Ddevice_info.cpp81 bool DeviceInfo::SetBootControlMergeStatus([[maybe_unused]] MergeStatus status) { in SetBootControlMergeStatus()
Dsnapshot_fuzz_utils.h120 bool SetBootControlMergeStatus(android::hardware::boot::V1_1::MergeStatus) override { in SetBootControlMergeStatus() argument
Dsnapshot_test.cpp661 ASSERT_EQ(test_device->merge_status(), MergeStatus::NONE); in TEST_F()
664 ASSERT_EQ(test_device->merge_status(), MergeStatus::NONE); in TEST_F()
667 ASSERT_EQ(test_device->merge_status(), MergeStatus::SNAPSHOTTED); in TEST_F()
670 ASSERT_EQ(test_device->merge_status(), MergeStatus::MERGING); in TEST_F()
673 ASSERT_EQ(test_device->merge_status(), MergeStatus::NONE); in TEST_F()
676 ASSERT_EQ(test_device->merge_status(), MergeStatus::NONE); in TEST_F()
679 ASSERT_EQ(test_device->merge_status(), MergeStatus::MERGING); in TEST_F()
687 ASSERT_EQ(test_device->merge_status(), MergeStatus::MERGING); in TEST_F()
Dsnapshot.cpp75 using android::hardware::boot::V1_1::MergeStatus;
2553 auto merge_status = MergeStatus::UNKNOWN; in WriteSnapshotUpdateStatus()
2561 merge_status = MergeStatus::NONE; in WriteSnapshotUpdateStatus()
2564 merge_status = MergeStatus::SNAPSHOTTED; in WriteSnapshotUpdateStatus()
2568 merge_status = MergeStatus::MERGING; in WriteSnapshotUpdateStatus()
2578 merge_status == MergeStatus::SNAPSHOTTED || merge_status == MergeStatus::MERGING; in WriteSnapshotUpdateStatus()
/system/core/fs_mgr/libsnapshot/include_test/libsnapshot/
Dtest_helpers.h39 using android::hardware::boot::V1_1::MergeStatus;
87 bool SetBootControlMergeStatus(MergeStatus status) override { in SetBootControlMergeStatus()
111 MergeStatus merge_status() const { return merge_status_; } in merge_status()
116 MergeStatus merge_status_;
/system/core/fastboot/device/
Dcommands.cpp59 using ::android::hardware::boot::V1_1::MergeStatus;
80 return merge_status == MergeStatus::SNAPSHOTTED || merge_status == MergeStatus::MERGING; in IsSnapshotUpdateInProgress()
322 if (merge_status == MergeStatus::MERGING) { in SetActiveHandler()
332 if (merge_status == MergeStatus::SNAPSHOTTED) { in SetActiveHandler()
655 MergeStatus status = hal->getSnapshotMergeStatus(); in SnapshotUpdateHandler()
662 case MergeStatus::SNAPSHOTTED: in SnapshotUpdateHandler()
663 case MergeStatus::MERGING: in SnapshotUpdateHandler()
664 hal->setSnapshotMergeStatus(MergeStatus::CANCELLED); in SnapshotUpdateHandler()
670 if (status != MergeStatus::MERGING) { in SnapshotUpdateHandler()
Dvariables.cpp44 using ::android::hardware::boot::V1_1::MergeStatus;
459 MergeStatus status = hal->getSnapshotMergeStatus(); in GetSnapshotUpdateStatus()
461 case MergeStatus::SNAPSHOTTED: in GetSnapshotUpdateStatus()
464 case MergeStatus::MERGING: in GetSnapshotUpdateStatus()
/system/core/fs_mgr/libsnapshot/include/libsnapshot/
Dmock_device_info.h31 MOCK_METHOD(bool, SetBootControlMergeStatus, (MergeStatus status), (override));
Dsnapshot.h65 enum class MergeStatus : int32_t;
107 android::hardware::boot::V1_1::MergeStatus status) = 0;
307 using MergeStatus = android::hardware::boot::V1_1::MergeStatus; variable