Loading telephony/java/android/telephony/CarrierConfigManager.java +28 −0 Original line number Original line Diff line number Diff line Loading @@ -2361,6 +2361,32 @@ public class CarrierConfigManager { public static final String KEY_CALL_WAITING_SERVICE_CLASS_INT = public static final String KEY_CALL_WAITING_SERVICE_CLASS_INT = "call_waiting_service_class_int"; "call_waiting_service_class_int"; /** * This configuration allow the system UI to display different 5G icon for different 5G status. * * There are four 5G status: * 1. connected_mmwave: device currently connected to 5G cell as the secondary cell and using * millimeter wave. * 2. connected: device currently connected to 5G cell as the secondary cell but not using * millimeter wave. * 3. not_restricted: device camped on a network that has 5G capability(not necessary to connect * a 5G cell as a secondary cell) and the use of 5G is not restricted. * 4. restricted: device camped on a network that has 5G capability(not necessary to connect a * 5G cell as a secondary cell) but the use of 5G is restricted. * * The configured string contains multiple key-value pairs separated by comma. For each pair, * the key and value is separated by a colon. The key is corresponded to a 5G status above and * the value is the icon name. Use "None" as the icon name if no icon should be shown in a * specific 5G status. * * Here is an example of the configuration: * "connected_mmwave:5GPlus,connected:5G,not_restricted:None,restricted:None" * * @hide */ public static final String KEY_5G_ICON_CONFIGURATION_STRING = "5g_icon_configuration_string"; /** The default value for every variable. */ /** The default value for every variable. */ private final static PersistableBundle sDefaults; private final static PersistableBundle sDefaults; Loading Loading @@ -2722,6 +2748,8 @@ public class CarrierConfigManager { sDefaults.putBoolean(KEY_USE_CALL_FORWARDING_USSD_BOOL, false); sDefaults.putBoolean(KEY_USE_CALL_FORWARDING_USSD_BOOL, false); sDefaults.putBoolean(KEY_USE_CALLER_ID_USSD_BOOL, false); sDefaults.putBoolean(KEY_USE_CALLER_ID_USSD_BOOL, false); sDefaults.putInt(KEY_CALL_WAITING_SERVICE_CLASS_INT, 1 /* SERVICE_CLASS_VOICE */); sDefaults.putInt(KEY_CALL_WAITING_SERVICE_CLASS_INT, 1 /* SERVICE_CLASS_VOICE */); sDefaults.putString(KEY_5G_ICON_CONFIGURATION_STRING, "connected_mmwave:None,connected:5G,not_restricted:None,restricted:None"); } } /** /** Loading Loading
telephony/java/android/telephony/CarrierConfigManager.java +28 −0 Original line number Original line Diff line number Diff line Loading @@ -2361,6 +2361,32 @@ public class CarrierConfigManager { public static final String KEY_CALL_WAITING_SERVICE_CLASS_INT = public static final String KEY_CALL_WAITING_SERVICE_CLASS_INT = "call_waiting_service_class_int"; "call_waiting_service_class_int"; /** * This configuration allow the system UI to display different 5G icon for different 5G status. * * There are four 5G status: * 1. connected_mmwave: device currently connected to 5G cell as the secondary cell and using * millimeter wave. * 2. connected: device currently connected to 5G cell as the secondary cell but not using * millimeter wave. * 3. not_restricted: device camped on a network that has 5G capability(not necessary to connect * a 5G cell as a secondary cell) and the use of 5G is not restricted. * 4. restricted: device camped on a network that has 5G capability(not necessary to connect a * 5G cell as a secondary cell) but the use of 5G is restricted. * * The configured string contains multiple key-value pairs separated by comma. For each pair, * the key and value is separated by a colon. The key is corresponded to a 5G status above and * the value is the icon name. Use "None" as the icon name if no icon should be shown in a * specific 5G status. * * Here is an example of the configuration: * "connected_mmwave:5GPlus,connected:5G,not_restricted:None,restricted:None" * * @hide */ public static final String KEY_5G_ICON_CONFIGURATION_STRING = "5g_icon_configuration_string"; /** The default value for every variable. */ /** The default value for every variable. */ private final static PersistableBundle sDefaults; private final static PersistableBundle sDefaults; Loading Loading @@ -2722,6 +2748,8 @@ public class CarrierConfigManager { sDefaults.putBoolean(KEY_USE_CALL_FORWARDING_USSD_BOOL, false); sDefaults.putBoolean(KEY_USE_CALL_FORWARDING_USSD_BOOL, false); sDefaults.putBoolean(KEY_USE_CALLER_ID_USSD_BOOL, false); sDefaults.putBoolean(KEY_USE_CALLER_ID_USSD_BOOL, false); sDefaults.putInt(KEY_CALL_WAITING_SERVICE_CLASS_INT, 1 /* SERVICE_CLASS_VOICE */); sDefaults.putInt(KEY_CALL_WAITING_SERVICE_CLASS_INT, 1 /* SERVICE_CLASS_VOICE */); sDefaults.putString(KEY_5G_ICON_CONFIGURATION_STRING, "connected_mmwave:None,connected:5G,not_restricted:None,restricted:None"); } } /** /** Loading