Home
last modified time | relevance | path

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

123

/packages/modules/DnsResolver/
DDns64Configuration.cpp115 const auto& iter = mDns64Configs.find(netId); in getPrefix64Locked() local
116 if (iter != mDns64Configs.end()) return iter->second.prefix64; in getPrefix64Locked()
131 const auto& iter = mDns64Configs.find(netId); in dump() local
132 if (iter == mDns64Configs.end()) { in dump()
137 const Dns64Config& cfg = iter->second; in dump()
195 const auto& iter = mDns64Configs.find(cfg.netId); in isDiscoveryInProgress() local
196 if (iter == mDns64Configs.end()) return false; in isDiscoveryInProgress()
198 const Dns64Config& currentCfg = iter->second; in isDiscoveryInProgress()
219 const auto& iter = mDns64Configs.find(netId); in removeDns64Config() local
220 if (iter == mDns64Configs.end()) return; in removeDns64Config()
[all …]
/packages/modules/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 …]
/packages/apps/Gallery2/jni_jpegstream/src/
Djpeg_reader.cpp180 uint8_t *iter = buf; in formatPixels() local
202 *iter++ = r; in formatPixels()
203 *iter++ = g; in formatPixels()
204 *iter++ = b; in formatPixels()
208 iter += (len * 3 / 4); in formatPixels()
220 buf[i - 1] = *--iter; in formatPixels()
221 buf[i - 2] = *--iter; in formatPixels()
222 buf[i - 3] = *--iter; in formatPixels()
228 b = *--iter; in formatPixels()
229 g = *--iter; in formatPixels()
[all …]
/packages/providers/MediaProvider/jni/
DRedactionInfo.cpp126 for (auto iter = redaction_ranges_.begin(); iter != redaction_ranges_.end(); ++iter) { in getOverlappingRedactionRanges() local
127 if (iter->second > start && iter->first < end) { in getOverlappingRedactionRanges()
128 if (iter < first_redaction) first_redaction = iter; in getOverlappingRedactionRanges()
129 if (iter > last_redaction) last_redaction = iter; in getOverlappingRedactionRanges()
132 if (iter->first >= end) { in getOverlappingRedactionRanges()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
DTestTimer.java76 Iterator<Task> iter = mTaskList.iterator(); in purge() local
77 while (iter.hasNext()) { in purge()
78 Task task = iter.next(); in purge()
80 iter.remove(); in purge()
126 ListIterator<Task> iter = mTaskList.listIterator(0); in scheduleAtTime() local
127 while (iter.hasNext()) { in scheduleAtTime()
128 if (iter.next().mExecuteTime >= executeTime) { in scheduleAtTime()
132 iter.add(testTimerTask); in scheduleAtTime()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/common/
DExtraSettingsLoaderTest.java157 Iterator<Preference> iter = preferenceToBundleMap.keySet().iterator(); in testLoadPreference_sortPreferences_byMetadata() local
158 assertThat(iter.next().getTitle().toString()).isEqualTo(FAKE_TITLE2); in testLoadPreference_sortPreferences_byMetadata()
159 assertThat(iter.next().getTitle().toString()).isEqualTo(FAKE_TITLE1); in testLoadPreference_sortPreferences_byMetadata()
187 Iterator<Preference> iter = preferenceToBundleMap.keySet().iterator(); in testLoadPreference_sortPreferences_byPackageName() local
188 assertThat(iter.next().getTitle().toString()).isEqualTo(FAKE_TITLE1); in testLoadPreference_sortPreferences_byPackageName()
189 assertThat(iter.next().getTitle().toString()).isEqualTo(FAKE_TITLE2); in testLoadPreference_sortPreferences_byPackageName()
218 Iterator<Preference> iter = preferenceToBundleMap.keySet().iterator(); in testLoadPreference_sortPreferences_prioritizeMetadata() local
219 assertThat(iter.next().getTitle().toString()).isEqualTo(FAKE_TITLE2); in testLoadPreference_sortPreferences_prioritizeMetadata()
220 assertThat(iter.next().getTitle().toString()).isEqualTo(FAKE_TITLE1); in testLoadPreference_sortPreferences_prioritizeMetadata()
/packages/apps/TV/src/com/android/tv/dvr/recorder/
DSeriesRecordingScheduler.java112 for (Iterator<SeriesRecordingUpdateTask> iter = mScheduleTasks.iterator();
113 iter.hasNext(); ) {
114 SeriesRecordingUpdateTask task = iter.next();
121 iter.remove();
338 for (Iterator<SeriesRecordingUpdateTask> iter = mScheduleTasks.iterator(); in updateSchedules()
339 iter.hasNext(); ) { in updateSchedules()
340 SeriesRecordingUpdateTask task = iter.next(); in updateSchedules()
346 iter.remove(); in updateSchedules()
352 for (Iterator<SeriesRecording> iter = seriesRecordingsToUpdate.iterator(); in updateSchedules()
353 iter.hasNext(); ) { in updateSchedules()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppManager.java162 for (Iterator<Pair<String, Long>> iter = mAcceptlist.iterator(); iter.hasNext(); ) { in cleanupAcceptlist()
163 Pair<String, Long> entry = iter.next(); in cleanupAcceptlist()
168 iter.remove(); in cleanupAcceptlist()
178 for (Iterator<Pair<String, Long>> iter = mAcceptlist.iterator(); iter.hasNext(); ) { in addToAcceptlist()
179 Pair<String, Long> entry = iter.next(); in addToAcceptlist()
181 iter.remove(); in addToAcceptlist()
/packages/apps/TV/src/com/android/tv/dvr/
DDvrScheduleManager.java781 for (Iterator<ScheduledRecording> iter = schedulesToCheck.iterator(); iter.hasNext(); ) { in getConflictingSchedules()
782 ScheduledRecording schedule = iter.next(); in getConflictingSchedules()
786 iter.remove(); in getConflictingSchedules()
793 iter.remove(); in getConflictingSchedules()
910 for (Iterator<ScheduledRecording> iter = conflicts.keySet().iterator(); in getConflictingSchedulesInfo()
911 iter.hasNext(); ) { in getConflictingSchedulesInfo()
913 ScheduledRecording schedule = iter.next(); in getConflictingSchedulesInfo()
921 iter.remove(); in getConflictingSchedulesInfo()
935 for (Iterator<ScheduledRecording> iter = recordings.iterator(); iter.hasNext(); ) { in removeFinishedRecordings()
936 if (iter.next().getEndTimeMs() <= currentTimeMs) { in removeFinishedRecordings()
[all …]
DDvrDataManagerImpl.java191 Iterator<Entry<Long, T>> iter = from.entrySet().iterator(); in moveElements() local
192 while (iter.hasNext()) { in moveElements()
193 Entry<Long, T> entry = iter.next(); in moveElements()
196 iter.remove(); in moveElements()
923 Iterator<Entry<Long, ScheduledRecording>> iter = in removeDeletedSchedules() local
925 while (iter.hasNext()) { in removeDeletedSchedules()
926 Entry<Long, ScheduledRecording> entry = iter.next(); in removeDeletedSchedules()
929 iter.remove(); in removeDeletedSchedules()
1105 Iterator<SeriesRecording> iter = mSeriesRecordings.values().iterator(); in validateSeriesRecordings() local
1107 while (iter.hasNext()) { in validateSeriesRecordings()
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/network/
DSubscriptionUtils.java80 for (Iterator<SubscriptionInfo> iter = subscriptions.iterator(); iter.hasNext(); ) { in getAvailableSubscriptions()
81 SubscriptionInfo info = iter.next(); in getAvailableSubscriptions()
83 iter.remove(); in getAvailableSubscriptions()
/packages/apps/Calendar/src/com/android/calendar/
DEvent.java498 private static long removeAlldayActiveEvents(Event event, Iterator<Event> iter, long colMask) { in removeAlldayActiveEvents() argument
502 while (iter.hasNext()) { in removeAlldayActiveEvents()
503 final Event active = iter.next(); in removeAlldayActiveEvents()
506 iter.remove(); in removeAlldayActiveEvents()
513 Event event, Iterator<Event> iter, long minDurationMillis, long colMask) { in removeNonAlldayActiveEvents() argument
518 while (iter.hasNext()) { in removeNonAlldayActiveEvents()
519 final Event active = iter.next(); in removeNonAlldayActiveEvents()
525 iter.remove(); in removeNonAlldayActiveEvents()
/packages/apps/Settings/src/com/android/settings/development/
DAdbIpAddressPreferenceController.java139 Iterator<LinkAddress> iter = prop.getAllLinkAddresses().iterator(); in formatIpAddresses() local
141 if (!iter.hasNext()) { in formatIpAddresses()
147 while (iter.hasNext()) { in formatIpAddresses()
148 InetAddress addr = iter.next().getAddress(); in formatIpAddresses()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DSelfRecovery.java169 Iterator<Long> iter = mPastRestartTimes.iterator(); in trimPastRestartTimes() local
171 while (iter.hasNext()) { in trimPastRestartTimes()
172 Long restartTimeMillis = iter.next(); in trimPastRestartTimes()
174 iter.remove(); in trimPastRestartTimes()
/packages/modules/Virtualization/zipfuse/src/
Dmain.rs284 for (name, dir_entry) in directory.iter() { in opendir()
480 let iter = fs::read_dir(&dir_path); in check_dir() localVariable
481 assert!(iter.is_ok()); in check_dir()
483 let iter = iter.unwrap(); in check_dir() localVariable
486 for de in iter { in check_dir()
496 files.iter().map(|s| PathBuf::from(s.as_ref())).collect(); in check_dir()
498 dirs.iter().map(|s| PathBuf::from(s.as_ref())).collect(); in check_dir()
629 dirs_expected.iter().map(|s| s.as_str()).collect::<Vec<&str>>().as_slice(), in large_dir()
Dinode.rs185 let mut iter = path.iter().peekable(); in from_zip() localVariable
186 while let Some(name) = iter.next() { in from_zip()
192 let is_leaf = iter.peek().is_none(); in from_zip()
408 for path in invalid_paths.iter() { in rejects_invalid_paths()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/clipping/
DClipStorageTest.java127 Iterator<Uri> iter = reader.iterator(); in testReadConcurrently() local
130 while (iter.hasNext() && iter2.hasNext()) { in testReadConcurrently()
131 uris.add(iter.next()); in testReadConcurrently()
135 assertFalse(iter.hasNext()); in testReadConcurrently()
/packages/apps/Test/connectivity/sl4n/utils/
Dcommand_receiver.cpp56 function_map::const_iterator iter = _funcMap->find(cmd); in Call() local
57 if (iter != _funcMap->end()) { in Call()
58 iter->second(doc); in Call()
/packages/apps/SecureElement/src/com/android/se/security/
DAccessRuleCache.java401 Iterator<REF_DO> iter = keySet.iterator(); in searchForRulesWithSpecificAidButOtherHash() local
402 while (iter.hasNext()) { in searchForRulesWithSpecificAidButOtherHash()
403 REF_DO ref_do = iter.next(); in searchForRulesWithSpecificAidButOtherHash()
434 Iterator<REF_DO> iter = keySet.iterator(); in searchForRulesWithAllAidButOtherHash() local
435 while (iter.hasNext()) { in searchForRulesWithAllAidButOtherHash()
436 REF_DO ref_do = iter.next(); in searchForRulesWithAllAidButOtherHash()
/packages/modules/Virtualization/authfs/src/
Dcrypto.rs69 pub fn update_from<I, T>(&mut self, iter: I) -> Result<&mut Self, CryptoError> in update_from()
74 for data in iter { in update_from()
97 data.iter().map(|&b| format!("{:02x}", b)).collect() in to_hex_string()
/packages/services/Car/cpp/evs/manager/1.1/test/fuzzer/
DMockHWEnumerator.h94 auto iter = mDisplayPortList.find(port); in openDisplay_1_1() local
95 if (iter != mDisplayPortList.end()) { in openDisplay_1_1()
96 uint64_t id = iter->second; in openDisplay_1_1()
/packages/apps/TV/src/com/android/tv/dvr/ui/list/
DSeriesScheduleRowAdapter.java252 for (Iterator<Program> iter = mPrograms.values().iterator(); iter.hasNext(); ) { in handleUpdateRow()
253 Program program = iter.next(); in handleUpdateRow()
257 iter.remove(); in handleUpdateRow()
/packages/services/Car/cpp/evs/manager/1.1/
DVirtualCamera.cpp318 auto iter = mHalCamera.begin(); in startVideoStream() local
319 while (iter != mHalCamera.end()) { in startVideoStream()
320 auto pHwCamera = iter->second.promote(); in startVideoStream()
322 LOG(ERROR) << "Failed to start a video stream on " << iter->first; in startVideoStream()
327 << " starts a video stream on " << iter->first; in startVideoStream()
336 while (rb != iter) { in startVideoStream()
345 ++iter; in startVideoStream()
/packages/modules/NeuralNetworks/common/
DExecutionBurstController.cpp434 auto iter = mMemoryIdToSlot.find(key); in freeMemory() local
435 if (iter == mMemoryIdToSlot.end()) { in freeMemory()
438 const int32_t slot = iter->second; in freeMemory()
447 auto iter = mMemoryIdToSlot.find(key); in getSlotLocked() local
448 if (iter == mMemoryIdToSlot.end()) { in getSlotLocked()
454 const int32_t slot = iter->second; in getSlotLocked()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/model/
DLiveWallpaperInfo.java283 Iterator<ResolveInfo> iter = resolveInfos.iterator(); in getAllOnDevice() local
284 while (iter.hasNext()) { in getAllOnDevice()
285 ResolveInfo resolveInfo = iter.next(); in getAllOnDevice()
287 iter.remove(); in getAllOnDevice()
290 iter.remove(); in getAllOnDevice()

123