OSDN Git Service

resolve merge conflicts of 04d262db157f15c2d822708e57715d80e3f14585 to pi-dev-plus...
authorandychou <andychou@google.com>
Fri, 8 Mar 2019 15:18:16 +0000 (23:18 +0800)
committerandychou <andychou@google.com>
Fri, 8 Mar 2019 18:06:17 +0000 (02:06 +0800)
Bug: None
Test: I solemnly swear I tested this conflict resolution.
Merged-In: I2c7feea798df2d9bbfae4ee0847ef151b0d21511
Change-Id: I417960cc1c873425ef6b9b5d74f9bf5d9658a390

1  2 
telephony/java/android/telephony/CarrierConfigManager.java

@@@ -2305,179 -2071,12 +2305,186 @@@ public class CarrierConfigManager 
              "undelivered_sms_message_expiration_time";
  
      /**
 +     * Support for the original string display of CDMA MO call.
 +     * By default, it is disabled.
 +     * @hide
 +     */
 +    public static final String KEY_CONFIG_SHOW_ORIG_DIAL_STRING_FOR_CDMA_BOOL =
 +            "config_show_orig_dial_string_for_cdma";
 +
 +    /**
 +     * Specifies a carrier-defined {@link CallRedirectionService} which Telecom will bind
 +     * to for outgoing calls.  An empty string indicates that no carrier-defined
 +     * {@link CallRedirectionService} is specified.
 +     * @hide
 +     */
 +    public static final String KEY_CALL_REDIRECTION_SERVICE_COMPONENT_NAME_STRING =
 +            "call_redirection_service_component_name_string";
 +
 +    /**
 +     * Flag specifying whether to show notification(call blocking disabled) when Enhanced Call
 +     * Blocking(KEY_SUPPORT_ENHANCED_CALL_BLOCKING_BOOL) is enabled and making emergency call.
 +     * When true, notification is shown always.
 +     * When false, notification is shown only when any setting of "Enhanced Blocked number" is
 +     * enabled.
 +     */
 +    public static final String KEY_SHOW_CALL_BLOCKING_DISABLED_NOTIFICATION_ALWAYS_BOOL =
 +            "show_call_blocking_disabled_notification_always_bool";
 +
 +    /**
 +     * Some carriers only support SS over UT via INTERNET PDN.
 +     * When mobile data is OFF or data roaming OFF during roaming,
 +     * UI should block the call forwarding operation and notify the user
 +     * that the function only works if data is available.
 +     * @hide
 +     */
 +    public static final String KEY_CALL_FORWARDING_OVER_UT_WARNING_BOOL =
 +            "call_forwarding_over_ut_warning_bool";
 +
 +    /**
 +     * Some carriers only support SS over UT via INTERNET PDN.
 +     * When mobile data is OFF or data roaming OFF during roaming,
 +     * UI should block the call barring operation and notify the user
 +     * that the function only works if data is available.
 +     * @hide
 +     */
 +    public static final String KEY_CALL_BARRING_OVER_UT_WARNING_BOOL =
 +            "call_barring_over_ut_warning_bool";
 +
 +    /**
 +     * Some carriers only support SS over UT via INTERNET PDN.
 +     * When mobile data is OFF or data roaming OFF during roaming,
 +     * UI should block the caller id operation and notify the user
 +     * that the function only works if data is available.
 +     * @hide
 +     */
 +    public static final String KEY_CALLER_ID_OVER_UT_WARNING_BOOL =
 +            "caller_id_over_ut_warning_bool";
 +
 +    /**
 +     * Some carriers only support SS over UT via INTERNET PDN.
 +     * When mobile data is OFF or data roaming OFF during roaming,
 +     * UI should block the call waiting operation and notify the user
 +     * that the function only works if data is available.
 +     * @hide
 +     */
 +    public static final String KEY_CALL_WAITING_OVER_UT_WARNING_BOOL =
 +            "call_waiting_over_ut_warning_bool";
 +
 +    /**
 +     * Flag indicating whether to support "Network default" option in Caller ID settings for Calling
 +     * Line Identification Restriction (CLIR).
 +     */
 +    public static final String KEY_SUPPORT_CLIR_NETWORK_DEFAULT_BOOL =
 +            "support_clir_network_default_bool";
 +
 +    /**
 +     * Determines whether the carrier want to support emergency dialer shortcut.
 +     * @hide
 +     */
 +    public static final String KEY_SUPPORT_EMERGENCY_DIALER_SHORTCUT_BOOL =
 +            "support_emergency_dialer_shortcut_bool";
 +
 +    /**
 +     * Support ASCII 7-BIT encoding for long SMS. This carrier config is used to enable
 +     * this feature.
 +     * @hide
 +     */
 +    public static final String KEY_ASCII_7_BIT_SUPPORT_FOR_LONG_MESSAGE_BOOL =
 +            "ascii_7_bit_support_for_long_message_bool";
 +
 +    /**
 +     * Controls RSRP threshold at which OpportunisticNetworkService will decide whether
 +     * the opportunistic network is good enough for internet data.
 +     */
 +    public static final String KEY_OPPORTUNISTIC_NETWORK_ENTRY_THRESHOLD_RSRP_INT =
 +            "opportunistic_network_entry_threshold_rsrp_int";
 +
 +    /**
 +     * Controls RSSNR threshold at which OpportunisticNetworkService will decide whether
 +     * the opportunistic network is good enough for internet data.
 +     */
 +    public static final String KEY_OPPORTUNISTIC_NETWORK_ENTRY_THRESHOLD_RSSNR_INT =
 +            "opportunistic_network_entry_threshold_rssnr_int";
 +
 +    /**
 +     * Controls RSRP threshold below which OpportunisticNetworkService will decide whether
 +     * the opportunistic network available is not good enough for internet data.
 +     */
 +    public static final String KEY_OPPORTUNISTIC_NETWORK_EXIT_THRESHOLD_RSRP_INT =
 +            "opportunistic_network_exit_threshold_rsrp_int";
 +
 +    /**
 +     * Controls RSSNR threshold below which OpportunisticNetworkService will decide whether
 +     * the opportunistic network available is not good enough for internet data.
 +     */
 +    public static final String KEY_OPPORTUNISTIC_NETWORK_EXIT_THRESHOLD_RSSNR_INT =
 +            "opportunistic_network_exit_threshold_rssnr_int";
 +
 +    /**
 +     * Controls bandwidth threshold in Kbps at which OpportunisticNetworkService will decide whether
 +     * the opportunistic network is good enough for internet data.
 +     */
 +    public static final String KEY_OPPORTUNISTIC_NETWORK_ENTRY_THRESHOLD_BANDWIDTH_INT =
 +            "opportunistic_network_entry_threshold_bandwidth_int";
 +
 +    /**
 +     * Controls hysteresis time in milli seconds for which OpportunisticNetworkService
 +     * will wait before attaching to a network.
 +     */
 +    public static final String KEY_OPPORTUNISTIC_NETWORK_ENTRY_OR_EXIT_HYSTERESIS_TIME_LONG =
 +            "opportunistic_network_entry_or_exit_hysteresis_time_long";
 +
 +    /**
 +     * Controls hysteresis time in milli seconds for which OpportunisticNetworkService
 +     * will wait before switching data to a network.
 +     */
 +    public static final String KEY_OPPORTUNISTIC_NETWORK_DATA_SWITCH_HYSTERESIS_TIME_LONG =
 +            "opportunistic_network_data_switch_hysteresis_time_long";
 +
 +   /**
 +    * An int array containing CDMA enhanced roaming indicator values for Home (non-roaming) network.
 +    * The default values come from 3GPP2 C.R1001 table 8.1-1.
 +    * Enhanced Roaming Indicator Number Assignments
 +    *
 +    * @hide
 +    */
 +    public static final String KEY_CDMA_ENHANCED_ROAMING_INDICATOR_FOR_HOME_NETWORK_INT_ARRAY =
 +            "cdma_enhanced_roaming_indicator_for_home_network_int_array";
 +
 +    /**
 +     * 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";
 +
++    /**
+      * Indicates use 3GPP application to replace 3GPP2 application even if it's a CDMA/CDMA-LTE
+      * phone, becasue some carriers's CSIM application is present but not supported.
+      * @hide
+      */
+     public static final String KEY_USE_USIM_BOOL = "use_usim_bool";
      /** The default value for every variable. */
      private final static PersistableBundle sDefaults;
  
                          -95, /* SIGNAL_STRENGTH_GOOD */
                          -85  /* SIGNAL_STRENGTH_GREAT */
                  });
 -        sDefaults.putString(KEY_WCDMA_DEFAULT_SIGNAL_STRENGTH_MEASUREMENT_STRING, "");
 +        sDefaults.putString(KEY_WCDMA_DEFAULT_SIGNAL_STRENGTH_MEASUREMENT_STRING, "rssi");
 +        sDefaults.putBoolean(KEY_CONFIG_SHOW_ORIG_DIAL_STRING_FOR_CDMA_BOOL, false);
 +        sDefaults.putBoolean(KEY_SHOW_CALL_BLOCKING_DISABLED_NOTIFICATION_ALWAYS_BOOL, false);
 +        sDefaults.putBoolean(KEY_CALL_FORWARDING_OVER_UT_WARNING_BOOL, false);
 +        sDefaults.putBoolean(KEY_CALL_BARRING_OVER_UT_WARNING_BOOL, false);
 +        sDefaults.putBoolean(KEY_CALLER_ID_OVER_UT_WARNING_BOOL, false);
 +        sDefaults.putBoolean(KEY_CALL_WAITING_OVER_UT_WARNING_BOOL, false);
 +        sDefaults.putBoolean(KEY_SUPPORT_CLIR_NETWORK_DEFAULT_BOOL, true);
 +        sDefaults.putBoolean(KEY_SUPPORT_EMERGENCY_DIALER_SHORTCUT_BOOL, true);
 +        sDefaults.putBoolean(KEY_ASCII_7_BIT_SUPPORT_FOR_LONG_MESSAGE_BOOL, false);
 +        /* Default value is minimum RSRP level needed for SIGNAL_STRENGTH_GOOD */
 +        sDefaults.putInt(KEY_OPPORTUNISTIC_NETWORK_ENTRY_THRESHOLD_RSRP_INT, -108);
 +        /* Default value is minimum RSRP level needed for SIGNAL_STRENGTH_MODERATE */
 +        sDefaults.putInt(KEY_OPPORTUNISTIC_NETWORK_EXIT_THRESHOLD_RSRP_INT, -118);
 +        /* Default value is minimum RSSNR level needed for SIGNAL_STRENGTH_GOOD */
 +        sDefaults.putInt(KEY_OPPORTUNISTIC_NETWORK_ENTRY_THRESHOLD_RSSNR_INT, 45);
 +        /* Default value is minimum RSSNR level needed for SIGNAL_STRENGTH_MODERATE */
 +        sDefaults.putInt(KEY_OPPORTUNISTIC_NETWORK_EXIT_THRESHOLD_RSSNR_INT, 10);
 +        /* Default value is 1024 kbps */
 +        sDefaults.putInt(KEY_OPPORTUNISTIC_NETWORK_ENTRY_THRESHOLD_BANDWIDTH_INT, 1024);
 +        /* Default value is 10 seconds */
 +        sDefaults.putLong(KEY_OPPORTUNISTIC_NETWORK_ENTRY_OR_EXIT_HYSTERESIS_TIME_LONG, 10000);
 +        /* Default value is 10 seconds. */
 +        sDefaults.putLong(KEY_OPPORTUNISTIC_NETWORK_DATA_SWITCH_HYSTERESIS_TIME_LONG, 10000);
 +        sDefaults.putIntArray(KEY_CDMA_ENHANCED_ROAMING_INDICATOR_FOR_HOME_NETWORK_INT_ARRAY,
 +                new int[] {
 +                        1 /* Roaming Indicator Off */
 +                });
 +        sDefaults.putString(KEY_5G_ICON_CONFIGURATION_STRING,
 +                "connected_mmwave:None,connected:5G,not_restricted:None,restricted:None");
+         sDefaults.putBoolean(KEY_USE_USIM_BOOL, false);
      }
  
      /**