Home
last modified time | relevance | path

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

/system/media/camera/src/
Dcamera_metadata.c98 metadata_size_t entry_count; member
150 _Static_assert(offsetof(camera_metadata_t, entry_count) == 12,
283 metadata->entry_count = 0; in place_camera_metadata()
302 size_t calculate_camera_metadata_size(size_t entry_count, in calculate_camera_metadata_size() argument
307 memory_needed += sizeof(camera_metadata_buffer_entry_t[entry_count]); in calculate_camera_metadata_size()
325 return calculate_camera_metadata_size(metadata->entry_count, in get_camera_metadata_compact_size()
330 return metadata->entry_count; in get_camera_metadata_entry_count()
357 place_camera_metadata(dst, dst_size, src->entry_count, src->data_count); in copy_camera_metadata()
360 metadata->entry_count = src->entry_count; in copy_camera_metadata()
365 sizeof(camera_metadata_buffer_entry_t[metadata->entry_count])); in copy_camera_metadata()
[all …]
/system/libufdt/utils/src/
Dmkdtimg_core.c58 uint32_t entry_count; member
179 uint32_t entry_count, uint32_t total_size, in output_img_header() argument
184 header.dt_entry_count = cpu_to_fdt32(entry_count); in output_img_header()
242 struct dt_image_writer *dt_image_writer_start(FILE *img_fp, uint32_t entry_count) { in dt_image_writer_start() argument
249 fdt_infos = malloc(sizeof(struct dt_image_writer_fdt_info) * entry_count); in dt_image_writer_start()
256 writer->entry_count = entry_count; in dt_image_writer_start()
259 writer->entry_offset + sizeof(struct dt_table_entry) * entry_count; in dt_image_writer_start()
435 writer->entry_count, in dt_image_writer_end()
441 printf("Total %d entries.\n", writer->entry_count); in dt_image_writer_end()
Dmkdtimg_create.c57 int entry_count = calculate_args_entry_count(argc, argv, arg_start); in output_img_with_args() local
58 struct dt_image_writer *writer = dt_image_writer_start(img_fp, entry_count); in output_img_with_args()
Dmkdtimg_core.h31 struct dt_image_writer *dt_image_writer_start(FILE *img_fp, uint32_t entry_count);
Dmkdtimg_cfg_create.c74 int entry_count = parse_config_entry_count(cfg_fp); in output_img_with_config() local
75 struct dt_image_writer *writer = dt_image_writer_start(img_fp, entry_count); in output_img_with_config()
Dmkdtimg_dump.c177 uint32_t entry_count = fdt32_to_cpu(header.dt_entry_count); in dump_image_from_fp() local
179 for (i = 0; i < entry_count; i++) { in dump_image_from_fp()
/system/keymaster/android_keymaster/
Dandroid_keymaster_messages.cpp482 for (size_t i = 0; i < certificate_chain.entry_count; ++i) in ~AttestKeyResponse()
488 bool AttestKeyResponse::AllocateChain(size_t entry_count) { in AllocateChain() argument
489 if (entry_count > kMaxChainEntryCount) in AllocateChain()
493 for (size_t i = 0; i < certificate_chain.entry_count; ++i) in AllocateChain()
498 certificate_chain.entry_count = entry_count; in AllocateChain()
499 certificate_chain.entries = new (std::nothrow) keymaster_blob_t[entry_count]; in AllocateChain()
501 certificate_chain.entry_count = 0; in AllocateChain()
505 memset(certificate_chain.entries, 0, sizeof(certificate_chain.entries[0]) * entry_count); in AllocateChain()
511 for (size_t i = 0; i < certificate_chain.entry_count; ++i) { in NonErrorSerializedSize()
519 buf = append_uint32_to_buf(buf, end, certificate_chain.entry_count); in NonErrorSerialize()
[all …]
/system/keymaster/contexts/
Dkeymaster2_passthrough_context.cpp136 **cert_chain = { new keymaster_blob_t[cchain.entry_count], cchain.entry_count }; in GenerateAttestation()
137 for (size_t i = 0; i < cchain.entry_count; ++i) { in GenerateAttestation()
Dsoft_keymaster_device.cpp1101 malloc(rsp_chain.entry_count * sizeof(*cert_chain->entries))); in attest_key()
1104 cert_chain->entry_count = rsp_chain.entry_count; in attest_key()
1105 for (keymaster_blob_t& entry : array_range(cert_chain->entries, cert_chain->entry_count)) in attest_key()
1110 for (keymaster_blob_t& entry : array_range(rsp_chain.entries, rsp_chain.entry_count)) { in attest_key()
/system/keymaster/km_openssl/
Dattestation_utils.cpp94 for (size_t i = 0; i < chain.entry_count; ++i) { in certCopier()
102 for (size_t i = 0; i < chain.entry_count; ++i) { in certCopier()
107 chain.entry_count = 0; in certCopier()
130 inline size_t noOfCert(const keymaster_cert_chain_t& cert_chain) { return cert_chain.entry_count; } in noOfCert()
160 result->entry_count = certCount(forward<CERTS>(certs)...); in makeCertChain()
384 if (attestation_chain.entry_count < 1) { in generate_attestation_common()
/system/security/keystore/
Dlegacy_keymaster_device_wrapper.cpp152 if (!cert_chain || cert_chain->entry_count == 0 || !cert_chain->entries) return result; in kmCertChain2Hidl()
154 result.resize(cert_chain->entry_count); in kmCertChain2Hidl()
155 for (size_t i = 0; i < cert_chain->entry_count; ++i) { in kmCertChain2Hidl()
/system/core/trusty/keymaster/3.0/
DTrustyKeymaster3Device.cpp145 if (!cert_chain.entry_count || !cert_chain.entries) return result; in kmCertChain2Hidl()
147 result.resize(cert_chain.entry_count); in kmCertChain2Hidl()
148 for (size_t i = 0; i < cert_chain.entry_count; ++i) { in kmCertChain2Hidl()
/system/keymaster/ng/
DAndroidKeymaster3Device.cpp157 if (!cert_chain.entry_count || !cert_chain.entries) return result; in kmCertChain2Hidl()
159 result.resize(cert_chain.entry_count); in kmCertChain2Hidl()
160 for (size_t i = 0; i < cert_chain.entry_count; ++i) { in kmCertChain2Hidl()
DAndroidKeymaster4Device.cpp109 if (!cert_chain.entry_count || !cert_chain.entries) in kmCertChain2Hidl()
112 result.resize(cert_chain.entry_count); in kmCertChain2Hidl()
113 for (size_t i = 0; i < cert_chain.entry_count; ++i) { in kmCertChain2Hidl()
/system/media/camera/include/system/
Dcamera_metadata.h217 size_t calculate_camera_metadata_size(size_t entry_count,
/system/libziparchive/include/ziparchive/
Dzip_archive.h190 uint64_t entry_count; member
/system/core/libunwindstack/tests/fuzz/
DUnwinderComponentCreator.cpp114 uint8_t entry_count = data_provider->ConsumeIntegralInRange<uint8_t>(0, kMaxMapEntryCount); in GetMaps() local
115 for (uint8_t i = 0; i < entry_count; i++) { in GetMaps()
/system/core/trusty/keymaster/4.0/
DTrustyKeymaster4Device.cpp197 if (!cert_chain.entry_count || !cert_chain.entries) return result; in kmCertChain2Hidl()
199 result.resize(cert_chain.entry_count); in kmCertChain2Hidl()
200 for (size_t i = 0; i < cert_chain.entry_count; ++i) { in kmCertChain2Hidl()
/system/libziparchive/
Dziptool.cpp138 info.archive_size, info.entry_count); in MaybeShowHeader()
Dzip_archive.cc614 result.entry_count = archive->num_entries; in GetArchiveInfo()
/system/keymaster/include/keymaster/
Dandroid_keymaster_utils.h419 for (size_t i = 0; i < p->entry_count; ++i) in operator()
Dandroid_keymaster_messages.h626 certificate_chain.entry_count = 0; in KeymasterResponse()
631 bool AllocateChain(size_t entry_count);
/system/keymaster/tests/
Dandroid_keymaster_messages_test.cpp590 EXPECT_EQ(3U, chain->entry_count); in TEST()
Dandroid_keymaster_test.cpp3939 for (size_t i = 0; i < chain.entry_count - 1; ++i) { in verify_chain()
4065 ASSERT_EQ(3U, cert_chain.entry_count); in TEST_P()
4103 ASSERT_EQ(3U, cert_chain.entry_count); in TEST_P()
/system/media/camera/tests/
Dcamera_metadata_tests.cpp370 void add_test_metadata(camera_metadata_t *m, int entry_count) { in add_test_metadata() argument
378 for (int i=0; i < entry_count; i++ ) { in add_test_metadata()