summaryrefslogtreecommitdiffstats
path: root/dalvik
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2011-05-11 16:12:36 -0700
committerElliott Hughes <enh@google.com>2011-05-11 18:15:48 -0700
commit70c820401677ca251ad09ac64cc23c760764e75d (patch)
tree2989496c1fcc0c8ed1067b0edf3336f36f9c7457 /dalvik
parentd3992b82602c2eef8e83ae7150f987cc9e0864fd (diff)
downloadlibcore-70c820401677ca251ad09ac64cc23c760764e75d.zip
libcore-70c820401677ca251ad09ac64cc23c760764e75d.tar.gz
libcore-70c820401677ca251ad09ac64cc23c760764e75d.tar.bz2
Expose poll(2) and reimplement java.nio.channels.Selector.
This also adds UnsafeArrayList<T>, which is like ArrayList but lets you access the underlying array (as opposed to ArrayList.toArray which creates a copy). Bug: 3107501 Change-Id: I8dc570a9fd7951b1435047017ea7aa19f8f8fc53
Diffstat (limited to 'dalvik')
-rw-r--r--dalvik/src/main/java/dalvik/system/BlockGuard.java5
1 files changed, 0 insertions, 5 deletions
diff --git a/dalvik/src/main/java/dalvik/system/BlockGuard.java b/dalvik/src/main/java/dalvik/system/BlockGuard.java
index 73ec3c7..0c38166 100644
--- a/dalvik/src/main/java/dalvik/system/BlockGuard.java
+++ b/dalvik/src/main/java/dalvik/system/BlockGuard.java
@@ -233,11 +233,6 @@ public final class BlockGuard {
mNetwork.sendUrgentData(fd, value);
}
- public int select(FileDescriptor[] readFDs, FileDescriptor[] writeFDs, long timeout, int[] flags) throws SocketException {
- BlockGuard.getThreadPolicy().onNetwork();
- return mNetwork.select(readFDs, writeFDs, timeout, flags);
- }
-
public void close(FileDescriptor aFD) throws IOException {
// We exclude sockets without SO_LINGER so that apps can close their network connections
// in methods like onDestroy, which will run on the UI thread, without jumping through