/libcore/luni/src/test/java/libcore/java/nio/channels/ |
D | FileChannelTest.java | 35 FileChannel fc = new FileInputStream(tmp).getChannel(); in testReadOnlyByteArrays() local 37 fc.read(readOnly); in testReadOnlyByteArrays() 42 fc.read(new ByteBuffer[] { readOnly }); in testReadOnlyByteArrays() 47 fc.read(new ByteBuffer[] { readOnly }, 0, 1); in testReadOnlyByteArrays() 52 fc.read(readOnly, 0L); in testReadOnlyByteArrays() 56 fc.close(); in testReadOnlyByteArrays() 60 fc = new FileOutputStream(tmp).getChannel(); in testReadOnlyByteArrays() 61 fc.write(readOnly); in testReadOnlyByteArrays() 62 fc.write(new ByteBuffer[] { readOnly }); in testReadOnlyByteArrays() 63 fc.write(new ByteBuffer[] { readOnly }, 0, 1); in testReadOnlyByteArrays() [all …]
|
/libcore/luni/src/test/java/tests/support/ |
D | MockFunction.java | 35 public void function(FunctionContext fc, String args[]) { in function() argument 38 fc.set_result(args[0].toLowerCase()); in function() 42 public void step(FunctionContext fc, String args[]) { in step() argument 50 public void last_step(FunctionContext fc) { in last_step() argument 52 fc.set_result(acc.toString()); in last_step()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/ |
D | MappedByteBufferTest.java | 46 FileChannel fc = fis.getChannel(); in testasIntBuffer() local 47 MappedByteBuffer mmb = fc.map(FileChannel.MapMode.READ_ONLY, 0, fc in testasIntBuffer() 64 fc.close(); in testasIntBuffer() 76 FileChannel fc = fis.getChannel(); in testEmptyBuffer() local 77 MappedByteBuffer mmb = fc.map(FileChannel.MapMode.READ_ONLY, 0, fc.size()); in testEmptyBuffer() 104 mmb = fc.map(FileChannel.MapMode.READ_WRITE, 0, fc.size()); in testEmptyBuffer() 113 mmb = fc.map(FileChannel.MapMode.PRIVATE, 0, fc.size()); in testEmptyBuffer() 120 fc.close(); in testEmptyBuffer()
|
/libcore/support/src/test/java/tests/support/ |
D | Support_Format.java | 138 FieldContainer fc = (FieldContainer) obj; in equals() local 139 return (start == fc.start && end == fc.end in equals() 140 && attribute == fc.attribute && value.equals(fc.value)); in equals()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | Support_Format.java | 131 FieldContainer fc = (FieldContainer) obj; in equals() local 132 …return (start == fc.start && end == fc.end && attribute == fc.attribute && value.equals(fc.value)); in equals()
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | ByteBufferBulkBenchmark.java | 61 FileChannel fc = raf.getChannel(); in newBuffer() local 62 result = fc.map(FileChannel.MapMode.READ_WRITE, 0, fc.size()); in newBuffer()
|
D | ByteBufferBenchmark.java | 71 FileChannel fc = raf.getChannel(); in newBuffer() local 72 result = fc.map(FileChannel.MapMode.READ_WRITE, 0, fc.size()); in newBuffer()
|
/libcore/luni/src/main/java/java/nio/ |
D | NioUtils.java | 55 public static FileDescriptor getFD(FileChannel fc) { in getFD() argument 56 return ((FileChannelImpl) fc).fd; in getFD()
|
/libcore/ojluni/src/main/java/java/util/ |
D | ArraysParallelSortHelpers.java | 133 Relay fc = new Relay(new Merger<T>(s, w, a, wb, h, in compute() local 135 Relay rc = new Relay(new Merger<T>(fc, a, w, b+h, q, in compute() 139 Relay bc = new Relay(new Merger<T>(fc, a, w, b, q, in compute() 251 Relay fc = new Relay(new Merger(s, w, a, wb, h, in compute() local 253 Relay rc = new Relay(new Merger(fc, a, w, b+h, q, in compute() 257 Relay bc = new Relay(new Merger(fc, a, w, b, q, in compute() 362 Relay fc = new Relay(new Merger(s, w, a, wb, h, in compute() local 364 Relay rc = new Relay(new Merger(fc, a, w, b+h, q, in compute() 368 Relay bc = new Relay(new Merger(fc, a, w, b, q, in compute() 473 Relay fc = new Relay(new Merger(s, w, a, wb, h, in compute() local [all …]
|
/libcore/ojluni/src/main/java/java/util/logging/ |
D | FileHandler.java | 404 FileChannel fc; in openFiles() local 407 fc = lockStream.getChannel(); in openFiles() 415 available = fc.tryLock() != null; in openFiles() 431 fc.close(); in openFiles()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | FileOutputStreamTest.java | 390 FileChannel fc = fos.getChannel(); in test_getChanne_Append_Append() local 391 assertEquals(10, fc.position()); in test_getChanne_Append_Append() 392 fc.write(ByteBuffer.wrap("hello".getBytes(java.nio.charset.StandardCharsets.UTF_8))); in test_getChanne_Append_Append() 393 assertEquals(15, fc.position()); in test_getChanne_Append_Append()
|
/libcore/luni/src/test/java/libcore/java/io/ |
D | OldRandomAccessFileTest.java | 184 FileChannel fc = raf.getChannel(); in test_getChannel() local 188 assertTrue("Test 1: Channel position expected to be 0.", fc.position() == 0); in test_getChannel() 192 testLength, fc.position()); in test_getChannel() 194 fc.position() == raf.getFilePointer()); in test_getChannel()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | ScannerTest.java | 257 FileChannel fc = new FileOutputStream(tmpFile).getChannel(); in test_ConstructorLjava_nio_channels_ReadableByteChannel() local 258 s = new Scanner(fc); in test_ConstructorLjava_nio_channels_ReadableByteChannel() 297 FileChannel fc = new FileOutputStream(tmpFile).getChannel(); in test_ConstructorLjava_nio_channels_ReadableByteChannelLjava_lang_String() local 298 s = new Scanner(fc, Charset.defaultCharset().name()); in test_ConstructorLjava_nio_channels_ReadableByteChannelLjava_lang_String() 302 fc = new FileOutputStream(tmpFile).getChannel(); in test_ConstructorLjava_nio_channels_ReadableByteChannelLjava_lang_String() 304 s = new Scanner(fc, "invalid charset"); in test_ConstructorLjava_nio_channels_ReadableByteChannelLjava_lang_String() 308 fc.close(); in test_ConstructorLjava_nio_channels_ReadableByteChannelLjava_lang_String() 327 s = new Scanner(fc, null); in test_ConstructorLjava_nio_channels_ReadableByteChannelLjava_lang_String() 379 FileChannel fc = fos.getChannel(); in test_close() local 380 s = new Scanner(fc); in test_close() [all …]
|