/libcore/jsr166-tests/src/test/java/jsr166/ |
D | AtomicStampedReferenceTest.java | 43 int[] mark = new int[1]; in testGetSet() local 47 assertSame(one, ai.get(mark)); in testGetSet() 48 assertEquals(0, mark[0]); in testGetSet() 52 assertSame(two, ai.get(mark)); in testGetSet() 53 assertEquals(0, mark[0]); in testGetSet() 57 assertSame(one, ai.get(mark)); in testGetSet() 58 assertEquals(1, mark[0]); in testGetSet() 65 int[] mark = new int[1]; in testAttemptStamp() local 70 assertSame(one, ai.get(mark)); in testAttemptStamp() 71 assertEquals(1, mark[0]); in testAttemptStamp() [all …]
|
D | AtomicMarkableReferenceTest.java | 43 boolean[] mark = new boolean[1]; in testGetSet() 47 assertSame(one, ai.get(mark)); in testGetSet() 48 assertFalse(mark[0]); in testGetSet() 52 assertSame(two, ai.get(mark)); in testGetSet() 53 assertFalse(mark[0]); in testGetSet() 57 assertSame(one, ai.get(mark)); in testGetSet() 58 assertTrue(mark[0]); in testGetSet() 65 boolean[] mark = new boolean[1]; in testAttemptMark() 70 assertSame(one, ai.get(mark)); in testAttemptMark() 71 assertTrue(mark[0]); in testAttemptMark() [all …]
|
/libcore/ojluni/src/test/java/util/concurrent/tck/ |
D | AtomicMarkableReferenceTest.java | 66 boolean[] mark = new boolean[1]; in testGetSet() 70 assertSame(one, ai.get(mark)); in testGetSet() 71 assertFalse(mark[0]); in testGetSet() 75 assertSame(two, ai.get(mark)); in testGetSet() 76 assertFalse(mark[0]); in testGetSet() 80 assertSame(one, ai.get(mark)); in testGetSet() 81 assertTrue(mark[0]); in testGetSet() 88 boolean[] mark = new boolean[1]; in testAttemptMark() 93 assertSame(one, ai.get(mark)); in testAttemptMark() 94 assertTrue(mark[0]); in testAttemptMark() [all …]
|
D | AtomicStampedReferenceTest.java | 66 int[] mark = new int[1]; in testGetSet() local 70 assertSame(one, ai.get(mark)); in testGetSet() 71 assertEquals(0, mark[0]); in testGetSet() 75 assertSame(two, ai.get(mark)); in testGetSet() 76 assertEquals(0, mark[0]); in testGetSet() 80 assertSame(one, ai.get(mark)); in testGetSet() 81 assertEquals(1, mark[0]); in testGetSet() 88 int[] mark = new int[1]; in testAttemptStamp() local 93 assertSame(one, ai.get(mark)); in testAttemptStamp() 94 assertEquals(1, mark[0]); in testAttemptStamp() [all …]
|
/libcore/ojluni/src/main/java/java/nio/ |
D | Buffer.java | 186 private int mark = -1; field in Buffer 209 Buffer(int mark, int pos, int lim, int cap, int elementSizeShift) { // package-private in Buffer() argument 215 if (mark >= 0) { in Buffer() 216 if (mark > pos) in Buffer() 218 + mark + " > " + pos + ")"); in Buffer() 219 this.mark = mark; in Buffer() 289 if (mark > position) mark = -1; 343 if (mark > limit) mark = -1; 374 public Buffer mark() { 375 mark = position; [all …]
|
D | MappedByteBuffer.java | 82 MappedByteBuffer(int mark, int pos, int lim, int cap, // package-private in MappedByteBuffer() argument 85 super(mark, pos, lim, cap); in MappedByteBuffer() 90 MappedByteBuffer(int mark, int pos, int lim, int cap, byte[] buf, int offset) { in MappedByteBuffer() argument 91 super(mark, pos, lim, cap, buf, offset); in MappedByteBuffer() 95 MappedByteBuffer(int mark, int pos, int lim, int cap) { // package-private in MappedByteBuffer() argument 96 super(mark, pos, lim, cap); in MappedByteBuffer()
|
D | IntBuffer.java | 111 IntBuffer(int mark, int pos, int lim, int cap, // package-private in IntBuffer() argument 115 super(mark, pos, lim, cap, 2 /* elementSizeShift */); in IntBuffer() 122 IntBuffer(int mark, int pos, int lim, int cap) { // package-private in IntBuffer() argument 123 this(mark, pos, lim, cap, null, 0); in IntBuffer() 701 public Buffer mark() { in mark() method in IntBuffer 702 return super.mark(); in mark()
|
D | ShortBuffer.java | 110 ShortBuffer(int mark, int pos, int lim, int cap, // package-private in ShortBuffer() argument 114 super(mark, pos, lim, cap, 1 /* elementSizeShift */); in ShortBuffer() 121 ShortBuffer(int mark, int pos, int lim, int cap) { // package-private in ShortBuffer() argument 122 this(mark, pos, lim, cap, null, 0); in ShortBuffer() 702 public Buffer mark() { in mark() method in ShortBuffer 703 return super.mark(); in mark()
|
D | LongBuffer.java | 110 LongBuffer(int mark, int pos, int lim, int cap, // package-private in LongBuffer() argument 114 super(mark, pos, lim, cap, 3 /* elementSizeShift */); in LongBuffer() 121 LongBuffer(int mark, int pos, int lim, int cap) { // package-private in LongBuffer() argument 122 this(mark, pos, lim, cap, null, 0); in LongBuffer() 701 public Buffer mark() { in mark() method in LongBuffer 702 return super.mark(); in mark()
|
D | FloatBuffer.java | 111 FloatBuffer(int mark, int pos, int lim, int cap, // package-private in FloatBuffer() argument 115 super(mark, pos, lim, cap, 2 /* elementSizeShift */); in FloatBuffer() 122 FloatBuffer(int mark, int pos, int lim, int cap) { // package-private in FloatBuffer() argument 123 this(mark, pos, lim, cap, null, 0); in FloatBuffer() 702 public Buffer mark() { in mark() method in FloatBuffer 703 return super.mark(); in mark()
|
D | DoubleBuffer.java | 111 DoubleBuffer(int mark, int pos, int lim, int cap, // package-private in DoubleBuffer() argument 115 super(mark, pos, lim, cap, 3 /* elementSizeShift */); in DoubleBuffer() 122 DoubleBuffer(int mark, int pos, int lim, int cap) { // package-private in DoubleBuffer() argument 123 this(mark, pos, lim, cap, null, 0); in DoubleBuffer() 702 public Buffer mark() { in mark() method in DoubleBuffer 703 return super.mark(); in mark()
|
/libcore/ojluni/src/main/java/java/util/concurrent/atomic/ |
D | AtomicMarkableReference.java | 57 final boolean mark; field in AtomicMarkableReference.Pair 58 private Pair(T reference, boolean mark) { in Pair() argument 60 this.mark = mark; in Pair() 62 static <T> Pair<T> of(T reference, boolean mark) { in of() argument 63 return new Pair<T>(reference, mark); in of() 95 return pair.mark; in isMarked() 108 markHolder[0] = pair.mark; in get() 153 expectedMark == current.mark && in compareAndSet() 155 newMark == current.mark) || in compareAndSet() 167 if (newReference != current.reference || newMark != current.mark) in set() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | ByteArrayInputStreamTest.java | 54 assertEquals(444, SubByteArrayInputStream.mark); in test_Constructor$BII() 61 public static int mark, pos, count; field in ByteArrayInputStreamTest.SubByteArrayInputStream 67 mark = super.mark; in SubByteArrayInputStream() 97 is.mark(1000); in test_markI() 129 is.mark(100); in test_read$BII() 141 is.mark(200); in test_reset()
|
D | BufferedInputStreamTest.java | 248 is.mark(500); in test_markI() 263 in.mark(14); in test_markI() 270 in.mark(8); in test_markI() 277 buf.mark(3); in test_markI() 288 buf.mark(3); in test_markI() 301 buf.mark(Integer.MAX_VALUE); in test_markI() 385 is.mark(500); in test_read$BII() 435 is.mark(2000); in test_reset() 445 bIn.mark(10); in test_reset() 467 bis.mark(1); in test_reset_Exception() [all …]
|
D | BufferedReaderTest.java | 109 br.mark(1000); in test_markI() 120 br.mark(250); in test_markI() 135 in.mark(14); in test_markI() 143 in.mark(8); in test_markI() 150 br.mark(3); in test_markI() 160 br.mark(3); in test_markI() 172 reader.mark(Integer.MAX_VALUE); in test_markI() 507 br.mark(900); in test_reset() 532 br.mark(9); in test_reset_IOException() 547 br.mark(10); in test_reset_IOException()
|
D | LineNumberInputStreamTest.java | 75 lnis.mark(40); in test_markI() 113 lnis.mark(40); in test_reset() 122 lnis.mark(5); in test_reset()
|
D | PushbackInputStreamTest.java | 45 pb.mark(Integer.MAX_VALUE); in test_mark() 46 pb.mark(0); in test_mark() 47 pb.mark(-1); in test_mark() 48 pb.mark(Integer.MIN_VALUE); in test_mark()
|
/libcore/ojluni/src/main/java/java/io/ |
D | ByteArrayInputStream.java | 80 protected int mark = 0; field in ByteArrayInputStream 129 this.mark = offset; in ByteArrayInputStream() 271 public void mark(int readAheadLimit) { 272 mark = pos; 281 pos = mark;
|
D | StringReader.java | 41 private int mark = 0; field in StringReader 170 public void mark(int readAheadLimit) throws IOException { in mark() method in StringReader 176 mark = next; in mark() 189 next = mark; in reset()
|
D | FilterReader.java | 108 public void mark(int readAheadLimit) throws IOException { in mark() method in FilterReader 109 in.mark(readAheadLimit); in mark()
|
D | FilterInputStream.java | 199 public synchronized void mark(int readlimit) { in mark() method in FilterInputStream 200 in.mark(readlimit); in mark()
|
/libcore/luni/src/test/java/libcore/java/io/ |
D | OldByteArrayInputStreamTest.java | 59 assertEquals(444, SubByteArrayInputStream.mark); in test_Constructor$BII() 66 public static int mark, pos, count; field in OldByteArrayInputStreamTest.SubByteArrayInputStream 72 mark = super.mark; in SubByteArrayInputStream() 108 is.mark(1000); in test_markI() 143 is.mark(100); in test_read$BII() 184 is.mark(200); in test_reset()
|
D | OldLineNumberReaderTest.java | 35 lnr.mark(100); in test_markI() 43 lnr.mark(42); in test_markI() 145 lnr.mark(100); in test_reset() 151 lnr.mark(100); in test_reset()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/ |
D | AbstractBufferTest.java | 125 baseBuf.mark(); 136 baseBuf.mark(); 172 Buffer ret = baseBuf.mark(); 175 baseBuf.mark(); 180 baseBuf.mark(); 219 baseBuf.mark(); 232 baseBuf.mark(); 261 baseBuf.mark(); 266 baseBuf.mark();
|
/libcore/ojluni/annotations/hiddenapi/java/nio/ |
D | Buffer.java | 34 Buffer(int mark, int pos, int lim, int cap, int elementSizeShift) { in Buffer() argument 58 public final java.nio.Buffer mark() { in mark() method in Buffer 158 private int mark = -1; // 0xffffffff field in Buffer
|