Home
last modified time | relevance | path

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

1234

/libcore/ojluni/src/main/java/java/nio/
DHeapIntBuffer.java86 private HeapIntBuffer(int cap, int lim, boolean isReadOnly) { in HeapIntBuffer() argument
88 this.isReadOnly = isReadOnly; in HeapIntBuffer()
112 private HeapIntBuffer(int[] buf, int off, int len, boolean isReadOnly) { in HeapIntBuffer() argument
114 this.isReadOnly = isReadOnly; in HeapIntBuffer()
123 int off, boolean isReadOnly) in HeapIntBuffer() argument
128 this.isReadOnly = isReadOnly; in HeapIntBuffer()
153 isReadOnly); in slice()
167 isReadOnly); in slice()
179 isReadOnly); in duplicate()
264 public boolean isReadOnly() { in isReadOnly() method in HeapIntBuffer
[all …]
DHeapFloatBuffer.java86 private HeapFloatBuffer(int cap, int lim, boolean isReadOnly) { in HeapFloatBuffer() argument
88 this.isReadOnly = isReadOnly; in HeapFloatBuffer()
112 private HeapFloatBuffer(float[] buf, int off, int len, boolean isReadOnly) { in HeapFloatBuffer() argument
114 this.isReadOnly = isReadOnly; in HeapFloatBuffer()
123 int off, boolean isReadOnly) in HeapFloatBuffer() argument
128 this.isReadOnly = isReadOnly; in HeapFloatBuffer()
153 isReadOnly); in slice()
167 isReadOnly); in slice()
179 isReadOnly); in duplicate()
264 public boolean isReadOnly() { in isReadOnly() method in HeapFloatBuffer
[all …]
DHeapShortBuffer.java86 private HeapShortBuffer(int cap, int lim, boolean isReadOnly) { in HeapShortBuffer() argument
88 this.isReadOnly = isReadOnly; in HeapShortBuffer()
112 private HeapShortBuffer(short[] buf, int off, int len, boolean isReadOnly) { in HeapShortBuffer() argument
114 this.isReadOnly = isReadOnly; in HeapShortBuffer()
123 int off, boolean isReadOnly) in HeapShortBuffer() argument
128 this.isReadOnly = isReadOnly; in HeapShortBuffer()
153 isReadOnly); in slice()
167 isReadOnly); in slice()
179 isReadOnly); in duplicate()
264 public boolean isReadOnly() { in isReadOnly() method in HeapShortBuffer
[all …]
DHeapLongBuffer.java86 private HeapLongBuffer(int cap, int lim, boolean isReadOnly) { in HeapLongBuffer() argument
88 this.isReadOnly = isReadOnly; in HeapLongBuffer()
112 private HeapLongBuffer(long[] buf, int off, int len, boolean isReadOnly) { in HeapLongBuffer() argument
114 this.isReadOnly = isReadOnly; in HeapLongBuffer()
123 int off, boolean isReadOnly) in HeapLongBuffer() argument
128 this.isReadOnly = isReadOnly; in HeapLongBuffer()
153 isReadOnly); in slice()
167 isReadOnly); in slice()
179 isReadOnly); in duplicate()
264 public boolean isReadOnly() { in isReadOnly() method in HeapLongBuffer
[all …]
DHeapDoubleBuffer.java86 private HeapDoubleBuffer(int cap, int lim, boolean isReadOnly) { in HeapDoubleBuffer() argument
88 this.isReadOnly = isReadOnly; in HeapDoubleBuffer()
112 private HeapDoubleBuffer(double[] buf, int off, int len, boolean isReadOnly) { in HeapDoubleBuffer() argument
114 this.isReadOnly = isReadOnly; in HeapDoubleBuffer()
123 int off, boolean isReadOnly) in HeapDoubleBuffer() argument
128 this.isReadOnly = isReadOnly; in HeapDoubleBuffer()
153 isReadOnly); in slice()
167 isReadOnly); in slice()
179 isReadOnly); in duplicate()
264 public boolean isReadOnly() { in isReadOnly() method in HeapDoubleBuffer
[all …]
DHeapCharBuffer.java86 private HeapCharBuffer(int cap, int lim, boolean isReadOnly) { in HeapCharBuffer() argument
88 this.isReadOnly = isReadOnly; in HeapCharBuffer()
112 private HeapCharBuffer(char[] buf, int off, int len, boolean isReadOnly) { in HeapCharBuffer() argument
114 this.isReadOnly = isReadOnly; in HeapCharBuffer()
123 int off, boolean isReadOnly) in HeapCharBuffer() argument
128 this.isReadOnly = isReadOnly; in HeapCharBuffer()
153 isReadOnly); in slice()
167 isReadOnly); in slice()
179 isReadOnly); in duplicate()
264 public boolean isReadOnly() { in isReadOnly() method in HeapCharBuffer
[all …]
DDirectByteBuffer.java108 this.isReadOnly = false; in DirectByteBuffer()
125 boolean isReadOnly) { in DirectByteBuffer() argument
127 this.isReadOnly = isReadOnly; in DirectByteBuffer()
144 int off, boolean isReadOnly) { in DirectByteBuffer() argument
146 this.isReadOnly = isReadOnly; in DirectByteBuffer()
179 return new DirectByteBuffer(memoryRef, -1, 0, rem, rem, off, isReadOnly); in slice()
196 isReadOnly); in slice()
210 isReadOnly); in duplicate()
293 if (isReadOnly) { in put()
305 if (isReadOnly) { in put()
[all …]
DHeapByteBuffer.java86 private HeapByteBuffer(int cap, int lim, boolean isReadOnly) { in HeapByteBuffer() argument
88 this.isReadOnly = isReadOnly; in HeapByteBuffer()
112 private HeapByteBuffer(byte[] buf, int off, int len, boolean isReadOnly) { in HeapByteBuffer() argument
114 this.isReadOnly = isReadOnly; in HeapByteBuffer()
123 int off, boolean isReadOnly) in HeapByteBuffer() argument
128 this.isReadOnly = isReadOnly; in HeapByteBuffer()
153 isReadOnly); in slice()
167 isReadOnly); in slice()
179 isReadOnly); in duplicate()
264 public boolean isReadOnly() { in isReadOnly() method in HeapByteBuffer
[all …]
DByteBufferAsDoubleBuffer.java66 this.isReadOnly = bb.isReadOnly; in ByteBufferAsDoubleBuffer()
322 public boolean isReadOnly() { in isReadOnly() method in ByteBufferAsDoubleBuffer
323 return isReadOnly; in isReadOnly()
382 if (isReadOnly) { in throwIfReadOnly()
DByteBufferAsLongBuffer.java66 this.isReadOnly = bb.isReadOnly; in ByteBufferAsLongBuffer()
322 public boolean isReadOnly() { in isReadOnly() method in ByteBufferAsLongBuffer
323 return isReadOnly; in isReadOnly()
382 if (isReadOnly) { in throwIfReadOnly()
DByteBufferAsIntBuffer.java66 this.isReadOnly = bb.isReadOnly; in ByteBufferAsIntBuffer()
322 public boolean isReadOnly() { in isReadOnly() method in ByteBufferAsIntBuffer
323 return isReadOnly; in isReadOnly()
382 if (isReadOnly) { in throwIfReadOnly()
DByteBufferAsShortBuffer.java66 this.isReadOnly = bb.isReadOnly; in ByteBufferAsShortBuffer()
322 public boolean isReadOnly() { in isReadOnly() method in ByteBufferAsShortBuffer
323 return isReadOnly; in isReadOnly()
382 if (isReadOnly) { in throwIfReadOnly()
DByteBufferAsFloatBuffer.java66 this.isReadOnly = bb.isReadOnly; in ByteBufferAsFloatBuffer()
322 public boolean isReadOnly() { in isReadOnly() method in ByteBufferAsFloatBuffer
323 return isReadOnly; in isReadOnly()
382 if (isReadOnly) { in throwIfReadOnly()
DFloatBuffer.java285 boolean isReadOnly; field in FloatBuffer
1024 if (isReadOnly()) in put()
1098 if (isReadOnly()) in put()
1293 if (isReadOnly()) in put()
1378 if (isReadOnly()) in put()
1582 return (hb != null) && !isReadOnly; in hasArray()
1607 if (isReadOnly) in array()
1635 if (isReadOnly) in arrayOffset()
DLongBuffer.java285 boolean isReadOnly; field in LongBuffer
1024 if (isReadOnly()) in put()
1098 if (isReadOnly()) in put()
1293 if (isReadOnly()) in put()
1378 if (isReadOnly()) in put()
1582 return (hb != null) && !isReadOnly; in hasArray()
1607 if (isReadOnly) in array()
1635 if (isReadOnly) in arrayOffset()
DIntBuffer.java285 boolean isReadOnly; field in IntBuffer
1024 if (isReadOnly()) in put()
1098 if (isReadOnly()) in put()
1293 if (isReadOnly()) in put()
1378 if (isReadOnly()) in put()
1582 return (hb != null) && !isReadOnly; in hasArray()
1607 if (isReadOnly) in array()
1635 if (isReadOnly) in arrayOffset()
DShortBuffer.java285 boolean isReadOnly; field in ShortBuffer
1024 if (isReadOnly()) in put()
1098 if (isReadOnly()) in put()
1293 if (isReadOnly()) in put()
1378 if (isReadOnly()) in put()
1582 return (hb != null) && !isReadOnly; in hasArray()
1607 if (isReadOnly) in array()
1635 if (isReadOnly) in arrayOffset()
DDoubleBuffer.java285 boolean isReadOnly; field in DoubleBuffer
1024 if (isReadOnly()) in put()
1098 if (isReadOnly()) in put()
1293 if (isReadOnly()) in put()
1378 if (isReadOnly()) in put()
1582 return (hb != null) && !isReadOnly; in hasArray()
1607 if (isReadOnly) in array()
1635 if (isReadOnly) in arrayOffset()
DCharBuffer.java285 boolean isReadOnly; field in CharBuffer
1024 if (isReadOnly()) in put()
1098 if (isReadOnly()) in put()
1293 if (isReadOnly()) in put()
1378 if (isReadOnly()) in put()
1531 if (isReadOnly()) in put()
1582 return (hb != null) && !isReadOnly; in hasArray()
1607 if (isReadOnly) in array()
1635 if (isReadOnly) in arrayOffset()
DByteBufferAsCharBuffer.java66 this.isReadOnly = bb.isReadOnly; in ByteBufferAsCharBuffer()
322 public boolean isReadOnly() { in isReadOnly() method in ByteBufferAsCharBuffer
323 return isReadOnly; in isReadOnly()
382 if (isReadOnly) { in throwIfReadOnly()
DStringCharBuffer.java44 this.isReadOnly = true; in StringCharBuffer()
80 this.isReadOnly = true; in StringCharBuffer()
118 public final boolean isReadOnly() { in isReadOnly() method in StringCharBuffer
DByteBuffer.java285 boolean isReadOnly; field in ByteBuffer
1024 if (isReadOnly()) in put()
1098 if (isReadOnly()) in put()
1293 if (isReadOnly()) in put()
1378 if (isReadOnly()) in put()
1582 return (hb != null) && !isReadOnly; in hasArray()
1607 if (isReadOnly) in array()
1635 if (isReadOnly) in arrayOffset()
/libcore/luni/src/test/java/libcore/javax/security/auth/
DSubjectTest.java81 public void isReadOnly() { in isReadOnly() method in SubjectTest
82 assertTrue(subject.isReadOnly()); in isReadOnly()
85 assertFalse(subject.isReadOnly()); in isReadOnly()
91 assertFalse(subject.isReadOnly()); in setReadOnly()
94 assertTrue(subject.isReadOnly()); in setReadOnly()
/libcore/luni/src/test/java/libcore/java/security/
DPermissionCollectionTest.java53 assertTrue(permissionCollection.isReadOnly()); in testSetReadOnly()
55 assertTrue(permissionCollection.isReadOnly()); in testSetReadOnly()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/
DByteBufferTest.java101 if (buf.isReadOnly()) { in testArray()
139 if (buf.isReadOnly()) { in testArrayOffset()
168 assertTrue(readonly.isReadOnly()); in testAsReadOnlyBuffer()
185 if (buf.isReadOnly()) { in testCompact()
250 if (!buf.isReadOnly()) { in testCompareTo()
283 assertEquals(buf.isReadOnly(), duplicate.isReadOnly());
297 if (!duplicate.isReadOnly()) {
464 if (buf.isReadOnly()) { in testHasArray()
535 if (buf.isReadOnly()) { in testPutbyte()
566 if (buf.isReadOnly()) { in testPutbyteArray()
[all …]

1234