commit | 01ede1ccdf2d27ffef3f94dfbf0a889132645f5a | [log] [tgz] |
---|---|---|
author | Jaineel Mehta <jaineelm@google.com> | Sat Feb 20 00:46:11 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Sat Feb 20 00:46:11 2021 +0000 |
tree | 495c64a39eaecd87e4f14afb57ca3d284fc205f1 | |
parent | eed21dabaef08eb9700f2e0f2a5dea423d87f4ed [diff] | |
parent | b21b7bf402f2b0564f6a889af4bf7d4564a7d295 [diff] |
update NetworkType NR in Utils file am: 753dc090c1 am: b21b7bf402 Original change: https://android-review.googlesource.com/c/platform/external/sl4a/+/1597077 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Icc2eb7bedc8aea4c2ac14a6b5f0470c739b6521a
diff --git a/Common/src/com/googlecode/android_scripting/facade/telephony/TelephonyConstants.java b/Common/src/com/googlecode/android_scripting/facade/telephony/TelephonyConstants.java index 1c83e27..0c385e8 100644 --- a/Common/src/com/googlecode/android_scripting/facade/telephony/TelephonyConstants.java +++ b/Common/src/com/googlecode/android_scripting/facade/telephony/TelephonyConstants.java
@@ -188,6 +188,7 @@ public static final String RAT_TD_SCDMA = "TD_SCDMA"; public static final String RAT_GLOBAL = "GLOBAL"; public static final String RAT_LTE_CA = "LTE_CA"; + public static final String RAT_NR = "NR"; public static final String RAT_UNKNOWN = "UNKNOWN"; /**
diff --git a/Common/src/com/googlecode/android_scripting/facade/telephony/TelephonyUtils.java b/Common/src/com/googlecode/android_scripting/facade/telephony/TelephonyUtils.java index c1556cc..c5894ed 100644 --- a/Common/src/com/googlecode/android_scripting/facade/telephony/TelephonyUtils.java +++ b/Common/src/com/googlecode/android_scripting/facade/telephony/TelephonyUtils.java
@@ -398,6 +398,8 @@ return TelephonyConstants.RAT_IDEN; case TelephonyManager.NETWORK_TYPE_LTE_CA: return TelephonyConstants.RAT_LTE_CA; + case TelephonyManager.NETWORK_TYPE_NR: + return TelephonyConstants.RAT_NR; } return TelephonyConstants.RAT_UNKNOWN; }