From 8949cc2d1a9ffa193fcfee1a2ef27fc88f0b3efb Mon Sep 17 00:00:00 2001 From: Malcolm Chen Date: Mon, 22 Jan 2018 16:00:29 -0800 Subject: [PATCH] Add TransportType in AccessNetworkConstants.java Bug: 64132030 Test: build Change-Id: I916a0b889110195d23b2a531308171cf4ea74f0c --- api/system-current.txt | 6 ++++++ .../android/telephony/AccessNetworkConstants.java | 14 ++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/api/system-current.txt b/api/system-current.txt index 4eb5c0875e6d8..a1e0e107e765c 100644 --- a/api/system-current.txt +++ b/api/system-current.txt @@ -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); diff --git a/telephony/java/android/telephony/AccessNetworkConstants.java b/telephony/java/android/telephony/AccessNetworkConstants.java index fc814be1b4641..703f96d0fe741 100644 --- a/telephony/java/android/telephony/AccessNetworkConstants.java +++ b/telephony/java/android/telephony/AccessNetworkConstants.java @@ -16,6 +16,8 @@ package android.telephony; +import android.annotation.SystemApi; + /** * Contains access network related constants. */ @@ -29,6 +31,18 @@ public final class AccessNetworkConstants { public static final int IWLAN = 5; } + /** + * 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