diff options
author | Chia-chi Yeh <chiachi@android.com> | 2011-06-15 17:07:27 -0700 |
---|---|---|
committer | Chia-chi Yeh <chiachi@android.com> | 2011-06-15 17:08:58 -0700 |
commit | 04ba25c418bc4538e9dc0f047cfb9608d358f679 (patch) | |
tree | 2e090c0fdb1540e4bb2cbfa1373be2645330cc5a /core/java/android/net/ConnectivityManager.java | |
parent | f530da67b4f9ffa55bb8a1c05390c6f7f87fe4ba (diff) | |
download | frameworks_base-04ba25c418bc4538e9dc0f047cfb9608d358f679.zip frameworks_base-04ba25c418bc4538e9dc0f047cfb9608d358f679.tar.gz frameworks_base-04ba25c418bc4538e9dc0f047cfb9608d358f679.tar.bz2 |
VPN: migrate from generic Bundle to our own Parcelable VpnConfig.
Note that VpnConfig is for internal use only.
Also remove hidden methods from ConnectivityManager.
Change-Id: Ic298c4dc9a2c6c452bd8f4be6fa84e7ac489c0c4
Diffstat (limited to 'core/java/android/net/ConnectivityManager.java')
-rw-r--r-- | core/java/android/net/ConnectivityManager.java | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/core/java/android/net/ConnectivityManager.java b/core/java/android/net/ConnectivityManager.java index 3025462..2242e9e 100644 --- a/core/java/android/net/ConnectivityManager.java +++ b/core/java/android/net/ConnectivityManager.java @@ -19,7 +19,6 @@ package android.net; import android.annotation.SdkConstant; import android.annotation.SdkConstant.SdkConstantType; import android.os.Binder; -import android.os.Bundle; import android.os.ParcelFileDescriptor; import android.os.RemoteException; @@ -758,43 +757,4 @@ public class ConnectivityManager { } catch (RemoteException e) { } } - - /** - * Protect a socket from routing changes. This method is limited to VPN - * applications, and it is always hidden to avoid direct use. - * @hide - */ - public void protectVpn(ParcelFileDescriptor socket) { - try { - mService.protectVpn(socket); - } catch (RemoteException e) { - } - } - - /** - * Prepare for a VPN application. This method is limited to VpnDialogs, - * and it is always hidden to avoid direct use. - * @hide - */ - public String prepareVpn(String packageName) { - try { - return mService.prepareVpn(packageName); - } catch (RemoteException e) { - return null; - } - } - - /** - * Configure a TUN interface and return its file descriptor. Parameters - * are encoded and opaque to this class. This method is limited to VPN - * applications, and it is always hidden to avoid direct use. - * @hide - */ - public ParcelFileDescriptor establishVpn(Bundle config) { - try { - return mService.establishVpn(config); - } catch (RemoteException e) { - return null; - } - } } |