Home
last modified time | relevance | path

Searched refs:num_slots (Results 1 – 7 of 7) 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.c255 const int num_slots = ARRAY_SIZE(mask->bits); in profile_enum_sample_formats() local
263 for (slot_index = 0; slot_index < num_slots && table_index < table_size; in profile_enum_sample_formats()
/system/update_engine/common/
Dfake_boot_control.h78 void SetNumSlots(unsigned int num_slots) { in SetNumSlots() argument
79 num_slots_ = num_slots; in SetNumSlots()
/system/tpm/attestation/server/
Dpkcs11_key_store.cc456 CK_ULONG num_slots = 0; in GetUserSlot() local
457 rv = C_GetSlotList(CK_TRUE, nullptr, &num_slots); in GetUserSlot()
462 std::unique_ptr<CK_SLOT_ID[]> slot_list(new CK_SLOT_ID[num_slots]); in GetUserSlot()
463 rv = C_GetSlotList(CK_TRUE, slot_list.get(), &num_slots); in GetUserSlot()
469 for (CK_ULONG i = 0; i < num_slots; ++i) { in GetUserSlot()
/system/update_engine/
Dupdate_attempter.cc753 const unsigned int num_slots = system_state_->boot_control()->GetNumSlots(); in UpdateAttempter() local
757 LOG(INFO) << " Installed slots: " << num_slots; in UpdateAttempter()
761 if (current_slot == BootControlInterface::kInvalidSlot || num_slots < 2) { in UpdateAttempter()
767 for (BootControlInterface::Slot slot = 0; slot < num_slots; slot++) { in UpdateAttempter()