summaryrefslogtreecommitdiff
path: root/core/java/android/net/ProxyInfo.java
Commit message (Collapse)AuthorAgeFilesLines
* Move module sources to packages/ConnectivityRemi NGUYEN VAN2021-02-011-367/+0
| | | | | | | | | | | | | | Files that are planned to be part of the connectivity module are grouped in packages/Connectivity, so they can be built separately and moved in one operation with their history into packages/modules/Connectivity. This places the files in the existing framework-connectivity-sources filegroup instead of the current framework-core-sources filegroup. Both are used the same way in framework-non-updatable-sources. Bug: 171540887 Test: m Change-Id: I62d9d91574ace6f5c4624035d190260c3126b91e
* Use createStringArray instead of readStringArraylucaslin2021-01-281-1/+1
| | | | | | | | | To prevent ProxyInfo calling hidden API, use public one - Parcel#createStringArray() instead. Bug: 170598012 Test: atest FrameworksNetTests Change-Id: I1a5376872d743e1863982bb95d579aeba7159d33
* Rename PacManager to PacProxyInstallerAaron Huang2021-01-131-1/+1
| | | | | | | | | | | | | | | | Generally, a manager class in Android is used to access system services and it should be obtained from Context. This class is a bit different from the definition of a manager class. API linter will detect an error if trying to expose a class name end with Manager. ProxyTracker will create a new instance of this class so this class needs to be renamed to avoid API lint error. Bug: 177035719 Test: FrameworksNetTests Change-Id: I9185d4fb4342bd285a575f0bdd3518b758f37eb6
* Remove ProxyInfo(String) and update callers to use ProxyInfo(Uri)Aaron Huang2020-07-061-12/+0
| | | | | | | | | | Update all callers to use ProxyInfo(Uri) and remove ProxyInfo(String). Bug: 160557668 Test: build pass atest FrameworksNetTests Change-Id: I4c980764c8839c48acf03208bb68cd53eb910121
* Use new UnsupportedAppUsage annotation.Artur Satayev2020-01-081-1/+1
| | | | | | | | | Existing annotations in libcore/ and frameworks/ will deleted after the migration. This also means that any java library that compiles @UnsupportedAppUsage requires a direct dependency on "unsupportedappusage" java_library. Bug: 145132366 Test: m && diff unsupportedappusage_index.csv Change-Id: I0c336de56bc4a041dc97ff9b7927f62f0b44b457 Merged-In: I0c336de56bc4a041dc97ff9b7927f62f0b44b457
* Expose IpConfiguration and ProxyInfo APIsAaron Huang2019-11-201-7/+17
| | | | | | | | | | | | | | | | | | Moving IpConfiguration methods to system API for mainline support. Public copy constructors of ProxyInfo and add buildPacProxy(Uri, int) to create a new proxy properties. Bug: 139268426 Bug: 135998869 Test: atest android.net.cts atest android.net.wifi.cts atest FrameworksNetTests ./frameworks/opt/net/wifi/tests/wifitests/runtests.sh Change-Id: I07bcd2a34a222ea2b3cf0d8b497f051011c41c2c
* All Parcelable CREATOR fields are @NonNull.Jeff Sharkey2019-02-281-1/+1
| | | | | | | | | If they were null, then the Parcelable would fail to work. Bug: 126726802 Test: manual Change-Id: I7929ffa2f20e5de1c8e68e8263cca99496e9d014 Exempt-From-Owner-Approval: Trivial API annotations
* Add API for proxy configuration over VPN.Irina Dumitrescu2019-01-241-26/+31
| | | | | | | | Test: runtest -x frameworks/base/tests/net/java/com/android/server/ConnectivityServiceTest.java && atest HostsideVpnTests Bug: 76001058 Change-Id: Id4dde4a4103fd93bfbbacc52d0e5ade56ae67a6a
* Add @UnsupportedAppUsage annotationsMathew Inwood2018-08-141-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For packages: android.net.wimax android.net.wifi.p2p.nsd android.net.wifi.p2p android.net.wifi.hotspot2.pps android.net.wifi.hotspot2.omadm android.net.wifi.hotspot2 android.net.wifi.aware android.net.wifi android.net.util android.net.sip android.net.rtp android.net.nsd android.net.metrics android.net.lowpan android.net.http android.net.captiveportal android.net This is an automatically generated CL. See go/UnsupportedAppUsage for more details. Exempted-From-Owner-Approval: Mechanical changes to the codebase which have been approved by Android API council and announced on android-eng@ Bug: 110868826 Test: m Change-Id: I520be7a4c79e68310c12e4f55bf66acaa94145a1
* Undeprecate android.net.ProxyInfo as it's still used.Paul Jensen2015-05-191-6/+0
| | | | | | | | | | It was deprecated as part of the Apache deprecation, however it is used by ConnectivityManager.getLinkProperties() and .getDefaultProxy(). The alternatives (e.g. java.net.Proxy) do not offer a complete replacement as they lack certain fields (e.g. PAC URL). Bug:21274137 Change-Id: I99163a2611a738f337fb9907349ef6255dbed6d6
* Move apache specific portions of android.net.http to external/apache-http.Narayan Kamath2015-02-121-4/+3
| | | | | | | | | | | | | | | | | | | We continue to compile external/apache-http into ext.jar. This contains a few changes apart fom the classes moving around : - Makefile changes to build docs and api-stubs for now. A future change will revert these changes and remove these classes from stubs and docs. - Hardcode event IDs in legacyerrorstrings to avoid a dependency between the frameworks and apache. These strings are on their way out and will never change anyway. - Remove imports due to {@link} tags and use {@code} instead. - Remove an accidental(?) dependency on apache commons code that's a part of apache-http. bug: 18027885 Change-Id: I51cd038d846ec7d02c283a4541b10a6a9cf62ecf
* Fix several HTTP proxy issues with multinetworking.Paul Jensen2014-12-101-1/+2
| | | | | | | | | | | | | | | | | 1. Send PROXY_CHANGE_ACTION broadcast when any network's proxy changes, not just the default network. 2. When a process is bound to a particular Network, update the proxy system properties to those for the bound Network, and keep them updated when PROXY_CHANGE_ACTION broadcasts are received. 3. Make Network.openConnection() use the proxy for the Network. bug:17905627 bug:17420465 bug:18144582 (cherry-pick of https://android-review.googlesource.com/#/c/115170) Change-Id: Ia2819985e6108a8c121e74c683a5646becfd0a97
* Deprecate more apache-http.Narayan Kamath2014-10-231-0/+6
| | | | | | bug: 18067888 Change-Id: I50511d53dfc9ae236dfb1646c55a5dd7fa15d7b2
* Proxy fixes from API review feedbackJason Monk2014-09-041-4/+0
| | | | | Bug: 17389383 Change-Id: Ib5e40f55d02687ee917ba30773123cf3e4c2a97d
* Fix reference to ProxyInfo extraJason Monk2014-05-151-3/+0
| | | | | | Also remove unneeded null check. Change-Id: Ic25d1087f93632a24755b284ede41d870492e25d
* Fix reboot loop due to NPE.Sreeram Ramachandran2014-05-141-0/+2
| | | | | | All that's old is new again: http://ag/63748. Change-Id: I83df48447dbcb7f6edf02bd07abf721b009afa49
* Switch PacUrl storage from String to UriJason Monk2014-05-121-17/+37
| | | | | | | | Since the interface for creating/accessing PAC URLs through a ProxyInfo is Uri based, so should the internal storage and references. Change-Id: Ibf15c350f4cc526f81aba3ec463070f26af8f535
* Make proxy API publicJason Monk2014-05-071-0/+347
Also exposed proxy-related functions that were on the ConnectivityManager. Change-Id: I9fb5f1bcc257a6198679ea1d56e18da2ec5a3b33