Searched refs:oldItems (Results 1 – 2 of 2) sorted by relevance
/frameworks/libs/net/common/framework/com/android/net/module/util/ |
D | LinkPropertiesUtils.java | 49 public CompareResult(@Nullable Collection<T> oldItems, @Nullable Collection<T> newItems) { in CompareResult() argument 50 if (oldItems != null) { in CompareResult() 51 removed.addAll(oldItems); in CompareResult() 91 public CompareOrUpdateResult(Collection<T> oldItems, Collection<T> newItems, in CompareOrUpdateResult() argument 95 if (oldItems != null) { in CompareOrUpdateResult() 96 for (T oldItem : oldItems) { in CompareOrUpdateResult()
|
/frameworks/libs/net/common/tests/unit/src/android/net/util/ |
D | LinkPropertiesUtilsTest.java | 173 private <T> void compareResult(List<T> oldItems, List<T> newItems, List<T> expectRemoved, in compareResult() argument 175 CompareResult<T> result = new CompareResult<>(oldItems, newItems); in compareResult() 271 List<String> oldItems = strArray("hello123", "goodbye5678", "howareyou669"); in testCompareOrUpdateResult() local 278 new CompareOrUpdateResult<String, String>(oldItems, emptyList, extractPrefix); in testCompareOrUpdateResult() 292 result = new CompareOrUpdateResult<>(oldItems, newItems, extractPrefix); in testCompareOrUpdateResult() 302 result = new CompareOrUpdateResult<String, String>(oldItems, null, extractPrefix); in testCompareOrUpdateResult()
|