/system/extras/simpleperf/ |
D | report_utils_test.cpp | 117 std::vector<CallChainReportEntry> entries = builder.Build(thread, fake_ips, 0); in TEST_F() local 118 ASSERT_EQ(entries.size(), 2); in TEST_F() 119 ASSERT_EQ(entries[0].ip, 0x2000); in TEST_F() 120 ASSERT_STREQ(entries[0].symbol->Name(), "java_method1"); in TEST_F() 121 ASSERT_EQ(entries[0].dso->Path(), fake_dex_file_path); in TEST_F() 122 ASSERT_EQ(entries[0].vaddr_in_file, 0); in TEST_F() 123 ASSERT_EQ(entries[0].execution_type, CallChainExecutionType::INTERPRETED_JVM_METHOD); in TEST_F() 124 ASSERT_EQ(entries[1].ip, 0x3000); in TEST_F() 125 ASSERT_STREQ(entries[1].symbol->Name(), "java_method2"); in TEST_F() 126 ASSERT_EQ(entries[1].dso->Path(), fake_dex_file_path); in TEST_F() [all …]
|
D | cmd_report_sample.cpp | 171 const std::vector<CallChainReportEntry>& entries); 178 const std::vector<CallChainReportEntry>& entries); 562 std::vector<CallChainReportEntry> entries = in ProcessSampleRecord() local 565 for (size_t i = 1; i < entries.size(); i++) { in ProcessSampleRecord() 566 if (thread_tree_.IsUnknownDso(entries[i].dso)) { in ProcessSampleRecord() 567 entries.resize(i); in ProcessSampleRecord() 574 return PrintSampleRecordInProtobuf(r, entries); in ProcessSampleRecord() 576 return PrintSampleRecord(r, entries); in ProcessSampleRecord() 580 const SampleRecord& r, const std::vector<CallChainReportEntry>& entries) { in PrintSampleRecordInProtobuf() argument 589 for (const auto& node : entries) { in PrintSampleRecordInProtobuf() [all …]
|
/system/extras/memory_replay/tests/ |
D | FileTest.cpp | 49 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/ |
D | main.cpp | 39 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 …]
|
D | Pointers.cpp | 79 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
|
D | Threads.cpp | 94 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
|
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 | File.cpp | 79 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/keymaster/include/keymaster/ |
D | android_keymaster_utils.h | 264 entries = new (std::nothrow) keymaster_blob_t[length]; 265 if (!entries) return; 268 entries[i] = {}; 289 retval.entries = new (std::nothrow) keymaster_blob_t[retval.entry_count]; in clone() 290 if (!retval.entries) return {}; in clone() 297 retval.entries[i].data_length = other.entries[i].data_length; in clone() 298 retval.entries[i].data = new (std::nothrow) uint8_t[retval.entries[i].data_length]; in clone() 299 if (!retval.entries[i].data) return {}; in clone() 301 memcpy(const_cast<uint8_t*>(retval.entries[i].data), other.entries[i].data, in clone() 302 retval.entries[i].data_length); in clone() [all …]
|
/system/media/camera/docs/ |
D | metadata_model_test.py | 36 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)
|
/system/unwinding/libunwindstack/tests/ |
D | ElfInterfaceArmTest.cpp | 215 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/ |
D | storaged_test.cpp | 450 .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/core/storaged/ |
D | storaged_uid_monitor.cpp | 206 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 …]
|
/system/bt/gd/rust/gddi/macros/ |
D | lib.rs | 72 let entries: Punctuated<ModuleEntry, Token![,]> = Punctuated::parse_terminated(input)?; in parse() localVariable 75 for entry in entries.into_iter() { in parse() 117 let entries; in parse() localVariable 118 braced!(entries in input); in parse() 119 Ok(ModuleEntry::Providers(entries.parse_terminated(ProviderDef::parse)?)) in parse() 122 let entries; in parse() localVariable 123 braced!(entries in input); in parse() 124 Ok(ModuleEntry::Submodules(entries.parse_terminated(Path::parse)?)) in parse()
|
/system/tools/sysprop/tests/ |
D | TypeCheckerTest.cpp | 101 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/btif/src/ |
D | btif_config_cache.cc | 35 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/keymaster/tests/ |
D | android_keymaster_messages_test.cpp | 112 rsp.certificate_chain.entries[0] = {dup_buffer("foo", 3), 3}; in TEST() 113 rsp.certificate_chain.entries[1] = {dup_buffer("bar", 3), 3}; in TEST() 114 rsp.certificate_chain.entries[2] = {dup_buffer("baz", 3), 3}; in TEST() 129 EXPECT_EQ(nullptr, chain->entries); in TEST() 131 EXPECT_NE(nullptr, chain->entries); in TEST() 133 EXPECT_EQ(3U, chain->entries[0].data_length); in TEST() 134 EXPECT_EQ(0, memcmp("foo", chain->entries[0].data, 3)); in TEST() 135 EXPECT_EQ(3U, chain->entries[1].data_length); in TEST() 136 EXPECT_EQ(0, memcmp("bar", chain->entries[1].data, 3)); in TEST() 137 EXPECT_EQ(3U, chain->entries[2].data_length); in TEST() [all …]
|
/system/logging/logd/ |
D | SerializedLogBufferTest.cpp | 73 SerializedLogChunk CreateChunk(size_t max_size, const std::vector<TestEntry>& entries, in CreateChunk() argument 77 for (const auto& entry : entries) { in CreateChunk() 146 std::vector<TestEntry> entries = { in TEST() local 156 chunks.emplace_back(CreateChunk(kMaxSize, entries, false)); in TEST() 160 expected_chunks.push_back(CreateChunk(kMaxSize, entries, false)); in TEST() 173 std::vector<TestEntry> FilterEntries(const std::vector<TestEntry>& entries, uid_t uid_to_remove) { in FilterEntries() argument 175 for (const auto& entry : entries) { in FilterEntries() 190 std::vector<TestEntry> entries = { in TEST() local 204 chunks.emplace_back(CreateChunk(kMaxSize, entries, false)); in TEST() 207 expected_chunks.emplace_back(CreateChunk(kMaxSize, FilterEntries(entries, kClearUid), false)); in TEST() [all …]
|
/system/bt/osi/src/ |
D | config.cc | 38 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/media/audio_utils/ |
D | ErrorLog.cpp | 21 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/unwinding/libunwindstack/ |
D | GlobalDebugImpl.h | 219 std::map<UID, std::shared_ptr<Symfile>> entries; in ReadAllEntries() local 221 size_t old_size = entries.size(); in ReadAllEntries() 222 if (!ReadNewEntries(maps, &entries, race)) { in ReadAllEntries() 225 if (entries.size() == old_size) { in ReadAllEntries() 226 entries_.swap(entries); in ReadAllEntries() 235 bool ReadNewEntries(Maps* maps, std::map<UID, std::shared_ptr<Symfile>>* entries, bool* race) { in ReadNewEntries() argument 245 if (entries->count(uid) != 0) { in ReadNewEntries() 265 entries->emplace(uid, it->second); in ReadNewEntries() 276 entries->emplace(uid, symfile); in ReadNewEntries()
|
/system/tools/sysprop/ |
D | TypeCheckerMain.cpp | 104 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/ |
D | open_files_list.cpp | 69 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/mkbootfs/ |
D | mkbootfs.c | 175 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/sepolicy/build/soong/ |
D | sepolicy_vers.go | 99 func(ctx android.AndroidMkExtraEntriesContext, entries *android.AndroidMkEntries) { 100 entries.SetPath("LOCAL_MODULE_PATH", v.installPath.ToMakePath()) 101 entries.SetString("LOCAL_INSTALLED_MODULE_STEM", v.stem())
|