diff options
| author | 2019-02-26 22:08:55 -0800 | |
|---|---|---|
| committer | 2019-02-26 22:08:55 -0800 | |
| commit | 121dab8e6b0f940ec8496bda80970a1561db232a (patch) | |
| tree | dacdb5a72adbf17cd2363a97777839082a64e994 | |
| parent | 588413cf2b8ec38420c0bfaea3294804606904f8 (diff) | |
| parent | 909baeddfab43c12bfc5be53f35786fdb8e80a4a (diff) | |
Merge "Add @NonNull annotation to set proxy on VPN parameter."
am: 909baeddfa
Change-Id: I0213524c6b71576bafb46e5b9378c3f43a325888
| -rwxr-xr-x | api/current.txt | 2 | ||||
| -rw-r--r-- | core/java/android/net/VpnService.java | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/api/current.txt b/api/current.txt index d9d61b5dbeed..84f209c4b89f 100755 --- a/api/current.txt +++ b/api/current.txt @@ -27855,7 +27855,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); diff --git a/core/java/android/net/VpnService.java b/core/java/android/net/VpnService.java index 784f23311103..ebb1ae4bb795 100644 --- a/core/java/android/net/VpnService.java +++ b/core/java/android/net/VpnService.java @@ -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; } |