summaryrefslogtreecommitdiffstats
path: root/packages/VpnServices
diff options
context:
space:
mode:
authorHung-ying Tyan <tyanh@google.com>2009-06-15 11:30:11 +0800
committerHung-ying Tyan <tyanh@google.com>2009-06-15 13:06:03 +0800
commit4c424d61c72af64b4fa1da5e1c52eaebf60fe36e (patch)
tree173c1b62ae23e4dee284808042fbd601431f56d6 /packages/VpnServices
parent31390c752828dce0a33d0adeacdf10a49ff847ce (diff)
downloadframeworks_base-4c424d61c72af64b4fa1da5e1c52eaebf60fe36e.zip
frameworks_base-4c424d61c72af64b4fa1da5e1c52eaebf60fe36e.tar.gz
frameworks_base-4c424d61c72af64b4fa1da5e1c52eaebf60fe36e.tar.bz2
On the way of refactoring out SingleServerProfile.java.
+ Move mServerName from SingleServerProfile and VpnProfile. + Add mSavedUsername to VpnProfile. + Keep empty SingleServerProfile to not break the classes that use it. + Remove use of SingleServerProfile from VpnService.java.
Diffstat (limited to 'packages/VpnServices')
-rw-r--r--packages/VpnServices/src/com/android/server/vpn/VpnService.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/VpnServices/src/com/android/server/vpn/VpnService.java b/packages/VpnServices/src/com/android/server/vpn/VpnService.java
index 01106b3..fdefe9c 100644
--- a/packages/VpnServices/src/com/android/server/vpn/VpnService.java
+++ b/packages/VpnServices/src/com/android/server/vpn/VpnService.java
@@ -20,8 +20,8 @@ import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Context;
-import android.net.vpn.SingleServerProfile;
import android.net.vpn.VpnManager;
+import android.net.vpn.VpnProfile;
import android.net.vpn.VpnState;
import android.os.FileObserver;
import android.os.SystemProperties;
@@ -38,7 +38,7 @@ import java.util.List;
/**
* The service base class for managing a type of VPN connection.
*/
-abstract class VpnService<E extends SingleServerProfile> {
+abstract class VpnService<E extends VpnProfile> {
private static final int NOTIFICATION_ID = 1;
private static final String PROFILES_ROOT = VpnManager.PROFILES_PATH + "/";
public static final String DEFAULT_CONFIG_PATH = "/etc";