Home
last modified time | relevance | path

Searched refs:expectedArray (Results 1 – 7 of 7) sorted by relevance

/libcore/luni/src/test/java/libcore/java/util/concurrent/
DAtomicLongArrayTest.java39 long[] expectedArray = { 42, 43, 44, 45 }; in testCompareAndExchange() local
40 AtomicLongArray arr = new AtomicLongArray(expectedArray); in testCompareAndExchange()
42 assertEquals(expectedArray[i], arr.compareAndExchange(i, 0, i+1)); in testCompareAndExchange()
43 checkArrayAsExpected(expectedArray, arr); in testCompareAndExchange()
45 assertEquals(expectedArray[i], arr.compareAndExchange(i, expectedArray[i], i+1)); in testCompareAndExchange()
47 expectedArray[i] = i+1; in testCompareAndExchange()
48 checkArrayAsExpected(expectedArray, arr); in testCompareAndExchange()
52 expectedArray[i] = -1; in testCompareAndExchange()
53 checkArrayAsExpected(expectedArray, arr); in testCompareAndExchange()
57 expectedArray[i] = i*2; in testCompareAndExchange()
[all …]
DAtomicIntegerArrayTest.java39 int[] expectedArray = { 42, 43, 44, 45 }; in testCompareAndExchange() local
40 AtomicIntegerArray arr = new AtomicIntegerArray(expectedArray); in testCompareAndExchange()
42 assertEquals(expectedArray[i], arr.compareAndExchange(i, 0, i+1)); in testCompareAndExchange()
43 checkArrayAsExpected(expectedArray, arr); in testCompareAndExchange()
45 assertEquals(expectedArray[i], arr.compareAndExchange(i, expectedArray[i], i+1)); in testCompareAndExchange()
47 expectedArray[i] = i+1; in testCompareAndExchange()
48 checkArrayAsExpected(expectedArray, arr); in testCompareAndExchange()
52 expectedArray[i] = -1; in testCompareAndExchange()
53 checkArrayAsExpected(expectedArray, arr); in testCompareAndExchange()
57 expectedArray[i] = i*2; in testCompareAndExchange()
[all …]
DAtomicReferenceArrayTest.java40 Integer[] expectedArray = { in testCompareAndExchange() local
46 AtomicReferenceArray<Integer> arr = new AtomicReferenceArray(expectedArray); in testCompareAndExchange()
49 assertEquals(expectedArray[i], arr.compareAndExchange(i, Integer.valueOf(0), val)); in testCompareAndExchange()
50 checkArrayAsExpected(expectedArray, arr); in testCompareAndExchange()
52 assertEquals(expectedArray[i], arr.compareAndExchange(i, expectedArray[i], val)); in testCompareAndExchange()
55 expectedArray[i] = val; in testCompareAndExchange()
56 checkArrayAsExpected(expectedArray, arr); in testCompareAndExchange()
59 assertEquals(expectedArray[i], arr.compareAndExchange(i, expectedArray[i], val)); in testCompareAndExchange()
62 expectedArray[i] = val; in testCompareAndExchange()
63 checkArrayAsExpected(expectedArray, arr); in testCompareAndExchange()
[all …]
/libcore/dom/src/test/java/org/w3c/domts/
DJUnitTestCaseAdapter.java251 List expectedArray = new ArrayList(expected); in assertEqualsIgnoreCase() local
258 expectedIter = expectedArray.iterator(); in assertEqualsIgnoreCase()
264 expectedArray.remove(expectedString); in assertEqualsIgnoreCase()
315 List expectedArray = new ArrayList(expected); in assertEquals() local
322 expectedIter = expectedArray.iterator(); in assertEquals()
328 expectedArray.remove(expectedObj); in assertEquals()
380 List expectedArray = new ArrayList(expected); in equalsIgnoreCase() local
387 expectedIter = expectedArray.iterator(); in equalsIgnoreCase()
393 expectedArray.remove(expectedString); in equalsIgnoreCase()
439 List expectedArray = new ArrayList(expected); in equals() local
[all …]
/libcore/ojluni/src/main/java/java/util/concurrent/
DCopyOnWriteArrayList.java1276 private Object[] expectedArray; field in CopyOnWriteArrayList.COWSubList
1280 expectedArray = es; in COWSubList()
1287 if (getArray() != expectedArray) in checkForComodification()
1294 if (a != expectedArray) in getArrayChecked()
1436 expectedArray = getArray(); in set()
1478 expectedArray = getArray(); in add()
1489 expectedArray = getArray(); in add()
1509 size += (expectedArray = getArray()).length - oldArray.length; in addAll()
1520 size += (expectedArray = getArray()).length - oldArray.length; in addAll()
1529 expectedArray = getArray(); in clear()
[all …]
/libcore/ojluni/src/test/java/lang/StackWalker/
DLocalsAndOperands.java171 Object[] expectedArray = KnownLocalsTester.LOCAL_VALUES; in checkFrameLocals() local
175 Object expected = expectedArray[i]; in checkFrameLocals()
182 assertEquals(expectedArray[i+1], null, in checkFrameLocals()
/libcore/ojluni/annotations/hiddenapi/java/util/concurrent/
DCopyOnWriteArrayList.java415 private java.lang.Object[] expectedArray; field in CopyOnWriteArrayList.COWSubList