Home
last modified time | relevance | path

Searched refs:current_slot (Results 1 – 19 of 19) sorted by relevance

/system/update_engine/aosp/
Ddynamic_partition_control_android.h70 uint32_t current_slot,
88 uint32_t current_slot,
94 uint32_t current_slot,
101 uint32_t current_slot,
297 uint32_t current_slot,
304 uint32_t current_slot,
Ddynamic_partition_control_android.cc1096 uint32_t current_slot, in GetPartitionDevice() argument
1101 GetPartitionDevice(partition_name, slot, current_slot, not_in_payload); in GetPartitionDevice()
1117 uint32_t current_slot, in GetPartitionDevice() argument
1120 partition_name, slot, current_slot, false, device, nullptr); in GetPartitionDevice()
1134 uint32_t current_slot, in GetPartitionDevice() argument
1146 if (UpdateUsesSnapshotCompression() && slot != current_slot && in GetPartitionDevice()
1161 (slot == current_slot || is_target_dynamic_)) { in GetPartitionDevice()
1165 current_slot, in GetPartitionDevice()
1194 uint32_t current_slot, in IsSuperBlockDevice() argument
1197 device_dir.Append(GetSuperPartitionName(current_slot)).value(); in IsSuperBlockDevice()
[all …]
Dboot_control_android.cc175 uint32_t current_slot, in GetPartitionDevice() argument
178 partition_name, slot, current_slot, not_in_payload); in GetPartitionDevice()
Dboot_control_android.h51 uint32_t current_slot,
Dupdate_attempter_android.cc646 BootControlInterface::Slot current_slot = GetCurrentSlot(); in VerifyPayloadApplicable() local
647 if (current_slot < 0) { in VerifyPayloadApplicable()
652 "Failed to get current slot " + std::to_string(current_slot), in VerifyPayloadApplicable()
660 partition.partition_name(), current_slot, &partition_path)) { in VerifyPayloadApplicable()
1051 const auto current_slot = boot_control_->GetCurrentSlot(); in OTARebootSucceeded() local
1058 if (previous_slot != current_slot) { in OTARebootSucceeded()
1062 << " current slot: " << current_slot; in OTARebootSucceeded()
/system/core/fastboot/device/
Dutility.cpp171 uint32_t current_slot = SlotNumberForSlotSuffix(device->GetCurrentSlot()); in ListPartitions() local
172 std::string super_name = fs_mgr_get_super_partition_name(current_slot); in ListPartitions()
173 if (auto metadata = ReadMetadata(super_name, current_slot)) { in ListPartitions()
177 uint32_t other_slot = (current_slot == 0) ? 1 : 0; in ListPartitions()
Dcommands.cpp375 auto current_slot = "_" + args[1]; in SetActiveHandler() local
376 device->set_active_slot(current_slot); in SetActiveHandler()
/system/core/fastboot/
Dfastboot.cpp1290 std::string current_slot; in get_current_slot() local
1291 if (fb->GetVar("current-slot", &current_slot) != fastboot::SUCCESS) return ""; in get_current_slot()
1292 if (current_slot[0] == '_') current_slot.erase(0, 1); in get_current_slot()
1293 return current_slot; in get_current_slot()
1311 static std::string get_other_slot(const std::string& current_slot, int count) { in get_other_slot() argument
1314 char next = (current_slot[0] - 'a' + 1) % count + 'a'; in get_other_slot()
1318 static std::string get_other_slot(const std::string& current_slot) { in get_other_slot() argument
1319 return get_other_slot(current_slot, get_slot_count(fb)); in get_other_slot()
1373 std::string current_slot; in do_for_partition() local
1383 current_slot = get_current_slot(); in do_for_partition()
[all …]
Dfastboot.h106 std::string current_slot; member
/system/update_engine/common/
Dboot_control_stub.h54 uint32_t current_slot,
Dboot_control_interface.h81 uint32_t current_slot,
Dboot_control_stub.cc50 uint32_t current_slot, in GetPartitionDevice() argument
Ddynamic_partition_control_stub.h58 uint32_t current_slot,
Ddynamic_partition_control_stub.cc88 uint32_t current_slot, in ListDynamicPartitionsForSlot() argument
Ddynamic_partition_control_interface.h151 uint32_t current_slot,
Dfake_boot_control.h129 uint32_t current_slot,
/system/core/fs_mgr/libsnapshot/
Dsnapshot.cpp1653 auto current_slot = GetCurrentSlot(); in HandleCancelledUpdate() local
1654 if (current_slot != Slot::Source) { in HandleCancelledUpdate()
1655 LOG(INFO) << "Update state is being processed while booting at " << current_slot in HandleCancelledUpdate()
1959 auto current_slot = GetCurrentSlot(); in RemoveAllSnapshots() local
1974 bool should_unmap = current_slot != Slot::Target; in RemoveAllSnapshots()
1975 bool should_delete = ShouldDeleteSnapshot(flashing_status, current_slot, name); in RemoveAllSnapshots()
1982 LOG(ERROR) << "Detected snapshot " << name << " on " << current_slot << " slot" in RemoveAllSnapshots()
2021 Slot current_slot, const std::string& name) { in ShouldDeleteSnapshot() argument
2022 if (current_slot != Slot::Target) { in ShouldDeleteSnapshot()
3216 uint32_t current_slot = SlotNumberForSlotSuffix(current_suffix); in CreateUpdateSnapshots() local
[all …]
/system/core/fastboot/fuzzy_fastboot/
Dmain.cpp210 std::string current_slot; in TEST_F() local
211 ASSERT_EQ(fb->GetVar("current-slot", &current_slot), SUCCESS) in TEST_F()
213 std::string slot_suffix = "_" + current_slot; in TEST_F()
248 std::string current_slot; in TEST_F() local
249 EXPECT_EQ(fb->GetVar("current-slot", &current_slot), SUCCESS) in TEST_F()
251 std::string slot_suffix = "_" + current_slot; in TEST_F()
/system/core/fs_mgr/libsnapshot/include/libsnapshot/
Dsnapshot.h776 bool ShouldDeleteSnapshot(const std::map<std::string, bool>& flashing_status, Slot current_slot,