Home
last modified time | relevance | path

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

/libcore/ojluni/src/main/java/java/util/concurrent/atomic/
DAtomicBoolean.java99 public final boolean compareAndSet(boolean expect, boolean update) { in compareAndSet() argument
101 (expect ? 1 : 0), in compareAndSet()
117 public boolean weakCompareAndSet(boolean expect, boolean update) { in weakCompareAndSet() argument
119 (expect ? 1 : 0), in weakCompareAndSet()
DAtomicLongArray.java163 public final boolean compareAndSet(int i, long expect, long update) { in compareAndSet() argument
164 return compareAndSetRaw(checkedByteOffset(i), expect, update); in compareAndSet()
167 private boolean compareAndSetRaw(long offset, long expect, long update) { in compareAndSetRaw() argument
168 return U.compareAndSwapLong(array, offset, expect, update); in compareAndSetRaw()
184 public final boolean weakCompareAndSet(int i, long expect, long update) { in weakCompareAndSet() argument
185 return compareAndSet(i, expect, update); in weakCompareAndSet()
DAtomicIntegerArray.java164 public final boolean compareAndSet(int i, int expect, int update) { in compareAndSet() argument
165 return compareAndSetRaw(checkedByteOffset(i), expect, update); in compareAndSet()
168 private boolean compareAndSetRaw(long offset, int expect, int update) { in compareAndSetRaw() argument
169 return U.compareAndSwapInt(array, offset, expect, update); in compareAndSetRaw()
185 public final boolean weakCompareAndSet(int i, int expect, int update) { in weakCompareAndSet() argument
186 return compareAndSet(i, expect, update); in weakCompareAndSet()
DAtomicInteger.java133 public final boolean compareAndSet(int expect, int update) { in compareAndSet() argument
134 return U.compareAndSwapInt(this, VALUE, expect, update); in compareAndSet()
149 public final boolean weakCompareAndSet(int expect, int update) { in weakCompareAndSet() argument
150 return U.compareAndSwapInt(this, VALUE, expect, update); in weakCompareAndSet()
DAtomicReference.java117 public final boolean compareAndSet(V expect, V update) { in compareAndSet() argument
118 return U.compareAndSwapObject(this, VALUE, expect, update); in compareAndSet()
133 public final boolean weakCompareAndSet(V expect, V update) { in weakCompareAndSet() argument
134 return U.compareAndSwapObject(this, VALUE, expect, update); in weakCompareAndSet()
DAtomicReferenceArray.java176 public final boolean compareAndSet(int i, E expect, E update) { in compareAndSet() argument
177 return compareAndSetRaw(checkedByteOffset(i), expect, update); in compareAndSet()
180 private boolean compareAndSetRaw(long offset, E expect, E update) { in compareAndSetRaw() argument
181 return U.compareAndSwapObject(array, offset, expect, update); in compareAndSetRaw()
197 public final boolean weakCompareAndSet(int i, E expect, E update) { in weakCompareAndSet() argument
198 return compareAndSet(i, expect, update); in weakCompareAndSet()
DAtomicLongFieldUpdater.java113 public abstract boolean compareAndSet(T obj, long expect, long update); in compareAndSet() argument
133 public abstract boolean weakCompareAndSet(T obj, long expect, long update); in weakCompareAndSet() argument
453 public final boolean compareAndSet(T obj, long expect, long update) { in compareAndSet() argument
455 return U.compareAndSwapLong(obj, offset, expect, update); in compareAndSet()
458 public final boolean weakCompareAndSet(T obj, long expect, long update) { in weakCompareAndSet() argument
460 return U.compareAndSwapLong(obj, offset, expect, update); in weakCompareAndSet()
594 public final boolean compareAndSet(T obj, long expect, long update) { in compareAndSet() argument
598 if (v != expect) in compareAndSet()
605 public final boolean weakCompareAndSet(T obj, long expect, long update) { in weakCompareAndSet() argument
606 return compareAndSet(obj, expect, update); in weakCompareAndSet()
DAtomicLong.java149 public final boolean compareAndSet(long expect, long update) { in compareAndSet() argument
150 return U.compareAndSwapLong(this, VALUE, expect, update); in compareAndSet()
165 public final boolean weakCompareAndSet(long expect, long update) { in weakCompareAndSet() argument
166 return U.compareAndSwapLong(this, VALUE, expect, update); in weakCompareAndSet()
DAtomicReferenceFieldUpdater.java130 public abstract boolean compareAndSet(T obj, V expect, V update); in compareAndSet() argument
148 public abstract boolean weakCompareAndSet(T obj, V expect, V update); in weakCompareAndSet() argument
420 public final boolean compareAndSet(T obj, V expect, V update) { in compareAndSet() argument
423 return U.compareAndSwapObject(obj, offset, expect, update); in compareAndSet()
426 public final boolean weakCompareAndSet(T obj, V expect, V update) { in weakCompareAndSet() argument
430 return U.compareAndSwapObject(obj, offset, expect, update); in weakCompareAndSet()
DAtomicIntegerFieldUpdater.java110 public abstract boolean compareAndSet(T obj, int expect, int update); in compareAndSet() argument
130 public abstract boolean weakCompareAndSet(T obj, int expect, int update); in weakCompareAndSet() argument
478 public final boolean compareAndSet(T obj, int expect, int update) { in compareAndSet() argument
480 return U.compareAndSwapInt(obj, offset, expect, update); in compareAndSet()
483 public final boolean weakCompareAndSet(T obj, int expect, int update) { in weakCompareAndSet() argument
485 return U.compareAndSwapInt(obj, offset, expect, update); in weakCompareAndSet()
/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.java217 public static boolean compareAndSetDefault(Os expect, Os update) { in compareAndSetDefault() argument
218 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/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/locks/
DAbstractQueuedSynchronizer.java518 final boolean compareAndSetWaitStatus(int expect, int update) { in compareAndSetWaitStatus() argument
519 return U.compareAndSwapInt(this, WAITSTATUS, expect, update); in compareAndSetWaitStatus()
523 final boolean compareAndSetNext(Node expect, Node update) { in compareAndSetNext() argument
524 return U.compareAndSwapObject(this, NEXT, expect, update); in compareAndSetNext()
596 protected final boolean compareAndSetState(int expect, int update) { in compareAndSetState() argument
597 return U.compareAndSwapInt(this, STATE, expect, update); in compareAndSetState()
2328 private final boolean compareAndSetTail(Node expect, Node update) { in compareAndSetTail() argument
2329 return U.compareAndSwapObject(this, TAIL, expect, update); in compareAndSetTail()
DAbstractQueuedLongSynchronizer.java130 protected final boolean compareAndSetState(long expect, long update) { in compareAndSetState() argument
131 return U.compareAndSwapLong(this, STATE, expect, update); in compareAndSetState()
1856 private final boolean compareAndSetTail(Node expect, Node update) { in compareAndSetTail() argument
1857 return U.compareAndSwapObject(this, TAIL, expect, update); in compareAndSetTail()
/libcore/ojluni/src/main/java/java/util/concurrent/
DThreadPoolExecutor.java435 private boolean compareAndIncrementWorkerCount(int expect) { in compareAndIncrementWorkerCount() argument
436 return ctl.compareAndSet(expect, expect + 1); in compareAndIncrementWorkerCount()
442 private boolean compareAndDecrementWorkerCount(int expect) { in compareAndDecrementWorkerCount() argument
443 return ctl.compareAndSet(expect, expect - 1); in compareAndDecrementWorkerCount()
DForkJoinTask.java1352 public final boolean compareAndSetForkJoinTaskTag(short expect, short update) { in compareAndSetForkJoinTaskTag() argument
1354 if ((short)(s = status) != expect) in compareAndSetForkJoinTaskTag()
/libcore/expectations/
Dvirtualdeviceknownfailures.txt28 expect, causing this test to fail, and our emulators currently use those kernel
Dknownfailures.txt1671 …ption: "this test needs to be fixed. We supply optional qnames, but this test doesn't expect them",
/libcore/luni/src/test/java/libcore/java/util/zip/
DAbstractZipFileTest.java607 } catch(IndexOutOfBoundsException expect) {} in testReadWithOffsetInvalid()
611 } catch(IndexOutOfBoundsException expect) {} in testReadWithOffsetInvalid()
615 } catch(IndexOutOfBoundsException expect) {} in testReadWithOffsetInvalid()
619 } catch(IndexOutOfBoundsException expect) {} in testReadWithOffsetInvalid()
/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/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/
DCharsetEncoderTest.java899 CharBuffer in, byte[] expect) { in assertCodingErrorAction() argument
901 assertByteArray(out, addSurrogate(expect)); in assertCodingErrorAction()
908 assertByteArray(out, addSurrogate(duplicateByteArray(expect, 3))); in assertCodingErrorAction()
/libcore/jsr166-tests/src/test/java/jsr166/
DForkJoinTaskTest.java319 protected final boolean compareAndSetControlState(int expect,
321 return controlStateUpdater.compareAndSet(this, expect, update);