Home
last modified time | relevance | path

Searched refs:newItems (Results 1 – 2 of 2) sorted by relevance

/frameworks/libs/net/common/framework/com/android/net/module/util/
DLinkPropertiesUtils.java49 public CompareResult(@Nullable Collection<T> oldItems, @Nullable Collection<T> newItems) { in CompareResult() argument
53 if (newItems != null) { in CompareResult()
54 for (T newItem : newItems) { in CompareResult()
91 public CompareOrUpdateResult(Collection<T> oldItems, Collection<T> newItems, in CompareOrUpdateResult() argument
101 if (newItems != null) { in CompareOrUpdateResult()
102 for (T newItem : newItems) { in CompareOrUpdateResult()
/frameworks/libs/net/common/tests/unit/src/android/net/util/
DLinkPropertiesUtilsTest.java173 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()
272 List<String> newItems = strArray("hello123", "goodbye000", "verywell"); in testCompareOrUpdateResult() local
283 result = new CompareOrUpdateResult<String, String>(emptyList, newItems, extractPrefix); in testCompareOrUpdateResult()
288 result = new CompareOrUpdateResult<String, String>(newItems, newItems, extractPrefix); in testCompareOrUpdateResult()
292 result = new CompareOrUpdateResult<>(oldItems, newItems, extractPrefix); in testCompareOrUpdateResult()
297 result = new CompareOrUpdateResult<String, String>(null, newItems, extractPrefix); in testCompareOrUpdateResult()