OSDN Git Service

Make VPN connect even when DNS is not present and other fixes.
authorHung-ying Tyan <tyanh@google.com>
Tue, 14 Jul 2009 08:19:17 +0000 (16:19 +0800)
committerHung-ying Tyan <tyanh@google.com>
Tue, 14 Jul 2009 08:29:22 +0000 (16:29 +0800)
* Changes:
  + As title.
  + Add two new states to VpnState: UNKNOWN and UNUSABLE.
  + Add more debug messages when stopping a service and when DNS being
    overridden.

vpn/java/android/net/vpn/VpnState.java

index ebd9364..6e61f9c 100644 (file)
@@ -26,8 +26,13 @@ package android.net.vpn;
  * {@link DISCONNECTING} and then {@link IDLE}.
  * {@link CANCELLED} is a state when a VPN connection attempt is aborted, and
  * is in transition to {@link IDLE}.
+ * The {@link UNUSABLE} state indicates that the profile is not in a state for
+ * connecting due to possibly the integrity of the fields or another profile is
+ * connecting etc.
+ * The {@link UNKNOWN} state indicates that the profile state is to be
+ * determined.
  * {@hide}
  */
 public enum VpnState {
-    CONNECTING, DISCONNECTING, CANCELLED, CONNECTED, IDLE
+    CONNECTING, DISCONNECTING, CANCELLED, CONNECTED, IDLE, UNUSABLE, UNKNOWN
 }