OSDN Git Service

Add TransportType in AccessNetworkConstants.java
authorMalcolm Chen <refuhoo@google.com>
Tue, 23 Jan 2018 00:00:29 +0000 (16:00 -0800)
committerMalcolm Chen <refuhoo@google.com>
Tue, 23 Jan 2018 18:20:16 +0000 (10:20 -0800)
Bug: 64132030
Test: build
Change-Id: I916a0b889110195d23b2a531308171cf4ea74f0c

api/system-current.txt
telephony/java/android/telephony/AccessNetworkConstants.java

index 4eb5c08..a1e0e10 100644 (file)
@@ -3937,6 +3937,12 @@ package android.telecom {
 
 package android.telephony {
 
+  public static final class AccessNetworkConstants.TransportType {
+    ctor public AccessNetworkConstants.TransportType();
+    field public static final int WLAN = 2; // 0x2
+    field public static final int WWAN = 1; // 0x1
+  }
+
   public class CarrierConfigManager {
     method public static android.os.PersistableBundle getDefaultConfig();
     method public void updateConfigForPhoneId(int, java.lang.String);
index fc814be..703f96d 100644 (file)
@@ -16,6 +16,8 @@
 
 package android.telephony;
 
+import android.annotation.SystemApi;
+
 /**
  * Contains access network related constants.
  */
@@ -30,6 +32,18 @@ public final class AccessNetworkConstants {
     }
 
     /**
+     * Wireless transportation type
+     * @hide
+     */
+    @SystemApi
+    public static final class TransportType {
+        /** Wireless Wide Area Networks (i.e. Cellular) */
+        public static final int WWAN = 1;
+        /** Wireless Local Area Networks (i.e. Wifi) */
+        public static final int WLAN = 2;
+    }
+
+    /**
      * Frenquency bands for GERAN.
      * http://www.etsi.org/deliver/etsi_ts/145000_145099/145005/14.00.00_60/ts_145005v140000p.pdf
      */