Lines Matching refs:elems_

38     elems_ = builder.set.elems_;  in AuthorizationSet()
39 builder.set.elems_ = NULL; in AuthorizationSet()
74 memcpy(new_elems, elems_, sizeof(*elems_) * elems_size_); in reserve_elems()
75 delete[] elems_; in reserve_elems()
76 elems_ = new_elems; in reserve_elems()
96 if (is_blob_tag(elems_[i].tag)) in reserve_indirect()
97 elems_[i].blob.data = new_data + (elems_[i].blob.data - indirect_data_); in reserve_indirect()
107 elems_ = set.elems_; in MoveFrom()
114 set.elems_ = nullptr; in MoveFrom()
137 memcpy(elems_, elems, sizeof(keymaster_key_param_t) * count); in Reinitialize()
150 qsort(elems_, elems_size_, sizeof(*elems_), in Sort()
159 if (elems_[i - 1].tag == KM_TAG_INVALID) in Deduplicate()
161 else if (keymaster_param_compare(elems_ + i - 1, elems_ + i) == 0) { in Deduplicate()
165 elems_[i - 1].tag = KM_TAG_INVALID; in Deduplicate()
169 if (size() > 0 && elems_[size() - 1].tag == KM_TAG_INVALID) in Deduplicate()
179 memmove(elems_, elems_ + invalid_count, size() * sizeof(*elems_)); in Deduplicate()
200 if (index != -1 && keymaster_param_compare(&elems_[index], &set.params[i]) == 0) { in Difference()
234 while (i < (int)elems_size_ && elems_[i].tag != tag) in find()
248 elems_[i] = elems_[i + 1]; in erase()
255 return elems_[at]; in operator []()
263 return elems_[at]; in operator []()
304 elems_[elems_size_++] = elem; in push_back()
415 size += serialized_size(elems_[i]); in SerializedSizeOfElements()
433 buf = serialize(elems_[i], buf, end, indirect_data_); in Serialize()
463 *buf_ptr + (elements_count * sizeof(*elems_)) < *buf_ptr) { in DeserializeElementsData()
475 if (!deserialize(elems_ + i, buf_ptr, elements_end, indirect_data_, indirect_end)) { in DeserializeElementsData()
491 if (indirect_data_size_ != ComputeIndirectDataSize(elems_, elems_size_)) { in Deserialize()
500 memset_s(elems_, 0, elems_size_ * sizeof(keymaster_key_param_t)); in Clear()
509 delete[] elems_; in FreeData()
512 elems_ = NULL; in FreeData()
536 if (is_blob_tag(elems_[i].tag)) { in CopyIndirectData()
537 memcpy(indirect_data_pos, elems_[i].blob.data, elems_[i].blob.data_length); in CopyIndirectData()
538 elems_[i].blob.data = indirect_data_pos; in CopyIndirectData()
539 indirect_data_pos += elems_[i].blob.data_length; in CopyIndirectData()
558 *val = elems_[pos].enumerated; in GetTagValueEnum()
573 *val = elems_[pos].enumerated; in GetTagValueEnumRep()
582 *val = elems_[pos].integer; in GetTagValueInt()
597 *val = elems_[pos].integer; in GetTagValueIntRep()
606 *val = elems_[pos].long_integer; in GetTagValueLong()
621 *val = elems_[pos].long_integer; in GetTagValueLongRep()
630 *val = elems_[pos].date_time; in GetTagValueDate()
639 *val = elems_[pos].blob; in GetTagValueBlob()
648 assert(elems_[pos].boolean); in GetTagValueBool()
649 return elems_[pos].boolean; in GetTagValueBool()