Home
last modified time | relevance | path

Searched refs:num_slots (Results 1 – 8 of 8) 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/extras/bootctl/
Dbootctl.c70 int num_slots = module->getNumberSlots(module); in do_get_number_slots() local
71 fprintf(stdout, "%d\n", num_slots); in do_get_number_slots()
/system/tpm/attestation/server/
Dpkcs11_key_store.cc505 CK_ULONG num_slots = 0; in GetUserSlot() local
506 rv = C_GetSlotList(CK_TRUE, nullptr, &num_slots); in GetUserSlot()
511 std::unique_ptr<CK_SLOT_ID[]> slot_list(new CK_SLOT_ID[num_slots]); in GetUserSlot()
512 rv = C_GetSlotList(CK_TRUE, slot_list.get(), &num_slots); in GetUserSlot()
518 for (CK_ULONG i = 0; i < num_slots; ++i) { in GetUserSlot()
/system/update_engine/
Dupdate_attempter.cc763 const unsigned int num_slots = system_state_->boot_control()->GetNumSlots(); in GetRollbackSlot() local
767 LOG(INFO) << " Installed slots: " << num_slots; in GetRollbackSlot()
771 if (current_slot == BootControlInterface::kInvalidSlot || num_slots < 2) { in GetRollbackSlot()
777 for (BootControlInterface::Slot slot = 0; slot < num_slots; slot++) { in GetRollbackSlot()