Home
last modified time | relevance | path

Searched refs:num_entries (Results 1 – 13 of 13) sorted by relevance

/system/extras/ioshark/
Dioshark_bench_mmap.c52 int num_entries; member
68 assert(mio->num_entries < MMAP_ENTS + 1); in setup_mmap_io_state()
69 mio->table[mio->num_entries].offset = offset; in setup_mmap_io_state()
70 mio->table[mio->num_entries].len = in setup_mmap_io_state()
72 total_len -= mio->table[mio->num_entries].len; in setup_mmap_io_state()
73 offset += mio->table[mio->num_entries].len; in setup_mmap_io_state()
74 mio->num_entries++; in setup_mmap_io_state()
194 assert(mio.num_entries > 0); in ioshark_handle_mmap()
/system/bpf/progs/include/
Dbpf_helpers.h46 #define DEFINE_BPF_MAP_NO_ACCESSORS(the_map, TYPE, TypeOfKey, TypeOfValue, num_entries) \ argument
51 .max_entries = (num_entries), \
54 #define DEFINE_BPF_MAP(the_map, TYPE, TypeOfKey, TypeOfValue, num_entries) \ argument
55 DEFINE_BPF_MAP_NO_ACCESSORS(the_map, TYPE, TypeOfKey, TypeOfValue, num_entries) \
/system/media/camera/tests/
Dcamera_metadata_tests.cpp1084 size_t num_entries = 5; in TEST() local
1087 size_t num_data = num_entries * data_per_entry; in TEST()
1091 add_test_metadata(m, num_entries); in TEST()
1092 EXPECT_EQ(num_entries, get_camera_metadata_entry_count(m)); in TEST()
1097 num_entries--; in TEST()
1100 EXPECT_EQ(num_entries, get_camera_metadata_entry_count(m)); in TEST()
1108 EXPECT_EQ(num_entries, get_camera_metadata_entry_count(m)); in TEST()
1113 for (size_t i = 0; i < num_entries; i++) { in TEST()
1131 num_entries++; in TEST()
1133 EXPECT_EQ(num_entries, get_camera_metadata_entry_count(m)); in TEST()
[all …]
/system/core/fs_mgr/liblp/
Dreader.cpp156 uint64_t table_size = uint64_t(table.num_entries) * table.entry_size; in ValidateTableBounds()
250 for (size_t i = 0; i < header.partitions.num_entries; i++) { in ParseMetadata()
263 if (partition.first_extent_index + partition.num_extents > header.extents.num_entries) { in ParseMetadata()
267 if (partition.group_index >= header.groups.num_entries) { in ParseMetadata()
276 for (size_t i = 0; i < header.extents.num_entries; i++) { in ParseMetadata()
282 extent.target_source >= header.block_devices.num_entries) { in ParseMetadata()
291 for (size_t i = 0; i < header.groups.num_entries; i++) { in ParseMetadata()
300 for (size_t i = 0; i < header.block_devices.num_entries; i++) { in ParseMetadata()
Dbuilder.cpp818 metadata->header.partitions.num_entries = static_cast<uint32_t>(metadata->partitions.size()); in Export()
819 metadata->header.extents.num_entries = static_cast<uint32_t>(metadata->extents.size()); in Export()
820 metadata->header.groups.num_entries = static_cast<uint32_t>(metadata->groups.size()); in Export()
821 metadata->header.block_devices.num_entries = in Export()
/system/media/alsa_utils/
Dalsa_device_profile.c252 unsigned num_entries = 0; in profile_enum_sample_rates() local
256 num_entries < ARRAY_SIZE(profile->sample_rates) - 1; in profile_enum_sample_rates()
260 profile->sample_rates[num_entries++] = std_sample_rates[index]; in profile_enum_sample_rates()
263 profile->sample_rates[num_entries] = 0; /* terminate */ in profile_enum_sample_rates()
264 return num_entries; /* return # of supported rates */ in profile_enum_sample_rates()
/system/core/fs_mgr/liblp/include/liblp/
Dmetadata_format.h133 uint32_t num_entries; member
/system/core/libziparchive/
Dzip_archive_private.h170 uint16_t num_entries; member
Dzip_archive.cc197 num_entries(0), in ZipArchive()
213 num_entries(0), in ZipArchive()
304 archive->num_entries = eocd->num_records; in MapCentralDirectory0()
369 const uint16_t num_entries = archive->num_entries; in ParseZipArchive() local
376 archive->hash_table_size = RoundUpPower2(1 + (num_entries * 4) / 3); in ParseZipArchive()
391 for (uint16_t i = 0; i < num_entries; i++) { in ParseZipArchive()
463 ALOGV("+++ zip good scan %" PRIu16 " entries", num_entries); in ParseZipArchive()
/system/netd/resolv/
Dres_cache.cpp1126 int num_entries; member
1265 cache->num_entries = 0; in cache_flush_locked()
1304 p = bprint(temp, end, "MRU LIST (%2d): ", cache->num_entries); in cache_dump_mru()
1350 cache->num_entries += 1; in _cache_add_p()
1352 LOG(INFO) << __func__ << ": entry " << e->id << " added (count=" << cache->num_entries << ")"; in _cache_add_p()
1362 LOG(INFO) << __func__ << ": entry " << e->id << " removed (count=" << cache->num_entries - 1 in _cache_remove_p()
1368 cache->num_entries -= 1; in _cache_remove_p()
1556 if (cache->num_entries >= cache->max_entries) { in _resolv_cache_add()
1558 if (cache->num_entries >= cache->max_entries) { in _resolv_cache_add()
/system/vold/
Dcryptfs.cpp2770 unsigned int num_entries; in cryptfs_setfield() local
2790 num_entries = 1; in cryptfs_setfield()
2792 num_entries = (strlen(value) + (PROPERTY_VALUE_MAX - 1) - 1) / (PROPERTY_VALUE_MAX - 1); in cryptfs_setfield()
2796 if (num_entries > 1) { in cryptfs_setfield()
2798 max_keylen += 1 + log10(num_entries); in cryptfs_setfield()
2806 if (persist_data->persist_valid_entries + num_entries - persist_count_keys(fieldname) > in cryptfs_setfield()
2822 for (field_id = 1; field_id < num_entries; field_id++) { in cryptfs_setfield()
/system/nfc/src/nfc/nfc/
Dnfc_ncif.cc1288 uint8_t more, num_entries, xx, yy, *pn, tl; in nfc_ncif_proc_get_routing() local
1293 num_entries = *p++; in nfc_ncif_proc_get_routing()
1294 for (xx = 0; xx < num_entries; xx++) { in nfc_ncif_proc_get_routing()
1295 if ((more == false) && (xx == (num_entries - 1))) status = NFC_STATUS_OK; in nfc_ncif_proc_get_routing()
/system/libufdt/utils/src/
Dmkdtboimg.py830 num_entries = len(dtbo.dt_entries)
831 for idx in range(0, num_entries):