Home
last modified time | relevance | path

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

1234

/libcore/jsr166-tests/src/test/java/jsr166/
DAtomicStampedReferenceTest.java43 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 …]
DAtomicMarkableReferenceTest.java43 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/main/java/java/nio/
DBuffer.java186 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()
261 if (mark > position) mark = -1; in position()
293 if (mark > limit) mark = -1; in limit()
302 public Buffer mark() { in mark() method in Buffer
303 mark = position; in mark()
[all …]
DMappedByteBuffer.java82 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()
DShortBuffer.java110 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()
655 public Buffer mark() { in mark() method in ShortBuffer
656 return super.mark(); in mark()
DIntBuffer.java111 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()
656 public Buffer mark() { in mark() method in IntBuffer
657 return super.mark(); in mark()
DDoubleBuffer.java110 DoubleBuffer(int mark, int pos, int lim, int cap, // package-private in DoubleBuffer() argument
114 super(mark, pos, lim, cap, 3 /* elementSizeShift */); in DoubleBuffer()
121 DoubleBuffer(int mark, int pos, int lim, int cap) { // package-private in DoubleBuffer() argument
122 this(mark, pos, lim, cap, null, 0); in DoubleBuffer()
655 public Buffer mark() { in mark() method in DoubleBuffer
656 return super.mark(); in mark()
DFloatBuffer.java110 FloatBuffer(int mark, int pos, int lim, int cap, // package-private in FloatBuffer() argument
114 super(mark, pos, lim, cap, 2 /* elementSizeShift */); in FloatBuffer()
121 FloatBuffer(int mark, int pos, int lim, int cap) { // package-private in FloatBuffer() argument
122 this(mark, pos, lim, cap, null, 0); in FloatBuffer()
655 public Buffer mark() { in mark() method in FloatBuffer
656 return super.mark(); in mark()
DHeapLongBuffer.java64 int mark, int pos, int lim, int cap, in HeapLongBuffer() argument
66 this(buf, mark, pos, lim, cap, off, false); in HeapLongBuffer()
70 int mark, int pos, int lim, int cap, in HeapLongBuffer() argument
72 super(mark, pos, lim, cap, buf, off); in HeapLongBuffer()
DHeapFloatBuffer.java63 int mark, int pos, int lim, int cap, in HeapFloatBuffer() argument
65 this(buf, mark, pos, lim, cap, off, false); in HeapFloatBuffer()
69 int mark, int pos, int lim, int cap, in HeapFloatBuffer() argument
71 super(mark, pos, lim, cap, buf, off); in HeapFloatBuffer()
DHeapShortBuffer.java63 int mark, int pos, int lim, int cap, in HeapShortBuffer() argument
65 this(buf, mark, pos, lim, cap, off, false); in HeapShortBuffer()
69 int mark, int pos, int lim, int cap, in HeapShortBuffer() argument
71 super(mark, pos, lim, cap, buf, off); in HeapShortBuffer()
/libcore/ojluni/src/test/java/util/concurrent/tck/
DAtomicMarkableReferenceTest.java66 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 …]
DAtomicStampedReferenceTest.java66 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/util/concurrent/atomic/
DAtomicMarkableReference.java54 final boolean mark; field in AtomicMarkableReference.Pair
55 private Pair(T reference, boolean mark) { in Pair() argument
57 this.mark = mark; in Pair()
59 static <T> Pair<T> of(T reference, boolean mark) { in of() argument
60 return new Pair<T>(reference, mark); in of()
92 return pair.mark; in isMarked()
105 markHolder[0] = pair.mark; in get()
152 expectedMark == current.mark && in compareAndSet()
154 newMark == current.mark) || in compareAndSet()
166 if (newReference != current.reference || newMark != current.mark) in set()
[all …]
/libcore/ojluni/src/main/java/java/io/
DByteArrayInputStream.java78 protected int mark = 0; field in ByteArrayInputStream
127 this.mark = offset; in ByteArrayInputStream()
261 public void mark(int readAheadLimit) {
262 mark = pos;
271 pos = mark;
DStringReader.java41 private int mark = 0; field in StringReader
169 public void mark(int readAheadLimit) throws IOException { in mark() method in StringReader
175 mark = next; in mark()
188 next = mark; in reset()
DFilterReader.java107 public void mark(int readAheadLimit) throws IOException { in mark() method in FilterReader
108 in.mark(readAheadLimit); in mark()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DByteArrayInputStreamTest.java54 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()
DBufferedInputStreamTest.java248 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 …]
DBufferedReaderTest.java109 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()
DLineNumberInputStreamTest.java75 lnis.mark(40); in test_markI()
113 lnis.mark(40); in test_reset()
122 lnis.mark(5); in test_reset()
/libcore/luni/src/test/java/libcore/java/io/
DOldByteArrayInputStreamTest.java59 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()
DOldLineNumberReaderTest.java35 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/
DAbstractBufferTest.java125 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/
DBuffer.java34 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

1234