/libcore/luni/src/main/java/libcore/io/ |
D | Libcore.java | 49 public static boolean compareAndSetOs(Os expect, Os update) { in compareAndSetOs() argument 51 if (os != expect) { in compareAndSetOs() 55 boolean result = (os == expect); in compareAndSetOs()
|
D | Os.java | 792 public static boolean compareAndSetDefault(Os expect, Os update) { in compareAndSetDefault() argument 793 return Libcore.compareAndSetOs(expect, update); in compareAndSetDefault()
|
/libcore/luni/src/main/java/libcore/reflect/ |
D | GenericSignatureParser.java | 255 expect('>'); in parseOptFormalTypeParameters() 269 expect(':'); in parseFormalTypeParameter() 305 expect('L'); in parseClassTypeSignature() 332 expect(';'); in parseClassTypeSignature() 348 expect('>'); in parseOptTypeArguments() 380 expect('T'); in parseTypeVariableSignature() 382 expect(';'); in parseTypeVariableSignature() 416 expect('('); in parseMethodTypeSignature() 420 expect(')'); in parseMethodTypeSignature() 469 void expect(char c) { in expect() method in GenericSignatureParser
|
/libcore/ojluni/src/main/java/java/util/concurrent/atomic/ |
D | AtomicLongFieldUpdater.java | 117 public abstract boolean compareAndSet(T obj, long expect, long update); in compareAndSet() argument 135 public abstract boolean weakCompareAndSet(T obj, long expect, long update); in weakCompareAndSet() argument 472 public final boolean compareAndSet(T obj, long expect, long update) { in compareAndSet() argument 474 return U.compareAndSetLong(obj, offset, expect, update); in compareAndSet() 477 public final boolean weakCompareAndSet(T obj, long expect, long update) { in weakCompareAndSet() argument 479 return U.compareAndSetLong(obj, offset, expect, update); in weakCompareAndSet() 624 public final boolean compareAndSet(T obj, long expect, long update) { in compareAndSet() argument 628 if (v != expect) in compareAndSet() 635 public final boolean weakCompareAndSet(T obj, long expect, long update) { in weakCompareAndSet() argument 636 return compareAndSet(obj, expect, update); in weakCompareAndSet()
|
D | AtomicReferenceFieldUpdater.java | 136 public abstract boolean compareAndSet(T obj, V expect, V update); in compareAndSet() argument 154 public abstract boolean weakCompareAndSet(T obj, V expect, V update); in weakCompareAndSet() argument 452 public final boolean compareAndSet(T obj, V expect, V update) { in compareAndSet() argument 455 return U.compareAndSetReference(obj, offset, expect, update); in compareAndSet() 458 public final boolean weakCompareAndSet(T obj, V expect, V update) { in weakCompareAndSet() argument 462 return U.compareAndSetReference(obj, offset, expect, update); in weakCompareAndSet()
|
D | AtomicIntegerFieldUpdater.java | 114 public abstract boolean compareAndSet(T obj, int expect, int update); in compareAndSet() argument 132 public abstract boolean weakCompareAndSet(T obj, int expect, int update); in weakCompareAndSet() argument 506 public final boolean compareAndSet(T obj, int expect, int update) { in compareAndSet() argument 508 return U.compareAndSetInt(obj, offset, expect, update); in compareAndSet() 511 public final boolean weakCompareAndSet(T obj, int expect, int update) { in weakCompareAndSet() argument 513 return U.compareAndSetInt(obj, offset, expect, update); in weakCompareAndSet()
|
/libcore/ojluni/src/test/java/util/Base64/ |
D | TestBase64Golden.java | 182 private static void assertEqual(Object result, Object expect) { in assertEqual() argument 183 if (!Objects.deepEquals(result, expect)) { in assertEqual() 185 String expectStr = expect.toString(); in assertEqual() 189 if (expect instanceof byte[]) { in assertEqual() 190 expectStr = new String((byte[]) expect, DEF_CHARSET); in assertEqual()
|
/libcore/ojluni/annotations/hiddenapi/java/util/concurrent/atomic/ |
D | AtomicInteger.java | 67 public final boolean compareAndSet(int expect, int update) { in compareAndSet() argument 71 public final boolean weakCompareAndSet(int expect, int update) { in weakCompareAndSet() argument
|
/libcore/ojluni/src/main/java/javax/crypto/ |
D | CryptoPolicyParser.java | 57 ParsingException(int line, String expect, String actual) { in ParsingException() argument
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | ThreadPoolExecutor.java | 428 private boolean compareAndIncrementWorkerCount(int expect) { in compareAndIncrementWorkerCount() argument 429 return ctl.compareAndSet(expect, expect + 1); in compareAndIncrementWorkerCount() 435 private boolean compareAndDecrementWorkerCount(int expect) { in compareAndDecrementWorkerCount() argument 436 return ctl.compareAndSet(expect, expect - 1); in compareAndDecrementWorkerCount()
|
D | ForkJoinTask.java | 1332 public final boolean compareAndSetForkJoinTaskTag(short expect, short update) { in compareAndSetForkJoinTaskTag() argument 1334 if ((short)(s = status) != expect) in compareAndSetForkJoinTaskTag()
|
/libcore/luni/src/test/java/libcore/java/util/zip/ |
D | AbstractZipFileTest.java | 561 } catch(IndexOutOfBoundsException expect) {} in testReadWithOffsetInvalid() 565 } catch(IndexOutOfBoundsException expect) {} in testReadWithOffsetInvalid() 569 } catch(IndexOutOfBoundsException expect) {} in testReadWithOffsetInvalid() 573 } catch(IndexOutOfBoundsException expect) {} in testReadWithOffsetInvalid()
|
/libcore/ojluni/src/test/java/lang/StackWalker/ |
D | GetCallerClassTest.java | 55 public GetCallerClassTest(StackWalker sw, boolean expect) { in GetCallerClassTest() argument 57 this.expectUOE = expect; in GetCallerClassTest()
|
/libcore/ojluni/annotations/hiddenapi/java/util/concurrent/ |
D | ThreadPoolExecutor.java | 107 private boolean compareAndIncrementWorkerCount(int expect) { in compareAndIncrementWorkerCount() argument 111 private boolean compareAndDecrementWorkerCount(int expect) { in compareAndDecrementWorkerCount() argument
|
/libcore/expectations/ |
D | virtualdeviceknownfailures.txt | 42 expect, causing this test to fail, and our emulators currently use those kernel
|
D | knownfailures.txt | 1650 …ption: "this test needs to be fixed. We supply optional qnames, but this test doesn't expect them",
|
/libcore/ojluni/src/test/java/lang/invoke/ |
D | InvokeGenericTest.java | 390 …public void testWrongArgumentCount(List<Class<?>> expect, List<Class<?>> observe) throws Throwable… in testWrongArgumentCount() argument 392 if (expect.equals(observe)) in testWrongArgumentCount() 394 MethodHandle target = callable(expect); in testWrongArgumentCount()
|
D | RicochetTest.java | 253 … Object expect = lister.asSpreader(int[].class, listargs.length).invokeExact(listargs); in testIntCollects() local 261 assertEquals(expect, observe); in testIntCollects() 293 … Object expect = lister.asSpreader(byte[].class, listargs.length).invokeExact(listargs); in testByteCollects() local 301 assertEquals(expect, observe); in testByteCollects()
|
D | LoopCombinatorTest.java | 251 static void assertEqualsFIXME(String expect, String actual) { in assertEqualsFIXME() argument 252 if (!expect.equals(actual)) { in assertEqualsFIXME() 254 System.out.println("*** "+actual+"\n != "+expect); in assertEqualsFIXME()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/ |
D | CharsetEncoderTest.java | 902 CharBuffer in, byte[] expect) { in assertCodingErrorAction() argument 904 assertByteArray(out, addSurrogate(expect)); in assertCodingErrorAction() 911 assertByteArray(out, addSurrogate(duplicateByteArray(expect, 3))); in assertCodingErrorAction()
|
/libcore/ojluni/src/main/java/java/util/concurrent/locks/ |
D | StampedLock.java | 422 private boolean casState(long expect, long update) { in casState() argument 423 return U.compareAndSetLong(this, STATE, expect, update); in casState()
|
D | AbstractQueuedLongSynchronizer.java | 190 protected final boolean compareAndSetState(long expect, long update) { in compareAndSetState() argument 191 return U.compareAndSetLong(this, STATE, expect, update); in compareAndSetState()
|
D | AbstractQueuedSynchronizer.java | 555 protected final boolean compareAndSetState(int expect, int update) { in compareAndSetState() argument 556 return U.compareAndSetInt(this, STATE, expect, update); in compareAndSetState()
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | ForkJoinTaskTest.java | 319 protected final boolean compareAndSetControlState(int expect, 321 return controlStateUpdater.compareAndSet(this, expect, update);
|
/libcore/ojluni/src/test/java/util/concurrent/tck/ |
D | ForkJoinTaskTest.java | 341 protected final boolean compareAndSetControlState(int expect, 343 return controlStateUpdater.compareAndSet(this, expect, update);
|