diff options
author | Jesse Wilson <jessewilson@google.com> | 2011-06-28 19:10:05 -0700 |
---|---|---|
committer | Jesse Wilson <jessewilson@google.com> | 2011-06-28 19:10:05 -0700 |
commit | 9921905a96d7a4528cc30edc3a919f786821eb08 (patch) | |
tree | b5ba59280e396a9b297b65cfe9c46f8affd3c00a | |
parent | ecb99be7d30d406868ec50c90be6e12a332c6c2d (diff) | |
download | external_apache-http-9921905a96d7a4528cc30edc3a919f786821eb08.zip external_apache-http-9921905a96d7a4528cc30edc3a919f786821eb08.tar.gz external_apache-http-9921905a96d7a4528cc30edc3a919f786821eb08.tar.bz2 |
Track move of socket tagging from libcore to frameworks/base.
Change-Id: I989f7ecab7e4fd1cf21bbe0782e960dfe3b4c8e8
-rw-r--r-- | src/org/apache/http/impl/conn/SingleClientConnManager.java | 7 | ||||
-rw-r--r-- | src/org/apache/http/impl/conn/tsccm/ThreadSafeClientConnManager.java | 7 |
2 files changed, 6 insertions, 8 deletions
diff --git a/src/org/apache/http/impl/conn/SingleClientConnManager.java b/src/org/apache/http/impl/conn/SingleClientConnManager.java index d770a35..26b14ee 100644 --- a/src/org/apache/http/impl/conn/SingleClientConnManager.java +++ b/src/org/apache/http/impl/conn/SingleClientConnManager.java @@ -31,8 +31,7 @@ package org.apache.http.impl.conn; -import dalvik.system.BlockGuard; - +import dalvik.system.SocketTagger; import java.io.IOException; import java.net.Socket; import java.util.concurrent.TimeUnit; @@ -258,7 +257,7 @@ public class SingleClientConnManager implements ClientConnectionManager { try { final Socket socket = uniquePoolEntry.connection.getSocket(); if (socket != null) { - BlockGuard.tagSocketFd(socket.getFileDescriptor$()); + SocketTagger.get().tag(socket); } } catch (IOException iox) { log.debug("Problem tagging socket.", iox); @@ -300,7 +299,7 @@ public class SingleClientConnManager implements ClientConnectionManager { // statistics from future users. final Socket socket = uniquePoolEntry.connection.getSocket(); if (socket != null) { - BlockGuard.untagSocketFd(socket.getFileDescriptor$()); + SocketTagger.get().untag(socket); } // END android-changed diff --git a/src/org/apache/http/impl/conn/tsccm/ThreadSafeClientConnManager.java b/src/org/apache/http/impl/conn/tsccm/ThreadSafeClientConnManager.java index 717acf0..a60eca7 100644 --- a/src/org/apache/http/impl/conn/tsccm/ThreadSafeClientConnManager.java +++ b/src/org/apache/http/impl/conn/tsccm/ThreadSafeClientConnManager.java @@ -30,8 +30,7 @@ package org.apache.http.impl.conn.tsccm; -import dalvik.system.BlockGuard; - +import dalvik.system.SocketTagger; import java.io.IOException; import java.net.Socket; import java.util.concurrent.TimeUnit; @@ -182,7 +181,7 @@ public class ThreadSafeClientConnManager implements ClientConnectionManager { try { final Socket socket = entry.getConnection().getSocket(); if (socket != null) { - BlockGuard.tagSocketFd(socket.getFileDescriptor$()); + SocketTagger.get().tag(socket); } } catch (IOException iox) { log.debug("Problem tagging socket.", iox); @@ -217,7 +216,7 @@ public class ThreadSafeClientConnManager implements ClientConnectionManager { final BasicPoolEntry entry = (BasicPoolEntry) hca.getPoolEntry(); final Socket socket = entry.getConnection().getSocket(); if (socket != null) { - BlockGuard.untagSocketFd(socket.getFileDescriptor$()); + SocketTagger.get().untag(socket); } // END android-changed |