summaryrefslogtreecommitdiffstats
path: root/packages/services/Proxy/src/com/android/proxyhandler/ProxyService.java
Commit message (Collapse)AuthorAgeFilesLines
* Remove unused constant and associated STOPSHIPJason Monk2014-09-191-2/+0
| | | | Bug: 10459877 Change-Id: Ic8a6632176a9417af246709c940f658639e42317
* Remove unused imports from frameworks/base.John Spurlock2013-11-201-4/+0
| | | | Change-Id: Ia1f99bd2c1105b0b0f70aa614f1f4a67b2840906
* Guarantee that PAC Local Proxy owns PortJason Monk2013-09-131-1/+15
| | | | | | | | | 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
* System binds PAC Local Proxy instead of self startJason Monk2013-08-221-29/+18
| | | | | | | | | The PAC Local Proxy priviously caught proxy broadcasts and started itself when needed. Now it is bound by the system the same way the pac processing service is started. Bug: 10425091 Change-Id: I746daa21645a11aa18ef464f00c8cb5536d8c86f
* Fix ProxyHandler to only run when neededJason Monk2013-08-201-3/+7
| | | | | | | Changes ProxyHandler service to only be active when needed for PAC services. Bug: 10260877 Change-Id: If42e53e805488fd08381baa96409ba3027661c70
* Add PAC File support for proxy configurationJason Monk2013-08-071-0/+68
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