Home
last modified time | relevance | path

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

/system/keymaster/android_keymaster/
Dauthorization_set.cpp123 bool AuthorizationSet::Reinitialize(const keymaster_key_param_t* elems, const size_t count) { in Reinitialize() argument
126 if (elems == nullptr || count == 0) { in Reinitialize()
134 if (!reserve_indirect(ComputeIndirectDataSize(elems, count))) in Reinitialize()
137 memcpy(elems_, elems, sizeof(keymaster_key_param_t) * count); in Reinitialize()
535 size_t AuthorizationSet::ComputeIndirectDataSize(const keymaster_key_param_t* elems, size_t count) { in ComputeIndirectDataSize() argument
538 if (is_blob_tag(elems[i].tag)) { in ComputeIndirectDataSize()
539 size += elems[i].blob.data_length; in ComputeIndirectDataSize()
/system/netd/resolv/
Dgetaddrinfo.cpp1338 struct addrinfo_sort_elem* elems; in _rfc6724_sort() local
1346 elems = (struct addrinfo_sort_elem*) malloc(nelem * sizeof(struct addrinfo_sort_elem)); in _rfc6724_sort()
1347 if (elems == NULL) { in _rfc6724_sort()
1358 elems[i].ai = cur; in _rfc6724_sort()
1359 elems[i].original_order = i; in _rfc6724_sort()
1361 has_src_addr = _find_src_addr(cur->ai_addr, &elems[i].src_addr.sa, mark, uid); in _rfc6724_sort()
1365 elems[i].has_src_addr = has_src_addr; in _rfc6724_sort()
1369 qsort((void*) elems, nelem, sizeof(struct addrinfo_sort_elem), _rfc6724_compare); in _rfc6724_sort()
1371 list_sentinel->ai_next = elems[0].ai; in _rfc6724_sort()
1373 elems[i].ai->ai_next = elems[i + 1].ai; in _rfc6724_sort()
[all …]
/system/keymaster/include/keymaster/
Dauthorization_set.h57 AuthorizationSet(const keymaster_key_param_t* elems, size_t count) : indirect_data_(nullptr) { in AuthorizationSet() argument
59 Reinitialize(elems, count); in AuthorizationSet()
117 bool Reinitialize(const keymaster_key_param_t* elems, size_t count);
448 static size_t ComputeIndirectDataSize(const keymaster_key_param_t* elems, size_t count);
/system/chre/external/flatbuffers/include/flatbuffers/
Dflatbuffers.h1174 std::vector<T> elems(vector_size);
1175 for (size_t i = 0; i < vector_size; i++) elems[i] = f(i);
1176 return CreateVector(elems);