Home
last modified time | relevance | path

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

/libcore/luni/src/test/java/libcore/java/nio/channels/
DFileChannelTest.java35 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/
DMockFunction.java35 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/
DMappedByteBufferTest.java46 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/
DSupport_Format.java138 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/
DSupport_Format.java131 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/
DByteBufferBulkBenchmark.java61 FileChannel fc = raf.getChannel(); in newBuffer() local
62 result = fc.map(FileChannel.MapMode.READ_WRITE, 0, fc.size()); in newBuffer()
DByteBufferBenchmark.java71 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/
DNioUtils.java55 public static FileDescriptor getFD(FileChannel fc) { in getFD() argument
56 return ((FileChannelImpl) fc).fd; in getFD()
/libcore/ojluni/src/main/java/java/util/
DArraysParallelSortHelpers.java133 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/
DFileHandler.java404 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/
DFileOutputStreamTest.java390 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/
DOldRandomAccessFileTest.java184 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/
DScannerTest.java257 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 …]