Home
last modified time | relevance | path

Searched refs:num_slots (Results 1 – 11 of 11) sorted by relevance

/system/extras/tests/bootloader/
Dhaltest.py32 num_slots = self.bootctl.get_number_slots()
34 for slot in range(num_slots):
38 self.assertEqual(len(suffixes), num_slots)
67 num_slots = self.bootctl.get_number_slots()
68 for i in range(num_slots):
72 new_slot = (slot + 1) % num_slots
89 num_slots = self.bootctl.get_number_slots()
90 for i in range(num_slots):
94 new_slot = (slot + 1) % num_slots
/system/media/alsa_utils/
Dalsa_logging.c33 const size_t num_slots = ARRAY_SIZE(mask->bits); in log_pcm_mask() local
38 (num_slots * chars_per_slot + 2 + 1); /* brackets and null-terminator */ in log_pcm_mask()
44 for (slot_index = 0; slot_index < num_slots; slot_index++) { in log_pcm_mask()
50 if (slot_index < num_slots - 1) { in log_pcm_mask()
Dalsa_format.c88 int num_slots = ARRAY_SIZE(mask->bits); in get_pcm_format_for_mask() local
95 for (slot_index = 0; slot_index < num_slots && table_index < table_size; slot_index++) { in get_pcm_format_for_mask()
Dalsa_device_profile.c269 const int num_slots = ARRAY_SIZE(mask->bits); in profile_enum_sample_formats() local
277 for (slot_index = 0; slot_index < num_slots && table_index < table_size; in profile_enum_sample_formats()
/system/update_engine/common/
Dfake_boot_control.h86 void SetNumSlots(unsigned int num_slots) { in SetNumSlots() argument
87 num_slots_ = num_slots; in SetNumSlots()
/system/core/fastboot/fuzzy_fastboot/
Dtest_utils.cpp76 std::vector<std::string> GeneratePartitionNames(const std::string& base, int num_slots) { in GeneratePartitionNames() argument
77 if (!num_slots) { in GeneratePartitionNames()
81 for (char c = 'a'; c < 'a' + num_slots; c++) { in GeneratePartitionNames()
Dmain.cpp251 int32_t num_slots = strtol(slot_count.c_str(), nullptr, 10); in TEST_F() local
252 if (num_slots > 0) { in TEST_F()
456 int32_t num_slots = strtol(var.c_str(), nullptr, 10); in TEST_F() local
459 ASSERT_LE(num_slots, 26) << "What?! You can't have more than 26 slots"; in TEST_F()
465 if (num_slots > 0) { in TEST_F()
498 EXPECT_EQ(char_set.size(), num_slots) in TEST_F()
499 << "There should only be slot suffixes from a to " << 'a' + num_slots - 1 in TEST_F()
503 EXPECT_LT(c, 'a' + num_slots) << "Encountered invalid slot suffix of '" << c << "'"; in TEST_F()
514 int32_t num_slots = strtol(var.c_str(), nullptr, 10); in TEST_F() local
517 ASSERT_LE(num_slots, 26) << "You can't have more than 26 slots"; in TEST_F()
[all …]
Dtest_utils.h86 std::vector<std::string> GeneratePartitionNames(const std::string& base, int num_slots = 0);
Dfixtures.cpp293 int32_t num_slots = strtol(var.c_str(), nullptr, 10); in SetUp() local
294 real_parts = GeneratePartitionNames(name, GetParam().second.slots ? num_slots : 0); in SetUp()
/system/core/fastboot/device/
Dutility.cpp205 size_t num_slots = 1; in UpdateAllPartitionMetadata() local
208 num_slots = boot_control_hal->getNumberSlots(); in UpdateAllPartitionMetadata()
212 for (size_t i = 0; i < num_slots; i++) { in UpdateAllPartitionMetadata()
/system/update_engine/
Dupdate_attempter.cc764 const unsigned int num_slots = system_state_->boot_control()->GetNumSlots(); in GetRollbackSlot() local
768 LOG(INFO) << " Installed slots: " << num_slots; in GetRollbackSlot()
772 if (current_slot == BootControlInterface::kInvalidSlot || num_slots < 2) { in GetRollbackSlot()
778 for (BootControlInterface::Slot slot = 0; slot < num_slots; slot++) { in GetRollbackSlot()