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

Commit 074a1c25 authored by Irina Dumitrescu's avatar Irina Dumitrescu Committed by android-build-merger
Browse files

Merge "Add @NonNull annotation to set proxy on VPN parameter." am: 909baedd am: 121dab8e

am: 64f39de1

Change-Id: Id84b4881dcfeb83d1faf55b7f1220b84efe63860
parents 4c4c2a90 64f39de1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -29356,7 +29356,7 @@ package android.net {
    method public android.os.ParcelFileDescriptor establish();
    method public android.net.VpnService.Builder setBlocking(boolean);
    method public android.net.VpnService.Builder setConfigureIntent(android.app.PendingIntent);
    method public android.net.VpnService.Builder setHttpProxy(android.net.ProxyInfo);
    method public android.net.VpnService.Builder setHttpProxy(@NonNull android.net.ProxyInfo);
    method public android.net.VpnService.Builder setMetered(boolean);
    method public android.net.VpnService.Builder setMtu(int);
    method public android.net.VpnService.Builder setSession(String);
+2 −1
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@ package android.net;
import static android.system.OsConstants.AF_INET;
import static android.system.OsConstants.AF_INET6;

import android.annotation.NonNull;
import android.annotation.RequiresPermission;
import android.annotation.SystemApi;
import android.annotation.UnsupportedAppUsage;
@@ -512,7 +513,7 @@ public class VpnService extends Service {
         * Sets an HTTP proxy for the VPN network. This proxy is only a recommendation
         * and it is possible that some apps will ignore it.
         */
        public Builder setHttpProxy(ProxyInfo proxyInfo) {
        public Builder setHttpProxy(@NonNull ProxyInfo proxyInfo) {
            mConfig.proxyInfo = proxyInfo;
            return this;
        }