Home
last modified time | relevance | path

Searched refs:newItem (Results 1 – 3 of 3) sorted by relevance

/frameworks/libs/net/common/framework/android/net/util/
DLinkPropertiesUtils.java54 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()
/frameworks/base/services/core/java/com/android/server/job/
DJobSchedulerService.java785 static <T> void addOrderedItem(ArrayList<T> array, T newItem, Comparator<T> comparator) { in addOrderedItem() argument
786 int where = Collections.binarySearch(array, newItem, comparator); in addOrderedItem()
790 array.add(where, newItem); in addOrderedItem()
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsImpl.java3699 HistoryItem newItem = new HistoryItem(); in addHistoryBufferLocked() local
3700 newItem.setTo(cur); in addHistoryBufferLocked()
3702 addHistoryBufferLocked(elapsedRealtimeMs, HistoryItem.CMD_UPDATE, newItem); in addHistoryBufferLocked()