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;
160 std::optional<MergeStatus> stringToMergeStatus(const std::string &status) { in stringToMergeStatus()
161 if (status == "cancelled") return MergeStatus::CANCELLED; in stringToMergeStatus()
162 if (status == "merging") return MergeStatus::MERGING; in stringToMergeStatus()
163 if (status == "none") return MergeStatus::NONE; in stringToMergeStatus()
164 if (status == "snapshotted") return MergeStatus::SNAPSHOTTED; in stringToMergeStatus()
165 if (status == "unknown") return MergeStatus::UNKNOWN; in stringToMergeStatus()
190 std::ostream& operator<<(std::ostream& os, MergeStatus state) { in operator <<()
192 case MergeStatus::CANCELLED: in operator <<()
194 case MergeStatus::MERGING: in operator <<()
[all …]
/system/core/fs_mgr/libsnapshot/
Ddevice_info.h29 using MergeStatus = android::hardware::boot::V1_1::MergeStatus; variable
39 bool SetBootControlMergeStatus(MergeStatus status) override;
Ddevice_info.cpp83 bool DeviceInfo::SetBootControlMergeStatus([[maybe_unused]] MergeStatus status) { in SetBootControlMergeStatus()
Dsnapshot_test.cpp601 ASSERT_EQ(test_device->merge_status(), MergeStatus::NONE); in TEST_F()
604 ASSERT_EQ(test_device->merge_status(), MergeStatus::NONE); in TEST_F()
607 ASSERT_EQ(test_device->merge_status(), MergeStatus::SNAPSHOTTED); in TEST_F()
610 ASSERT_EQ(test_device->merge_status(), MergeStatus::MERGING); in TEST_F()
613 ASSERT_EQ(test_device->merge_status(), MergeStatus::NONE); in TEST_F()
616 ASSERT_EQ(test_device->merge_status(), MergeStatus::NONE); in TEST_F()
619 ASSERT_EQ(test_device->merge_status(), MergeStatus::MERGING); in TEST_F()
Dsnapshot_fuzz_utils.h120 bool SetBootControlMergeStatus(android::hardware::boot::V1_1::MergeStatus) override { in SetBootControlMergeStatus() argument
Dsnapshot.cpp68 using android::hardware::boot::V1_1::MergeStatus;
1982 auto merge_status = MergeStatus::UNKNOWN; in WriteSnapshotUpdateStatus()
1990 merge_status = MergeStatus::NONE; in WriteSnapshotUpdateStatus()
1993 merge_status = MergeStatus::SNAPSHOTTED; in WriteSnapshotUpdateStatus()
1997 merge_status = MergeStatus::MERGING; in WriteSnapshotUpdateStatus()
2007 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;
88 bool SetBootControlMergeStatus(MergeStatus status) override { in SetBootControlMergeStatus()
106 MergeStatus merge_status() const { return merge_status_; } in merge_status()
111 MergeStatus merge_status_;
/system/core/fastboot/device/
Dcommands.cpp51 using ::android::hardware::boot::V1_1::MergeStatus;
70 return merge_status == MergeStatus::SNAPSHOTTED || merge_status == MergeStatus::MERGING; in IsSnapshotUpdateInProgress()
272 if (merge_status == MergeStatus::MERGING) { in SetActiveHandler()
282 if (merge_status == MergeStatus::SNAPSHOTTED) { in SetActiveHandler()
605 MergeStatus status = hal->getSnapshotMergeStatus(); in SnapshotUpdateHandler()
612 case MergeStatus::SNAPSHOTTED: in SnapshotUpdateHandler()
613 case MergeStatus::MERGING: in SnapshotUpdateHandler()
614 hal->setSnapshotMergeStatus(MergeStatus::CANCELLED); in SnapshotUpdateHandler()
620 if (status != MergeStatus::MERGING) { in SnapshotUpdateHandler()
Dvariables.cpp38 using ::android::hardware::boot::V1_1::MergeStatus;
453 MergeStatus status = hal->getSnapshotMergeStatus(); in GetSnapshotUpdateStatus()
455 case MergeStatus::SNAPSHOTTED: in GetSnapshotUpdateStatus()
458 case MergeStatus::MERGING: in GetSnapshotUpdateStatus()
/system/core/fs_mgr/libsnapshot/include/libsnapshot/
Dmock_device_info.h32 MOCK_METHOD(bool, SetBootControlMergeStatus, (MergeStatus status), (override));
Dsnapshot.h62 enum class MergeStatus : int32_t;
102 android::hardware::boot::V1_1::MergeStatus status) = 0;
256 using MergeStatus = android::hardware::boot::V1_1::MergeStatus; variable