Home
last modified time | relevance | path

Searched refs:table_ (Results 1 – 4 of 4) sorted by relevance

/system/keymaster/android_keymaster/
Doperation_table.cpp24 if (!table_) { in Add()
25 table_.reset(new (std::nothrow) OperationPtr[table_size_]); in Add()
26 if (!table_) return KM_ERROR_MEMORY_ALLOCATION_FAILED; in Add()
29 if (!table_[i]) { in Add()
30 table_[i] = move(operation); in Add()
40 if (!table_.get()) return nullptr; in Find()
43 if (table_[i] && table_[i]->operation_handle() == op_handle) return table_[i].get(); in Find()
49 if (!table_.get()) return false; in Delete()
52 if (table_[i] && table_[i]->operation_handle() == op_handle) { in Delete()
53 table_[i].reset(); in Delete()
/system/core/fs_mgr/libvbmeta/
Dbuilder.cpp86 if ((table_.header.in_use & (1 << i)) == 0) return i; in GetEmptySlot()
93 table_.descriptors.begin(), table_.descriptors.end(), in AddVBMetaImage()
97 if (desc != table_.descriptors.end()) { in AddVBMetaImage()
112 table_.descriptors.emplace_back(std::move(new_desc)); in AddVBMetaImage()
115 table_.header.in_use |= (1 << slot_number); in AddVBMetaImage()
123 table_.descriptors.begin(), table_.descriptors.end(), in DeleteVBMetaImage()
126 if (desc != table_.descriptors.end()) { in DeleteVBMetaImage()
128 table_.header.in_use &= ~(1 << desc->vbmeta_index); in DeleteVBMetaImage()
131 table_.descriptors.erase(desc); in DeleteVBMetaImage()
138 for (const auto& desc : table_.descriptors) { in ExportVBMetaTable()
[all …]
Dbuilder.h49 VBMetaTable table_; variable
/system/keymaster/include/keymaster/
Doperation_table.h38 UniquePtr<OperationPtr[]> table_;