/libcore/luni/src/test/java/libcore/java/nio/channels/ |
D | FileChannelTest.java | 55 FileChannel fc = new FileInputStream(tmp).getChannel(); 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() 76 fc.close(); in testReadOnlyByteArrays() 80 fc = new FileOutputStream(tmp).getChannel(); 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() [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/luni/src/test/java/libcore/java/nio/file/ |
D | DefaultFileSystemProvider2Test.java | 433 FileChannel fc = provider.newFileChannel(filesSetup.getDataFilePath(), openOptions); in test_newFileChannel() local 434 assertEquals(filesSetup.TEST_FILE_DATA, readFromFileChannel(fc)); in test_newFileChannel() 443 FileChannel fc = provider.newFileChannel(filesSetup.getDataFilePath(), openOptions); in test_newFileChannel() local 444 assertEquals(filesSetup.TEST_FILE_DATA, readFromFileChannel(fc)); in test_newFileChannel() 453 FileChannel fc = provider.newFileChannel(filesSetup.getDataFilePath(), openOptions); in test_newFileChannel() local 454 assertEquals(filesSetup.TEST_FILE_DATA, readFromFileChannel(fc)); in test_newFileChannel() 465 FileChannel fc = provider.newFileChannel(filesSetup.getDataFilePath(), openOptions); in test_newFileChannel() local 466 writeToFileChannel(fc, filesSetup.TEST_FILE_DATA_2); in test_newFileChannel() 467 fc.close(); in test_newFileChannel() 479 FileChannel fc = provider.newFileChannel(filesSetup.getDataFilePath(), openOptions); in test_newFileChannel() local [all …]
|
/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/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 …]
|
D | HashMap.java | 1390 float fc = (float)mappings / lf + 1.0f; in readObject() local 1391 int cap = ((fc < DEFAULT_INITIAL_CAPACITY) ? in readObject() 1393 (fc >= MAXIMUM_CAPACITY) ? in readObject() 1395 tableSizeFor((int)fc)); in readObject()
|
/libcore/luni/src/main/java/java/nio/ |
D | NioUtils.java | 59 public static FileDescriptor getFD(FileChannel fc) { in getFD() argument 60 return ((FileChannelImpl) fc).fd; in getFD()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | FileOutputStreamTest.java | 396 FileChannel fc = fos.getChannel(); in test_getChanne_Append_Append() local 397 assertEquals(10, fc.position()); in test_getChanne_Append_Append() 398 fc.write(ByteBuffer.wrap("hello".getBytes(java.nio.charset.StandardCharsets.UTF_8))); in test_getChanne_Append_Append() 399 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 | 370 FileChannel fc = new FileOutputStream(tmpFile).getChannel(); in test_ConstructorLjava_nio_channels_ReadableByteChannel() local 371 s = new Scanner(fc); in test_ConstructorLjava_nio_channels_ReadableByteChannel() 410 FileChannel fc = new FileOutputStream(tmpFile).getChannel(); in test_ConstructorLjava_nio_channels_ReadableByteChannelLjava_lang_String() local 411 s = new Scanner(fc, Charset.defaultCharset().name()); in test_ConstructorLjava_nio_channels_ReadableByteChannelLjava_lang_String() 415 fc = new FileOutputStream(tmpFile).getChannel(); in test_ConstructorLjava_nio_channels_ReadableByteChannelLjava_lang_String() 417 s = new Scanner(fc, "invalid charset"); in test_ConstructorLjava_nio_channels_ReadableByteChannelLjava_lang_String() 421 fc.close(); in test_ConstructorLjava_nio_channels_ReadableByteChannelLjava_lang_String() 440 s = new Scanner(fc, null); in test_ConstructorLjava_nio_channels_ReadableByteChannelLjava_lang_String() 492 FileChannel fc = fos.getChannel(); in test_close() local 493 s = new Scanner(fc); in test_close() [all …]
|