summaryrefslogtreecommitdiff
path: root/core/java/android/net/ProxyProperties.java
Commit message (Collapse)AuthorAgeFilesLines
* Make proxy API publicJason Monk2014-05-071-273/+0
| | | | | | | Also exposed proxy-related functions that were on the ConnectivityManager. Change-Id: I9fb5f1bcc257a6198679ea1d56e18da2ec5a3b33
* Return detailed reason of invalid proxy settingsYuhao Zheng2014-03-031-7/+3
| | | | | | | | | 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
* Remove unused imports from frameworks/base.John Spurlock2013-11-201-1/+0
| | | | Change-Id: Ia1f99bd2c1105b0b0f70aa614f1f4a67b2840906
* Fix for the invalid Global Proxy SettingRaj Mamadgi2013-11-141-0/+11
| | | | | | | | | | | | | 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
* getProxy in ConnectivityService returns port w/PACJason Monk2013-10-101-2/+5
| | | | | | | | | | | | | | 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
* Guarantee that PAC Local Proxy owns PortJason Monk2013-09-131-1/+9
| | | | | | | | | 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
* Add PAC File support for proxy configurationJason Monk2013-08-071-4/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* If frameworks wants ASCII casing, it should explicity ask for it.Elliott Hughes2013-08-021-1/+2
| | | | | | | http://elliotth.blogspot.com/2012/01/beware-convenience-methods.html Bug: https://code.google.com/p/android/issues/detail?id=58359 Change-Id: Iaab02e718a7be7bda22e626dca05d79bfd2a8fc4
* Reduce connectivity loggingWink Saville2011-09-211-0/+2
| | | | Change-Id: I5d45b8fbcd01e42df7f2b1cf02fb5b226128abb8
* Make LinkProperties comparable.John Wang2011-04-071-0/+10
| | | | | | | Add equals() and hashcode() to LinkProperties and related fields. Bug:3501569 Change-Id: Ifa737a67c16867ac43cf76bf618a483e612a189e
* Notify all VMs when proxy changes.Robert Greenwalt2010-11-191-37/+105
| | | | | bug:2700664 Change-Id: I74cc6e0bd6e66847bf18f524ce851e3e9d2c4e87
* use hostname when address null ProxyProperties parcellingIrfan Sheriff2010-09-271-9/+21
| | | | | | | In ProxyProperties parcel, use toString so that hostname is used when address is null Change-Id: I4813dbdaf3c4a7bb404edf960d0f990c732ec0b8
* Cleanup copyright dates add missing method.Wink Saville2010-09-211-1/+1
| | | | Change-Id: I2d8fe0b705e7c90efabb8b3427a539a4a1056874
* Some cleanup of Proxy class.Robert Greenwalt2010-09-031-23/+15
| | | | | | Switch to using InetSocketAddress. Change-Id: Ibdb97fcd2d06eecaa1e847b78267180156089f27
* Fix NPE in toStringRobert Greenwalt2010-09-011-2/+6
| | | | | bug:2965739 Change-Id: Ic3f274cba8ac668d86a8f69f1b2b738d348b3977
* Fix crash when proxy exclusion list is null.Andrew Stadler2010-08-311-3/+8
| | | | | | | Also cleaned up source a little bit and eliminated a warning. Bug: 2964821 Change-Id: I35825bb345742ea1a1854e8998aa67e353deaa17
* Fix reboot loop due to NPEIrfan Sheriff2010-08-301-3/+5
| | | | | Bug: 2962059 Change-Id: I73d5fa5ef0f29dc139c843b34f58f189c94dfe4b
* Rename NetworkProperties to LinkPropertiesRobert Greenwalt2010-08-301-7/+14
| | | | | | Also add copy constructors and use them when giving out data. Change-Id: Id320eb8fb91d0bd250305ce7bb4f628570215615
* Add NetworkProperties to DataConnection.Wink Saville2010-08-271-0/+8
| | | | | | | Since we have NetworkProperties we can remove the individual accessors from Phone and its subclasses. Change-Id: Id9969a880405900a63051b3ae4019d889afb1fe8
* Pass network properties to ConnectivityService.Robert Greenwalt2010-07-131-0/+108
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