/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/widget/picker/ |
D | WidgetsDiffReporterTest.java | 128 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 …]
|
D | WidgetsListAdapterTest.java | 190 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/ |
D | WirelessDebuggingFragment.java | 317 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/ |
D | MediaBrowserViewModelImpl.java | 124 @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/ |
D | ManageApplicationsController.java | 125 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/ |
D | CarNotificationDiff.java | 50 @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/ |
D | FallbackRecentsView.java | 152 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/ |
D | SetupSourcesFragment.java | 257 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/ |
D | ProfilesBasePreferenceController.java | 110 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/ |
D | JobSchedulerWrapper.java | 262 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/ |
D | ShortcutViewUtils.java | 332 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/ |
D | SearchResultDiffCallback.java | 33 List<? extends SearchResult> newList) { in SearchResultDiffCallback() argument 35 mNewList = newList; in SearchResultDiffCallback()
|
/packages/apps/Settings/src/com/android/settings/localepicker/ |
D | LocaleDragAndDropAdapter.java | 266 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/ |
D | SimSelectorView.java | 137 public void bindData(final List<SubscriptionListEntry> newList) { in bindData() argument 139 addAll(newList); in bindData()
|
/packages/apps/Messaging/src/com/android/messaging/ui/appsettings/ |
D | SettingsActivity.java | 125 public void setSettingsItems(final List<SettingsItem> newList) { in setSettingsItems() argument 127 addAll(newList); in setSettingsItems()
|
/packages/apps/Messaging/src/com/android/messaging/ui/conversationsettings/ |
D | PeopleAndOptionsFragment.java | 253 public void updateParticipants(final List<ParticipantData> newList) { in updateParticipants() argument 255 addAll(newList); in updateParticipants()
|
/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
D | LinkedNode.java | 68 public static <T extends LinkedNode> List<T> newList() { in newList() method in LinkedNode
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/audio_util/ |
D | MediaPlayerWrapperTest.java | 78 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/ |
D | PreprocessingManagerTest.java | 646 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/ |
D | BluetoothMapContent.java | 2973 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()
|