OSDN Git Service

Added method getPreferredHttpHost
authorAndreas Sandblad <andreas.sandblad@sonyericsson.com>
Wed, 16 Jun 2010 11:10:49 +0000 (13:10 +0200)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Fri, 5 Aug 2011 08:05:39 +0000 (16:05 +0800)
commit7f8a07133317fcf2330d0bdada5a9838be38a9eb
tree3bc95b6bee00dd3c12583d77b5b6cde6390cb86a
parent540c7dd816ccca9194012dfe075bc52bf90d71c5
Added method getPreferredHttpHost

Added method for returning preferred proxy which takes both
localhost and Wi-Fi into account. This is a convenient method
to clients which only wants to set a correct proxy and don't
want to build in dependency to if Wi-Fi is active or not.
Currently no Wi-Fi proxy is supported by the system, but once
added, this method could return a suitable proxy for Wi-Fi.

Change-Id: I8c9c2879351fd25a20ea82a2cb000f226248c357
core/java/android/net/Proxy.java
tests/CoreTests/android/AndroidManifest.xml
tests/CoreTests/android/core/ProxyTest.java [new file with mode: 0644]