Home
last modified time | relevance | path

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

12345678910>>...15

/system/apex/apexd/
Dapex_database.h74 for (const auto& pair : apex_set.second) { in CheckAtMostOneLatest()
75 if (pair.second) { in CheckAtMostOneLatest()
87 for (const auto& pair : apex_set.second) { in CheckUniqueLoopDm()
89 CHECK(loop_devices.insert(pair.first.loop_name).second) in CheckUniqueLoopDm()
93 CHECK(dm_devices.insert(pair.first.device_name).second) in CheckUniqueLoopDm()
107 CHECK(insert_it.second); in AddMountedApex()
111 auto check_it = it->second.emplace( in AddMountedApex()
113 CHECK(check_it.second); in AddMountedApex()
126 auto& pkg_map = it->second; in RemoveMountedApex()
141 auto& pkg_map = it->second; in SetLatest()
[all …]
/system/bt/stack/gatt/
Dconnection_manager.cc75 return (!it->second.doing_bg_conn.empty() || in anyone_connecting()
76 !it->second.doing_direct_conn.empty()); in anyone_connecting()
85 return (it != bgconn_dev.end()) ? it->second.doing_bg_conn in get_apps_connecting_to()
96 if (it->second.doing_bg_conn.count(app_id)) { in background_connect_add()
137 if (!it->second.doing_bg_conn.erase(app_id)) return false; in background_connect_remove()
153 it->second.doing_bg_conn.erase(app_id); in on_app_deregistered()
155 it->second.doing_direct_conn.erase(app_id); in on_app_deregistered()
171 while (it != bgconn_dev.end() && !it->second.doing_direct_conn.empty()) { in on_connection_complete()
172 uint8_t app_id = it->second.doing_direct_conn.begin()->first; in on_connection_complete()
201 if (it->second.doing_direct_conn.count(app_id)) { in direct_connect_add()
[all …]
/system/netd/server/
DControllersTest.cpp224 ASSERT_NE(std::string::npos, expected[7].second.find("*filter\n-S OUTPUT\n")); in TEST_F()
234 ASSERT_NE(std::string::npos, expected[9].second.find("*filter\n-S OUTPUT\n")); in TEST_F()
239 DELETE_SUBSTRING("-A OUTPUT -j oem_out\n", expected[10].second); in TEST_F()
240 DELETE_SUBSTRING("-A OUTPUT -j st_OUTPUT\n", expected[10].second); in TEST_F()
244 ASSERT_NE(std::string::npos, expected[13].second.find("*mangle\n-S POSTROUTING\n")); in TEST_F()
253 DELETE_SUBSTRING("-A POSTROUTING -j oem_mangle_post\n", expected[14].second); in TEST_F()
254 DELETE_SUBSTRING("-A POSTROUTING -j bw_mangle_POSTROUTING\n", expected[14].second); in TEST_F()
255 DELETE_SUBSTRING("-A POSTROUTING -j idletimer_mangle_POSTROUTING\n", expected[14].second); in TEST_F()
264 ASSERT_EQ(expectedCmd14, expected[14].second); in TEST_F()
DTcpSocketMonitor.cpp118 if (stats.second.nSockets == 0) { in dump()
123 stats.second.sent, in dump()
124 stats.second.lost, in dump()
125 stats.second.rttUs / 1000.0 / stats.second.nSockets, in dump()
126 stats.second.sentAckDiffMs / stats.second.nSockets); in dump()
134 dw.println("netId=%u uid=%u cookie=%" PRIu64, stats.second.mark.netId, stats.second.uid, in dump()
224 if (it->second.lastUpdate < now) { in poll()
239 int32_t nSockets = stats.second.nSockets; in poll()
244 sentPackets.push_back(stats.second.sent); in poll()
245 lostPackets.push_back(stats.second.lost); in poll()
[all …]
/system/core/storaged/
Dstoraged_service.cpp51 rec.second.bytes[READ][FOREGROUND][CHARGER_OFF], in dumpUidRecords()
52 rec.second.bytes[WRITE][FOREGROUND][CHARGER_OFF], in dumpUidRecords()
53 rec.second.bytes[READ][BACKGROUND][CHARGER_OFF], in dumpUidRecords()
54 rec.second.bytes[WRITE][BACKGROUND][CHARGER_OFF], in dumpUidRecords()
55 rec.second.bytes[READ][FOREGROUND][CHARGER_ON], in dumpUidRecords()
56 rec.second.bytes[WRITE][FOREGROUND][CHARGER_ON], in dumpUidRecords()
57 rec.second.bytes[READ][BACKGROUND][CHARGER_ON], in dumpUidRecords()
58 rec.second.bytes[WRITE][BACKGROUND][CHARGER_ON]); in dumpUidRecords()
78 const io_usage& task_usage = task_it.second; in dumpUidRecordsDebug()
147 if (last_ts != it.second.start_ts) { in dump()
[all …]
/system/extras/tests/lib/testUtil/
DtestUtil.c101 const struct timespec *second) in tsDelta() argument
106 assert(second != NULL); in tsDelta()
108 assert(second->tv_nsec >= 0 && second->tv_nsec < nSecsPerSec); in tsDelta()
109 rv.tv_sec = second->tv_sec - first->tv_sec; in tsDelta()
110 if (second->tv_nsec >= first->tv_nsec) { in tsDelta()
111 rv.tv_nsec = second->tv_nsec - first->tv_nsec; in tsDelta()
113 rv.tv_nsec = (second->tv_nsec + nSecsPerSec) - first->tv_nsec; in tsDelta()
124 const struct timeval *second) in tvDelta() argument
129 assert(second != NULL); in tvDelta()
131 assert(second->tv_usec >= 0 && second->tv_usec < uSecsPerSec); in tvDelta()
[all …]
/system/core/libcutils/
Dfs_config_test.cpp82 size_t second; in check_unique() local
85 for (second = idx + 1; second < paths.size(); ++second) { in check_unique()
86 if (path == paths[second]) { in check_unique()
97 for (second = 0; second < paths.size(); ++second) { in check_unique()
98 if (path == paths[second]) { in check_unique()
100 << paths[idx] << " and " << paths[second] in check_unique()
113 for (second = 0; second < paths.size(); ++second) { in check_unique()
114 if (path == paths[second]) break; in check_unique()
116 if (second >= paths.size()) { in check_unique()
/system/extras/simpleperf/
Dthread_tree_test.cpp43 prev_end = pair.second->get_end_addr(); in CheckMaps()
44 ASSERT_EQ(pair.second->start_addr, pair.first); in CheckMaps()
45 ASSERT_GT(pair.second->len, 0u); in CheckMaps()
46 ASSERT_EQ(pair.second->pgoff, pair.first); in CheckMaps()
47 if (names.size() < pair.second->get_end_addr()) { in CheckMaps()
48 names.resize(pair.second->get_end_addr()); in CheckMaps()
50 for (uint64_t i = pair.first; i < pair.second->get_end_addr(); ++i) { in CheckMaps()
51 names[i] = pair.second->dso->Path(); in CheckMaps()
Dthread_tree.cpp50 InsertMap(*child->maps, *pair.second); in ForkThread()
61 if (pid != it->second.get()->pid) { in FindThreadOrNew()
64 << it->second.get()->pid << ", " << tid << "), actual (" << pid in FindThreadOrNew()
68 return it->second.get(); in FindThreadOrNew()
87 CHECK(pair.second); in CreateThread()
111 return it->second.get(); in FindKernelDsoOrNew()
128 CHECK(pair.second); in FindUserDsoOrNew()
131 return it->second.get(); in FindUserDsoOrNew()
162 if (it2->second->get_end_addr() > entry.get_end_addr()) { in InsertMap()
164 AllocateMap(RemoveFirstPartOfMapEntry(it2->second, entry.get_end_addr()))); in InsertMap()
[all …]
/system/nvram/messages/
Dblob.cpp43 void swap(Blob& first, Blob& second) { in swap() argument
48 first.data_ = second.data_; in swap()
49 first.size_ = second.size_; in swap()
50 second.data_ = data_tmp; in swap()
51 second.size_ = size_tmp; in swap()
/system/tools/aidl/
Daidl_typenames.cpp121 return found_def->second.get(); in TryGetDefinedType()
126 return found_prep->second.get(); in TryGetDefinedType()
132 if (it->second->GetName() == type_name) { in TryGetDefinedType()
133 return it->second.get(); in TryGetDefinedType()
138 if (it->second->GetName() == type_name) { in TryGetDefinedType()
139 return it->second.get(); in TryGetDefinedType()
150 return make_pair(found->second, true); in ResolveTypename()
176 body(*kv.second); in IterateTypes()
179 body(*kv.second); in IterateTypes()
/system/bt/service/
Dsettings.cc40 base::FilePath path(iter.second); in Init()
50 const std::string& suffix = iter.second; in Init()
58 if (iter.second == "true") { in Init()
60 } else if (iter.second == "false") { in Init()
64 << iter.second << ". Expect 'true' or 'false'"; in Init()
/system/update_engine/payload_generator/
Dgraph_utils.cc41 graph[edge.first].out_edges.find(edge.second)->second.extents; in EdgeWeight()
56 CHECK(result.second); in AddReadBeforeDep()
59 AppendBlockToExtents(&edge_it->second.extents, block); in AddReadBeforeDep()
83 if (!it->second.write_extents.empty()) in DropWriteBeforeDeps()
84 it->second.write_extents.clear(); in DropWriteBeforeDeps()
85 if (it->second.extents.empty()) { in DropWriteBeforeDeps()
119 DumpExtents(it->second.extents, 6); in DumpOutEdges()
121 DumpExtents(it->second.write_extents, 6); in DumpOutEdges()
/system/core/logcat/tests/
Dlogcat_benchmark.cpp41 int second; in BM_logcat_sorted_order() member in BM_logcat_sorted_order::timestamp
50 &minute, &second, &millisecond) == 6; in BM_logcat_sorted_order()
67 ((second < T.second) || in BM_logcat_sorted_order()
68 ((second == T.second) && in BM_logcat_sorted_order()
/system/security/keystore/
Doperation.cpp46 auto op = entry->second; in getOperation()
65 auto op = entry->second; in removeOperation()
81 auto tokenEntry = std::find(appEntry->second.begin(), appEntry->second.end(), token); in removeOperationTracking()
82 appEntry->second.erase(tokenEntry); in removeOperationTracking()
84 if (appEntry->second.size() == 0) { in removeOperationTracking()
99 return appEntry->second; in getOperationsForToken()
/system/core/libunwindstack/tests/
DDwarfCfaTest.cpp111 ASSERT_EQ(DWARF_LOCATION_OFFSET, location->second.type); in TYPED_TEST_P()
112 ASSERT_EQ(32U, location->second.values[0]); in TYPED_TEST_P()
126 ASSERT_EQ(DWARF_LOCATION_OFFSET, location->second.type); in TYPED_TEST_P()
127 ASSERT_EQ(1056U, location->second.values[0]); in TYPED_TEST_P()
142 ASSERT_EQ(DWARF_LOCATION_OFFSET, location->second.type); in TYPED_TEST_P()
143 ASSERT_EQ(2U, location->second.values[0]); in TYPED_TEST_P()
157 ASSERT_EQ(DWARF_LOCATION_OFFSET, location->second.type); in TYPED_TEST_P()
158 ASSERT_EQ(2306U, location->second.values[0]); in TYPED_TEST_P()
173 ASSERT_EQ(DWARF_LOCATION_OFFSET, location->second.type); in TYPED_TEST_P()
174 ASSERT_EQ(0x80U, location->second.values[0]); in TYPED_TEST_P()
[all …]
/system/extras/memtrack/
Dmemtrack.cpp168 it->second.pids.clear(); in scan()
207 if (it->second.pids.size() > all_[it->first].max_num_pids) { in scan()
208 all_[it->first].max_num_pids = it->second.pids.size(); in scan()
211 all_[it->first].pids = it->second.pids; in scan()
213 if (it->second.pss_kb > all_[it->first].max_pss_kb) { in scan()
214 all_[it->first].max_pss_kb = it->second.pss_kb; in scan()
218 it->second.pss_kb < all_[it->first].min_pss_kb) { in scan()
219 all_[it->first].min_pss_kb = it->second.pss_kb; in scan()
222 all_[it->first].last_pss_kb = it->second.pss_kb; in scan()
224 computeAvg(&all_[it->first].avg_pss_kb, it->second.pss_kb, in scan()
[all …]
/system/core/logd/
DLogTags.cpp89 if (!stat(filename, &sb) && ((size_t)sb.st_size >= iwater->second)) { in RebuildFileEventLogTags()
165 } else if (ut->second.find(uid) == ut->second.end()) { in AddEventLogTags()
166 const_cast<uid_list&>(ut->second).emplace(uid); in AddEventLogTags()
372 if ((it == tag2name.end()) || (it->second.length() == 0)) return nullptr; in tagToName()
374 return it->second.c_str(); in tagToName()
422 return iform->second.c_str(); in tagToFormat()
436 if (ik != key2tag.end()) ret = ik->second; in nameToTag()
458 return ik->second; in nameToTag_locked()
467 return ik->second; in nameToTag_locked()
476 std::string localKey(it->second); in nameToTag_locked()
[all …]
/system/netd/resolv/
DDnsTlsQueryMap.cpp49 return std::make_unique<QueryFuture>(q, it->second.result.get_future()); in recordQuery()
61 it->second.tries++; in markTried()
68 auto& p = it->second; in cleanup()
108 queries.push_back(q.second.query); in getAll()
121 expire(&q.second); in clear()
141 const uint8_t* data = it->second.query.query.base(); in onResponse()
145 it->second.result.set_value(std::move(r)); in onResponse()
/system/libvintf/include/vintf/
DHalGroup.h40 if (!add(std::move(pair.second))) {
60 for (auto it = range.first; it != range.second; ++it) { in getHals()
61 ret.push_back(&it->second); in getHals()
72 for (auto it = range.first; it != range.second; ++it) { in getHals()
73 ret.push_back(&it->second); in getHals()
165 return &(it->second); in getAnyHal()
174 return &it->second; in addInternal()
/system/core/fastboot/
Dbootimg_utils.cpp43 const std::vector<char>& second, const std::vector<char>& dtb, in mkbootimg() argument
50 int64_t second_actual = (second.size() + page_mask) & (~page_mask); in mkbootimg()
64 hdr->second_size = second.size(); in mkbootimg()
81 memcpy(hdr->magic + hdr->page_size + kernel_actual + ramdisk_actual, second.data(), in mkbootimg()
82 second.size()); in mkbootimg()
/system/extras/perfprofd/
Dperf_data_converter.cc104 dso_data = &it.first->second; in AddSymbolInfo()
106 dso_data = &dso_it->second; in AddSymbolInfo()
141 const Dso& dso = file_data.second; in AddSymbolInfo()
152 symbol->set_addr(*aggr_sym.second.offsets.begin()); in AddSymbolInfo()
153 symbol->set_size(*aggr_sym.second.offsets.rbegin() - *aggr_sym.second.offsets.begin() + 1); in AddSymbolInfo()
154 symbol->set_name(aggr_sym.second.symbol); in AddSymbolInfo()
155 symbol->set_name_md5_prefix(::quipper::Md5Prefix(aggr_sym.second.symbol)); in AddSymbolInfo()
/system/media/audio_utils/include/audio_utils/
DLogPlot.h61 const T maxVal = (*result.second).first; in audio_utils_log_plot()
95 const bool start = it->second; in audio_utils_log_plot()
147 int maxCount = it->second;
153 if (it->second > maxCount) {
154 maxCount = it->second;
171 ss << std::setw(colWidth) << x.second;
190 (x.second < value ? " " : "|");
/system/core/liblog/
Devent_tag_map.cpp164 fprintf(stderr, errorFormat, it->first, (int)it->second.first.length(), in emplaceUnique()
165 it->second.first.data(), (int)it->second.second.length(), in emplaceUnique()
166 it->second.second.data(), tag, (int)tagfmt.first.length(), in emplaceUnique()
167 tagfmt.first.data(), (int)tagfmt.second.length(), in emplaceUnique()
168 tagfmt.second.data()); in emplaceUnique()
181 fprintf(stderr, errorFormat, it->second, (int)it->first.first.length(), in emplaceUnique()
182 it->first.first.data(), (int)it->first.second.length(), in emplaceUnique()
183 it->first.second.data(), tag, (int)tagfmt.first.length(), in emplaceUnique()
184 tagfmt.first.data(), (int)tagfmt.second.length(), in emplaceUnique()
185 tagfmt.second.data()); in emplaceUnique()
[all …]
/system/libvintf/
DKernelInfo.cpp38 if (matrixConfig.second == KernelConfigTypedValue::gMissingConfig) { in matchKernelConfigs()
46 const std::string& kernelValue = it->second; in matchKernelConfigs()
47 if (!matrixConfig.second.matchValue(kernelValue)) { in matchKernelConfigs()
50 to_string(matrixConfig.second); in matchKernelConfigs()

12345678910>>...15