Home
last modified time | relevance | path

Searched refs:readOnly (Results 1 – 13 of 13) sorted by relevance

/libcore/luni/src/test/java/libcore/java/nio/channels/
DFileChannelTest.java51 ByteBuffer readOnly = ByteBuffer.allocate(1).asReadOnlyBuffer(); in testReadOnlyByteArrays() local
57 fc.read(readOnly); in testReadOnlyByteArrays()
62 fc.read(new ByteBuffer[] { readOnly }); in testReadOnlyByteArrays()
67 fc.read(new ByteBuffer[] { readOnly }, 0, 1); in testReadOnlyByteArrays()
72 fc.read(readOnly, 0L); in testReadOnlyByteArrays()
81 fc.write(readOnly); in testReadOnlyByteArrays()
82 fc.write(new ByteBuffer[] { readOnly }); in testReadOnlyByteArrays()
83 fc.write(new ByteBuffer[] { readOnly }, 0, 1); in testReadOnlyByteArrays()
84 fc.write(readOnly, 0L); in testReadOnlyByteArrays()
DDatagramChannelTest.java48 ByteBuffer readOnly = ByteBuffer.allocate(1).asReadOnlyBuffer(); in test_read_intoReadOnlyByteArrays() local
53 dc.read(readOnly); in test_read_intoReadOnlyByteArrays()
58 dc.read(new ByteBuffer[] { readOnly }); in test_read_intoReadOnlyByteArrays()
63 dc.read(new ByteBuffer[] { readOnly }, 0, 1); in test_read_intoReadOnlyByteArrays()
DSocketChannelTest.java53 ByteBuffer readOnly = ByteBuffer.allocate(1).asReadOnlyBuffer(); in test_read_intoReadOnlyByteArrays() local
56 sc.read(readOnly); in test_read_intoReadOnlyByteArrays()
61 sc.read(new ByteBuffer[] { readOnly }); in test_read_intoReadOnlyByteArrays()
66 sc.read(new ByteBuffer[] { readOnly }, 0, 1); in test_read_intoReadOnlyByteArrays()
DAsynchronousSocketChannelTest.java582 ByteBuffer readOnly = receivedData.asReadOnlyBuffer(); in test_read_failures() local
586 asc.read(readOnly); in test_read_failures()
592 asc.read(new ByteBuffer[] {readOnly}, 0, 1, 100L, TimeUnit.MILLISECONDS, null, in test_read_failures()
622 asc.read(readOnly, null, intCompletionHandler); in test_read_failures()
626 asc.read(readOnly, 100L, TimeUnit.MILLISECONDS, null, intCompletionHandler); in test_read_failures()
/libcore/ojluni/src/main/java/javax/security/auth/
DSubject.java128 private volatile boolean readOnly = false; field in Subject
199 public Subject(boolean readOnly, Set<? extends Principal> principals, in Subject() argument
215 this.readOnly = readOnly; in Subject()
244 this.readOnly = true; in setReadOnly()
255 return this.readOnly; in isReadOnly()
968 readOnly = gf.get("readOnly", false);
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/
DCharsetDecoderTest.java394 readOnly(getUnmappedByteBuffer()), true); in testDecodeCharBufferByteReadOnlyBufferUnmappedException()
400 readOnly(getUnmappedByteBuffer()), false); in testDecodeCharBufferByteReadOnlyIncompleteBufferUnmappedException()
448 readOnly(getMalformedByteBuffer()), true); in testDecodeCharBufferByteReadOnlyBufferMalformedException()
454 readOnly(getMalformedByteBuffer()), false); in testDecodeCharBufferByteReadOnlyIncompleteBufferMalformedException()
500 readOnly(getExceptionByteArray()), true); in testDecodeCharBufferByteReadOnlyBufferException()
506 readOnly(getExceptionByteArray()), false); in testDecodeCharBufferByteReadOnlyIncompleteBufferException()
521 private ByteBuffer readOnly(ByteBuffer b) { in readOnly() method in CharsetDecoderTest
/libcore/ojluni/src/main/java/sun/security/x509/
DX509CertImpl.java119 private boolean readOnly = false; field in X509CertImpl
569 if (readOnly) in sign()
601 readOnly = true; in sign()
715 if (readOnly) in set()
756 if (readOnly) in delete()
1488 if (readOnly && extKeyUsage != null) { in getExtendedKeyUsage()
1651 if (readOnly && subjectAlternativeNames != null) { in getSubjectAlternativeNames()
1714 if (readOnly && issuerAlternativeNames != null) { in getIssuerAlternativeNames()
1809 if (readOnly) in parse()
1855 readOnly = true; in parse()
DX509CRLImpl.java113 private boolean readOnly = false; field in X509CRLImpl
500 if (readOnly) in sign()
531 readOnly = true; in sign()
1064 if (readOnly) in parse()
1179 readOnly = true; in parse()
/libcore/ojluni/src/main/java/java/sql/
DConnection.java332 void setReadOnly(boolean readOnly) throws SQLException; in setReadOnly() argument
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DFormatterTest.java150 private File readOnly; field in FormatterTest
246 f = new Formatter(readOnly.getPath()); in test_ConstructorLjava_lang_String()
291 f = new Formatter(readOnly.getPath(), "UTF-16BE"); in test_ConstructorLjava_lang_StringLjava_lang_String()
344 f = new Formatter(readOnly.getPath(), Charset.defaultCharset() in test_ConstructorLjava_lang_StringLjava_lang_StringLjava_util_Locale()
375 f = new Formatter(readOnly); in test_ConstructorLjava_io_File()
406 f = new Formatter(readOnly, Charset.defaultCharset().name()); in test_ConstructorLjava_io_FileLjava_lang_String()
483 f = new Formatter(readOnly.getPath(), Charset.defaultCharset() in test_ConstructorLjava_io_FileLjava_lang_StringLjava_util_Locale()
4226 readOnly = File.createTempFile("readonly", null); in setUp()
4227 readOnly.setReadOnly(); in setUp()
4249 if (readOnly.exists()) { in tearDown()
[all …]
/libcore/luni/src/test/java/libcore/java/nio/
DBufferTest.java232 private void testByteBufferByteOrder(ByteBuffer b, boolean readOnly) throws Exception { in testByteBufferByteOrder() argument
233 if (readOnly) { in testByteBufferByteOrder()
690 private void assertPutByteBuffer(ByteBuffer dst, ByteBuffer src, boolean readOnly) { in assertPutByteBuffer() argument
702 if (readOnly) { in assertPutByteBuffer()
/libcore/ojluni/annotations/hiddenapi/sun/security/x509/
DX509CRLImpl.java290 private boolean readOnly = false; field in X509CRLImpl
DX509CertImpl.java470 @android.compat.annotation.UnsupportedAppUsage private boolean readOnly = false; field in X509CertImpl