Home
last modified time | relevance | path

Searched refs:iter (Results 1 – 25 of 72) sorted by relevance

123

/system/bt/gd/common/
Dlist_map_test.cc66 auto iter = list_map.find(1); in TEST() local
67 EXPECT_EQ(*iter->second, 100); in TEST()
69 iter = new_list_map.find(1); in TEST()
70 EXPECT_EQ(*iter->second, 100); in TEST()
71 *iter->second = 300; in TEST()
72 iter = new_list_map.find(1); in TEST()
73 EXPECT_EQ(*iter->second, 300); in TEST()
75 EXPECT_EQ(iter->second.use_count(), 2); in TEST()
81 auto iter = list_map.find(1); in TEST() local
82 EXPECT_EQ(*iter->second, 100); in TEST()
[all …]
Dlru_cache_test.cc78 auto iter = cache.find(42); in TEST() local
79 EXPECT_EQ(iter->second, 420); in TEST()
80 EXPECT_EQ(iter, std::get<0>(result)); in TEST()
87 auto iter = cache.find(1); in TEST() local
88 EXPECT_EQ(*iter->second, 100); in TEST()
90 iter = new_cache.find(1); in TEST()
91 EXPECT_EQ(*iter->second, 100); in TEST()
92 *iter->second = 300; in TEST()
93 iter = new_cache.find(1); in TEST()
94 EXPECT_EQ(*iter->second, 300); in TEST()
[all …]
Dlist_map.h63 for (auto iter = node_list_.begin(); iter != node_list_.end(); iter++) { in ListMap() local
64 key_map_.emplace(iter->first, iter); in ListMap()
76 for (auto iter = node_list_.begin(); iter != node_list_.end(); iter++) { variable
77 key_map_.emplace(iter->first, iter);
184 iterator erase(const_iterator iter) { in erase() argument
185 key_map_.erase(iter->first); in erase()
186 return node_list_.erase(iter); in erase()
Dlru_cache.h117 auto iter = list_map_.find(key); in find() local
118 if (iter == list_map_.end()) { in find()
122 list_map_.splice(list_map_.begin(), list_map_, iter); in find()
123 return iter; in find()
184 iterator erase(const_iterator iter) { in erase() argument
185 return list_map_.erase(iter); in erase()
/system/bt/service/
Dsettings.cc36 for (const auto& iter : switches) { in Init() local
37 if (iter.first == switches::kCreateIPCSocketPath) { in Init()
40 base::FilePath path(iter.second); in Init()
47 } else if (iter.first == switches::kAndroidIPCSocketSuffix) { in Init()
50 const std::string& suffix = iter.second; in Init()
57 } else if (iter.first == switches::kEnableOnStart) { 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()
70 else if (iter.first != ::switches::kV) { in Init()
[all …]
Dgatt_client.cc82 auto iter = pending_calls_.find(uuid); in RegisterClientCallback() local
83 if (iter == pending_calls_.end()) { in RegisterClientCallback()
96 iter->second(result, uuid, std::move(client)); in RegisterClientCallback()
98 pending_calls_.erase(iter); in RegisterClientCallback()
Dgatt_server.cc134 auto iter = conn_addr_map_.find(device_address); in SendResponse() local
135 if (iter == conn_addr_map_.end()) { in SendResponse()
141 for (const auto& tmp : iter->second) { in SendResponse()
263 auto iter = conn_addr_map_.find(device_address); in ConnectionCallback() local
264 if (iter == conn_addr_map_.end()) return; in ConnectionCallback()
267 for (auto conn_iter = iter->second.begin(); conn_iter != iter->second.end(); in ConnectionCallback()
271 iter->second.erase(conn_iter); in ConnectionCallback()
547 auto iter = conn_id_map_.find(conn_id); in GetConnection() local
548 if (iter == conn_id_map_.end()) { in GetConnection()
553 auto conn = iter->second; in GetConnection()
[all …]
/system/bt/service/ipc/binder/
Dremote_callback_map.h103 bool UnregisterInternal(typename CallbackMap::iterator iter);
155 auto iter = map_.find(key); in Unregister() local
156 if (iter == map_.end()) { in Unregister()
161 return UnregisterInternal(iter); in Unregister()
168 auto iter = map_.find(key); in Get() local
169 if (iter == map_.end()) return nullptr; in Get()
171 return iter->second->get_callback(); in Get()
178 auto iter = map_.find(key); in Remove() local
179 if (iter == map_.end()) return nullptr; in Remove()
181 sp<V> val = iter->second->get_callback(); in Remove()
[all …]
Dremote_callback_list.h90 bool UnregisterInternal(typename CallbackMap::iterator iter);
109 for (auto iter = callbacks_.begin(); iter != callbacks_.end(); ++iter) in ~RemoteCallbackList() local
110 UnregisterInternal(iter); in ~RemoteCallbackList()
142 auto iter = callbacks_.find(binder.get()); in Unregister() local
143 if (iter == callbacks_.end()) { in Unregister()
148 return UnregisterInternal(iter); in Unregister()
154 for (const auto& iter : callbacks_) in ForEach() local
155 callback(iter.second->get_callback().get()); in ForEach()
160 typename CallbackMap::iterator iter) { in UnregisterInternal() argument
161 sp<CallbackDeathRecipient> dr = iter->second; in UnregisterInternal()
[all …]
/system/core/fs_mgr/liblp/
Dtest_partition_opener.cpp32 auto iter = partition_map_.find(partition_name); in Open() local
33 if (iter == partition_map_.end()) { in Open()
37 return unique_fd{dup(iter->second)}; in Open()
41 auto iter = partition_info_.find(partition_name); in GetInfo() local
42 if (iter == partition_info_.end()) { in GetInfo()
46 *info = iter->second; in GetInfo()
/system/core/adb/
Dadb_listeners.cpp116 for (auto iter = listener_list.begin(); iter != listener_list.end(); ++iter) { in listener_disconnect() local
117 if (iter->get() == arg) { in listener_disconnect()
118 (*iter)->transport = nullptr; in listener_disconnect()
119 listener_list.erase(iter); in listener_disconnect()
147 for (auto iter = listener_list.begin(); iter != listener_list.end(); ++iter) { in remove_listener() local
148 if (local_name == (*iter)->local_name) { in remove_listener()
149 listener_list.erase(iter); in remove_listener()
158 auto iter = listener_list.begin(); in remove_all_listeners() local
159 while (iter != listener_list.end()) { in remove_all_listeners()
161 if ((*iter)->connect_to[0] == '*') { in remove_all_listeners()
[all …]
/system/libhidl/transport/include/hidl/
DConcurrentMap.h41 const_iterator iter = mMap.find(k); in get() local
42 if (iter == mMap.end()) { in get()
45 return iter->second; in get()
55 const_iterator iter = mMap.find(k); in eraseIfEqual() local
56 if (iter == mMap.end()) { in eraseIfEqual()
59 if (iter->second == v) { in eraseIfEqual()
60 mMap.erase(iter); in eraseIfEqual()
73 const_iterator iter = mMap.find(k); in getLocked() local
74 if (iter == mMap.end()) { in getLocked()
77 return iter->second; in getLocked()
/system/security/keystore/
Dconfirmationui_rate_limiting.h73 auto iter = slots_.begin(); in doGC() local
74 while (iter != slots_.end()) { in doGC()
75 if (iter->second.prompt_start <= then) { in doGC()
76 iter = slots_.erase(iter); in doGC()
78 ++iter; in doGC()
/system/update_engine/payload_generator/
Dextent_ranges.cc213 for (auto iter = lower; iter != upper; ++iter) { in ContainsBlock() local
214 if (iter->start_block() <= block && in ContainsBlock()
215 block < iter->start_block() + iter->num_blocks()) { in ContainsBlock()
292 for (auto iter = lower; iter != upper; ++iter) { in FilterExtentRanges() local
293 if (!ExtentRanges::ExtentsOverlap(extent, *iter)) in FilterExtentRanges()
295 if (iter->start_block() <= extent.start_block()) { in FilterExtentRanges()
298 iter->start_block() + iter->num_blocks() - extent.start_block(); in FilterExtentRanges()
309 extent.start_block(), iter->start_block() - extent.start_block())); in FilterExtentRanges()
310 uint64_t new_start = iter->start_block() + iter->num_blocks(); in FilterExtentRanges()
/system/linkerconfig/modules/
Dsection.cc77 if (auto iter = providers.find(lib); iter != providers.end()) { in Resolve() local
80 iter->second, in Resolve()
120 auto iter = namespaces_.begin(); in Resolve() local
122 auto& ns = *iter; in Resolve()
146 iter++; in Resolve()
147 } while (iter != namespaces_.end()); in Resolve()
/system/apex/apexd/
Dapex_shim.cpp124 auto iter = fs::recursive_directory_iterator(mount_point, ec); in ValidateShimApex() local
128 while (iter != fs::end(iter)) { in ValidateShimApex()
129 auto path = iter->path(); in ValidateShimApex()
133 fs::file_status status = iter->status(ec); in ValidateShimApex()
152 return Error() << "Unexpected file entry in shim apex: " << iter->path(); in ValidateShimApex()
154 iter = iter.increment(ec); in ValidateShimApex()
/system/core/libprocessgroup/
Dtask_profiles.cpp341 for (auto& iter : profiles_) { in DropResourceCaching() local
342 iter.second->DropResourceCaching(); in DropResourceCaching()
390 auto iter = attributes_.find(name); in Load() local
391 if (iter == attributes_.end()) { in Load()
394 iter->second->Reset(controller, file_attr); in Load()
438 auto iter = attributes_.find(attr_name); in Load() local
439 if (iter != attributes_.end()) { in Load()
441 std::make_unique<SetAttributeAction>(iter->second.get(), attr_value)); in Load()
466 auto iter = profiles_.find(profile_name); in Load() local
467 if (iter == profiles_.end()) { in Load()
[all …]
/system/core/fastboot/
Dsocket.cpp208 auto iter = buffers.begin(); in Send() local
210 if (iter->length > static_cast<size_t>(sent)) { in Send()
212 iter->length -= sent; in Send()
213 iter->data = reinterpret_cast<const char*>(iter->data) + sent; in Send()
218 sent -= iter->length; in Send()
219 ++iter; in Send()
223 if (iter == buffers.end()) { in Send()
226 buffers.erase(buffers.begin(), iter); in Send()
/system/libhidl/
Dtest_main.cpp247 auto iter = hv1.begin(); // iterator begin() in TEST_F() local
248 EXPECT_EQ(*iter++, 5); in TEST_F()
249 EXPECT_EQ(*iter, 6); in TEST_F()
250 EXPECT_EQ(*++iter, 7); in TEST_F()
251 EXPECT_EQ(*iter--, 7); in TEST_F()
252 EXPECT_EQ(*iter, 6); in TEST_F()
253 EXPECT_EQ(*--iter, 5); in TEST_F()
255 iter += 2; in TEST_F()
256 EXPECT_EQ(*iter, 7); in TEST_F()
257 iter -= 2; in TEST_F()
[all …]
/system/netd/server/
DUidRanges.cpp63 auto iter = std::lower_bound(mRanges.begin(), mRanges.end(), makeUidRangeParcel(intUid, intUid), in hasUid() local
65 return (iter != mRanges.end() && iter->start == intUid) || in hasUid()
66 (iter != mRanges.begin() && (--iter)->stop >= intUid); in hasUid()
/system/libhidl/libhidlmemory/
Dmapping.cpp41 auto iter = gMappersByName.find(name); in getMapperService() local
42 if (iter != gMappersByName.end()) { in getMapperService()
43 return iter->second; in getMapperService()
/system/keymaster/android_keymaster/
Dkeymaster_enforcement.cpp549 List<AccessTime>::iterator iter; in UpdateKeyAccessTime() local
550 for (iter = last_access_list_.begin(); iter != last_access_list_.end();) { in UpdateKeyAccessTime()
551 if (iter->keyid == keyid) { in UpdateKeyAccessTime()
552 iter->access_time = current_time; in UpdateKeyAccessTime()
557 assert(current_time >= iter->access_time); in UpdateKeyAccessTime()
558 if (current_time - iter->access_time >= iter->timeout) in UpdateKeyAccessTime()
559 iter = last_access_list_.erase(iter); in UpdateKeyAccessTime()
561 ++iter; in UpdateKeyAccessTime()
/system/core/fs_mgr/libfs_avb/tests/
Dfs_avb_test_util.cpp52 auto iter = vbmeta_images_.find(file_name); in CalcVBMetaDigest() local
53 EXPECT_NE(iter, vbmeta_images_.end()); // ensures file_name is generated before. in CalcVBMetaDigest()
56 base::FilePath image_path = iter->second.path; in CalcVBMetaDigest()
210 auto iter = vbmeta_images_.find(file_name); in LoadVBMetaData() local
211 EXPECT_NE(iter, vbmeta_images_.end()); // ensures file_name is generated before. in LoadVBMetaData()
214 base::FilePath image_path = iter->second.path; in LoadVBMetaData()
240 auto iter = vbmeta_images_.find(file_name); in InfoImage() local
241 EXPECT_NE(iter, vbmeta_images_.end()); // ensures file_name is generated before. in InfoImage()
243 base::FilePath image_path = iter->second.path; in InfoImage()
/system/extras/tests/binder/benchmarks/
DbinderAddInts.cpp127 unsigned int iter = 0; in BM_addInts() local
136 int val1 = iter; in BM_addInts()
137 int val2 = iter + 3; in BM_addInts()
153 if (result != (int) (iter + iter + 3)) { in BM_addInts()
154 cerr << "Unexpected result for iteration " << iter << endl; in BM_addInts()
/system/tools/hidl/host_utils/include/hidl-util/
DFormatter.h204 for (I iter = begin; iter != end; ++iter) { in join() local
205 if (iter != begin) { in join()
208 func(*iter); in join()

123