Searched refs:slot (Results 1 - 20 of 20) sorted by relevance

/system/extras/tests/bootloader/
H A Dbootctl.py29 """returns current slot number"""
31 return int(self._exec("get-current-slot")[1])
38 def set_active_boot_slot(self, slot):
41 return self._exec("set-active-boot-slot " + str(slot))[0] == 0
43 def set_slot_as_unbootable_slot(self, slot):
46 return self._exec("set-slot-as-unbootable " + str(slot))[0] == 0
48 def is_slot_bootable(self, slot):
49 """Returns true if slot i
[all...]
H A Dhaltest.py34 for slot in range(num_slots):
35 suffix = self.bootctl.get_suffix(slot)
37 suffixes[suffix] = slot
43 Ensure that mark_successful will mark the slot as
45 slot-successful by setting the active slot to the current one."""
49 slot = self.bootctl.get_current_slot()
50 self.assertTrue(self.bootctl.set_active_boot_slot(slot))
51 self.assertFalse(self.bootctl.is_slot_marked_successful(slot))
53 self.assertTrue(self.bootctl.is_slot_marked_successful(slot))
[all...]
/system/update_engine/common/
H A Dfake_boot_control.h35 // The current slot should be bootable.
46 BootControlInterface::Slot slot,
48 if (slot >= num_slots_)
50 auto part_it = devices_[slot].find(partition_name);
51 if (part_it == devices_[slot].end())
57 bool IsSlotBootable(BootControlInterface::Slot slot) const override {
58 return slot < num_slots_ && is_bootable_[slot];
61 bool MarkSlotUnbootable(BootControlInterface::Slot slot) override {
62 if (slot >
84 SetCurrentSlot(BootControlInterface::Slot slot) argument
88 SetPartitionDevice(const std::string partition_name, BootControlInterface::Slot slot, const std::string device) argument
[all...]
H A Dboot_control_interface.h42 // images running from other media can have only one slot, like some USB
43 // image. Systems with only one slot won't be able to update.
46 // Return the slot where we are running the system from. On success, the
51 // Determines the block device for the given partition name and slot number.
52 // The |slot| number must be between 0 and GetNumSlots() - 1 and the
54 // every slot. On success, returns true and stores the block device in
57 Slot slot,
60 // Returns whether the passed |slot| is marked as bootable. Returns false if
61 // the slot is invalid.
62 virtual bool IsSlotBootable(Slot slot) cons
81 SlotName(Slot slot) argument
[all...]
H A Dboot_control_stub.cc35 Slot slot,
41 bool BootControlStub::IsSlotBootable(Slot slot) const {
46 bool BootControlStub::MarkSlotUnbootable(Slot slot) { argument
51 bool BootControlStub::SetActiveBootSlot(Slot slot) { argument
34 GetPartitionDevice(const string& partition_name, Slot slot, string* device) const argument
H A 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/bt/btif/src/
H A Dbtif_sock_rfc.c74 uint32_t id; // Non-zero indicates a valid (in-use) slot.
157 LOG_ERROR(LOG_TAG, "%s unable to find RFCOMM slot id: %d", __func__, id);
163 int slot = -1; local
167 slot = i;
170 return (slot == -1) ? NULL : &rfc_slots[slot];
191 rfc_slot_t *slot = find_free_slot(); local
192 if (!slot) {
193 LOG_ERROR(LOG_TAG, "%s unable to find free RFCOMM slot.", __func__);
203 // Increment slot i
293 rfc_slot_t *slot = alloc_rfc_slot(NULL, service_name, service_uuid, channel, flags, true); local
333 rfc_slot_t *slot = alloc_rfc_slot(bd_addr, NULL, service_uuid, channel, flags, false); local
378 create_server_sdp_record(rfc_slot_t *slot) argument
386 free_rfc_slot_scn(rfc_slot_t *slot) argument
400 cleanup_rfc_slot(rfc_slot_t *slot) argument
431 send_app_scn(rfc_slot_t *slot) argument
457 rfc_slot_t *slot = find_rfc_slot_by_id(id); local
473 rfc_slot_t *slot = find_rfc_slot_by_id(id); local
513 rfc_slot_t *slot = find_rfc_slot_by_id(id); local
538 rfc_slot_t *slot = find_rfc_slot_by_id(id); local
549 rfc_slot_t *slot = find_rfc_slot_by_id(id); local
565 rfc_slot_t *slot = find_rfc_slot_by_id(id); local
673 rfc_slot_t *slot = find_rfc_slot_by_id(id); local
688 rfc_slot_t *slot = find_rfc_slot_by_id(id); local
762 flush_incoming_que_on_wr_signal(rfc_slot_t *slot) argument
794 rfc_slot_t *slot = find_rfc_slot_by_id(user_id); local
841 rfc_slot_t *slot = find_rfc_slot_by_id(id); local
884 rfc_slot_t *slot = find_rfc_slot_by_id(id); local
905 rfc_slot_t *slot = find_rfc_slot_by_id(id); local
[all...]
/system/update_engine/
H A Dboot_control_android.cc95 Slot slot,
98 // doesn't list every slot partition (it uses the slotselect option
106 // |partition_name| and suffix corresponding to |slot|, e.g.
126 const char* suffix = module_->getSuffix(module_, slot);
128 LOG(ERROR) << "boot_control impl returned no suffix for slot "
129 << SlotName(slot);
143 bool BootControlAndroid::IsSlotBootable(Slot slot) const {
144 int ret = module_->isSlotBootable(module_, slot);
146 LOG(ERROR) << "Unable to determine if slot " << SlotName(slot)
94 GetPartitionDevice(const string& partition_name, Slot slot, string* device) const argument
153 MarkSlotUnbootable(Slot slot) argument
163 SetActiveBootSlot(Slot slot) argument
[all...]
H A 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;
H A Dboot_control_chromeos.h38 // some critical failure such as we couldn't determine the slot that we
39 // booted from, the implementation will pretend that there's only one slot and
47 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;
69 // |partition_name| and |slot|. In case of invalid data, returns -1.
71 BootControlInterface::Slot slot) const;
H A Dboot_control_chromeos.cc99 // devices, so we will pretend we have only one slot in that case.
102 << "Booted from a removable device, pretending we have only one slot.";
109 // Search through the slots to see which slot has the partition_num we booted
119 LOG(ERROR) << "Couldn't find the slot number corresponding to the "
128 LOG(INFO) << "Booted from slot " << current_slot_ << " (slot "
143 unsigned int slot,
145 int partition_num = GetPartitionNumber(partition_name, slot);
157 bool BootControlChromeOS::IsSlotBootable(Slot slot) const {
158 int partition_num = GetPartitionNumber(kChromeOSPartitionNameKernel, slot);
142 GetPartitionDevice(const string& partition_name, unsigned int slot, string* device) const argument
174 MarkSlotUnbootable(Slot slot) argument
207 SetActiveBootSlot(Slot slot) argument
[all...]
H A Dupdate_attempter.cc768 LOG(INFO) << " Booted from slot: "
777 for (BootControlInterface::Slot slot = 0; slot < num_slots; slot++) {
778 if (slot != current_slot &&
779 system_state_->boot_control()->IsSlotBootable(slot)) {
780 LOG(INFO) << "Found bootable slot "
781 << BootControlInterface::SlotName(slot);
782 return slot;
785 LOG(INFO) << "No other bootable slot foun
[all...]
H A Domaha_response_handler_action_unittest.cc108 int slot = 1 - fake_system_state_.fake_boot_control()->GetCurrentSlot(); local
109 string key = kPrefsChannelOnSlotPrefix + std::to_string(slot);
178 // Set the other slot as current.
/system/extras/boot_control_copy/
H A Dboot_control_copy.c81 fprintf(stderr, "WARNING: Error determining current slot "
134 int module_setActiveBootSlot(boot_control_module_t *module, unsigned slot) argument
141 if (slot >= 2)
154 info.active_slot = slot;
155 info.slot_info[slot].bootable = true;
158 "_%c", slot + 'a');
166 snprintf(src_name, sizeof(src_name), "boot_%c", slot + 'a');
207 int module_setSlotAsUnbootable(struct boot_control_module *module, unsigned slot) argument
211 if (slot >= 2)
224 info.slot_info[slot]
234 module_isSlotBootable(struct boot_control_module *module, unsigned slot) argument
254 module_getSuffix(boot_control_module_t *module, unsigned slot) argument
[all...]
/system/tpm/attestation/server/
H A Dpkcs11_key_store.cc58 explicit ScopedSession(CK_SLOT_ID slot) : handle_(CK_INVALID_HANDLE) { argument
66 if (C_OpenSession(slot, flags, nullptr, nullptr, &handle_) != CKR_OK) {
101 CK_SLOT_ID slot; local
102 if (!GetUserSlot(username, &slot)) {
106 ScopedSession session(slot);
143 CK_SLOT_ID slot; local
144 if (!GetUserSlot(username, &slot)) {
148 ScopedSession session(slot);
194 CK_SLOT_ID slot; local
195 if (!GetUserSlot(username, &slot)) {
216 CK_SLOT_ID slot; local
251 CK_SLOT_ID slot; local
401 CK_SLOT_ID slot; local
492 GetUserSlot(const std::string& username, CK_SLOT_ID_PTR slot) argument
[all...]
H A Dpkcs11_key_store.h81 // Gets a slot for the given |username| if |is_user_specific| or the system
82 // slot otherwise. Returns false if no appropriate slot is found.
84 CK_SLOT_ID_PTR slot);
/system/extras/perfprofd/
H A Dperfprofdcore.cc305 unsigned slot = 0; local
306 argv[slot++] = "/system/bin/dumpsys";
307 argv[slot++] = "media.camera";
308 argv[slot++] = nullptr;
554 unsigned slot = 0; local
555 argv[slot++] = perf_path.c_str();
556 argv[slot++] = "record";
559 argv[slot++] = "-o";
560 argv[slot++] = data_file_path.c_str();
563 argv[slot
[all...]
/system/core/fastboot/
H A Dfastboot.cpp325 " Sets the flashed slot as active.\n"
328 " supports slots, the slot that has\n"
331 " an inactive slot.\n"
354 " set_active <slot> Sets the active slot. If slots are\n"
391 " --slot <slot> Specify slot name to be used if the\n"
394 " be done on the slot specified.\n"
397 " non-current slot
937 std::string slot = slot_name; local
974 verify_slot(Transport* transport, const std::string& slot) argument
978 do_for_partition(Transport* transport, const std::string& part, const std::string& slot, std::function<void(const std::string&)> func, bool force_slot) argument
1011 do_for_partitions(Transport* transport, const std::string& part, const std::string& slot, std::function<void(const std::string&)> func, bool force_slot) argument
1105 const char* slot = slot_override.c_str(); local
1192 const char* slot = NULL; local
1738 std::string slot = verify_slot(transport, std::string(argv[1]), false); local
[all...]
H A Dfastboot.h68 void fb_set_active(const char *slot);
H A Dengine.cpp133 void fb_set_active(const char *slot) argument
136 a = queue_action(OP_COMMAND, "set_active:%s", slot);
137 a->msg = mkmsg("Setting current slot to '%s'", slot);

Completed in 338 milliseconds