OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:fileChannel
(Results
1 - 3
of
3
) sorted by null
/external/apache-harmony/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/
FileLockTest.java
24
import java.nio.channels.
FileChannel
;
34
private
FileChannel
readWriteChannel;
42
protected MockFileLock(
FileChannel
channel, long position, long size,
72
* @tests java.nio.channels.FileLock#FileLock(
FileChannel
, long, long,
176
FileChannel
fileChannel
= fout.getChannel();
177
FileLock fileLock =
fileChannel
.lock();
178
fileChannel
.close();
188
fileChannel
= fout.getChannel();
189
fileLock =
fileChannel
.lock()
[
all
...]
/external/apache-harmony/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/
MappedByteBufferTest.java
29
import java.nio.channels.
FileChannel
;
31
import java.nio.channels.
FileChannel
.MapMode;
46
FileChannel
fc = fis.getChannel();
47
MappedByteBuffer mmb = fc.map(
FileChannel
.MapMode.READ_ONLY, 0, fc
68
* Regression for HARMONY-6315 -
FileChannel
.map throws IOException
76
FileChannel
fc = fis.getChannel();
77
MappedByteBuffer mmb = fc.map(
FileChannel
.MapMode.READ_ONLY, 0, fc.size());
104
mmb = fc.map(
FileChannel
.MapMode.READ_WRITE, 0, fc.size());
113
mmb = fc.map(
FileChannel
.MapMode.PRIVATE, 0, fc.size());
129
FileChannel
fileChannelRead = fileInputStream.getChannel()
[
all
...]
/libcore/luni/src/main/java/java/nio/channels/
Channels.java
226
if (channel instanceof
FileChannel
) {
227
FileChannel
fileChannel
= (
FileChannel
) channel;
228
long result =
fileChannel
.size() -
fileChannel
.position();
Completed in 1078 milliseconds