Searched refs:newItem (Results 1 – 3 of 3) sorted by relevance
54 for (T newItem : newItems) { in CompareResult()55 if (!removed.remove(newItem)) { in CompareResult()56 added.add(newItem); in CompareResult()102 for (T newItem : newItems) { in CompareOrUpdateResult()103 T oldItem = updateTracker.remove(keyCalculator.apply(newItem)); in CompareOrUpdateResult()105 if (!oldItem.equals(newItem)) { in CompareOrUpdateResult()107 updated.add(newItem); in CompareOrUpdateResult()111 added.add(newItem); in CompareOrUpdateResult()
785 static <T> void addOrderedItem(ArrayList<T> array, T newItem, Comparator<T> comparator) { in addOrderedItem() argument786 int where = Collections.binarySearch(array, newItem, comparator); in addOrderedItem()790 array.add(where, newItem); in addOrderedItem()
3699 HistoryItem newItem = new HistoryItem(); in addHistoryBufferLocked() local3700 newItem.setTo(cur); in addHistoryBufferLocked()3702 addHistoryBufferLocked(elapsedRealtimeMs, HistoryItem.CMD_UPDATE, newItem); in addHistoryBufferLocked()