Home
last modified time | relevance | path

Searched refs:merge_status (Results 1 – 7 of 7) sorted by relevance

/system/core/fastboot/device/
Dcommands.cpp79 auto merge_status = hal->getSnapshotMergeStatus(); in IsSnapshotUpdateInProgress() local
80 return merge_status == MergeStatus::SNAPSHOTTED || merge_status == MergeStatus::MERGING; in IsSnapshotUpdateInProgress()
321 auto merge_status = hal11->getSnapshotMergeStatus(); in SetActiveHandler() local
322 if (merge_status == MergeStatus::MERGING) { in SetActiveHandler()
332 if (merge_status == MergeStatus::SNAPSHOTTED) { in SetActiveHandler()
/system/core/fs_mgr/libdm/
Ddm_test.cpp299 DmTargetSnapshot::Status merge_status; in MergeImpl() local
300 ASSERT_TRUE(DmTargetSnapshot::ParseStatusText(status[0].data, &merge_status)); in MergeImpl()
301 ASSERT_TRUE(merge_status.error.empty()); in MergeImpl()
302 if (merge_status.sectors_allocated == merge_status.metadata_sectors) { in MergeImpl()
/system/core/fs_mgr/libsnapshot/
Dcow_snapuserd_test.cpp702 DmTargetSnapshot::Status merge_status; in MergeImpl() local
703 ASSERT_TRUE(DmTargetSnapshot::ParseStatusText(status[0].data, &merge_status)); in MergeImpl()
704 ASSERT_TRUE(merge_status.error.empty()); in MergeImpl()
705 if (merge_status.sectors_allocated == merge_status.metadata_sectors) { in MergeImpl()
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.cpp2553 auto merge_status = MergeStatus::UNKNOWN; in WriteSnapshotUpdateStatus() local
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()
2579 if (set_before_write && !device_->SetBootControlMergeStatus(merge_status)) { in WriteSnapshotUpdateStatus()
2590 if (!set_before_write && !device_->SetBootControlMergeStatus(merge_status)) { in WriteSnapshotUpdateStatus()
/system/core/fs_mgr/libsnapshot/include_test/libsnapshot/
Dtest_helpers.h111 MergeStatus merge_status() const { return merge_status_; } in merge_status() function
/system/core/fastboot/
Dfastboot.cpp1411 std::string merge_status = "none"; in CancelSnapshotIfNeeded() local
1412 if (fb->GetVar(FB_VAR_SNAPSHOT_UPDATE_STATUS, &merge_status) == fastboot::SUCCESS && in CancelSnapshotIfNeeded()
1413 !merge_status.empty() && merge_status != "none") { in CancelSnapshotIfNeeded()