Home
last modified time | relevance | path

Searched refs:expect (Results 1 – 25 of 25) sorted by relevance

/libcore/luni/src/main/java/libcore/io/
DLibcore.java49 public static boolean compareAndSetOs(Os expect, Os update) { in compareAndSetOs() argument
51 if (os != expect) { in compareAndSetOs()
55 boolean result = (os == expect); in compareAndSetOs()
DOs.java792 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/
DGenericSignatureParser.java255 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/
DAtomicLongFieldUpdater.java117 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()
DAtomicReferenceFieldUpdater.java136 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()
DAtomicIntegerFieldUpdater.java114 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/
DTestBase64Golden.java182 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/
DAtomicInteger.java67 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/
DCryptoPolicyParser.java57 ParsingException(int line, String expect, String actual) { in ParsingException() argument
/libcore/ojluni/src/main/java/java/util/concurrent/
DThreadPoolExecutor.java428 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()
DForkJoinTask.java1332 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/
DAbstractZipFileTest.java561 } 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/
DGetCallerClassTest.java55 public GetCallerClassTest(StackWalker sw, boolean expect) { in GetCallerClassTest() argument
57 this.expectUOE = expect; in GetCallerClassTest()
/libcore/ojluni/annotations/hiddenapi/java/util/concurrent/
DThreadPoolExecutor.java107 private boolean compareAndIncrementWorkerCount(int expect) { in compareAndIncrementWorkerCount() argument
111 private boolean compareAndDecrementWorkerCount(int expect) { in compareAndDecrementWorkerCount() argument
/libcore/expectations/
Dvirtualdeviceknownfailures.txt42 expect, causing this test to fail, and our emulators currently use those kernel
Dknownfailures.txt1650 …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/
DInvokeGenericTest.java390 …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()
DRicochetTest.java253 … 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()
DLoopCombinatorTest.java251 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/
DCharsetEncoderTest.java902 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/
DStampedLock.java422 private boolean casState(long expect, long update) { in casState() argument
423 return U.compareAndSetLong(this, STATE, expect, update); in casState()
DAbstractQueuedLongSynchronizer.java190 protected final boolean compareAndSetState(long expect, long update) { in compareAndSetState() argument
191 return U.compareAndSetLong(this, STATE, expect, update); in compareAndSetState()
DAbstractQueuedSynchronizer.java555 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/
DForkJoinTaskTest.java319 protected final boolean compareAndSetControlState(int expect,
321 return controlStateUpdater.compareAndSet(this, expect, update);
/libcore/ojluni/src/test/java/util/concurrent/tck/
DForkJoinTaskTest.java341 protected final boolean compareAndSetControlState(int expect,
343 return controlStateUpdater.compareAndSet(this, expect, update);