Searched refs:oldItems (Results 1 – 3 of 3) sorted by relevance
/frameworks/libs/net/common/framework/android/net/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 | 223 List<String> oldItems = strArray("hello123", "goodbye5678", "howareyou669"); in testCompareOrUpdateResult() local 230 new CompareOrUpdateResult<String, String>(oldItems, emptyList, extractPrefix); in testCompareOrUpdateResult() 244 result = new CompareOrUpdateResult<>(oldItems, newItems, extractPrefix); in testCompareOrUpdateResult() 254 result = new CompareOrUpdateResult<String, String>(oldItems, null, extractPrefix); in testCompareOrUpdateResult()
|
/frameworks/base/tests/net/common/java/android/net/ |
D | LinkPropertiesTest.java | 990 private <T> void compareResult(List<T> oldItems, List<T> newItems, List<T> expectRemoved, in compareResult() argument 992 CompareResult<T> result = new CompareResult<>(oldItems, newItems); in compareResult()
|