Home
last modified time | relevance | path

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

/system/update_engine/
Dboot_control_android.cc138 Slot current_slot = GetCurrentSlot(); in GetDynamicPartitionDevice() local
143 if (IsSuperBlockDevice(device_dir, current_slot, partition_name_suffix)) { in GetDynamicPartitionDevice()
146 << fs_mgr_get_super_partition_name(current_slot) << ", slot " in GetDynamicPartitionDevice()
147 << BootControlInterface::SlotName(current_slot) in GetDynamicPartitionDevice()
155 if (slot == current_slot) { in GetDynamicPartitionDevice()
172 bool force_writable = slot != current_slot; in GetDynamicPartitionDevice()
Dupdate_attempter.cc765 const BootControlInterface::Slot current_slot = in GetRollbackSlot() local
770 << BootControlInterface::SlotName(current_slot); in GetRollbackSlot()
772 if (current_slot == BootControlInterface::kInvalidSlot || num_slots < 2) { in GetRollbackSlot()
779 if (slot != current_slot && in GetRollbackSlot()
Dupdate_attempter_android.cc415 BootControlInterface::Slot current_slot = boot_control_->GetCurrentSlot(); in VerifyPayloadApplicable() local
421 partition.partition_name(), current_slot, &partition_path)) { in VerifyPayloadApplicable()
/system/core/fastboot/device/
Dutility.cpp168 uint32_t current_slot = SlotNumberForSlotSuffix(device->GetCurrentSlot()); in ListPartitions() local
169 std::string super_name = fs_mgr_get_super_partition_name(current_slot); in ListPartitions()
170 if (auto metadata = ReadMetadata(super_name, current_slot)) { in ListPartitions()
174 uint32_t other_slot = (current_slot == 0) ? 1 : 0; in ListPartitions()
Dcommands.cpp246 auto current_slot = "_" + args[1]; in SetActiveHandler() local
247 device->set_active_slot(current_slot); in SetActiveHandler()
/system/core/fastboot/
Dfastboot.cpp989 std::string current_slot; in get_current_slot() local
990 if (fb->GetVar("current-slot", &current_slot) != fastboot::SUCCESS) return ""; in get_current_slot()
991 return current_slot; in get_current_slot()
1009 static std::string get_other_slot(const std::string& current_slot, int count) { in get_other_slot() argument
1012 char next = (current_slot[0] - 'a' + 1)%count + 'a'; in get_other_slot()
1016 static std::string get_other_slot(const std::string& current_slot) { in get_other_slot() argument
1017 return get_other_slot(current_slot, get_slot_count()); in get_other_slot()
1071 std::string current_slot; in do_for_partition() local
1079 current_slot = get_current_slot(); in do_for_partition()
1080 if (current_slot == "") { in do_for_partition()
[all …]
/system/core/fastboot/fuzzy_fastboot/
Dmain.cpp208 std::string current_slot; in TEST_F() local
209 ASSERT_EQ(fb->GetVar("current-slot", &current_slot), SUCCESS) in TEST_F()
211 std::string slot_suffix = "_" + current_slot; in TEST_F()
253 std::string current_slot; in TEST_F() local
254 EXPECT_EQ(fb->GetVar("current-slot", &current_slot), SUCCESS) in TEST_F()
256 std::string slot_suffix = "_" + current_slot; in TEST_F()