Home
last modified time | relevance | path

Searched refs:GetCurrentSlot (Results 1 – 24 of 24) sorted by relevance

/system/update_engine/aosp/
Dboot_control_android.cc67 std::make_unique<DynamicPartitionControlAndroid>(GetCurrentSlot()); in Init()
76 BootControlInterface::Slot BootControlAndroid::GetCurrentSlot() const { in GetCurrentSlot() function in chromeos_update_engine::BootControlAndroid
77 return module_->GetCurrentSlot(); in GetCurrentSlot()
87 GetCurrentSlot(), in GetPartitionDevice()
Dupdate_attempter_android_integration_test.cc66 super_device->value(), boot_control_.GetCurrentSlot()); in AddFakePartitionGroup()
143 boot_control_.GetCurrentSlot() == 0 ? "fake_a" : "fake_b", in CreateFakePartition()
152 boot_control_.GetCurrentSlot(), in CreateFakePartition()
153 boot_control_.GetCurrentSlot(), in CreateFakePartition()
176 super_device_, *metadata, boot_control_.GetCurrentSlot()); in ExportPartitionTable()
326 1 - boot_control_.GetCurrentSlot(), in DumpTargetPartitionDiff()
327 boot_control_.GetCurrentSlot(), in DumpTargetPartitionDiff()
Dupdate_attempter_android.cc279 install_plan_.source_slot = GetCurrentSlot(); in ApplyPayload()
544 BootControlInterface::Slot current_slot = GetCurrentSlot(); in VerifyPayloadApplicable()
827 << boot_control_->GetCurrentSlot() << ", boot id: " << boot_id; in WriteUpdateCompletedMarker()
831 prefs_->SetInt64(kPrefsPreviousSlot, boot_control_->GetCurrentSlot())); in WriteUpdateCompletedMarker()
940 const auto current_slot = boot_control_->GetCurrentSlot(); in OTARebootSucceeded()
1015 prefs_->SetInt64(kPrefsPreviousSlot, boot_control_->GetCurrentSlot()); in UpdateStateAfterReboot()
1045 prefs_->SetInt64(kPrefsPreviousSlot, boot_control_->GetCurrentSlot()); in UpdateStateAfterReboot()
1088 BootControlInterface::Slot UpdateAttempterAndroid::GetCurrentSlot() const { in GetCurrentSlot() function in chromeos_update_engine::UpdateAttempterAndroid
1089 return boot_control_->GetCurrentSlot(); in GetCurrentSlot()
1093 return GetCurrentSlot() == 0 ? 1 : 0; in GetTargetSlot()
[all …]
Dcleanup_previous_update_action_unittest.cc61 ON_CALL(boot_control_, GetCurrentSlot()).WillByDefault(Return(0)); in SetUp()
106 EXPECT_CALL(boot_control_, GetCurrentSlot()) in TEST_F()
Dboot_control_android.h47 BootControlInterface::Slot GetCurrentSlot() const override;
Dcleanup_previous_update_action.cc208 !boot_control_->IsSlotMarkedSuccessful(boot_control_->GetCurrentSlot())) { in CheckSlotMarkedSuccessfulOrSchedule()
331 boot_control_->MarkSlotUnbootable(1 - boot_control_->GetCurrentSlot()); in WaitForMergeOrSchedule()
Dupdate_attempter_android.h218 BootControlInterface::Slot GetCurrentSlot() const;
/system/update_engine/common/
Dfake_boot_control.h45 BootControlInterface::Slot GetCurrentSlot() const override { in GetCurrentSlot() function
91 is_marked_successful_[GetCurrentSlot()] = true; in MarkBootSuccessfulAsync()
Dmock_boot_control.h36 MOCK_METHOD(BootControlInterface::Slot, GetCurrentSlot, (), (const override));
Dboot_control_stub.h42 BootControlInterface::Slot GetCurrentSlot() const override;
Dboot_control_stub.cc33 BootControlInterface::Slot BootControlStub::GetCurrentSlot() const { in GetCurrentSlot() function in chromeos_update_engine::BootControlStub
Dboot_control_interface.h54 virtual Slot GetCurrentSlot() const = 0;
/system/core/fastboot/device/
Dvariables.cpp188 bool GetCurrentSlot(FastbootDevice* device, const std::vector<std::string>& /* args */, in GetCurrentSlot() function
190 std::string suffix = device->GetCurrentSlot(); in GetCurrentSlot()
272 std::string slot_suffix = device->GetCurrentSlot(); in GetHasSlot()
400 std::string slot_suffix = device->GetCurrentSlot(); in GetAllPartitionArgsNoSlot()
430 uint32_t slot_number = SlotNumberForSlotSuffix(device->GetCurrentSlot()); in GetSuperPartitionName()
Dfastboot_device.h44 std::string GetCurrentSlot();
Dutility.cpp171 uint32_t current_slot = SlotNumberForSlotSuffix(device->GetCurrentSlot()); in ListPartitions()
219 std::string current_slot_suffix = device->GetCurrentSlot(); in GetSuperSlotSuffix()
Dflashing.cpp70 if ((partition + device->GetCurrentSlot()) == partition_name) { in WipeOverlayfsForPartition()
227 std::string slot_suffix = device->GetCurrentSlot(); in UpdateSuper()
Dfastboot_device.cpp139 std::string FastbootDevice::GetCurrentSlot() { in GetCurrentSlot() function in FastbootDevice
149 std::string suffix = boot_control_hal_->GetSuffix(boot_control_hal_->GetCurrentSlot()); in GetCurrentSlot()
Dvariables.h36 bool GetCurrentSlot(FastbootDevice* device, const std::vector<std::string>& args,
Dcommands.cpp125 {FB_VAR_CURRENT_SLOT, {::GetCurrentSlot, nullptr}},
344 if (args[1] == device->GetCurrentSlot()) { in SetActiveHandler()
/system/vold/
DCheckpoint.cpp143 std::string suffix = module->GetSuffix(module->GetCurrentSlot()); in cp_startCheckpoint()
273 newSuffix = module->GetSuffix(module->GetCurrentSlot()); in cp_needsRollback()
294 if (module && !module->IsSlotMarkedSuccessful(module->GetCurrentSlot()).value_or(true)) { in cp_needsCheckpoint()
/system/core/fs_mgr/libsnapshot/
Dsnapshot.cpp233 auto slot = GetCurrentSlot(); in TryCancelUpdate()
253 SnapshotManager::Slot SnapshotManager::GetCurrentSlot() { in GetCurrentSlot() function in android::snapshot::SnapshotManager
265 switch (GetCurrentSlot()) { in GetSnapshotSlotSuffix()
745 auto slot = GetCurrentSlot(); in InitiateMerge()
1663 auto slot = GetCurrentSlot(); in HandleCancelledUpdate()
1677 auto current_slot = GetCurrentSlot(); in HandleCancelledUpdate()
1978 auto current_slot = GetCurrentSlot(); in RemoveAllSnapshots()
2215 auto slot = GetCurrentSlot(); in NeedSnapshotsInFirstStageMount()
2728 if (GetCurrentSlot() == Slot::Target) { in MapAllSnapshots()
3784 ss << "Boot indicator: booting from " << GetCurrentSlot() << " slot" << std::endl; in Dump()
[all …]
/system/extras/bootctl/
Dbootctl.cpp89 auto curSlot = module->GetCurrentSlot(); in do_get_current_slot()
/system/update_engine/payload_consumer/
Ddelta_performer.cc770 boot_control_->GetCurrentSlot(), in ParseManifestPartitions()
839 boot_control->GetCurrentSlot(), in PreparePartitionsForUpdate()
/system/core/fs_mgr/libsnapshot/include/libsnapshot/
Dsnapshot.h767 Slot GetCurrentSlot();