Home
last modified time | relevance | path

Searched refs:iterator (Results 1 – 25 of 197) sorted by relevance

12345678

/packages/apps/Dialer/java/com/android/dialer/commandline/
DArguments.java88 return parse(Iterators.unmodifiableIterator(rawArguments.iterator())); in parse()
91 public static Arguments parse(UnmodifiableIterator<String> iterator) in parse() argument
93 PeekingIterator<String> peekingIterator = Iterators.peekingIterator(iterator); in parse()
100 private static ImmutableMap<String, String> parseFlags(PeekingIterator<String> iterator) in parseFlags() argument
103 if (!iterator.hasNext()) { in parseFlags()
106 if (!iterator.peek().startsWith("--")) { in parseFlags()
110 while (iterator.hasNext()) { in parseFlags()
111 String peek = iterator.peek(); in parseFlags()
113 iterator.next(); in parseFlags()
117 String key = iterator.next().substring(2); in parseFlags()
[all …]
/packages/services/Car/user/car-user-lib/src/android/car/userlib/
DCarUserManagerHelper.java384 for (Iterator<UserInfo> iterator = users.iterator(); iterator.hasNext(); ) { in getAllPersistentUsers()
385 UserInfo userInfo = iterator.next(); in getAllPersistentUsers()
388 iterator.remove(); in getAllPersistentUsers()
402 for (Iterator<UserInfo> iterator = users.iterator(); iterator.hasNext(); ) { in getAllAdminUsers()
403 UserInfo userInfo = iterator.next(); in getAllAdminUsers()
406 iterator.remove(); in getAllAdminUsers()
420 for (Iterator<UserInfo> iterator = users.iterator(); iterator.hasNext(); ) { in getAllUsersExceptGuests()
421 UserInfo userInfo = iterator.next(); in getAllUsersExceptGuests()
424 iterator.remove(); in getAllUsersExceptGuests()
439 for (Iterator<UserInfo> iterator = users.iterator(); iterator.hasNext(); ) { in getAllUsersExceptSpecifiedUser()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
DContextMap.java201 Iterator<App> i = mApps.iterator(); in remove()
219 Iterator<App> i = mApps.iterator(); in remove()
236 Iterator<App> i = mApps.iterator(); in getAllAppsIds()
262 Iterator<Connection> i = mConnections.iterator(); in removeConnection()
277 Iterator<Connection> i = mConnections.iterator(); in removeConnectionsByAppId()
291 Iterator<App> i = mApps.iterator(); in getById()
308 Iterator<App> i = mApps.iterator(); in getByUuid()
325 Iterator<App> i = mApps.iterator(); in getByName()
342 Iterator<App> i = mApps.iterator(); in getByContextInfo()
377 Iterator<Connection> i = mConnections.iterator(); in getConnectedDevices()
[all …]
/packages/apps/TV/tests/common/src/com/android/tv/input/
DTunerHelper.java86 Iterator<Tuner> iterator = mTuners.iterator(); in stopTune() local
87 while (iterator.hasNext()) { in stopTune()
88 Tuner tuner = iterator.next(); in stopTune()
96 iterator.remove(); in stopTune()
112 Iterator<Tuner> iterator = mTuners.iterator(); in stopRecording() local
113 while (iterator.hasNext()) { in stopRecording()
114 Tuner tuner = iterator.next(); in stopRecording()
122 iterator.remove(); in stopRecording()
/packages/apps/Contacts/tests/src/com/android/contacts/test/mocks/
DMockContentProvider.java523 for (Iterator<Query> iterator = mExpectedQueries.iterator(); iterator.hasNext();) { in query()
524 Query query = iterator.next(); in query()
528 iterator.remove(); in query()
559 for (Iterator<Insert> iterator = mExpectedInserts.iterator(); iterator.hasNext(); ) { in insert()
560 Insert insert = iterator.next(); in insert()
564 iterator.remove(); in insert()
588 for (Iterator<Update> iterator = mExpectedUpdates.iterator(); iterator.hasNext(); ) { in update()
589 Update update = iterator.next(); in update()
593 iterator.remove(); in update()
618 for (Iterator<Delete> iterator = mExpectedDeletes.iterator(); iterator.hasNext(); ) { in delete()
[all …]
/packages/apps/TV/jni/
Dtunertvinput_jni.cpp42 std::map<jlong, DvbManager *>::iterator it = sDvbManagers.find(deviceId); in Java_com_android_tv_tuner_TunerHal_nativeFinalize()
57 std::map<jlong, DvbManager *>::iterator it = sDvbManagers.find(deviceId); in Java_com_android_tv_tuner_TunerHal_nativeTune()
78 std::map<jlong, DvbManager *>::iterator it = sDvbManagers.find(deviceId); in Java_com_android_tv_tuner_TunerHal_nativeCloseAllPidFilters()
91 std::map<jlong, DvbManager *>::iterator it = sDvbManagers.find(deviceId); in Java_com_android_tv_tuner_TunerHal_nativeStopTune()
105 std::map<jlong, DvbManager *>::iterator it = sDvbManagers.find(deviceId); in Java_com_android_tv_tuner_TunerHal_nativeGetSignalStrength()
121 std::map<jlong, DvbManager *>::iterator it = sDvbManagers.find(deviceId); in Java_com_android_tv_tuner_TunerHal_nativeAddPidFilter()
136 std::map<jlong, DvbManager *>::iterator it = sDvbManagers.find(deviceId); in Java_com_android_tv_tuner_TunerHal_nativeWriteInBuffer()
170 std::map<jlong, DvbManager *>::iterator it = sDvbManagers.find(deviceId); in Java_com_android_tv_tuner_TunerHal_nativeSetHasPendingTune()
185 std::map<jlong, DvbManager *>::iterator it = sDvbManagers.find(deviceId); in Java_com_android_tv_tuner_TunerHal_nativeGetDeliverySystemType()
/packages/apps/UniversalMediaPlayer/java/com/android/pump/activity/
DPlaylistDetailsActivity.java171 Iterator<Uri> iterator = albumArtUris.iterator(); in updateViews() local
172 image0View.setImageURI(iterator.next()); in updateViews()
181 Iterator<Uri> iterator = albumArtUris.iterator(); in updateViews() local
182 image0View.setImageURI(iterator.next()); in updateViews()
183 image1View.setImageURI(iterator.next()); in updateViews()
184 image2View.setImageURI(iterator.next()); in updateViews()
185 image3View.setImageURI(iterator.next()); in updateViews()
/packages/apps/UniversalMediaPlayer/java/com/android/pump/fragment/
DPlaylistFragment.java193 Iterator<Uri> iterator = albumArtUris.iterator(); in bind() local
194 image0View.setImageURI(iterator.next()); in bind()
203 Iterator<Uri> iterator = albumArtUris.iterator(); in bind() local
204 image0View.setImageURI(iterator.next()); in bind()
205 image1View.setImageURI(iterator.next()); in bind()
206 image2View.setImageURI(iterator.next()); in bind()
207 image3View.setImageURI(iterator.next()); in bind()
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/base/
DSplitter.java135 /*@Override*/ public SplittingIterator iterator( in on()
163 /*@Override*/ public SplittingIterator iterator(
208 /*@Override*/ public SplittingIterator iterator(
257 /*@Override*/ public SplittingIterator iterator(
335 /*@Override*/ public Iterator<String> iterator() {
336 return strategy.iterator(Splitter.this, sequence);
342 Iterator<String> iterator(Splitter splitter, CharSequence toSplit);
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/datausage/
DAppDataUsageFragmentTest.java101 Iterator iterator = list.iterator(); in onActivityCreated_iteratorIsEmpty_startAndEndDateShouldHaveFourWeeksDifference() local
102 ShadowNetworkPolicyManager.setCycleIterator(iterator); in onActivityCreated_iteratorIsEmpty_startAndEndDateShouldHaveFourWeeksDifference()
129 Iterator iterator = list.iterator(); in onActivityCreated_iteratorIsNotEmpty_startAndEndDateShouldBeLastOneInIterator() local
130 ShadowNetworkPolicyManager.setCycleIterator(iterator); in onActivityCreated_iteratorIsNotEmpty_startAndEndDateShouldBeLastOneInIterator()
/packages/apps/Nfc/src/com/android/nfc/
DNfcUnlockManager.java56 Iterator<IBinder> iterator = mUnlockHandlers.keySet().iterator(); in tryUnlock() local
57 while (iterator.hasNext()) { in tryUnlock()
59 IBinder binder = iterator.next(); in tryUnlock()
66 iterator.remove(); in tryUnlock()
/packages/apps/Contacts/src/com/android/contacts/model/
DRawContactDeltaList.java63 final EntityIterator iterator = RawContacts.newEntityIterator( in fromQuery() local
66 return fromIterator(iterator); in fromQuery()
68 iterator.close(); in fromQuery()
77 public static RawContactDeltaList fromIterator(Iterator<?> iterator) { in fromIterator() argument
79 state.addAll(iterator); in fromIterator()
83 public void addAll(Iterator<?> iterator) { in addAll() argument
85 while (iterator.hasNext()) { in addAll()
87 Object nextObject = iterator.next(); in addAll()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowLocalBroadcastManager.java58 Iterator<Wrapper> iterator = sRegisteredReceivers.iterator(); in unregisterReceiver() local
59 while (iterator.hasNext()) { in unregisterReceiver()
60 Wrapper wrapper = iterator.next(); in unregisterReceiver()
62 iterator.remove(); in unregisterReceiver()
/packages/apps/Dialer/java/com/android/dialer/contactphoto/
DContactPhotoManagerImpl.java486 final Iterator<Entry<ImageView, Request>> iterator = pendingRequests.entrySet().iterator(); in cancelPendingRequests() local
487 while (iterator.hasNext()) { in cancelPendingRequests()
488 final ImageView imageView = iterator.next().getKey(); in cancelPendingRequests()
492 iterator.remove(); in cancelPendingRequests()
666 final Iterator<Entry<ImageView, Request>> iterator = pendingRequests.entrySet().iterator(); in processLoadedImages() local
667 while (iterator.hasNext()) { in processLoadedImages()
668 final Entry<ImageView, Request> entry = iterator.next(); in processLoadedImages()
673 iterator.remove(); in processLoadedImages()
754 Iterator<Request> iterator = pendingRequests.values().iterator(); in obtainPhotoIdsAndUrisToLoad() local
755 while (iterator.hasNext()) { in obtainPhotoIdsAndUrisToLoad()
[all …]
/packages/apps/Settings/tests/uitests/src/com/android/settings/ui/
DAboutPhoneSettingsTests.java110 for (Iterator<String> iterator = itemsLeftToFind.iterator(); iterator.hasNext(); ) { in removeItemsAndTakeAction()
111 String itemText = iterator.next(); in removeItemsAndTakeAction()
114 iterator.remove(); in removeItemsAndTakeAction()
/packages/apps/Launcher3/src/com/android/launcher3/compat/
DAppWidgetManagerCompatVL.java70 Iterator<AppWidgetProviderInfo> iterator = providers.iterator(); in getAllProviders() local
71 while (iterator.hasNext()) { in getAllProviders()
72 if (!iterator.next().provider.getPackageName().equals(packageUser.mPackageName)) { in getAllProviders()
73 iterator.remove(); in getAllProviders()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DSlidingWindowTest.java47 assertTrue(sameContents(elements.iterator(), window.iterator())); in testAdd()
55 assertTrue(sameContents(expectedElements.iterator(), window.iterator())); in testAddOverflow()
/packages/apps/TV/src/com/android/tv/dvr/
DDvrDataManagerImpl.java178 Iterator<Entry<Long, T>> iter = from.entrySet().iterator(); in moveElements()
353 Iterator<AsyncTask> i = mPendingTasks.iterator(); in stop()
359 Iterator<Future> id = mPendingDvrFuture.iterator(); in stop()
716 Iterator<ScheduledRecording> iterator = schedulesNotToDelete.iterator(); in removeScheduledRecording() local
717 while (iterator.hasNext()) { in removeScheduledRecording()
718 ScheduledRecording r = iterator.next(); in removeScheduledRecording()
720 iterator.remove(); in removeScheduledRecording()
895 getDeletedScheduleMap().entrySet().iterator(); in removeDeletedSchedules()
1022 mScheduledRecordingsForRemovedInput.values().iterator(); in forgetStorage()
1031 for (Iterator<SeriesRecording> i = mSeriesRecordingsForRemovedInput.values().iterator(); in forgetStorage()
[all …]
/packages/apps/Contacts/src/com/android/contacts/
DContactPhotoManager.java895 final Iterator<Entry<ImageView, Request>> iterator = mPendingRequests.entrySet().iterator(); in cancelPendingRequests() local
896 while (iterator.hasNext()) { in cancelPendingRequests()
897 final ImageView imageView = iterator.next().getKey(); in cancelPendingRequests()
901 iterator.remove(); in cancelPendingRequests()
1151 final Iterator<Entry<ImageView, Request>> iterator = mPendingRequests.entrySet().iterator(); in processLoadedImages() local
1152 while (iterator.hasNext()) { in processLoadedImages()
1153 final Entry<ImageView, Request> entry = iterator.next(); in processLoadedImages()
1158 iterator.remove(); in processLoadedImages()
1254 Iterator<Request> iterator = mPendingRequests.values().iterator(); in obtainPhotoIdsAndUrisToLoad() local
1255 while (iterator.hasNext()) { in obtainPhotoIdsAndUrisToLoad()
[all …]
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DVideoCallTests.java170 .iterator().next(); in testIncomingVideoCallMissedCheckVideoHistory()
187 .iterator().next(); in testIncomingVideoCallRejectedCheckVideoHistory()
206 .iterator().next(); in testOutgoingVideoCallCanceledCheckVideoHistory()
224 .iterator().next(); in testOutgoingVideoCallRejectedCheckVideoHistory()
242 .iterator().next(); in testOutgoingVideoCallAnsweredAsAudio()
/packages/apps/Launcher3/src/com/android/launcher3/popup/
DPopupDataProvider.java217 Iterator<WidgetItem> iterator = widgets.iterator(); in getWidgetsForPackageUser() local
218 while (iterator.hasNext()) { in getWidgetsForPackageUser()
219 if (!iterator.next().user.equals(packageUserKey.mUser)) { in getWidgetsForPackageUser()
220 iterator.remove(); in getWidgetsForPackageUser()
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
DGalleryGridView.java209 final Iterator<Map.Entry<Uri, MessagePartData>> iterator = in refreshImageSelectionStateOnAttachmentChange() local
210 mSelectedImages.entrySet().iterator(); in refreshImageSelectionStateOnAttachmentChange()
211 while (iterator.hasNext()) { in refreshImageSelectionStateOnAttachmentChange()
212 Map.Entry<Uri, MessagePartData> entry = iterator.next(); in refreshImageSelectionStateOnAttachmentChange()
214 iterator.remove(); in refreshImageSelectionStateOnAttachmentChange()
/packages/apps/UnifiedEmail/src/org/apache/commons/io/
DLineIterator.java175 public static void closeQuietly(LineIterator iterator) { in closeQuietly() argument
176 if (iterator != null) { in closeQuietly()
177 iterator.close(); in closeQuietly()
/packages/apps/Contacts/src/com/android/contacts/drawer/
DDrawerFragment.java289 final Iterator<GroupListItem> iterator = mGroupListItems.iterator(); in notifyIfReady() local
290 while (iterator.hasNext()) { in notifyIfReady()
291 final GroupListItem groupListItem = iterator.next(); in notifyIfReady()
293 iterator.remove(); in notifyIfReady()
/packages/apps/Email/src/com/beetstra/jutf7/
DCharsetProvider.java71 for (Iterator<Charset> iter = charsets.iterator(); iter.hasNext();) { in charsetForName()
76 for (Iterator<Charset> iter = charsets.iterator(); iter.hasNext();) { in charsetForName()
89 return charsets.iterator(); in charsets()

12345678