/system/extras/memory_replay/tests/ |
D | FileTest.cpp | 50 size_t num_entries; in TEST() local 51 GetUnwindInfo(file_name.c_str(), &entries, &num_entries); in TEST() 57 ASSERT_EQ(2U, num_entries); in TEST() 70 FreeEntries(entries, num_entries); in TEST() 75 size_t num_entries; in TEST() local 76 EXPECT_DEATH(GetUnwindInfo("/does/not/exist.zip", &entries, &num_entries), ""); in TEST() 85 size_t num_entries; in TEST() local 86 GetUnwindInfo(file_name.c_str(), &entries, &num_entries); in TEST() 92 ASSERT_EQ(2U, num_entries); in TEST() 105 FreeEntries(entries, num_entries); in TEST() [all …]
|
/system/extras/memory_replay/ |
D | main.cpp | 39 static size_t GetMaxAllocs(const AllocEntry* entries, size_t num_entries) { in GetMaxAllocs() argument 42 for (size_t i = 0; i < num_entries; i++) { in GetMaxAllocs() 73 static void ProcessDump(const AllocEntry* entries, size_t num_entries, size_t max_threads) { in ProcessDump() argument 77 size_t max_allocs = GetMaxAllocs(entries, num_entries); in ProcessDump() 87 for (size_t i = 0; i < num_entries; i++) { in ProcessDump() 180 size_t num_entries; in main() local 181 GetUnwindInfo(argv[1], &entries, &num_entries); in main() 185 ProcessDump(entries, num_entries, max_threads); in main() 187 FreeEntries(entries, num_entries); in main()
|
D | File.cpp | 79 void GetUnwindInfo(const char* filename, AllocEntry** entries, size_t* num_entries) { in GetUnwindInfo() argument 122 *num_entries = *reinterpret_cast<size_t*>(mem); in GetUnwindInfo() 125 mem = mmap(nullptr, *num_entries * sizeof(AllocEntry), PROT_READ | PROT_WRITE, in GetUnwindInfo() 128 err(1, "Unable to allocate a shared map of size %zu", *num_entries * sizeof(AllocEntry)); in GetUnwindInfo() 151 if (entry_idx == *num_entries) { in GetUnwindInfo() 158 if (entry_idx != *num_entries) { in GetUnwindInfo() 159 errx(1, "Mismatched number of entries found: expected %zu, found %zu", *num_entries, in GetUnwindInfo() 169 void FreeEntries(AllocEntry* entries, size_t num_entries) { in FreeEntries() argument 170 munmap(entries, num_entries * sizeof(AllocEntry)); in FreeEntries()
|
D | File.h | 29 void GetUnwindInfo(const char* filename, AllocEntry** entries, size_t* num_entries); 31 void FreeEntries(AllocEntry* entries, size_t num_entries);
|
D | TraceBenchmark.cpp | 44 size_t num_entries = 0; member 74 FreeEntries(trace_data->entries, trace_data->num_entries); in FreeTraceData() 89 GetUnwindInfo(filename.c_str(), &trace_data->entries, &trace_data->num_entries); in GetTraceData() 101 for (size_t i = 0; i < trace_data->num_entries; i++) { in GetTraceData() 157 for (size_t i = 0; i < trace_data->num_entries; i++) { in RunTrace()
|
/system/bpf/progs/include/ |
D | bpf_helpers.h | 65 #define DEFINE_BPF_MAP_UGM(the_map, TYPE, TypeOfKey, TypeOfValue, num_entries, usr, grp, md) \ argument 70 .max_entries = (num_entries), \ 90 #define DEFINE_BPF_MAP(the_map, TYPE, TypeOfKey, TypeOfValue, num_entries) \ argument 91 DEFINE_BPF_MAP_UGM(the_map, TYPE, TypeOfKey, TypeOfValue, num_entries, AID_ROOT, AID_ROOT, 0600) 93 #define DEFINE_BPF_MAP_GWO(the_map, TYPE, TypeOfKey, TypeOfValue, num_entries, gid) \ argument 94 DEFINE_BPF_MAP_UGM(the_map, TYPE, TypeOfKey, TypeOfValue, num_entries, AID_ROOT, gid, 0620) 96 #define DEFINE_BPF_MAP_GRO(the_map, TYPE, TypeOfKey, TypeOfValue, num_entries, gid) \ argument 97 DEFINE_BPF_MAP_UGM(the_map, TYPE, TypeOfKey, TypeOfValue, num_entries, AID_ROOT, gid, 0640) 99 #define DEFINE_BPF_MAP_GRW(the_map, TYPE, TypeOfKey, TypeOfValue, num_entries, gid) \ argument 100 DEFINE_BPF_MAP_UGM(the_map, TYPE, TypeOfKey, TypeOfValue, num_entries, AID_ROOT, gid, 0660)
|
/system/extras/ioshark/ |
D | ioshark_bench_mmap.c | 52 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/libziparchive/ |
D | zip_cd_entry_map.cc | 102 CdEntryMapZip32::CdEntryMapZip32(uint16_t num_entries) { in CdEntryMapZip32() argument 108 hash_table_size_ = RoundUpPower2(1 + (num_entries * 4) / 3); in CdEntryMapZip32() 113 std::unique_ptr<CdEntryMapInterface> CdEntryMapZip32::Create(uint16_t num_entries) { in Create() argument 114 auto entry_map = new CdEntryMapZip32(num_entries); in Create()
|
D | zip_cd_entry_map.h | 75 static std::unique_ptr<CdEntryMapInterface> Create(uint16_t num_entries); 84 explicit CdEntryMapZip32(uint16_t num_entries);
|
D | zip_archive.cc | 104 num_entries(0) { in ZipArchive() 119 num_entries(0) {} in ZipArchive() 353 archive->num_entries = cdInfo.num_records; in MapCentralDirectory() 447 const uint64_t num_entries = archive->num_entries; in ParseZipArchive() local 449 if (num_entries <= UINT16_MAX) { in ParseZipArchive() 450 archive->cd_entry_map = CdEntryMapZip32::Create(static_cast<uint16_t>(num_entries)); in ParseZipArchive() 464 for (uint64_t i = 0; i < num_entries; i++) { in ParseZipArchive() 556 ALOGV("+++ zip good scan %" PRIu64 " entries", num_entries); in ParseZipArchive() 614 result.entry_count = archive->num_entries; in GetArchiveInfo()
|
D | zip_archive_private.h | 99 uint64_t num_entries; member
|
/system/media/camera/tests/ |
D | camera_metadata_tests.cpp | 1084 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/ |
D | reader.cpp | 160 uint64_t table_size = uint64_t(table.num_entries) * table.entry_size; in ValidateTableBounds() 291 for (size_t i = 0; i < header.partitions.num_entries; i++) { in ParseMetadata() 304 if (partition.first_extent_index + partition.num_extents > header.extents.num_entries) { in ParseMetadata() 308 if (partition.group_index >= header.groups.num_entries) { in ParseMetadata() 317 for (size_t i = 0; i < header.extents.num_entries; i++) { in ParseMetadata() 323 extent.target_source >= header.block_devices.num_entries) { in ParseMetadata() 332 for (size_t i = 0; i < header.groups.num_entries; i++) { in ParseMetadata() 341 for (size_t i = 0; i < header.block_devices.num_entries; i++) { in ParseMetadata()
|
D | builder.cpp | 959 metadata->header.partitions.num_entries = static_cast<uint32_t>(metadata->partitions.size()); in Export() 960 metadata->header.extents.num_entries = static_cast<uint32_t>(metadata->extents.size()); in Export() 961 metadata->header.groups.num_entries = static_cast<uint32_t>(metadata->groups.size()); in Export() 962 metadata->header.block_devices.num_entries = in Export()
|
/system/media/alsa_utils/ |
D | alsa_device_profile.c | 252 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/bt/gd/common/ |
D | list_map_test.cc | 333 int num_entries = 0xFFFF; // 2^16 = 65535 in TEST() local 337 for (int key = 0; key < num_entries; key++) { in TEST() 342 for (int key = 0; key < num_entries; key++) { in TEST() 347 for (int key = 0; key < num_entries; key++) { in TEST() 360 EXPECT_LT(execution_time, execution_time_per_cycle_us * num_entries); in TEST()
|
/system/core/fs_mgr/liblp/include/liblp/ |
D | metadata_format.h | 156 uint32_t num_entries; member
|
/system/vold/ |
D | cryptfs.cpp | 2726 unsigned int num_entries; in cryptfs_setfield() local 2746 num_entries = 1; in cryptfs_setfield() 2748 num_entries = (strlen(value) + (PROPERTY_VALUE_MAX - 1) - 1) / (PROPERTY_VALUE_MAX - 1); in cryptfs_setfield() 2752 if (num_entries > 1) { in cryptfs_setfield() 2754 max_keylen += 1 + log10(num_entries); in cryptfs_setfield() 2762 if (persist_data->persist_valid_entries + num_entries - persist_count_keys(fieldname) > in cryptfs_setfield() 2778 for (field_id = 1; field_id < num_entries; field_id++) { in cryptfs_setfield()
|
/system/nfc/src/nfc/nfc/ |
D | nfc_ncif.cc | 1287 uint8_t more, num_entries, xx, yy, *pn, tl; in nfc_ncif_proc_get_routing() local 1292 num_entries = *p++; in nfc_ncif_proc_get_routing() 1293 for (xx = 0; xx < num_entries; xx++) { in nfc_ncif_proc_get_routing() 1294 if ((more == false) && (xx == (num_entries - 1))) status = NFC_STATUS_OK; in nfc_ncif_proc_get_routing()
|
/system/libufdt/utils/src/ |
D | mkdtboimg.py | 830 num_entries = len(dtbo.dt_entries) 831 for idx in range(0, num_entries):
|