summaryrefslogtreecommitdiffstats
path: root/dalvik
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2011-03-28 10:51:22 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-03-28 10:51:22 -0700
commit53eaa09b3b8856efdd1441d2bdc3366e59678add (patch)
treed0f1ca3b1cc0dc0419af978e431b3d63f3eda8eb /dalvik
parentfd837f4f79c5b0ac2275178249d865331a76e3f5 (diff)
parent78c7cc547101002b9f9043cf3845970719d1bda8 (diff)
downloadlibcore-53eaa09b3b8856efdd1441d2bdc3366e59678add.zip
libcore-53eaa09b3b8856efdd1441d2bdc3366e59678add.tar.gz
libcore-53eaa09b3b8856efdd1441d2bdc3366e59678add.tar.bz2
Merge "Add write(2)." into dalvik-dev
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 a0c0d25..136bdc1 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 write(int fileDescriptor, byte[] bytes, int offset, int length)
- throws IOException {
- BlockGuard.getThreadPolicy().onWriteToDisk();
- return mFileSystem.write(fileDescriptor, bytes, offset, length);
- }
-
public long readv(int fileDescriptor, int[] addresses, int[] offsets,
int[] lengths, int size) throws IOException {
BlockGuard.getThreadPolicy().onReadFromDisk();
@@ -184,12 +178,6 @@ public final class BlockGuard {
return mFileSystem.writev(fileDescriptor, addresses, offsets, lengths, size);
}
- public long writeDirect(int fileDescriptor, int address, int offset,
- int length) throws IOException {
- BlockGuard.getThreadPolicy().onWriteToDisk();
- return mFileSystem.writeDirect(fileDescriptor, address, offset, length);
- }
-
public long transfer(int fileHandler, FileDescriptor socketDescriptor,
long offset, long count) throws IOException {
return mFileSystem.transfer(fileHandler, socketDescriptor, offset, count);