Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 582b868c authored by Lorenzo Colitti's avatar Lorenzo Colitti
Browse files

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
parent 0d719cab
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -17147,6 +17147,7 @@ package android.net {
    method public java.net.InetAddress getByName(java.lang.String) throws java.net.UnknownHostException;
    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, java.net.Proxy) throws java.io.IOException;
    method public void writeToParcel(android.os.Parcel, int);
    field public static final android.os.Parcelable.Creator<android.net.Network> CREATOR;
  }
+1 −0
Original line number Diff line number Diff line
@@ -18408,6 +18408,7 @@ package android.net {
    method public java.net.InetAddress getByName(java.lang.String) throws java.net.UnknownHostException;
    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, java.net.Proxy) throws java.io.IOException;
    method public void writeToParcel(android.os.Parcel, int);
    field public static final android.os.Parcelable.Creator<android.net.Network> CREATOR;
  }
+0 −1
Original line number Diff line number Diff line
@@ -275,7 +275,6 @@ public class Network implements Parcelable {
     * @throws IllegalArgumentException if the argument proxy is null.
     * @throws IOException if an error occurs while opening the connection.
     * @see java.net.URL#openConnection()
     * @hide
     */
    public URLConnection openConnection(URL url, java.net.Proxy proxy) throws IOException {
        if (proxy == null) throw new IllegalArgumentException("proxy is null");