summaryrefslogtreecommitdiffstats
path: root/dalvik/src
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2011-05-12 13:56:27 -0700
committerElliott Hughes <enh@google.com>2011-05-12 13:56:27 -0700
commit2bad9bff258de6275bd3847e5e9f3169b0a93c61 (patch)
tree81bacd055a404ea8d9a31f581125a6cd3c175ca8 /dalvik/src
parent98b23d4d9894d21be1eacf498f48aeb707ca1e41 (diff)
downloadlibcore-2bad9bff258de6275bd3847e5e9f3169b0a93c61.zip
libcore-2bad9bff258de6275bd3847e5e9f3169b0a93c61.tar.gz
libcore-2bad9bff258de6275bd3847e5e9f3169b0a93c61.tar.bz2
Reimplement OSNetworkSystem.isConnected in Java.
We can do this in Java now we've exposed poll(2). Change-Id: I9f2700d09134198c1cd2681e3814fb482e8e271c
Diffstat (limited to 'dalvik/src')
-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 0c38166..6744448 100644
--- a/dalvik/src/main/java/dalvik/system/BlockGuard.java
+++ b/dalvik/src/main/java/dalvik/system/BlockGuard.java
@@ -195,14 +195,6 @@ public final class BlockGuard {
return mNetwork.writeDirect(fd, address, offset, count);
}
- public boolean isConnected(FileDescriptor fd, int timeout) throws IOException {
- if (timeout != 0) {
- // Greater than 0 is a timeout, but zero means "poll and return immediately".
- BlockGuard.getThreadPolicy().onNetwork();
- }
- return mNetwork.isConnected(fd, timeout);
- }
-
public int send(FileDescriptor fd, byte[] data, int offset, int length,
int port, InetAddress inetAddress) throws IOException {
// Note: no BlockGuard violation. We permit datagrams