| /libcore/luni/src/test/java/libcore/java/util/concurrent/ |
| D | AtomicLongArrayTest.java | 39 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 …]
|
| D | AtomicIntegerArrayTest.java | 39 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 …]
|
| D | AtomicReferenceArrayTest.java | 40 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/ |
| D | JUnitTestCaseAdapter.java | 251 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/ |
| D | CopyOnWriteArrayList.java | 1192 private Object[] expectedArray; field in CopyOnWriteArrayList.COWSubList 1196 expectedArray = es; in COWSubList() 1203 if (getArray() != expectedArray) in checkForComodification() 1210 if (a != expectedArray) in getArrayChecked() 1352 expectedArray = getArray(); in set() 1376 expectedArray = getArray(); in add() 1387 expectedArray = getArray(); in add() 1397 size += (expectedArray = getArray()).length - oldArray.length; in addAll() 1408 size += (expectedArray = getArray()).length - oldArray.length; in addAll() 1417 expectedArray = getArray(); in clear() [all …]
|
| /libcore/ojluni/src/test/java/lang/StackWalker/ |
| D | LocalsAndOperands.java | 171 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/ |
| D | CopyOnWriteArrayList.java | 415 private java.lang.Object[] expectedArray; field in CopyOnWriteArrayList.COWSubList
|