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.c294 const int num_slots = ARRAY_SIZE(mask->bits); in profile_enum_sample_formats() local
302 for (slot_index = 0; slot_index < num_slots && table_index < table_size; in profile_enum_sample_formats()
/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.cpp246 int32_t num_slots = strtol(slot_count.c_str(), nullptr, 10); in TEST_F() local
247 if (num_slots > 0) { in TEST_F()
451 int32_t num_slots = strtol(var.c_str(), nullptr, 10); in TEST_F() local
454 ASSERT_LE(num_slots, 26) << "What?! You can't have more than 26 slots"; in TEST_F()
460 if (num_slots > 0) { in TEST_F()
493 EXPECT_EQ(char_set.size(), num_slots) in TEST_F()
494 << "There should only be slot suffixes from a to " << 'a' + num_slots - 1 in TEST_F()
498 EXPECT_LT(c, 'a' + num_slots) << "Encountered invalid slot suffix of '" << c << "'"; in TEST_F()
509 int32_t num_slots = strtol(var.c_str(), nullptr, 10); in TEST_F() local
512 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.cpp327 int32_t num_slots = strtol(var.c_str(), nullptr, 10); in SetUp() local
328 real_parts = GeneratePartitionNames(name, GetParam().second.slots ? num_slots : 0); in SetUp()
/system/extras/partition_tools/
Dlpdump.cc514 uint32_t num_slots = current_slot_suffix.empty() ? 1 : 2; in LpdumpMain() local
515 if (dump_all && num_slots > 1) { in LpdumpMain()
519 uint32_t num_slots = pt->geometry.metadata_slot_count; in LpdumpMain() local
523 num_slots = 1; in LpdumpMain()
526 if (num_slots > 1) { in LpdumpMain()
532 for (uint32_t i = 1; i < num_slots; i++) { in LpdumpMain()
/system/core/fastboot/device/
Dutility.cpp203 size_t num_slots = 1; in UpdateAllPartitionMetadata() local
206 num_slots = boot_control_hal->GetNumSlots(); in UpdateAllPartitionMetadata()
210 for (size_t i = 0; i < num_slots; i++) { in UpdateAllPartitionMetadata()
/system/update_engine/common/
Dfake_boot_control.h101 void SetNumSlots(unsigned int num_slots) { in SetNumSlots() argument
102 num_slots_ = num_slots; in SetNumSlots()