Home
last modified time | relevance | path

Searched refs:iterator (Results 1 – 25 of 194) 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.java378 for (Iterator<UserInfo> iterator = users.iterator(); iterator.hasNext(); ) { in getAllPersistentUsers()
379 UserInfo userInfo = iterator.next(); in getAllPersistentUsers()
382 iterator.remove(); in getAllPersistentUsers()
396 for (Iterator<UserInfo> iterator = users.iterator(); iterator.hasNext(); ) { in getAllAdminUsers()
397 UserInfo userInfo = iterator.next(); in getAllAdminUsers()
400 iterator.remove(); in getAllAdminUsers()
414 for (Iterator<UserInfo> iterator = users.iterator(); iterator.hasNext(); ) { in getAllUsersExceptGuests()
415 UserInfo userInfo = iterator.next(); in getAllUsersExceptGuests()
418 iterator.remove(); in getAllUsersExceptGuests()
433 for (Iterator<UserInfo> iterator = users.iterator(); iterator.hasNext(); ) { in getAllUsersExceptSpecifiedUser()
[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/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 …]
DScanFilterQueue.java150 Iterator<Entry> iterator = mEntries.iterator(); in pop() local
151 Entry entry = iterator.next(); in pop()
152 iterator.remove(); in pop()
/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()
58 std::map<jlong, DvbManager *>::iterator it = sDvbManagers.find(deviceId); in Java_com_android_tv_tuner_TunerHal_nativeTune__JILjava_lang_String_2I()
80 std::map<jlong, DvbManager *>::iterator it = sDvbManagers.find(deviceId); in Java_com_android_tv_tuner_TunerHal_nativeTune__JIILjava_lang_String_2I()
102 std::map<jlong, DvbManager *>::iterator it = sDvbManagers.find(deviceId); in Java_com_android_tv_tuner_TunerHal_nativeCloseAllPidFilters()
115 std::map<jlong, DvbManager *>::iterator it = sDvbManagers.find(deviceId); in Java_com_android_tv_tuner_TunerHal_nativeStopTune()
129 std::map<jlong, DvbManager *>::iterator it = sDvbManagers.find(deviceId); in Java_com_android_tv_tuner_TunerHal_nativeGetSignalStrength()
145 std::map<jlong, DvbManager *>::iterator it = sDvbManagers.find(deviceId); in Java_com_android_tv_tuner_TunerHal_nativeAddPidFilter()
160 std::map<jlong, DvbManager *>::iterator it = sDvbManagers.find(deviceId); in Java_com_android_tv_tuner_TunerHal_nativeWriteInBuffer()
194 std::map<jlong, DvbManager *>::iterator it = sDvbManagers.find(deviceId); in Java_com_android_tv_tuner_TunerHal_nativeSetHasPendingTune()
209 std::map<jlong, DvbManager *>::iterator it = sDvbManagers.find(deviceId); in Java_com_android_tv_tuner_TunerHal_nativeGetDeliverySystemType()
[all …]
/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/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.java487 final Iterator<Entry<ImageView, Request>> iterator = pendingRequests.entrySet().iterator(); in cancelPendingRequests() local
488 while (iterator.hasNext()) { in cancelPendingRequests()
489 final ImageView imageView = iterator.next().getKey(); in cancelPendingRequests()
493 iterator.remove(); in cancelPendingRequests()
667 final Iterator<Entry<ImageView, Request>> iterator = pendingRequests.entrySet().iterator(); in processLoadedImages() local
668 while (iterator.hasNext()) { in processLoadedImages()
669 final Entry<ImageView, Request> entry = iterator.next(); in processLoadedImages()
674 iterator.remove(); in processLoadedImages()
755 Iterator<Request> iterator = pendingRequests.values().iterator(); in obtainPhotoIdsAndUrisToLoad() local
756 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.java68 Iterator<AppWidgetProviderInfo> iterator = providers.iterator(); in getAllProviders() local
69 while (iterator.hasNext()) { in getAllProviders()
70 if (!iterator.next().provider.getPackageName().equals(packageUser.mPackageName)) { in getAllProviders()
71 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/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/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/apps/TV/src/com/android/tv/dvr/
DDvrDataManagerImpl.java191 Iterator<Entry<Long, T>> iter = from.entrySet().iterator(); in moveElements()
382 Iterator<AsyncTask> i = mPendingTasks.iterator(); in stop()
388 Iterator<Future> id = mPendingDvrFuture.iterator(); in stop()
745 Iterator<ScheduledRecording> iterator = schedulesNotToDelete.iterator(); in removeScheduledRecording() local
746 while (iterator.hasNext()) { in removeScheduledRecording()
747 ScheduledRecording r = iterator.next(); in removeScheduledRecording()
749 iterator.remove(); in removeScheduledRecording()
924 getDeletedScheduleMap().entrySet().iterator(); in removeDeletedSchedules()
1051 mScheduledRecordingsForRemovedInput.values().iterator(); in forgetStorage()
1060 for (Iterator<SeriesRecording> i = mSeriesRecordingsForRemovedInput.values().iterator(); in forgetStorage()
[all …]
/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/Launcher3/src/com/android/launcher3/popup/
DPopupDataProvider.java232 Iterator<WidgetItem> iterator = widgets.iterator(); in getWidgetsForPackageUser() local
233 while (iterator.hasNext()) { in getWidgetsForPackageUser()
234 if (!iterator.next().user.equals(packageUserKey.mUser)) { in getWidgetsForPackageUser()
235 iterator.remove(); in getWidgetsForPackageUser()
/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/Bluetooth/src/com/android/bluetooth/statemachine/
DStateMachine.java1960 Iterator<Message> iterator = smh.mDeferredMessages.iterator(); in removeDeferredMessages()
1961 while (iterator.hasNext()) { in removeDeferredMessages()
1962 Message msg = iterator.next(); in removeDeferredMessages()
1963 if (msg.what == what) iterator.remove(); in removeDeferredMessages()
1974 Iterator<Message> iterator = smh.mDeferredMessages.iterator(); in hasDeferredMessages()
1975 while (iterator.hasNext()) { in hasDeferredMessages()
1976 Message msg = iterator.next(); in hasDeferredMessages()
/packages/apps/TV/tuner/src/com/android/tv/tuner/hdhomerun/
DHdHomeRunDiscover.java156 Iterator<HdHomeRunDiscoverSocket> iterator = mSockets.iterator(); in resetLocalIpSockets() local
157 while (iterator.hasNext()) { in resetLocalIpSockets()
158 HdHomeRunDiscoverSocket discoverSocket = iterator.next(); in resetLocalIpSockets()
161 iterator.remove(); in resetLocalIpSockets()

12345678