From 6ed1ada870f54e13875c05f131dba93ad6d162cf Mon Sep 17 00:00:00 2001 From: Yatai Lin Date: Tue, 9 Apr 2019 10:24:15 +0800 Subject: [PATCH] Extend the service configuration for the binding service. Add resource string and carrier config for class name to specify data service, network service and qualified network service. Bug: 130262388 Test: Adding IWLAN data service, IWLAN network service and use new configuration to bind the service. Change-Id: I7ddde5d868d02753344734684b0deb2727bdd67e --- core/res/res/values/config.xml | 16 ++++++++ core/res/res/values/symbols.xml | 5 +++ .../telephony/CarrierConfigManager.java | 40 +++++++++++++++++++ 3 files changed, 61 insertions(+) diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml index 567cb9bf90ce5..da3e0b9e51fec 100644 --- a/core/res/res/values/config.xml +++ b/core/res/res/values/config.xml @@ -2772,6 +2772,14 @@ empty string is passed in --> + + + + + + true @@ -3503,13 +3511,21 @@ com.android.phone + + + + + + + "wifi" diff --git a/core/res/res/values/symbols.xml b/core/res/res/values/symbols.xml index 9d29b76fa4ae9..ff7390f0ca29a 100644 --- a/core/res/res/values/symbols.xml +++ b/core/res/res/values/symbols.xml @@ -271,9 +271,14 @@ + + + + + diff --git a/telephony/java/android/telephony/CarrierConfigManager.java b/telephony/java/android/telephony/CarrierConfigManager.java index 77f76d92578c9..c16bd561f6ea0 100755 --- a/telephony/java/android/telephony/CarrierConfigManager.java +++ b/telephony/java/android/telephony/CarrierConfigManager.java @@ -672,6 +672,22 @@ public class CarrierConfigManager { public static final String KEY_CARRIER_DATA_SERVICE_WLAN_PACKAGE_OVERRIDE_STRING = "carrier_data_service_wlan_package_override_string"; + /** + * Override the device's configuration for the cellular data service class to use + * for this SIM card. + * @hide + */ + public static final String KEY_CARRIER_DATA_SERVICE_WWAN_CLASS_OVERRIDE_STRING = + "carrier_data_service_wwan_class_override_string"; + + /** + * Override the device's configuration for the IWLAN data service class to use + * for this SIM card. + * @hide + */ + public static final String KEY_CARRIER_DATA_SERVICE_WLAN_CLASS_OVERRIDE_STRING = + "carrier_data_service_wlan_class_override_string"; + /** Flag specifying whether VoLTE TTY is supported. */ public static final String KEY_CARRIER_VOLTE_TTY_SUPPORTED_BOOL = "carrier_volte_tty_supported_bool"; @@ -2381,6 +2397,14 @@ public class CarrierConfigManager { public static final String KEY_CARRIER_NETWORK_SERVICE_WLAN_PACKAGE_OVERRIDE_STRING = "carrier_network_service_wlan_package_override_string"; + /** + * Decides when clients try to bind to iwlan network service, which class name will + * the binding intent go to. + * @hide + */ + public static final String KEY_CARRIER_NETWORK_SERVICE_WLAN_CLASS_OVERRIDE_STRING = + "carrier_network_service_wlan_class_override_string"; + /** * Decides when clients try to bind to wwan (cellular) network service, which package name will * the binding intent go to. @@ -2389,6 +2413,14 @@ public class CarrierConfigManager { public static final String KEY_CARRIER_NETWORK_SERVICE_WWAN_PACKAGE_OVERRIDE_STRING = "carrier_network_service_wwan_package_override_string"; + /** + * Decides when clients try to bind to wwan (cellular) network service, which class name will + * the binding intent go to. + * @hide + */ + public static final String KEY_CARRIER_NETWORK_SERVICE_WWAN_CLASS_OVERRIDE_STRING = + "carrier_network_service_wwan_class_override_string"; + /** * The package name of qualified networks service that telephony binds to. * @@ -2396,6 +2428,14 @@ public class CarrierConfigManager { */ public static final String KEY_CARRIER_QUALIFIED_NETWORKS_SERVICE_PACKAGE_OVERRIDE_STRING = "carrier_qualified_networks_service_package_override_string"; + + /** + * The class name of qualified networks service that telephony binds to. + * + * @hide + */ + public static final String KEY_CARRIER_QUALIFIED_NETWORKS_SERVICE_CLASS_OVERRIDE_STRING = + "carrier_qualified_networks_service_class_override_string"; /** * A list of 4 LTE RSCP thresholds above which a signal level is considered POOR, * MODERATE, GOOD, or EXCELLENT, to be used in SignalStrength reporting.