Searched defs:slot (Results 1 - 15 of 15) sorted by relevance

/system/core/fs_mgr/
H A Dfs_mgr_slotselect.cpp25 // - androidboot.slot = a or b OR
29 std::string slot; local
32 if (fs_mgr_get_boot_config("slot", &slot)) {
33 ab_suffix = "_" + slot;
/system/update_engine/common/
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 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_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
/system/update_engine/
H A Dboot_control_recovery.cc94 Slot slot,
97 // doesn't list every slot partition (it uses the slotselect option
105 // |partition_name| and suffix corresponding to |slot|, e.g.
125 const char* suffix = module_->getSuffix(module_, slot);
127 LOG(ERROR) << "boot_control impl returned no suffix for slot "
128 << SlotName(slot);
142 bool BootControlRecovery::IsSlotBootable(Slot slot) const {
143 int ret = module_->isSlotBootable(module_, slot);
145 LOG(ERROR) << "Unable to determine if slot " << SlotName(slot)
93 GetPartitionDevice(const string& partition_name, Slot slot, string* device) const argument
152 MarkSlotUnbootable(Slot slot) argument
162 SetActiveBootSlot(Slot slot) argument
[all...]
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 Domaha_response_handler_action_unittest.cc110 int slot = 1 - fake_system_state_.fake_boot_control()->GetCurrentSlot(); local
111 string key = kPrefsChannelOnSlotPrefix + std::to_string(slot);
180 // Set the other slot as current.
/system/nvram/hal/
H A Dmemory_storage.cpp64 StorageSlot slot; member in struct:nvram::storage::__anon2432::__anon2433
67 // Find the storage slot in |g_spaces| that corresponds to |index|. Returns
68 // |nullptr| if no matching slot exists.
71 if (g_spaces[i].slot.present() && g_spaces[i].index == index) {
72 return &g_spaces[i].slot;
90 StorageSlot* slot = FindSpaceSlot(index); local
91 return slot ? slot->Load(blob) : Status::kNotFound;
95 StorageSlot* slot = FindSpaceSlot(index); local
96 if (slot) {
112 StorageSlot* slot = FindSpaceSlot(index); local
[all...]
/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/nvram/core/tests/
H A Dfake_storage.cpp89 StorageSlot slot; member in struct:nvram::storage::__anon2428::SpaceStorageSlot
95 // Returns the slot pointer or |nullptr| if not found.
98 if (g_spaces[i].slot.present() && g_spaces[i].index == index) {
99 return &g_spaces[i].slot;
106 // Finds or creates the slot for |index|. Returns the slot pointer or |nullptr|
109 StorageSlot* slot = FindSlotForIndex(index); local
110 if (slot) {
111 return slot;
116 if (!g_spaces[i].slot
144 StorageSlot* slot = FindSlotForIndex(index); local
149 StorageSlot* slot = FindOrCreateSlotForIndex(index); local
154 StorageSlot* slot = FindSlotForIndex(index); local
166 StorageSlot* slot = FindOrCreateSlotForIndex(index); local
173 StorageSlot* slot = FindOrCreateSlotForIndex(index); local
[all...]
/system/core/fastboot/
H A Dengine.cpp131 void fb_set_active(const char *slot) argument
134 a = queue_action(OP_COMMAND, "set_active:%s", slot);
135 a->msg = mkmsg("Setting current slot to '%s'", slot);
H A Dfastboot.cpp324 " Sets the flashed slot as active.\n"
327 " supports slots, the slot that has\n"
330 " an inactive slot.\n"
353 " set_active <slot> Sets the active slot. If slots are\n"
390 " --slot <slot> Specify slot name to be used if the\n"
393 " be done on the slot specified.\n"
396 " 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, const 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, const std::function<void(const std::string&)>& func, bool force_slot) argument
1105 const char* slot = slot_override.c_str(); local
1194 const char* slot = NULL; local
1777 std::string slot = verify_slot(transport, std::string(argv[1]), false); local
[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) {
97 CK_SLOT_ID slot; local
98 if (!GetUserSlot(username, &slot)) {
102 ScopedSession session(slot);
137 CK_SLOT_ID slot; local
138 if (!GetUserSlot(username, &slot)) {
142 ScopedSession session(slot);
174 CK_SLOT_ID slot; local
175 if (!GetUserSlot(username, &slot)) {
196 CK_SLOT_ID slot; local
229 CK_SLOT_ID slot; local
364 CK_SLOT_ID slot; local
442 GetUserSlot(const std::string& username, CK_SLOT_ID_PTR slot) argument
[all...]
/system/bt/btif/src/
H A Dbtif_sock_rfc.cc79 uint32_t id; // Non-zero indicates a valid (in-use) slot.
160 LOG_ERROR(LOG_TAG, "%s unable to find RFCOMM slot id: %d", __func__, id);
166 int slot = -1; local
171 slot = i;
174 return (slot == -1) ? NULL : &rfc_slots[slot];
196 rfc_slot_t* slot = find_free_slot(); local
197 if (!slot) {
198 LOG_ERROR(LOG_TAG, "%s unable to find free RFCOMM slot.", __func__);
209 // Increment slot i
305 rfc_slot_t* slot = local
347 rfc_slot_t* slot = local
394 create_server_sdp_record(rfc_slot_t* slot) argument
403 free_rfc_slot_scn(rfc_slot_t* slot) argument
415 cleanup_rfc_slot(rfc_slot_t* slot) argument
446 send_app_scn(rfc_slot_t* slot) argument
474 rfc_slot_t* slot = find_rfc_slot_by_id(id); local
487 rfc_slot_t* slot = find_rfc_slot_by_id(id); local
523 rfc_slot_t* slot = find_rfc_slot_by_id(id); local
547 rfc_slot_t* slot = find_rfc_slot_by_id(id); local
561 rfc_slot_t* slot = find_rfc_slot_by_id(id); local
576 rfc_slot_t* slot = find_rfc_slot_by_id(id); local
691 rfc_slot_t* slot = find_rfc_slot_by_id(id); local
707 rfc_slot_t* slot = find_rfc_slot_by_id(id); local
784 flush_incoming_que_on_wr_signal(rfc_slot_t* slot) argument
817 rfc_slot_t* slot = find_rfc_slot_by_id(user_id); local
862 rfc_slot_t* slot = find_rfc_slot_by_id(id); local
899 rfc_slot_t* slot = find_rfc_slot_by_id(id); local
915 rfc_slot_t* slot = find_rfc_slot_by_id(id); local
[all...]
/system/extras/perfprofd/
H A Dperfprofdcore.cc320 unsigned slot = 0; local
321 argv[slot++] = "/system/bin/dumpsys";
322 argv[slot++] = "media.camera";
323 argv[slot++] = nullptr;
569 unsigned slot = 0; local
570 argv[slot++] = perf_path.c_str();
571 argv[slot++] = "record";
574 argv[slot++] = "-o";
575 argv[slot++] = data_file_path.c_str();
578 argv[slot
[all...]

Completed in 421 milliseconds