Home
last modified time | relevance | path

Searched refs:newList (Results 1 – 20 of 20) sorted by relevance

/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/widget/picker/
DWidgetsDiffReporterTest.java128 List<WidgetsListBaseEntry> newList = List.of( in headersOnly_emptyListToNonEmpty_shouldInvokeNotifyDataSetChanged() local
134 mWidgetsDiffReporter.process(currentList, newList, COMPARATOR); in headersOnly_emptyListToNonEmpty_shouldInvokeNotifyDataSetChanged()
139 assertThat(currentList).containsExactlyElementsIn(newList); in headersOnly_emptyListToNonEmpty_shouldInvokeNotifyDataSetChanged()
148 List<WidgetsListBaseEntry> newList = List.of(); in headersOnly_nonEmptyToEmptyList_shouldInvokeNotifyDataSetChanged() local
151 mWidgetsDiffReporter.process(currentList, newList, COMPARATOR); in headersOnly_nonEmptyToEmptyList_shouldInvokeNotifyDataSetChanged()
165 List<WidgetsListBaseEntry> newList = List.of(mHeaderA, mHeaderC, mHeaderE); in headersOnly_itemAddedAndRemovedInTheNewList_shouldInvokeCorrectCallbacks() local
168 mWidgetsDiffReporter.process(currentList, newList, COMPARATOR); in headersOnly_itemAddedAndRemovedInTheNewList_shouldInvokeCorrectCallbacks()
179 assertThat(currentList).containsExactlyElementsIn(newList); in headersOnly_itemAddedAndRemovedInTheNewList_shouldInvokeCorrectCallbacks()
188 List<WidgetsListBaseEntry> newList = List.of(mHeaderA, mContentC, mHeaderD); in headersContentsMix_itemAddedAndRemovedInTheNewList_shouldInvokeCorrectCallbacks() local
191 mWidgetsDiffReporter.process(currentList, newList, COMPARATOR); in headersContentsMix_itemAddedAndRemovedInTheNewList_shouldInvokeCorrectCallbacks()
[all …]
DWidgetsListAdapterTest.java190 List<WidgetsListBaseEntry> newList = List.of( in setWidgets_hodgepodge_shouldInvokeExpectedDataObserverCallbacks() local
197 mAdapter.setWidgets(newList); in setWidgets_hodgepodge_shouldInvokeExpectedDataObserverCallbacks()
/packages/apps/Settings/src/com/android/settings/development/
DWirelessDebuggingFragment.java317 Map<String, PairDevice> newList = mAdbManager.getPairedDevices(); in onEnabled() local
318 updatePairedDevicePreferences(newList); in onEnabled()
348 private void updatePairedDevicePreferences(Map<String, PairDevice> newList) { in updatePairedDevicePreferences() argument
351 if (newList == null) { in updatePairedDevicePreferences()
359 for (Map.Entry<String, PairDevice> entry : newList.entrySet()) { in updatePairedDevicePreferences()
377 if (newList.get(entry.getKey()) == null) { in updatePairedDevicePreferences()
384 p.setPairedDevice(newList.get(entry.getKey())); in updatePairedDevicePreferences()
391 newList.entrySet()) { in updatePairedDevicePreferences()
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/browse/
DMediaBrowserViewModelImpl.java124 @Nullable List<MediaItemMetadata> oldList, @Nullable List<MediaItemMetadata> newList) { in computeRemovedItems() argument
130 if (newList == null || newList.isEmpty()) { in computeRemovedItems()
136 itemsById.removeAll(newList); in computeRemovedItems()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/specialaccess/
DManageApplicationsController.java125 final List<Preference> newList = new ArrayList<>(apps.size() + 1); in updateAppList() local
133 newList.add(mCallback.bindPreference(recycle, entry)); in updateAppList()
142 if (newList.size() > 0) { in updateAppList()
143 for (Preference prefToAdd : newList) { in updateAppList()
/packages/apps/Car/Notification/src/com/android/car/notification/
DCarNotificationDiff.java50 @NonNull List<NotificationGroup> newList) { in CarNotificationDiff() argument
51 this(context, oldList, newList, ContentLimitingAdapter.UNLIMITED); in CarNotificationDiff()
55 @NonNull List<NotificationGroup> newList, int maxItems) { in CarNotificationDiff() argument
58 mNewList = newList; in CarNotificationDiff()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/fallback/
DFallbackRecentsView.java152 ArrayList<Task> newList = new ArrayList<>(tasks.size() + 1); in applyLoadPlan() local
153 newList.addAll(tasks); in applyLoadPlan()
154 newList.add(Task.from(new TaskKey(mHomeTaskInfo), mHomeTaskInfo, false)); in applyLoadPlan()
155 tasks = newList; in applyLoadPlan()
/packages/apps/TV/src/com/android/tv/onboarding/
DSetupSourcesFragment.java257 List<TvInputInfo> newList = new ArrayList<>(mInputs); in buildInputs() local
259 newList.remove(input); in buildInputs()
261 if (newList.size() > 0 && mSetupUtils.isNewInput(newList.get(0).getId())) { in buildInputs()
262 mNewlyAddedInputId = newList.get(0).getId(); in buildInputs()
/packages/apps/Car/Settings/src/com/android/car/settings/profiles/
DProfilesBasePreferenceController.java110 List<Preference> newList) { in profileListsAreDifferent() argument
111 if (currentList.size() != newList.size()) { in profileListsAreDifferent()
117 if (preferencesAreDifferent(currentList.get(i), newList.get(i))) { in profileListsAreDifferent()
/packages/services/Car/tests/GarageModeTestApp/src/com/google/android/car/garagemode/testapp/
DJobSchedulerWrapper.java262 private synchronized List<JobInfo> newJobsSince(List<JobInfo> oldList, List<JobInfo> newList) { in newJobsSince() argument
263 return findDiffBetween(newList, oldList); in newJobsSince()
267 List<JobInfo> oldList, List<JobInfo> newList) { in completedJobsSince() argument
269 List<JobInfo> completedJobsList = findDiffBetween(oldList, newList); in completedJobsSince()
/packages/services/Telephony/src/com/android/phone/
DShortcutViewUtils.java332 List<EmergencyNumber> newList = new ArrayList<>(emergencyNumberList.size()); in removeCarrierSpecificPrefixes() local
357 if (!newList.contains(newNumber)) { in removeCarrierSpecificPrefixes()
358 newList.add(newNumber); in removeCarrierSpecificPrefixes()
361 return newList; in removeCarrierSpecificPrefixes()
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/
DSearchResultDiffCallback.java33 List<? extends SearchResult> newList) { in SearchResultDiffCallback() argument
35 mNewList = newList; in SearchResultDiffCallback()
/packages/apps/Settings/src/com/android/settings/localepicker/
DLocaleDragAndDropAdapter.java266 final Locale[] newList = new Locale[count]; in doTheUpdate() local
270 newList[i] = li.getLocale(); in doTheUpdate()
273 final LocaleList ll = new LocaleList(newList); in doTheUpdate()
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/
DSimSelectorView.java137 public void bindData(final List<SubscriptionListEntry> newList) { in bindData() argument
139 addAll(newList); in bindData()
/packages/apps/Messaging/src/com/android/messaging/ui/appsettings/
DSettingsActivity.java125 public void setSettingsItems(final List<SettingsItem> newList) { in setSettingsItems() argument
127 addAll(newList); in setSettingsItems()
/packages/apps/Messaging/src/com/android/messaging/ui/conversationsettings/
DPeopleAndOptionsFragment.java253 public void updateParticipants(final List<ParticipantData> newList) { in updateParticipants() argument
255 addAll(newList); in updateParticipants()
/packages/apps/Gallery2/src/com/android/gallery3d/util/
DLinkedNode.java68 public static <T extends LinkedNode> List<T> newList() { in newList() method in LinkedNode
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/audio_util/
DMediaPlayerWrapperTest.java78 ArrayList<MediaSession.QueueItem> newList = new ArrayList<MediaSession.QueueItem>(); in getQueueFromDescriptions() local
81 newList.add( in getQueueFromDescriptions()
86 return newList; in getQueueFromDescriptions()
/packages/apps/Car/Notification/tests/unit/src/com/android/car/notification/
DPreprocessingManagerTest.java646 List<NotificationGroup> newList = in onUpdateNotifications_notificationRemoved_removesNotification() local
669 List<NotificationGroup> newList = in onUpdateNotification_notificationPosted_isUpdate_putsNotification() local
696 List<NotificationGroup> newList = in onUpdateNotification_notificationPosted_isNotUpdate_addsNotification() local
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapContent.java2973 HashMap<Long, BluetoothMapConvoListingElement> newList = in refreshSmsMmsConvoVersions() local
3017 newList.put(id, convoElement); in refreshSmsMmsConvoVersions()
3023 setSmsMmsConvoList(newList); in refreshSmsMmsConvoVersions()
3070 HashMap<Long, BluetoothMapConvoListingElement> newList = in refreshImEmailConvoVersions() local
3120 newList.put(id, convoElement); in refreshImEmailConvoVersions()
3126 setImEmailConvoList(newList); in refreshImEmailConvoVersions()