Home
last modified time | relevance | path

Searched refs:entries (Results 1 – 25 of 66) sorted by relevance

123

/system/extras/memory_replay/
DPointers.cpp79 for (size_t entries = max_pointers_; entries != 0; entries--) { in Find() local
92 for (size_t entries = 0; entries < max_pointers_; entries++) { in FindEmpty() local
DThreads.cpp98 for (size_t entries = num_threads_; entries != 0; ) { in FindThread() local
104 entries--; in FindThread()
129 for (size_t entries = 0; entries < max_threads_; entries++) { in FindEmptyEntry() local
/system/media/camera/docs/
Dmetadata_model_test.py36 combined_ent = [i for i in combined_children_namespace.entries]
46 self.assertIn(entry1, new_ins.entries)
47 self.assertIn(entry2, new_ins.entries)
83 self.assertIn(entry1, combined_kind.entries)
84 self.assertIn(entry2, combined_kind.entries)
116 combined_ent = [i for i in combined_children_kind.entries]
126 self.assertIn(entry1, new_ins.entries)
127 self.assertIn(entry2, new_ins.entries)
Dmetadata_model.py401 if p not in tag.entries:
411 if p not in type_node.entries:
566 entry_dict = self._dictionary_by_name(parent.entries)
579 if entry not in parent.entries:
625 def entries(self): member in Tag
655 def entries(self): member in Typedef
772 combined._entries.extend(k.entries)
801 def entries(self): member in Kind
806 for i in self.entries:
816 for i in self.entries:
[all …]
Dmetadata_helpers.py101 for entry in i.entries:
1209 def filter_visibility(entries, visibilities): argument
1220 return (e for e in entries if e.applied_visibility in visibilities)
1222 def remove_synthetic(entries): argument
1232 return (e for e in entries if not e.synthetic)
1234 def filter_ndk_visible(entries): argument
1244 return (e for e in entries if e.applied_ndk_visible == 'true')
Dndk_camera_metadata_tags.mako76 entries = remove_synthetic(find_unique_entries(sec))
77 skip_sec = all(e.applied_ndk_visible == "false" for e in entries)
121 * Enumeration definitions for the various entries that need them
DCameraMetadataEnums.mako59 …% for entry in filter_visibility(inner_namespace.entries, ('hidden','public', 'ndk_public', 'java_…
68 get_children_by_filtering_kind(section, xml_name, 'entries'), \
Dcamera_metadata_tags.mako71 * Main enum for defining camera metadata tags. New entries must always go
92 * Enumeration definitions for the various entries that need them
/system/keymaster/
Dasymmetric_key.cpp223 if (chain->entries) { in allocate_cert_chain()
225 delete[] chain->entries[i].data; in allocate_cert_chain()
226 delete[] chain->entries; in allocate_cert_chain()
230 chain->entries = new keymaster_blob_t[entry_count]; in allocate_cert_chain()
231 if (!chain->entries) { in allocate_cert_chain()
252 chain->entries[0].data = nullptr; // Leave empty for the leaf certificate. in copy_attestation_chain()
253 chain->entries[1].data_length = 0; in copy_attestation_chain()
256 chain->entries[i + 1] = attest_key_chain->entries[i]; in copy_attestation_chain()
257 attest_key_chain->entries[i].data = nullptr; in copy_attestation_chain()
351 const uint8_t* p = cert_chain->entries[1].data; in GenerateAttestation()
[all …]
Dsoft_keymaster_context.cpp793 chain->entries = new keymaster_blob_t[kCertificateChainLength]; in AttestationChain()
794 if (!chain->entries) in AttestationChain()
797 memset(chain->entries, 0, sizeof(chain->entries[0]) * kCertificateChainLength); in AttestationChain()
804 chain->entries[entry].data = dup_array(kRsaAttestCert); in AttestationChain()
805 if (!chain->entries[entry].data) in AttestationChain()
807 chain->entries[entry].data_length = array_length(kRsaAttestCert); in AttestationChain()
809 chain->entries[entry].data = dup_array(kRsaAttestRootCert); in AttestationChain()
810 if (!chain->entries[entry].data) in AttestationChain()
812 chain->entries[entry].data_length = array_length(kRsaAttestRootCert); in AttestationChain()
817 chain->entries[entry].data = dup_array(kEcAttestCert); in AttestationChain()
[all …]
Dandroid_keymaster_messages.cpp465 delete[] certificate_chain.entries[i].data; in ~AttestKeyResponse()
466 delete[] certificate_chain.entries; in ~AttestKeyResponse()
474 if (certificate_chain.entries) { in AllocateChain()
476 delete[] certificate_chain.entries[i].data; in AllocateChain()
477 delete[] certificate_chain.entries; in AllocateChain()
481 certificate_chain.entries = new keymaster_blob_t[entry_count]; in AllocateChain()
482 if (!certificate_chain.entries) { in AllocateChain()
487 memset(certificate_chain.entries, 0, sizeof(certificate_chain.entries[0]) * entry_count); in AllocateChain()
495 result += certificate_chain.entries[i].data_length; in NonErrorSerializedSize()
503 buf = append_size_and_data_to_buf(buf, end, certificate_chain.entries[i].data, in NonErrorSerialize()
[all …]
Dandroid_keymaster_messages_test.cpp563 msg.certificate_chain.entries[0] = {dup_buffer("foo", 3), 3}; in TEST()
564 msg.certificate_chain.entries[1] = {dup_buffer("bar", 3), 3}; in TEST()
565 msg.certificate_chain.entries[2] = {dup_buffer("baz", 3), 3}; in TEST()
570 EXPECT_NE(nullptr, chain->entries); in TEST()
572 EXPECT_EQ(3U, chain->entries[0].data_length); in TEST()
573 EXPECT_EQ(0, memcmp("foo", chain->entries[0].data, 3)); in TEST()
574 EXPECT_EQ(3U, chain->entries[1].data_length); in TEST()
575 EXPECT_EQ(0, memcmp("bar", chain->entries[1].data, 3)); in TEST()
576 EXPECT_EQ(3U, chain->entries[2].data_length); in TEST()
577 EXPECT_EQ(0, memcmp("baz", chain->entries[2].data, 3)); in TEST()
Dsoft_keymaster_device.cpp1058 cert_chain->entries = nullptr; in attest_key()
1079 cert_chain->entries = reinterpret_cast<keymaster_blob_t*>( in attest_key()
1080 malloc(rsp_chain.entry_count * sizeof(*cert_chain->entries))); in attest_key()
1081 if (!cert_chain->entries) in attest_key()
1084 for (keymaster_blob_t& entry : array_range(cert_chain->entries, cert_chain->entry_count)) in attest_key()
1089 for (keymaster_blob_t& entry : array_range(rsp_chain.entries, rsp_chain.entry_count)) { in attest_key()
1090 cert_chain->entries[i].data = reinterpret_cast<uint8_t*>(malloc(entry.data_length)); in attest_key()
1091 if (!cert_chain->entries[i].data) { in attest_key()
1095 cert_chain->entries[i].data_length = entry.data_length; in attest_key()
1096 memcpy(const_cast<uint8_t*>(cert_chain->entries[i].data), entry.data, entry.data_length); in attest_key()
/system/bt/osi/src/
Dconfig.c45 list_t *entries; member
116 for (const list_node_t *node_entry = list_begin(sec->entries); in config_new_clone()
117 node_entry != list_end(sec->entries); in config_new_clone()
219 …for (const list_node_t *node = list_begin(sec->entries); node != list_end(sec->entries); node = li… in config_set_string()
229 list_append(sec->entries, entry); in config_set_string()
253 return list_remove(sec->entries, entry); in config_remove_key()
328 …for (const list_node_t *enode = list_begin(section->entries); enode != list_end(section->entries);… in config_save()
452 section->entries = list_new(entry_free); in section_new()
462 list_free(section->entries); in section_free()
499 …for (const list_node_t *node = list_begin(sec->entries); node != list_end(sec->entries); node = li… in entry_find()
/system/core/cpio/
Dmkbootfs.c172 int entries = 0; in _archive_dir() local
186 if (entries >= size) { in _archive_dir()
195 names[entries] = strdup(de->d_name); in _archive_dir()
196 if (names[entries] == NULL) { in _archive_dir()
201 ++entries; in _archive_dir()
204 qsort(names, entries, sizeof(char*), compare); in _archive_dir()
206 for (i = 0; i < entries; ++i) { in _archive_dir()
/system/extras/ext4_utils/
Dmake_ext4fs.c150 int entries = 0; in build_directory_structure() local
162 entries = scandir(full_path, &namelist, filter_dot, (void*)alphasort); in build_directory_structure()
163 if (entries < 0) { in build_directory_structure()
170 entries = scandir(full_path, &namelist, filter_dot, (void*)alphasort); in build_directory_structure()
172 if (entries < 0) { in build_directory_structure()
181 for (i = 0; i < entries; i++) in build_directory_structure()
184 if (i == entries) in build_directory_structure()
188 dentries = calloc(entries, sizeof(struct dentry)); in build_directory_structure()
192 for (i = 0; i < entries; i++) { in build_directory_structure()
206 entries--; in build_directory_structure()
[all …]
Dcontents.c47 static u32 dentry_size(u32 entries, struct dentry *dentries) in dentry_size() argument
53 for (i = 0; i < entries; i++) { in dentry_size()
99 u32 make_directory(u32 dir_inode_num, u32 entries, struct dentry *dentries, in make_directory() argument
111 blocks = DIV_ROUND_UP(dentry_size(entries, dentries), info.block_size); in make_directory()
158 for (i = 0; i < entries; i++) { in make_directory()
161 if (offset > len || (offset == len && i != entries - 1)) in make_directory()
Dcontents.h36 u32 make_directory(u32 dir_inode_num, u32 entries, struct dentry *dentries,
/system/core/fs_mgr/
Dfs_mgr_fstab.c247 int cnt, entries; in fs_mgr_read_fstab() local
264 entries = 0; in fs_mgr_read_fstab()
278 entries++; in fs_mgr_read_fstab()
281 if (!entries) { in fs_mgr_read_fstab()
288 fstab->num_entries = entries; in fs_mgr_read_fstab()
314 if (cnt >= entries) { in fs_mgr_read_fstab()
/system/extras/tests/mmc_tracepoints/
DREADME25 It includes read, write and discard entries. The discard entries came from
/system/sepolicy/tools/fc_sort/
DREADME1 fc_sort is a tool used for sorting the file_contexts entries based on a heuristic that is
/system/core/libcutils/
Dandroid_reboot.c95 static void free_entries(struct listnode* entries) in free_entries() argument
99 list_for_each_safe(node, n, entries) { in free_entries()
/system/connectivity/shill/dbus/
Dchromeos_service_dbus_adaptor.cc202 brillo::ErrorPtr* /*error*/, map<dbus::ObjectPath, string>* entries) { in GetLoadableProfileEntries() argument
207 entries->insert( in GetLoadableProfileEntries()
/system/extras/perfprofd/quipper/kernel-headers/tools/perf/
Dperf.h158 struct branch_entry entries[0]; member
/system/keymaster/include/keymaster/
Dandroid_keymaster_utils.h322 delete[] p->entries[i].data; in operator()
323 delete[] p->entries; in operator()

123