Home
last modified time | relevance | path

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

/libcore/luni/src/main/java/java/util/concurrent/atomic/
DAtomicBoolean.java70 public final boolean compareAndSet(boolean expect, boolean update) { in compareAndSet() argument
72 (expect ? 1 : 0), in compareAndSet()
88 public boolean weakCompareAndSet(boolean expect, boolean update) { in weakCompareAndSet() argument
90 (expect ? 1 : 0), in weakCompareAndSet()
DAtomicIntegerArray.java135 public final boolean compareAndSet(int i, int expect, int update) { in compareAndSet() argument
136 return compareAndSetRaw(checkedByteOffset(i), expect, update); in compareAndSet()
139 private boolean compareAndSetRaw(long offset, int expect, int update) { in compareAndSetRaw() argument
140 return U.compareAndSwapInt(array, offset, expect, update); in compareAndSetRaw()
156 public final boolean weakCompareAndSet(int i, int expect, int update) { in weakCompareAndSet() argument
157 return compareAndSet(i, expect, update); in weakCompareAndSet()
DAtomicLongArray.java134 public final boolean compareAndSet(int i, long expect, long update) { in compareAndSet() argument
135 return compareAndSetRaw(checkedByteOffset(i), expect, update); in compareAndSet()
138 private boolean compareAndSetRaw(long offset, long expect, long update) { in compareAndSetRaw() argument
139 return U.compareAndSwapLong(array, offset, expect, update); in compareAndSetRaw()
155 public final boolean weakCompareAndSet(int i, long expect, long update) { in weakCompareAndSet() argument
156 return compareAndSet(i, expect, update); in weakCompareAndSet()
DAtomicReference.java88 public final boolean compareAndSet(V expect, V update) { in compareAndSet() argument
89 return U.compareAndSwapObject(this, VALUE, expect, update); in compareAndSet()
104 public final boolean weakCompareAndSet(V expect, V update) { in weakCompareAndSet() argument
105 return U.compareAndSwapObject(this, VALUE, expect, update); in weakCompareAndSet()
DAtomicInteger.java104 public final boolean compareAndSet(int expect, int update) { in compareAndSet() argument
105 return U.compareAndSwapInt(this, VALUE, expect, update); in compareAndSet()
120 public final boolean weakCompareAndSet(int expect, int update) { in weakCompareAndSet() argument
121 return U.compareAndSwapInt(this, VALUE, expect, update); in weakCompareAndSet()
DAtomicReferenceArray.java147 public final boolean compareAndSet(int i, E expect, E update) { in compareAndSet() argument
148 return compareAndSetRaw(checkedByteOffset(i), expect, update); in compareAndSet()
151 private boolean compareAndSetRaw(long offset, E expect, E update) { in compareAndSetRaw() argument
152 return U.compareAndSwapObject(array, offset, expect, update); in compareAndSetRaw()
168 public final boolean weakCompareAndSet(int i, E expect, E update) { in weakCompareAndSet() argument
169 return compareAndSet(i, expect, update); in weakCompareAndSet()
DAtomicLongFieldUpdater.java85 public abstract boolean compareAndSet(T obj, long expect, long update); in compareAndSet() argument
105 public abstract boolean weakCompareAndSet(T obj, long expect, long update); in weakCompareAndSet() argument
414 public final boolean compareAndSet(T obj, long expect, long update) { in compareAndSet() argument
416 return U.compareAndSwapLong(obj, offset, expect, update); in compareAndSet()
419 public final boolean weakCompareAndSet(T obj, long expect, long update) { in weakCompareAndSet() argument
421 return U.compareAndSwapLong(obj, offset, expect, update); in weakCompareAndSet()
544 public final boolean compareAndSet(T obj, long expect, long update) { in compareAndSet() argument
548 if (v != expect) in compareAndSet()
555 public final boolean weakCompareAndSet(T obj, long expect, long update) { in weakCompareAndSet() argument
556 return compareAndSet(obj, expect, update); in weakCompareAndSet()
DAtomicLong.java120 public final boolean compareAndSet(long expect, long update) { in compareAndSet() argument
121 return U.compareAndSwapLong(this, VALUE, expect, update); in compareAndSet()
136 public final boolean weakCompareAndSet(long expect, long update) { in weakCompareAndSet() argument
137 return U.compareAndSwapLong(this, VALUE, expect, update); in weakCompareAndSet()
DAtomicReferenceFieldUpdater.java102 public abstract boolean compareAndSet(T obj, V expect, V update); in compareAndSet() argument
120 public abstract boolean weakCompareAndSet(T obj, V expect, V update); in weakCompareAndSet() argument
380 public final boolean compareAndSet(T obj, V expect, V update) { in compareAndSet() argument
383 return U.compareAndSwapObject(obj, offset, expect, update); in compareAndSet()
386 public final boolean weakCompareAndSet(T obj, V expect, V update) { in weakCompareAndSet() argument
390 return U.compareAndSwapObject(obj, offset, expect, update); in weakCompareAndSet()
DAtomicIntegerFieldUpdater.java82 public abstract boolean compareAndSet(T obj, int expect, int update); in compareAndSet() argument
102 public abstract boolean weakCompareAndSet(T obj, int expect, int update); in weakCompareAndSet() argument
439 public final boolean compareAndSet(T obj, int expect, int update) { in compareAndSet() argument
441 return U.compareAndSwapInt(obj, offset, expect, update); in compareAndSet()
444 public final boolean weakCompareAndSet(T obj, int expect, int update) { in weakCompareAndSet() argument
446 return U.compareAndSwapInt(obj, offset, expect, update); in weakCompareAndSet()
/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/javax/crypto/
DCryptoPolicyParser.java55 ParsingException(int line, String expect, String actual) { in ParsingException() argument
/libcore/luni/src/main/java/java/util/concurrent/locks/
DAbstractQueuedSynchronizer.java490 final boolean compareAndSetWaitStatus(int expect, int update) { in compareAndSetWaitStatus() argument
491 return U.compareAndSwapInt(this, WAITSTATUS, expect, update); in compareAndSetWaitStatus()
495 final boolean compareAndSetNext(Node expect, Node update) { in compareAndSetNext() argument
496 return U.compareAndSwapObject(this, NEXT, expect, update); in compareAndSetNext()
568 protected final boolean compareAndSetState(int expect, int update) { in compareAndSetState() argument
569 return U.compareAndSwapInt(this, STATE, expect, update); in compareAndSetState()
2296 private final boolean compareAndSetTail(Node expect, Node update) { in compareAndSetTail() argument
2297 return U.compareAndSwapObject(this, TAIL, expect, update); in compareAndSetTail()
DAbstractQueuedLongSynchronizer.java101 protected final boolean compareAndSetState(long expect, long update) { in compareAndSetState() argument
102 return U.compareAndSwapLong(this, STATE, expect, update); in compareAndSetState()
1827 private final boolean compareAndSetTail(Node expect, Node update) { in compareAndSetTail() argument
1828 return U.compareAndSwapObject(this, TAIL, expect, update); in compareAndSetTail()
/libcore/ojluni/src/main/java/sun/net/smtp/
DSmtpClient.java60 void issueCommand(String cmd, int expect) throws IOException { in issueCommand() argument
63 while ((reply = readServerResponse()) != expect) in issueCommand()
/libcore/luni/src/main/java/java/util/concurrent/
DThreadPoolExecutor.java403 private boolean compareAndIncrementWorkerCount(int expect) { in compareAndIncrementWorkerCount() argument
404 return ctl.compareAndSet(expect, expect + 1); in compareAndIncrementWorkerCount()
410 private boolean compareAndDecrementWorkerCount(int expect) { in compareAndDecrementWorkerCount() argument
411 return ctl.compareAndSet(expect, expect - 1); in compareAndDecrementWorkerCount()
DForkJoinTask.java1324 public final boolean compareAndSetForkJoinTaskTag(short expect, short update) { in compareAndSetForkJoinTaskTag() argument
1326 if ((short)(s = status) != expect) in compareAndSetForkJoinTaskTag()
/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/expectations/
Dicebox.txt139 …ption: "this test needs to be fixed. We supply optional qnames, but this test doesn't expect them",
/libcore/jsr166-tests/src/test/java/jsr166/
DForkJoinTaskTest.java319 protected final boolean compareAndSetControlState(int expect,
321 return controlStateUpdater.compareAndSet(this, expect, update);