summaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
authorHall Liu <hallliu@google.com>2020-10-13 19:19:12 -0700
committerHall Liu <hallliu@google.com>2020-10-22 17:01:04 -0700
commit644532e774f73d592ef68280ce6ca9b8112b5658 (patch)
tree826f8c3e0bd83f1fc109994f9f0d794e95d6858a /api
parent3a14c6bdcc973838660dd7eb89302e349b39daec (diff)
Expose methods to enumerate constants
Expose TelephonyManager#getAllNetworkTypes and CellSignalStrength#getNumSignalStrengthLevels as utility methods for other apps. Fixes: 170781542 Test: atest TelephonyManagerTest Change-Id: Ie516792a7522dd0df09d7b97f0b764d776559bf1 Merged-In: Ie516792a7522dd0df09d7b97f0b764d776559bf1
Diffstat (limited to 'api')
-rw-r--r--api/module-lib-current.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/api/module-lib-current.txt b/api/module-lib-current.txt
index 2f0ae78f7e2d..3b32b535f0bc 100644
--- a/api/module-lib-current.txt
+++ b/api/module-lib-current.txt
@@ -71,6 +71,18 @@ package android.os {
}
+package android.telephony {
+
+ public abstract class CellSignalStrength {
+ method public static int getNumSignalStrengthLevels();
+ }
+
+ public class TelephonyManager {
+ method @NonNull public static int[] getAllNetworkTypes();
+ }
+
+}
+
package android.util {
public final class Log {