Unhide Network.openConnection(URL, Proxy).
Spun off from https://partner-android-review.googlesource.com/#/c/205463/ for ease of review. Bug: 19416463 Change-Id: Ia37a53a350d55b5514b949242368dfe396f6b9a0
This commit is contained in:
@@ -17147,6 +17147,7 @@ package android.net {
|
|||||||
method public java.net.InetAddress getByName(java.lang.String) throws java.net.UnknownHostException;
|
method public java.net.InetAddress getByName(java.lang.String) throws java.net.UnknownHostException;
|
||||||
method public javax.net.SocketFactory getSocketFactory();
|
method public javax.net.SocketFactory getSocketFactory();
|
||||||
method public java.net.URLConnection openConnection(java.net.URL) throws java.io.IOException;
|
method public java.net.URLConnection openConnection(java.net.URL) throws java.io.IOException;
|
||||||
|
method public java.net.URLConnection openConnection(java.net.URL, java.net.Proxy) throws java.io.IOException;
|
||||||
method public void writeToParcel(android.os.Parcel, int);
|
method public void writeToParcel(android.os.Parcel, int);
|
||||||
field public static final android.os.Parcelable.Creator<android.net.Network> CREATOR;
|
field public static final android.os.Parcelable.Creator<android.net.Network> CREATOR;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18408,6 +18408,7 @@ package android.net {
|
|||||||
method public java.net.InetAddress getByName(java.lang.String) throws java.net.UnknownHostException;
|
method public java.net.InetAddress getByName(java.lang.String) throws java.net.UnknownHostException;
|
||||||
method public javax.net.SocketFactory getSocketFactory();
|
method public javax.net.SocketFactory getSocketFactory();
|
||||||
method public java.net.URLConnection openConnection(java.net.URL) throws java.io.IOException;
|
method public java.net.URLConnection openConnection(java.net.URL) throws java.io.IOException;
|
||||||
|
method public java.net.URLConnection openConnection(java.net.URL, java.net.Proxy) throws java.io.IOException;
|
||||||
method public void writeToParcel(android.os.Parcel, int);
|
method public void writeToParcel(android.os.Parcel, int);
|
||||||
field public static final android.os.Parcelable.Creator<android.net.Network> CREATOR;
|
field public static final android.os.Parcelable.Creator<android.net.Network> CREATOR;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -275,7 +275,6 @@ public class Network implements Parcelable {
|
|||||||
* @throws IllegalArgumentException if the argument proxy is null.
|
* @throws IllegalArgumentException if the argument proxy is null.
|
||||||
* @throws IOException if an error occurs while opening the connection.
|
* @throws IOException if an error occurs while opening the connection.
|
||||||
* @see java.net.URL#openConnection()
|
* @see java.net.URL#openConnection()
|
||||||
* @hide
|
|
||||||
*/
|
*/
|
||||||
public URLConnection openConnection(URL url, java.net.Proxy proxy) throws IOException {
|
public URLConnection openConnection(URL url, java.net.Proxy proxy) throws IOException {
|
||||||
if (proxy == null) throw new IllegalArgumentException("proxy is null");
|
if (proxy == null) throw new IllegalArgumentException("proxy is null");
|
||||||
|
|||||||
Reference in New Issue
Block a user