Home
last modified time | relevance | path

Searched refs:slot (Results 1 – 22 of 22) sorted by relevance

/system/bt/btif/src/
Dbtif_sock_rfc.c163 int slot = -1; in find_rfc_slot_by_pending_sdp() local
167 slot = i; in find_rfc_slot_by_pending_sdp()
170 return (slot == -1) ? NULL : &rfc_slots[slot]; in find_rfc_slot_by_pending_sdp()
191 rfc_slot_t *slot = find_free_slot(); in alloc_rfc_slot() local
192 if (!slot) { in alloc_rfc_slot()
207 slot->fd = fds[0]; in alloc_rfc_slot()
208 slot->app_fd = fds[1]; in alloc_rfc_slot()
209 slot->security = security; in alloc_rfc_slot()
210 slot->scn = channel; in alloc_rfc_slot()
211 slot->app_uid = -1; in alloc_rfc_slot()
[all …]
/system/update_engine/common/
Dfake_boot_control.h46 BootControlInterface::Slot slot, in GetPartitionDevice() argument
48 if (slot >= num_slots_) in GetPartitionDevice()
50 auto part_it = devices_[slot].find(partition_name); in GetPartitionDevice()
51 if (part_it == devices_[slot].end()) in GetPartitionDevice()
57 bool IsSlotBootable(BootControlInterface::Slot slot) const override { in IsSlotBootable() argument
58 return slot < num_slots_ && is_bootable_[slot]; in IsSlotBootable()
61 bool MarkSlotUnbootable(BootControlInterface::Slot slot) override { in MarkSlotUnbootable() argument
62 if (slot >= num_slots_) in MarkSlotUnbootable()
64 is_bootable_[slot] = false; in MarkSlotUnbootable()
68 bool SetActiveBootSlot(Slot slot) override { return true; } in SetActiveBootSlot() argument
[all …]
Dboot_control_interface.h57 Slot slot,
62 virtual bool IsSlotBootable(Slot slot) const = 0;
66 virtual bool MarkSlotUnbootable(Slot slot) = 0;
72 virtual bool SetActiveBootSlot(Slot slot) = 0;
81 static std::string SlotName(Slot slot) { in SlotName() argument
82 if (slot == kInvalidSlot) in SlotName()
84 if (slot < 26) in SlotName()
85 return std::string(1, 'A' + slot); in SlotName()
Dboot_control_stub.cc35 Slot slot, in GetPartitionDevice() argument
41 bool BootControlStub::IsSlotBootable(Slot slot) const { in IsSlotBootable()
46 bool BootControlStub::MarkSlotUnbootable(Slot slot) { in MarkSlotUnbootable() argument
51 bool BootControlStub::SetActiveBootSlot(Slot slot) { in SetActiveBootSlot() argument
Dboot_control_stub.h42 BootControlInterface::Slot slot,
44 bool IsSlotBootable(BootControlInterface::Slot slot) const override;
45 bool MarkSlotUnbootable(BootControlInterface::Slot slot) override;
46 bool SetActiveBootSlot(BootControlInterface::Slot slot) override;
/system/update_engine/
Dboot_control_chromeos.cc143 unsigned int slot, in GetPartitionDevice() argument
145 int partition_num = GetPartitionNumber(partition_name, slot); in GetPartitionDevice()
157 bool BootControlChromeOS::IsSlotBootable(Slot slot) const { in IsSlotBootable()
158 int partition_num = GetPartitionNumber(kChromeOSPartitionNameKernel, slot); in IsSlotBootable()
174 bool BootControlChromeOS::MarkSlotUnbootable(Slot slot) { in MarkSlotUnbootable() argument
175 LOG(INFO) << "Marking slot " << SlotName(slot) << " unbootable"; in MarkSlotUnbootable()
177 if (slot == current_slot_) { in MarkSlotUnbootable()
182 int partition_num = GetPartitionNumber(kChromeOSPartitionNameKernel, slot); in MarkSlotUnbootable()
207 bool BootControlChromeOS::SetActiveBootSlot(Slot slot) { in SetActiveBootSlot() argument
208 LOG(INFO) << "Marking slot " << SlotName(slot) << " active."; in SetActiveBootSlot()
[all …]
Dboot_control_android.cc98 Slot slot, in GetPartitionDevice() argument
143 const char* suffix = module_->getSuffix(module_, slot); in GetPartitionDevice()
146 << SlotName(slot); in GetPartitionDevice()
160 bool BootControlAndroid::IsSlotBootable(Slot slot) const { in IsSlotBootable()
161 int ret = module_->isSlotBootable(module_, slot); in IsSlotBootable()
163 LOG(ERROR) << "Unable to determine if slot " << SlotName(slot) in IsSlotBootable()
170 bool BootControlAndroid::MarkSlotUnbootable(Slot slot) { in MarkSlotUnbootable() argument
171 int ret = module_->setSlotAsUnbootable(module_, slot); in MarkSlotUnbootable()
173 LOG(ERROR) << "Unable to mark slot " << SlotName(slot) in MarkSlotUnbootable()
180 bool BootControlAndroid::SetActiveBootSlot(Slot slot) { in SetActiveBootSlot() argument
[all …]
Dboot_control_chromeos.h47 BootControlInterface::Slot slot,
49 bool IsSlotBootable(BootControlInterface::Slot slot) const override;
50 bool MarkSlotUnbootable(BootControlInterface::Slot slot) override;
51 bool SetActiveBootSlot(BootControlInterface::Slot slot) override;
71 BootControlInterface::Slot slot) const;
Dboot_control_android.h44 BootControlInterface::Slot slot,
46 bool IsSlotBootable(BootControlInterface::Slot slot) const override;
47 bool MarkSlotUnbootable(BootControlInterface::Slot slot) override;
48 bool SetActiveBootSlot(BootControlInterface::Slot slot) override;
Dupdate_attempter.cc776 for (BootControlInterface::Slot slot = 0; slot < num_slots; slot++) { in GetRollbackSlot() local
777 if (slot != current_slot && in GetRollbackSlot()
778 system_state_->boot_control()->IsSlotBootable(slot)) { in GetRollbackSlot()
780 << BootControlInterface::SlotName(slot); in GetRollbackSlot()
781 return slot; in GetRollbackSlot()
Domaha_response_handler_action_unittest.cc108 int slot = 1 - fake_system_state_.fake_boot_control()->GetCurrentSlot(); in DoTest() local
109 string key = kPrefsChannelOnSlotPrefix + std::to_string(slot); in DoTest()
/system/extras/boot_control_copy/
Dboot_control_copy.c134 int module_setActiveBootSlot(boot_control_module_t *module, unsigned slot) in module_setActiveBootSlot() argument
141 if (slot >= 2) in module_setActiveBootSlot()
154 info.active_slot = slot; in module_setActiveBootSlot()
155 info.slot_info[slot].bootable = true; in module_setActiveBootSlot()
158 "_%c", slot + 'a'); in module_setActiveBootSlot()
166 snprintf(src_name, sizeof(src_name), "boot_%c", slot + 'a'); in module_setActiveBootSlot()
207 int module_setSlotAsUnbootable(struct boot_control_module *module, unsigned slot) in module_setSlotAsUnbootable() argument
211 if (slot >= 2) in module_setSlotAsUnbootable()
224 info.slot_info[slot].bootable = false; in module_setSlotAsUnbootable()
234 int module_isSlotBootable(struct boot_control_module *module, unsigned slot) in module_isSlotBootable() argument
[all …]
/system/tpm/attestation/server/
Dpkcs11_key_store.cc58 explicit ScopedSession(CK_SLOT_ID slot) : handle_(CK_INVALID_HANDLE) { in ScopedSession() argument
66 if (C_OpenSession(slot, flags, nullptr, nullptr, &handle_) != CKR_OK) { in ScopedSession()
101 CK_SLOT_ID slot; in Read() local
102 if (!GetUserSlot(username, &slot)) { in Read()
106 ScopedSession session(slot); in Read()
143 CK_SLOT_ID slot; in Write() local
144 if (!GetUserSlot(username, &slot)) { in Write()
148 ScopedSession session(slot); in Write()
194 CK_SLOT_ID slot; in Delete() local
195 if (!GetUserSlot(username, &slot)) { in Delete()
[all …]
Dpkcs11_key_store.h84 CK_SLOT_ID_PTR slot);
/system/extras/perfprofd/
Dperfprofdcore.cc305 unsigned slot = 0; in get_camera_active() local
306 argv[slot++] = "/system/bin/dumpsys"; in get_camera_active()
307 argv[slot++] = "media.camera"; in get_camera_active()
308 argv[slot++] = nullptr; in get_camera_active()
554 unsigned slot = 0; in invoke_perf() local
555 argv[slot++] = perf_path.c_str(); in invoke_perf()
556 argv[slot++] = "record"; in invoke_perf()
559 argv[slot++] = "-o"; in invoke_perf()
560 argv[slot++] = data_file_path.c_str(); in invoke_perf()
563 argv[slot++] = "-c"; in invoke_perf()
[all …]
/system/core/fastboot/
Dfastboot.cpp860 static std::string verify_slot(Transport* transport, const char *slot, bool allow_all) { in verify_slot() argument
861 if (strcmp(slot, "all") == 0) { in verify_slot()
876 if (strcmp(slot, "other") == 0) { in verify_slot()
892 if (suffix == slot) in verify_slot()
893 return slot; in verify_slot()
895 fprintf(stderr, "Slot %s does not exist. supported slots are:\n", slot); in verify_slot()
902 static std::string verify_slot(Transport* transport, const char *slot) { in verify_slot() argument
903 return verify_slot(transport, slot, true); in verify_slot()
906 static void do_for_partition(Transport* transport, const char *part, const char *slot, in do_for_partition() argument
916 if (!slot || slot[0] == 0) { in do_for_partition()
[all …]
Dfastboot.h68 void fb_set_active(const char *slot);
Dengine.cpp133 void fb_set_active(const char *slot) in fb_set_active() argument
136 a = queue_action(OP_COMMAND, "set_active:%s", slot); in fb_set_active()
137 a->msg = mkmsg("Setting current slot to '%s'", slot); in fb_set_active()
/system/tpm/trunks/generator/
Draw_commands.txt1851 need an object 'slot'. The most common case where this might be returned is
1917 need a session 'slot'. The most common case where this might be returned is
3531 slot
3629 slot in the TPM and sessions in the TPM do not survive any TPM2_Startup(). However, if a created
4531 there is no free slot for the object. This implementation does not
4894 no available object slot
5327 if there is no free slot for an object
7902 no available object slot
18181 object context slot is available or to deal with the consequences of having the TPM select an
18272 // If a free slot was not available, then free up a slot.
[all …]
Draw_commands_fixed.txt1851 need an object 'slot'. The most common case where this might be returned is
1917 need a session 'slot'. The most common case where this might be returned is
3531 slot
3629 slot in the TPM and sessions in the TPM do not survive any TPM2_Startup(). However, if a created
4533 there is no free slot for the object. This implementation does not
4896 no available object slot
5329 if there is no free slot for an object
7913 no available object slot
18192 object context slot is available or to deal with the consequences of having the TPM select an
18283 // If a free slot was not available, then free up a slot.
[all …]
Draw_structures.txt9132 slot in RAM when the persistent object is referenced in a command. The TRM
9133 is required to make sure that an object slot is available.
Draw_structures_fixed.txt9160 slot in RAM when the persistent object is referenced in a command. The TRM
9161 is required to make sure that an object slot is available.