/libcore/luni/src/test/java/libcore/java/nio/channels/ |
D | FileChannelTest.java | 51 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()
|
D | DatagramChannelTest.java | 60 ByteBuffer readOnly = ByteBuffer.allocate(1).asReadOnlyBuffer(); in test_read_intoReadOnlyByteArrays() local 65 dc.read(readOnly); in test_read_intoReadOnlyByteArrays() 70 dc.read(new ByteBuffer[] { readOnly }); in test_read_intoReadOnlyByteArrays() 75 dc.read(new ByteBuffer[] { readOnly }, 0, 1); in test_read_intoReadOnlyByteArrays()
|
D | SocketChannelTest.java | 53 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()
|
D | AsynchronousSocketChannelTest.java | 582 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/luni/src/main/native/ |
D | ScopedBytes.h | 29 template<bool readOnly> 50 mEnv->ReleaseByteArrayElements(mByteArray, mPtr, readOnly ? JNI_ABORT : 0); in ~ScopedBytes()
|
/libcore/ojluni/src/main/java/javax/security/auth/ |
D | Subject.java | 128 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/ojluni/src/main/java/sun/security/x509/ |
D | X509CertImpl.java | 119 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()
|
D | X509CRLImpl.java | 113 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/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/ |
D | CharsetDecoderTest.java | 396 readOnly(getUnmappedByteBuffer()), true); in testDecodeCharBufferByteReadOnlyBufferUnmappedException() 402 readOnly(getUnmappedByteBuffer()), false); in testDecodeCharBufferByteReadOnlyIncompleteBufferUnmappedException() 450 readOnly(getMalformedByteBuffer()), true); in testDecodeCharBufferByteReadOnlyBufferMalformedException() 456 readOnly(getMalformedByteBuffer()), false); in testDecodeCharBufferByteReadOnlyIncompleteBufferMalformedException() 502 readOnly(getExceptionByteArray()), true); in testDecodeCharBufferByteReadOnlyBufferException() 508 readOnly(getExceptionByteArray()), false); in testDecodeCharBufferByteReadOnlyIncompleteBufferException() 521 private ByteBuffer readOnly(ByteBuffer b) { in readOnly() method in CharsetDecoderTest
|
/libcore/ojluni/src/test/java/lang/invoke/VarHandles/ |
D | VarHandleTestByteArrayAsShort.java | 388 boolean readOnly = MemoryMode.READ_ONLY.isSet(bs.memoryModes); in testArrayUnsupported() 390 if (readOnly) { in testArrayUnsupported() 396 if (readOnly) { in testArrayUnsupported() 643 boolean readOnly = MemoryMode.READ_ONLY.isSet(bs.memoryModes); in testArrayIndexOutOfBounds() 653 if (!readOnly) { in testArrayIndexOutOfBounds() 671 if (!readOnly) { in testArrayIndexOutOfBounds() 735 boolean readOnly = MemoryMode.READ_ONLY.isSet(bs.memoryModes); in testArrayMisalignedAccess() 756 if (!readOnly) { in testArrayMisalignedAccess()
|
D | VarHandleTestByteArrayAsChar.java | 388 boolean readOnly = MemoryMode.READ_ONLY.isSet(bs.memoryModes); in testArrayUnsupported() 390 if (readOnly) { in testArrayUnsupported() 396 if (readOnly) { in testArrayUnsupported() 643 boolean readOnly = MemoryMode.READ_ONLY.isSet(bs.memoryModes); in testArrayIndexOutOfBounds() 653 if (!readOnly) { in testArrayIndexOutOfBounds() 671 if (!readOnly) { in testArrayIndexOutOfBounds() 735 boolean readOnly = MemoryMode.READ_ONLY.isSet(bs.memoryModes); in testArrayMisalignedAccess() 756 if (!readOnly) { in testArrayMisalignedAccess()
|
D | VarHandleTestByteArrayAsFloat.java | 431 boolean readOnly = MemoryMode.READ_ONLY.isSet(bs.memoryModes); in testArrayUnsupported() 433 if (readOnly) { in testArrayUnsupported() 439 if (readOnly) { in testArrayUnsupported() 689 boolean readOnly = MemoryMode.READ_ONLY.isSet(bs.memoryModes); in testArrayIndexOutOfBounds() 699 if (!readOnly) { in testArrayIndexOutOfBounds() 717 if (!readOnly) { in testArrayIndexOutOfBounds() 868 boolean readOnly = MemoryMode.READ_ONLY.isSet(bs.memoryModes); in testArrayMisalignedAccess() 889 if (!readOnly) { in testArrayMisalignedAccess()
|
D | VarHandleTestByteArrayAsDouble.java | 431 boolean readOnly = MemoryMode.READ_ONLY.isSet(bs.memoryModes); in testArrayUnsupported() 433 if (readOnly) { in testArrayUnsupported() 439 if (readOnly) { in testArrayUnsupported() 689 boolean readOnly = MemoryMode.READ_ONLY.isSet(bs.memoryModes); in testArrayIndexOutOfBounds() 699 if (!readOnly) { in testArrayIndexOutOfBounds() 717 if (!readOnly) { in testArrayIndexOutOfBounds() 868 boolean readOnly = MemoryMode.READ_ONLY.isSet(bs.memoryModes); in testArrayMisalignedAccess() 889 if (!readOnly) { in testArrayMisalignedAccess()
|
D | VarHandleTestByteArrayAsLong.java | 477 boolean readOnly = MemoryMode.READ_ONLY.isSet(bs.memoryModes); in testArrayUnsupported() 479 if (readOnly) { in testArrayUnsupported() 485 if (readOnly) { in testArrayUnsupported() 735 boolean readOnly = MemoryMode.READ_ONLY.isSet(bs.memoryModes); in testArrayIndexOutOfBounds() 745 if (!readOnly) { in testArrayIndexOutOfBounds() 763 if (!readOnly) { in testArrayIndexOutOfBounds() 1006 boolean readOnly = MemoryMode.READ_ONLY.isSet(bs.memoryModes); in testArrayMisalignedAccess() 1027 if (!readOnly) { in testArrayMisalignedAccess()
|
D | VarHandleTestByteArrayAsInt.java | 477 boolean readOnly = MemoryMode.READ_ONLY.isSet(bs.memoryModes); in testArrayUnsupported() 479 if (readOnly) { in testArrayUnsupported() 485 if (readOnly) { in testArrayUnsupported() 735 boolean readOnly = MemoryMode.READ_ONLY.isSet(bs.memoryModes); in testArrayIndexOutOfBounds() 745 if (!readOnly) { in testArrayIndexOutOfBounds() 763 if (!readOnly) { in testArrayIndexOutOfBounds() 1006 boolean readOnly = MemoryMode.READ_ONLY.isSet(bs.memoryModes); in testArrayMisalignedAccess() 1027 if (!readOnly) { in testArrayMisalignedAccess()
|
D | X-VarHandleTestByteArrayView.java.template | 616 boolean readOnly = MemoryMode.READ_ONLY.isSet(bs.memoryModes); 618 if (readOnly) { 624 if (readOnly) { 1073 boolean readOnly = MemoryMode.READ_ONLY.isSet(bs.memoryModes); 1083 if (!readOnly) { 1101 if (!readOnly) { 1356 boolean readOnly = MemoryMode.READ_ONLY.isSet(bs.memoryModes); 1377 if (!readOnly) {
|
/libcore/ojluni/src/main/java/java/sql/ |
D | Connection.java | 332 void setReadOnly(boolean readOnly) throws SQLException; in setReadOnly() argument
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | FormatterTest.java | 150 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() 4222 readOnly = File.createTempFile("readonly", null); in setUp() 4223 readOnly.setReadOnly(); in setUp() 4245 if (readOnly.exists()) { in tearDown() [all …]
|
/libcore/luni/src/test/java/libcore/java/nio/ |
D | BufferTest.java | 232 private void testByteBufferByteOrder(ByteBuffer b, boolean readOnly) throws Exception { in testByteBufferByteOrder() argument 233 if (readOnly) { in testByteBufferByteOrder() 719 private void assertPutByteBuffer(ByteBuffer dst, ByteBuffer src, boolean readOnly) { in assertPutByteBuffer() argument 731 if (readOnly) { in assertPutByteBuffer()
|
/libcore/ojluni/annotations/hiddenapi/sun/security/x509/ |
D | X509CRLImpl.java | 290 private boolean readOnly = false; field in X509CRLImpl
|
D | X509CertImpl.java | 470 @android.compat.annotation.UnsupportedAppUsage private boolean readOnly = false; field in X509CertImpl
|
/libcore/ojluni/src/main/java/java/nio/ |
D | X-Buffer.java.template | 1154 // use it to read *from* readOnly buffers.
|