summaryrefslogtreecommitdiffstats
path: root/dalvik
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2011-03-22 18:45:25 -0700
committerElliott Hughes <enh@google.com>2011-03-22 18:45:25 -0700
commit0ac77ac8e915bff1a863e371f9b363033f9cf759 (patch)
tree3d3f6265ab07b0c61d2d326107d042617111e7e8 /dalvik
parent0f746ff511162add42eeabaf14ba70ace874c6f4 (diff)
downloadlibcore-0ac77ac8e915bff1a863e371f9b363033f9cf759.zip
libcore-0ac77ac8e915bff1a863e371f9b363033f9cf759.tar.gz
libcore-0ac77ac8e915bff1a863e371f9b363033f9cf759.tar.bz2
Add open(2).
Bug: 3107501 Change-Id: I404030b4c678862465d04f723a6a324663e0af25
Diffstat (limited to 'dalvik')
-rw-r--r--dalvik/src/main/java/dalvik/system/BlockGuard.java8
1 files changed, 0 insertions, 8 deletions
diff --git a/dalvik/src/main/java/dalvik/system/BlockGuard.java b/dalvik/src/main/java/dalvik/system/BlockGuard.java
index 0e7661d..70a116f 100644
--- a/dalvik/src/main/java/dalvik/system/BlockGuard.java
+++ b/dalvik/src/main/java/dalvik/system/BlockGuard.java
@@ -211,14 +211,6 @@ public final class BlockGuard {
mFileSystem.unlock(fileDescriptor, start, length);
}
- public int open(String path, int mode) throws FileNotFoundException {
- BlockGuard.getThreadPolicy().onReadFromDisk();
- if (mode != 0) { // 0 is read-only
- BlockGuard.getThreadPolicy().onWriteToDisk();
- }
- return mFileSystem.open(path, mode);
- }
-
public long transfer(int fileHandler, FileDescriptor socketDescriptor,
long offset, long count) throws IOException {
return mFileSystem.transfer(fileHandler, socketDescriptor, offset, count);