Searched refs:expect (Results 1 - 17 of 17) sorted by relevance

/libcore/luni/src/main/java/java/util/concurrent/atomic/
H A DAtomicBoolean.java64 * @param expect the expected value
69 public final boolean compareAndSet(boolean expect, boolean update) { argument
70 int e = expect ? 1 : 0;
83 * @param expect the expected value
87 public boolean weakCompareAndSet(boolean expect, boolean update) { argument
88 int e = expect ? 1 : 0;
H A DAtomicReference.java79 * @param expect the expected value
84 public final boolean compareAndSet(V expect, V update) { argument
85 return unsafe.compareAndSwapObject(this, valueOffset, expect, update);
96 * @param expect the expected value
100 public final boolean weakCompareAndSet(V expect, V update) { argument
101 return unsafe.compareAndSwapObject(this, valueOffset, expect, update);
H A DAtomicIntegerArray.java132 * @param expect the expected value
137 public final boolean compareAndSet(int i, int expect, int update) { argument
138 return compareAndSetRaw(checkedByteOffset(i), expect, update);
141 private boolean compareAndSetRaw(long offset, int expect, int update) { argument
142 return unsafe.compareAndSwapInt(array, offset, expect, update);
154 * @param expect the expected value
158 public final boolean weakCompareAndSet(int i, int expect, int update) { argument
159 return compareAndSet(i, expect, update);
H A DAtomicLongArray.java131 * @param expect the expected value
136 public final boolean compareAndSet(int i, long expect, long update) { argument
137 return compareAndSetRaw(checkedByteOffset(i), expect, update);
140 private boolean compareAndSetRaw(long offset, long expect, long update) { argument
141 return unsafe.compareAndSwapLong(array, offset, expect, update);
153 * @param expect the expected value
157 public final boolean weakCompareAndSet(int i, long expect, long update) { argument
158 return compareAndSet(i, expect, update);
H A DAtomicInteger.java100 * @param expect the expected value
105 public final boolean compareAndSet(int expect, int update) { argument
106 return unsafe.compareAndSwapInt(this, valueOffset, expect, update);
117 * @param expect the expected value
121 public final boolean weakCompareAndSet(int expect, int update) { argument
122 return unsafe.compareAndSwapInt(this, valueOffset, expect, update);
H A DAtomicLong.java114 * @param expect the expected value
119 public final boolean compareAndSet(long expect, long update) { argument
120 return unsafe.compareAndSwapLong(this, valueOffset, expect, update);
131 * @param expect the expected value
135 public final boolean weakCompareAndSet(long expect, long update) { argument
136 return unsafe.compareAndSwapLong(this, valueOffset, expect, update);
H A DAtomicLongFieldUpdater.java69 * @param expect the expected value
75 public abstract boolean compareAndSet(T obj, long expect, long update); argument
89 * @param expect the expected value
95 public abstract boolean weakCompareAndSet(T obj, long expect, long update); argument
292 public boolean compareAndSet(T obj, long expect, long update) { argument
294 return unsafe.compareAndSwapLong(obj, offset, expect, update);
297 public boolean weakCompareAndSet(T obj, long expect, long update) { argument
299 return unsafe.compareAndSwapLong(obj, offset, expect, update);
386 public boolean compareAndSet(T obj, long expect, long update) { argument
390 if (v != expect)
397 weakCompareAndSet(T obj, long expect, long update) argument
[all...]
H A DAtomicReferenceArray.java146 * @param expect the expected value
151 public final boolean compareAndSet(int i, E expect, E update) { argument
152 return compareAndSetRaw(checkedByteOffset(i), expect, update);
155 private boolean compareAndSetRaw(long offset, E expect, E update) { argument
156 return unsafe.compareAndSwapObject(array, offset, expect, update);
168 * @param expect the expected value
172 public final boolean weakCompareAndSet(int i, E expect, E update) { argument
173 return compareAndSet(i, expect, update);
H A DAtomicIntegerFieldUpdater.java66 * @param expect the expected value
72 public abstract boolean compareAndSet(T obj, int expect, int update); argument
86 * @param expect the expected value
92 public abstract boolean weakCompareAndSet(T obj, int expect, int update); argument
310 public boolean compareAndSet(T obj, int expect, int update) { argument
312 return unsafe.compareAndSwapInt(obj, offset, expect, update);
315 public boolean weakCompareAndSet(T obj, int expect, int update) { argument
317 return unsafe.compareAndSwapInt(obj, offset, expect, update);
H A DAtomicReferenceFieldUpdater.java31 * boolean compareAndSetLeft(Node expect, Node update) {
32 * return leftUpdater.compareAndSet(this, expect, update);
86 * @param expect the expected value
90 public abstract boolean compareAndSet(T obj, V expect, V update); argument
104 * @param expect the expected value
108 public abstract boolean weakCompareAndSet(T obj, V expect, V update); argument
255 public boolean compareAndSet(T obj, V expect, V update) { argument
260 return unsafe.compareAndSwapObject(obj, offset, expect, update);
263 public boolean weakCompareAndSet(T obj, V expect, V update) { argument
269 return unsafe.compareAndSwapObject(obj, offset, expect, updat
[all...]
/libcore/luni/src/main/java/libcore/reflect/
H A DGenericSignatureParser.java255 expect('>');
269 expect(':');
305 expect('L');
332 expect(';');
348 expect('>');
380 expect('T');
382 expect(';');
416 expect('(');
420 expect(')');
469 void expect(cha method in class:GenericSignatureParser
[all...]
/libcore/luni/src/main/java/java/util/concurrent/
H A DThreadPoolExecutor.java383 private boolean compareAndIncrementWorkerCount(int expect) { argument
384 return ctl.compareAndSet(expect, expect + 1);
390 private boolean compareAndDecrementWorkerCount(int expect) { argument
391 return ctl.compareAndSet(expect, expect - 1);
/libcore/luni/src/main/java/java/util/concurrent/locks/
H A DAbstractQueuedLongSynchronizer.java308 * @param expect the expected value
313 protected final boolean compareAndSetState(long expect, long update) { argument
315 return unsafe.compareAndSwapLong(this, stateOffset, expect, update);
2042 private final boolean compareAndSetTail(Node expect, Node update) { argument
2043 return unsafe.compareAndSwapObject(this, tailOffset, expect, update);
2050 int expect,
2053 expect, update);
2060 Node expect,
2062 return unsafe.compareAndSwapObject(node, nextOffset, expect, update);
2049 compareAndSetWaitStatus(Node node, int expect, int update) argument
2059 compareAndSetNext(Node node, Node expect, Node update) argument
H A DAbstractQueuedSynchronizer.java538 * @param expect the expected value
543 protected final boolean compareAndSetState(int expect, int update) { argument
545 return unsafe.compareAndSwapInt(this, stateOffset, expect, update);
2270 private final boolean compareAndSetTail(Node expect, Node update) { argument
2271 return unsafe.compareAndSwapObject(this, tailOffset, expect, update);
2278 int expect,
2281 expect, update);
2288 Node expect,
2290 return unsafe.compareAndSwapObject(node, nextOffset, expect, update);
2277 compareAndSetWaitStatus(Node node, int expect, int update) argument
2287 compareAndSetNext(Node node, Node expect, Node update) argument
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/
H A DCharsetEncoderTest.java899 CharBuffer in, byte[] expect) {
901 assertByteArray(out, addSurrogate(expect));
908 assertByteArray(out, addSurrogate(duplicateByteArray(expect, 3)));
898 assertCodingErrorAction(boolean endOfInput, ByteBuffer out, CharBuffer in, byte[] expect) argument
/libcore/jsr166-tests/src/test/java/jsr166/
H A DForkJoinTaskTest.java300 protected final boolean compareAndSetControlState(int expect, argument
302 return controlStateUpdater.compareAndSet(this, expect, update);
/libcore/benchmarks/libs/
H A Dcaliper.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/caliper/ com/google/caliper/AllocationMeasurer ...

Completed in 187 milliseconds