Commit graph android_packages_modules_Co.../core/java/android/net/ProxyProperties.java
Message SHA1
Make proxy API public
Also exposed proxy-related functions that were on the
ConnectivityManager.

Change-Id: I9fb5f1bcc257a6198679ea1d56e18da2ec5a3b33

Jason Monk   commited 2014-05-07 14:23:53 -04:00
4d5e20f870
Return detailed reason of invalid proxy settings
Make Proxy.validate() return valid/invalid int code, instead of throwing
exceptions. If invalid, detailed reason code is returned (currently for
Settings UI use).

bug: 13248097
Change-Id: Ic68d03f666f1cd63667afc311de7dc370d233901

Yuhao Zheng   commited 2014-03-03 11:23:07 -08:00
6b593934d3
Remove unused imports from frameworks/base.
Change-Id: Ia1f99bd2c1105b0b0f70aa614f1f4a67b2840906

John Spurlock   commited 2013-11-20 11:31:47 -05:00
c1455d3014
Fix for the invalid Global Proxy Setting
Adding validation for Global Proxy setting before it is
being set.

Proxy is validated at the boot time also to make sure
the value set is valid.

Signed-off-by: Raj Mamadgi <rmamadgi@sta.samsung.com>
bug:11598568

Change-Id: Idff5ae81119d8143da096b5291ecbfbc5875cbd4

Raj Mamadgi   authored and   Robert Greenwalt   commited 2013-11-14 00:08:21 +00:00
f3df16221a
getProxy in ConnectivityService returns port w/PAC
Changes the PacManager to report message back to ConnectivityService
to send a broadcast once the download has completed.  This allows the
ConnectivityService to store the correct proxy info for getProxy().

This made the problem arise that ProxyProperties was not handling port
while it had PAC.  Added small fix for equals() and parcelization.

The combination of these fixes seems to resolve Bug: 11028616.

Bug: 11168706
Change-Id: I92d1343a8e804391ab77596b8167a2ef8d76b378

Jason Monk   commited 2013-10-10 17:01:45 -04:00
a69f1b06de
Guarantee that PAC Local Proxy owns Port
This changes the PAC support to not broadcast the Proxy information until
the Local Proxy has started up and successfully bound to a port so that
the local proxy information can be guaranteed to be owned by the proxy.

Bug: 10459877
Change-Id: I175cd3388c758c55e341115e4a8241884b90d633

Jason Monk   commited 2013-09-13 09:53:26 -04:00
0a9cc50662
Add PAC File support for proxy configuration
PAC (Proxy auto-config) files contain a single javascript function,
FindProxyForURL(url, host).  It gets called to determine what proxy should be
used for a specific request.

This adds PAC support to the system.  The ProxyProperties has been modified
to hold the PAC file when one is present.  The Proxy method
setHttpProxySystemProperty has been modified to insert a PacProxySelector
as the default ProxySelector when it is required.  This new ProxySelector
makes calls to the ConnectivityService to parse the PAC file.

The ConnectivityService and the WifiConfigStore have been modified to support
saving the extra PAC file data.

The ConnectivityService now has a class attached (PacProxyNative) that
interfaces to the native calls for PAC files.  The parsing of the PAC file
is handled by libpac (which is being added to external/) which utilizes
libv8 to parse the javascript.

As a fallback to applications that don't use the java ProxySelector,  the proxy
is setup to point to a local proxy server that will handle the pac parsing.

bug:10182711
Change-Id: I5eb8df893c632fd3e1b732385cb7720ad646f401

Jason Monk   commited 2013-08-07 21:01:39 -04:00
a5bf2840cc
If frameworks wants ASCII casing, it should explicity ask for it.
http://elliotth.blogspot.com/2012/01/beware-convenience-methods.html

Bug: https://code.google.com/p/android/issues/detail?id=58359
Change-Id: Iaab02e718a7be7bda22e626dca05d79bfd2a8fc4

Elliott Hughes   commited 2013-08-02 15:12:32 -07:00
4e3475964b
Reduce connectivity logging
Change-Id: I5d45b8fbcd01e42df7f2b1cf02fb5b226128abb8

Wink Saville   commited 2011-09-21 11:05:43 -07:00
a7d56571c2
Make LinkProperties comparable.
Add equals() and hashcode() to LinkProperties and related fields.

Bug:3501569
Change-Id: Ifa737a67c16867ac43cf76bf618a483e612a189e

John Wang   commited 2011-04-07 12:36:56 -07:00
3e567d5c3a
Notify all VMs when proxy changes.
bug:2700664
Change-Id: I74cc6e0bd6e66847bf18f524ce851e3e9d2c4e87

Robert Greenwalt   commited 2010-11-19 10:24:30 -08:00
c3c5f865a3
use hostname when address null ProxyProperties parcelling
In ProxyProperties parcel, use toString so that hostname
is used when address is null

Change-Id: I4813dbdaf3c4a7bb404edf960d0f990c732ec0b8

Irfan Sheriff   commited 2010-09-27 12:16:11 -07:00
30bdeb33fe
Cleanup copyright dates add missing method.
Change-Id: I2d8fe0b705e7c90efabb8b3427a539a4a1056874

Wink Saville   commited 2010-09-21 09:16:38 -07:00
1746543a54
Some cleanup of Proxy class.
Switch to using InetSocketAddress.

Change-Id: Ibdb97fcd2d06eecaa1e847b78267180156089f27

Robert Greenwalt   commited 2010-09-03 16:18:41 -07:00
98f45836b6
Fix NPE in toString
bug:2965739
Change-Id: Ic3f274cba8ac668d86a8f69f1b2b738d348b3977

Robert Greenwalt   commited 2010-09-01 10:09:40 -07:00
e422ad9819
Fix crash when proxy exclusion list is null.
Also cleaned up source a little bit and eliminated a warning.

Bug: 2964821
Change-Id: I35825bb345742ea1a1854e8998aa67e353deaa17

Andrew Stadler   commited 2010-08-31 14:28:58 -07:00
e55ada7892
Fix reboot loop due to NPE
Bug: 2962059
Change-Id: I73d5fa5ef0f29dc139c843b34f58f189c94dfe4b

Irfan Sheriff   commited 2010-08-30 20:40:19 -07:00
fd151ec69b
Rename NetworkProperties to LinkProperties
Also add copy constructors and use them when giving out data.

Change-Id: Id320eb8fb91d0bd250305ce7bb4f628570215615

Robert Greenwalt   commited 2010-08-30 15:54:37 -07:00
1f1bcfe6a2
Add NetworkProperties to DataConnection.
Since we have NetworkProperties we can remove the individual accessors
from Phone and its subclasses.

Change-Id: Id9969a880405900a63051b3ae4019d889afb1fe8

Wink Saville   commited 2010-08-27 11:15:18 -07:00
7d85790ad8
Pass network properties to ConnectivityService.
Used as a bag to hold ipaddr, gateway, dns, proxy info.
addr's are InetAddresses for v4/v6 use.  Cleaning up some old v4-only code

bug:2655015
Change-Id: I7ac886fe5c519e8bab42f49cd82a5189d9c9ab59

Robert Greenwalt   commited 2010-07-13 18:07:41 -07:00
a7dfbd3a1d