diff options
author | Hung-ying Tyan <tyanh@google.com> | 2011-01-19 16:48:38 +0800 |
---|---|---|
committer | Hung-ying Tyan <tyanh@google.com> | 2011-01-20 12:51:43 +0800 |
commit | 6b818de29a5c273aad99eb3f5456f88169c911f4 (patch) | |
tree | 13f303f6b238e6f932e16b16e9b9ffa2fc306dba /services | |
parent | e25c4d1077071e33795ec0316b504f6cd2a0ba08 (diff) | |
download | frameworks_base-6b818de29a5c273aad99eb3f5456f88169c911f4.zip frameworks_base-6b818de29a5c273aad99eb3f5456f88169c911f4.tar.gz frameworks_base-6b818de29a5c273aad99eb3f5456f88169c911f4.tar.bz2 |
Make VpnService synchronous API.
This eases VpnSettings on dealing with multiple-activity-instance problem
(i.e., SettingsActivity and VpnSettingsActivity).
+ Most of the code is moved from the VpnServices package to vpn/java/.
+ VpnManager and VpnServiceBinder are revised to provide synchronous API.
+ Add a new method isIdle() to IVpnService.aidl.
Related bug: 3293236 (need to deal with multiple-activity-instance problem)
Change-Id: I03afa3b3af85d7b4ef800683cd075c356a9266c4
Diffstat (limited to 'services')
-rw-r--r-- | services/java/com/android/server/ConnectivityService.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/services/java/com/android/server/ConnectivityService.java b/services/java/com/android/server/ConnectivityService.java index 2321e30..bd3c554 100644 --- a/services/java/com/android/server/ConnectivityService.java +++ b/services/java/com/android/server/ConnectivityService.java @@ -32,6 +32,7 @@ import android.net.NetworkStateTracker; import android.net.NetworkUtils; import android.net.Proxy; import android.net.ProxyProperties; +import android.net.vpn.VpnManager; import android.net.wifi.WifiStateTracker; import android.os.Binder; import android.os.Handler; @@ -442,6 +443,8 @@ public class ConnectivityService extends IConnectivityManager.Stub { mSettingsObserver.observe(mContext); loadGlobalProxy(); + + VpnManager.startVpnService(context); } |