Home
last modified time | relevance | path

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

/frameworks/support/v7/recyclerview/src/main/java/androidx/recyclerview/widget/
DSortedList.java251 private void addAllInternal(T[] newItems) { in addAllInternal() argument
252 if (newItems.length < 1) { in addAllInternal()
256 final int newSize = sortAndDedup(newItems); in addAllInternal()
259 mData = newItems; in addAllInternal()
263 merge(newItems, newSize); in addAllInternal()
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/widget/
DGridWidgetTest.java1053 int[] newItems = new int[newCount]; in testPredictiveOnMeasureWrapContent()
1055 newItems[i] = 400; in testPredictiveOnMeasureWrapContent()
1057 mActivity.addItems(0, newItems); in testPredictiveOnMeasureWrapContent()
2323 int[] newItems = new int[]{300, 300, 300}; in testScrollAndInsert()
2324 mActivity.addItems(0, newItems); in testScrollAndInsert()
2377 int[] newItems = new int[]{300, 300, 300}; in testScrollAndInsertBeforeVisibleItem()
2378 mActivity.addItems(focusToIndex, newItems); in testScrollAndInsertBeforeVisibleItem()
5528 int[] newItems = new int[100]; in testUpdateAndSelect3()
5529 for (int i = 0; i < newItems.length; i++) { in testUpdateAndSelect3()
5530 newItems[i] = mActivity.mItemLengths[0]; in testUpdateAndSelect3()
[all …]
/frameworks/base/core/java/android/net/
DLinkProperties.java81 public CompareResult(Collection<T> oldItems, Collection<T> newItems) { in CompareResult() argument
85 if (newItems != null) { in CompareResult()
86 for (T newItem : newItems) { in CompareResult()
/frameworks/base/tests/net/java/android/net/
DLinkPropertiesTest.java785 private <T> void compareResult(List<T> oldItems, List<T> newItems, List<T> expectRemoved, in compareResult() argument
787 CompareResult<T> result = new CompareResult<>(oldItems, newItems); in compareResult()