Home
last modified time | relevance | path

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

1234567

/system/extras/memory_replay/tests/
DFileTest.cpp49 AllocEntry* entries; in TEST() local
51 GetUnwindInfo(file_name.c_str(), &entries, &num_entries); in TEST()
58 EXPECT_EQ(12345, entries[0].tid); in TEST()
59 EXPECT_EQ(MALLOC, entries[0].type); in TEST()
60 EXPECT_EQ(0x1000U, entries[0].ptr); in TEST()
61 EXPECT_EQ(16U, entries[0].size); in TEST()
62 EXPECT_EQ(0U, entries[0].u.old_ptr); in TEST()
64 EXPECT_EQ(12345, entries[1].tid); in TEST()
65 EXPECT_EQ(FREE, entries[1].type); in TEST()
66 EXPECT_EQ(0x1000U, entries[1].ptr); in TEST()
[all …]
/system/extras/memory_replay/
Dmain.cpp39 static size_t GetMaxAllocs(const AllocEntry* entries, size_t num_entries) { in GetMaxAllocs() argument
43 switch (entries[i].type) { in GetMaxAllocs()
49 if (entries[i].ptr != 0) { in GetMaxAllocs()
54 if (entries[i].ptr == 0 && entries[i].u.old_ptr != 0) { in GetMaxAllocs()
56 } else if (entries[i].ptr != 0 && entries[i].u.old_ptr == 0) { in GetMaxAllocs()
61 if (entries[i].ptr != 0) { 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()
92 const AllocEntry& entry = entries[i]; in ProcessDump()
115 if (entries[i].type == THREAD_DONE) { in ProcessDump()
[all …]
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.cpp94 for (size_t entries = num_threads_; entries != 0; ) { in FindThread() local
100 entries--; in FindThread()
125 for (size_t entries = 0; entries < max_threads_; entries++) { in FindEmptyEntry() local
DFile.h29 void GetUnwindInfo(const char* filename, AllocEntry** entries, size_t* num_entries);
31 void FreeEntries(AllocEntry* entries, size_t num_entries);
DFile.cpp79 void GetUnwindInfo(const char* filename, AllocEntry** entries, size_t* num_entries) { in GetUnwindInfo() argument
130 *entries = reinterpret_cast<AllocEntry*>(mem); in GetUnwindInfo()
155 AllocGetData(&contents[start_str], &(*entries)[entry_idx++]); in GetUnwindInfo()
169 void FreeEntries(AllocEntry* entries, size_t num_entries) { in FreeEntries() argument
170 munmap(entries, num_entries * sizeof(AllocEntry)); in FreeEntries()
/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_helpers.py103 for entry in i.entries:
1332 def filter_visibility(entries, visibilities): argument
1343 return (e for e in entries if e.applied_visibility in visibilities)
1345 def remove_synthetic(entries): argument
1355 return (e for e in entries if not e.synthetic)
1357 def filter_added_in_hal_version(entries, hal_major_version, hal_minor_version): argument
1369 …return (e for e in entries if e.hal_major_version == hal_major_version and e.hal_minor_version == …
1371 def filter_has_enum_values_added_in_hal_version(entries, hal_major_version, hal_minor_version): argument
1383 …return (e for e in entries if e.has_new_values_added_in_hal_version(hal_major_version, hal_minor_v…
1402 def filter_has_permission_needed(entries): argument
[all …]
/system/core/libunwindstack/tests/
DElfInterfaceArmTest.cpp215 std::vector<uint32_t> entries; in TEST_F() local
217 entries.push_back(addr); in TEST_F()
219 ASSERT_EQ(5U, entries.size()); in TEST_F()
220 ASSERT_EQ(0x6000U, entries[0]); in TEST_F()
221 ASSERT_EQ(0x7008U, entries[1]); in TEST_F()
222 ASSERT_EQ(0x8010U, entries[2]); in TEST_F()
223 ASSERT_EQ(0x9018U, entries[3]); in TEST_F()
224 ASSERT_EQ(0xa020U, entries[4]); in TEST_F()
233 entries.clear(); in TEST_F()
235 entries.push_back(addr); in TEST_F()
[all …]
/system/core/storaged/tests/
Dstoraged_test.cpp450 .entries = { in TEST()
472 .entries = { in TEST()
499 EXPECT_EQ(user_0_item_0.records().entries(0).uid_name(), "app1"); in TEST()
500 EXPECT_EQ(user_0_item_0.records().entries(0).user_id(), 0UL); in TEST()
501 EXPECT_EQ(user_0_item_0.records().entries(0).uid_io().wr_fg_chg_on(), 1000UL); in TEST()
502 EXPECT_EQ(user_0_item_0.records().entries(1).uid_name(), "app2"); in TEST()
503 EXPECT_EQ(user_0_item_0.records().entries(1).user_id(), 0UL); in TEST()
504 EXPECT_EQ(user_0_item_0.records().entries(1).uid_io().rd_fg_chg_off(), 1000UL); in TEST()
509 EXPECT_EQ(user_0_item_1.records().entries(0).uid_name(), "app3"); in TEST()
510 EXPECT_EQ(user_0_item_1.records().entries(0).user_id(), 0UL); in TEST()
[all …]
/system/keymaster/contexts/
Dkeymaster2_passthrough_context.cpp138 (*cert_chain)->entries[i] = { dup_array(cchain.entries[i].data, in GenerateAttestation()
139 cchain.entries[i].data_length), in GenerateAttestation()
140 cchain.entries[i].data_length }; in GenerateAttestation()
141 free(const_cast<uint8_t*>(cchain.entries[i].data)); in GenerateAttestation()
143 free(cchain.entries); in GenerateAttestation()
/system/extras/simpleperf/
Dcmd_report_sample.cpp120 const std::vector<CallEntry>& entries);
127 bool PrintSampleRecord(const SampleRecord& record, const std::vector<CallEntry>& entries);
492 std::vector<CallEntry> entries; in ProcessSampleRecord() local
508 while (!entries.empty() && is_entry_for_interpreter(entries.back())) { in ProcessSampleRecord()
509 entries.pop_back(); in ProcessSampleRecord()
519 entries.push_back(entry); in ProcessSampleRecord()
524 return PrintSampleRecordInProtobuf(r, entries); in ProcessSampleRecord()
526 return PrintSampleRecord(r, entries); in ProcessSampleRecord()
530 const std::vector<CallEntry>& entries) { in PrintSampleRecordInProtobuf() argument
538 for (const CallEntry& node : entries) { in PrintSampleRecordInProtobuf()
[all …]
/system/core/storaged/
Dstoraged_uid_monitor.cpp206 count += it.second.entries.size(); in history_size()
232 new_records.entries.push_back(record); in add_records_locked()
240 if (new_records.entries.empty()) in add_records_locked()
244 maybe_shrink_history_for_items(new_records.entries.size()); in add_records_locked()
253 overflow -= del_it->second.entries.size(); in maybe_shrink_history_for_items()
275 const std::vector<struct uid_record>& recs = it->second.entries; in dump()
288 filtered.entries.push_back(rec); in dump()
292 if (filtered.entries.empty()) in dump()
415 for (const auto& entry : recs.entries) { in update_uid_io_proto()
453 vector<uid_record>* entries = &item.second.entries; in clear_user_history() local
[all …]
Dstoraged_service.cpp45 void StoragedService::dumpUidRecords(int fd, const vector<uid_record>& entries) { in dumpUidRecords() argument
46 map<string, io_usage> merged_entries = merge_io_usage(entries); in dumpUidRecords()
62 void StoragedService::dumpUidRecordsDebug(int fd, const vector<uid_record>& entries) { in dumpUidRecordsDebug() argument
63 for (const auto& record : entries) { in dumpUidRecordsDebug()
154 dumpUidRecords(fd, it.second.entries); in dump()
156 dumpUidRecordsDebug(fd, it.second.entries); in dump()
/system/bt/btif/src/
Dbtif_config_cache.cc35 for (const auto& entry : section.entries) { in has_link_key_in_section()
121 if (entry_iter == section->entries.end()) { in RemoveKey()
124 section->entries.erase(entry_iter); in RemoveKey()
125 if (section->entries.empty()) { in RemoveKey()
135 if (entry_iter == section_iter->entries.end()) { in RemoveKey()
138 section_iter->entries.erase(entry_iter); in RemoveKey()
139 if (section_iter->entries.empty()) { in RemoveKey()
222 if (entry_iter == section_iter->entries.end()) { in GetString()
233 if (entry_iter == section.entries.end()) { in GetString()
/system/tools/sysprop/tests/
DTypeCheckerTest.cpp101 std::vector<PropertyInfoEntry> entries; in TEST() local
103 ParsePropertyInfoFile(kContexts, true, &entries, &errors); in TEST()
106 auto res = CheckPropertyTypes(*api, entries); in TEST()
/system/bt/osi/src/
Dconfig.cc38 for (entry_t& entry : entries) { in Set()
45 entries.emplace_back( in Set()
51 entries.begin(), entries.end(), in Find()
56 return Find(key) != entries.end(); in Has()
86 for (const entry_t& entry : sec->entries) { in entry_find()
134 for (const entry_t& entry : sec.entries) { in config_new_clone()
226 for (entry_t& entry : sec->entries) { in config_set_string()
233 sec->entries.emplace_back(entry_t{.key = key, .value = value_no_newline}); in config_set_string()
252 for (auto entry = sec->entries.begin(); entry != sec->entries.end(); in config_remove_key()
255 sec->entries.erase(entry); in config_remove_key()
[all …]
/system/core/adb/fastdeploy/deploypatchgenerator/
Ddeploy_patch_generator_test.cpp44 std::vector<DeployPatchGenerator::SimpleEntry> entries; in TEST() local
45 generator.BuildIdenticalEntries(entries, metadataA, metadataA); in TEST()
47 const uint32_t identicalCount = entries.size(); in TEST()
/system/keymaster/km_openssl/
Dattestation_utils.cpp95 *(*out)++ = certBlobifier(chain.entries[i], fail); in certCopier()
103 *(*out)++ = certBlobifier(move(chain.entries[i]), fail); in certCopier()
105 delete[] chain.entries; in certCopier()
106 chain.entries = nullptr; in certCopier()
158 result->entries = new (std::nothrow) keymaster_blob_t[certCount(forward<CERTS>(certs)...)]; in makeCertChain()
159 if (!result->entries) return {}; in makeCertChain()
162 keymaster_blob_t* entries = result->entries; in makeCertChain() local
163 certCopyHelper(&entries, &allocation_failed, forward<CERTS>(certs)...); in makeCertChain()
390 const uint8_t* p = attestation_chain.entries[0].data; in generate_attestation_common()
391 X509_Ptr signing_cert(d2i_X509(nullptr, &p, attestation_chain.entries[0].data_length)); in generate_attestation_common()
/system/media/audio_utils/
DErrorLog.cpp21 error_log_t *error_log_create(size_t entries, int64_t aggregate_ns) in error_log_create() argument
24 (new(std::nothrow) ErrorLog<int32_t>(entries, aggregate_ns)); in error_log_create()
/system/tools/sysprop/
DTypeCheckerMain.cpp104 std::vector<PropertyInfoEntry> entries; in main() local
114 ParsePropertyInfoFile(contents, true, &entries, &errors); in main()
124 if (auto res = CheckPropertyTypes(api, entries); !res.ok()) { in main()
/system/core/debuggerd/libdebuggerd/
Dopen_files_list.cpp69 constexpr size_t inline_fds = sizeof(FdTable::entries) / sizeof(*FdTable::entries); in populate_fdsan_table()
71 size_t entry_offset = offsetof(FdTable, entries); in populate_fdsan_table()
108 uint64_t address = overflow + offsetof(FdTableOverflow, entries) + i * sizeof(FdEntry); in populate_fdsan_table()
/system/core/cpio/
Dmkbootfs.c175 int entries = 0; in _archive_dir() local
189 if (entries >= size) { in _archive_dir()
198 names[entries] = strdup(de->d_name); in _archive_dir()
199 if (names[entries] == NULL) { in _archive_dir()
204 ++entries; in _archive_dir()
207 qsort(names, entries, sizeof(char*), compare); in _archive_dir()
209 for (i = 0; i < entries; ++i) { in _archive_dir()
/system/core/storaged/include/
Dstoraged_service.h33 void dumpUidRecordsDebug(int fd, const vector<struct uid_record>& entries);
34 void dumpUidRecords(int fd, const vector<struct uid_record>& entries);
/system/media/audio_utils/include/audio_utils/
DPowerLog.h57 size_t entries,
129 uint32_t channel_count, audio_format_t format, size_t entries, size_t frames_per_entry);

1234567