summaryrefslogtreecommitdiffstats
path: root/dalvik
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2011-03-25 17:07:28 -0700
committerElliott Hughes <enh@google.com>2011-03-25 17:07:28 -0700
commit26c7025a7a919044771fb89031161bd26fe03032 (patch)
treef513060d028abd0d04a52c20e9e481b9d6aa4f38 /dalvik
parent5a1d955c457bb65f772124e3762a19fbe281b836 (diff)
downloadlibcore-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.java12
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();