Home | History | Annotate | Download | only in keymaster

Lines Matching refs:elems_

38     elems_ = builder.set.elems_;
39 builder.set.elems_ = NULL;
74 memcpy(new_elems, elems_, sizeof(*elems_) * elems_size_);
75 delete[] elems_;
76 elems_ = new_elems;
96 if (is_blob_tag(elems_[i].tag))
97 elems_[i].blob.data = new_data + (elems_[i].blob.data - indirect_data_);
107 elems_ = set.elems_;
114 set.elems_ = nullptr;
137 memcpy(elems_, elems, sizeof(keymaster_key_param_t) * count);
150 qsort(elems_, elems_size_, sizeof(*elems_),
159 if (elems_[i - 1].tag == KM_TAG_INVALID)
161 else if (keymaster_param_compare(elems_ + i - 1, elems_ + i) == 0) {
165 elems_[i - 1].tag = KM_TAG_INVALID;
169 if (size() > 0 && elems_[size() - 1].tag == KM_TAG_INVALID)
179 memmove(elems_, elems_ + invalid_count, size() * sizeof(*elems_));
208 while (i < (int)elems_size_ && elems_[i].tag != tag)
222 elems_[i] = elems_[i + 1];
229 return elems_[at];
237 return elems_[at];
278 elems_[elems_size_++] = elem;
389 size += serialized_size(elems_[i]);
397 sizeof(uint32_t) + // Number of elems_
398 sizeof(uint32_t) + // Size of elems_
399 SerializedSizeOfElements(); // elems_
407 buf = serialize(elems_[i], buf, end, indirect_data_);
434 // elems_ arrays which are clearly too large to be reasonable.
437 *buf_ptr + (elements_count * sizeof(*elems_)) < *buf_ptr) {
449 if (!deserialize(elems_ + i, buf_ptr, elements_end, indirect_data_, indirect_end)) {
465 if (indirect_data_size_ != ComputeIndirectDataSize(elems_, elems_size_)) {
474 memset_s(elems_, 0, elems_size_ * sizeof(keymaster_key_param_t));
483 delete[] elems_;
486 elems_ = NULL;
510 if (is_blob_tag(elems_[i].tag)) {
511 memcpy(indirect_data_pos, elems_[i].blob.data, elems_[i].blob.data_length);
512 elems_[i].blob.data = indirect_data_pos;
513 indirect_data_pos += elems_[i].blob.data_length;
532 *val = elems_[pos].enumerated;
547 *val = elems_[pos].enumerated;
556 *val = elems_[pos].integer;
571 *val = elems_[pos].integer;
580 *val = elems_[pos].long_integer;
595 *val = elems_[pos].long_integer;
604 *val = elems_[pos].date_time;
613 *val = elems_[pos].blob;
622 assert(elems_[pos].boolean);
623 return elems_[pos].boolean;