diff options
author | Elliott Hughes <enh@google.com> | 2011-03-25 17:07:28 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2011-03-25 17:07:28 -0700 |
commit | 26c7025a7a919044771fb89031161bd26fe03032 (patch) | |
tree | f513060d028abd0d04a52c20e9e481b9d6aa4f38 /dalvik | |
parent | 5a1d955c457bb65f772124e3762a19fbe281b836 (diff) | |
download | libcore-26c7025a7a919044771fb89031161bd26fe03032.zip libcore-26c7025a7a919044771fb89031161bd26fe03032.tar.gz libcore-26c7025a7a919044771fb89031161bd26fe03032.tar.bz2 |
Add read(2).
For both byte[]s and ByteBuffers.
Bug: 3107501
Change-Id: I93b781069ade4507371c8fe8c5fda0163fbb2dbb
Diffstat (limited to 'dalvik')
-rw-r--r-- | dalvik/src/main/java/dalvik/system/BlockGuard.java | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/dalvik/src/main/java/dalvik/system/BlockGuard.java b/dalvik/src/main/java/dalvik/system/BlockGuard.java index 7eefedb..a0c0d25 100644 --- a/dalvik/src/main/java/dalvik/system/BlockGuard.java +++ b/dalvik/src/main/java/dalvik/system/BlockGuard.java @@ -166,12 +166,6 @@ public final class BlockGuard { mFileSystem = fileSystem; } - public long read(int fileDescriptor, byte[] bytes, int offset, int length) - throws IOException { - BlockGuard.getThreadPolicy().onReadFromDisk(); - return mFileSystem.read(fileDescriptor, bytes, offset, length); - } - public long write(int fileDescriptor, byte[] bytes, int offset, int length) throws IOException { BlockGuard.getThreadPolicy().onWriteToDisk(); @@ -190,12 +184,6 @@ public final class BlockGuard { return mFileSystem.writev(fileDescriptor, addresses, offsets, lengths, size); } - public long readDirect(int fileDescriptor, int address, int offset, - int length) throws IOException { - BlockGuard.getThreadPolicy().onReadFromDisk(); - return mFileSystem.readDirect(fileDescriptor, address, offset, length); - } - public long writeDirect(int fileDescriptor, int address, int offset, int length) throws IOException { BlockGuard.getThreadPolicy().onWriteToDisk(); |