Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 57684831 authored by Torbjorn Eklund's avatar Torbjorn Eklund
Browse files

Increase customization options for wfcSpnFormats

Expand wfcSpnFormats with more options, in order to support
requirements from more operators.

Five new options are added in this patch. The list of available options
becomes:
0: %s
1: %s Wi-Fi Calling
2: WLAN Call (New)
3: %s WLAN Call (New)
4: %s Wi-Fi (New)
5: WiFi Calling | %s (New)
6: %s VoWifi (New)

strings.xml in values-mcc302-mnc370 and values-mcc302-mnc720 was deleted.
The same requirement can now be achieved by configuring KEY_WFC_SPN_FORMAT_IDX_INT
or KEY_WFC_DATA_SPN_FORMAT_IDX_INT to 4.

Bug: 114303633
Test: Manual
Change-Id: I5daf6b49c838df823aed4b84f5f80c68f46b2970
parent fdd378c5
Loading
Loading
Loading
Loading
+0 −25
Original line number Original line Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
/*
** Copyright 2017, The Android Open Source Project
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
**     http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** distributed under the License is distributed on an "AS IS" BASIS,
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
** See the License for the specific language governing permissions and
** limitations under the License.
*/
-->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
    <!-- Template for showing mobile network operator name while WFC is active -->
    <string-array name="wfcSpnFormats">
        <item>%s</item>
        <item>%s Wi-Fi</item>
    </string-array>
</resources>
+0 −25
Original line number Original line Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
/*
** Copyright 2017, The Android Open Source Project
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
**     http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** distributed under the License is distributed on an "AS IS" BASIS,
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
** See the License for the specific language governing permissions and
** limitations under the License.
*/
-->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
    <!-- Template for showing mobile network operator name while WFC is active -->
    <string-array name="wfcSpnFormats">
        <item>%s</item>
        <item>%s Wi-Fi</item>
    </string-array>
</resources>
+24 −3
Original line number Original line Diff line number Diff line
@@ -240,10 +240,31 @@
        <item>Issue registering Wi\u2011Fi calling with your carrier: <xliff:g id="code" example="REG09 - No 911 Address">%1$s</xliff:g></item>
        <item>Issue registering Wi\u2011Fi calling with your carrier: <xliff:g id="code" example="REG09 - No 911 Address">%1$s</xliff:g></item>
    </string-array>
    </string-array>
    <!-- Template for showing mobile network operator name while WFC is active -->
    <!-- Template for showing mobile network operator name while WFC is active -->
    <string-array name="wfcSpnFormats">
    <string-array name="wfcSpnFormats" translatable="false">
        <item>%s</item>
        <item>@string/wfcSpnFormat_spn</item>
        <item>%s Wi-Fi Calling</item>
        <item>@string/wfcSpnFormat_spn_wifi_calling</item>
        <item>@string/wfcSpnFormat_wlan_call</item>
        <item>@string/wfcSpnFormat_spn_wlan_call</item>
        <item>@string/wfcSpnFormat_spn_wifi</item>
        <item>@string/wfcSpnFormat_wifi_calling_bar_spn</item>
        <item>@string/wfcSpnFormat_spn_vowifi</item>
    </string-array>
    </string-array>

    <!-- Spn during Wi-Fi Calling: "<operator>" -->
    <string name="wfcSpnFormat_spn"><xliff:g id="spn" example="Operator">%s</xliff:g></string>
    <!-- Spn during Wi-Fi Calling: "<operator> Wi-Fi Calling" -->
    <string name="wfcSpnFormat_spn_wifi_calling"><xliff:g id="spn" example="Operator">%s</xliff:g> Wi-Fi Calling</string>
    <!-- Spn during Wi-Fi Calling: "WLAN Call" -->
    <string name="wfcSpnFormat_wlan_call">WLAN Call</string>
    <!-- Spn during Wi-Fi Calling: "<operator> WLAN Call" -->
    <string name="wfcSpnFormat_spn_wlan_call"><xliff:g id="spn" example="Operator">%s</xliff:g> WLAN Call</string>
    <!-- Spn during Wi-Fi Calling: "<operator> Wi-Fi" -->
    <string name="wfcSpnFormat_spn_wifi"><xliff:g id="spn" example="Operator">%s</xliff:g> Wi-Fi</string>
    <!-- Spn during Wi-Fi Calling: "WiFi Calling | <operator>" -->
    <string name="wfcSpnFormat_wifi_calling_bar_spn">WiFi Calling | <xliff:g id="spn" example="Operator">%s</xliff:g></string>
    <!-- Spn during Wi-Fi Calling: "<operator> VoWifi" -->
    <string name="wfcSpnFormat_spn_vowifi"><xliff:g id="spn" example="Operator">%s</xliff:g> VoWifi</string>

    <!-- WFC, summary for Disabled -->
    <!-- WFC, summary for Disabled -->
    <string name="wifi_calling_off_summary">Off</string>
    <string name="wifi_calling_off_summary">Off</string>
    <!-- WFC, summary for Wi-Fi Preferred -->
    <!-- WFC, summary for Wi-Fi Preferred -->
+10 −0
Original line number Original line Diff line number Diff line
@@ -1070,6 +1070,16 @@ public class CarrierConfigManager {


    /**
    /**
     * Indexes of SPN format strings in wfcSpnFormats and wfcDataSpnFormats.
     * Indexes of SPN format strings in wfcSpnFormats and wfcDataSpnFormats.
     *
     * <p>Available options are:
     * <ul>
     * <li> 0: %s</li>
     * <li> 1: %s Wi-Fi Calling</li>
     * <li> 2: WLAN Call</li>
     * <li> 3: %s WLAN Call</li>
     * <li> 4: %s Wi-Fi</li>
     * <li> 5: WiFi Calling | %s</li>
     * <li> 6: %s VoWifi</li>
     * @hide
     * @hide
     */
     */
    public static final String KEY_WFC_SPN_FORMAT_IDX_INT = "wfc_spn_format_idx_int";
    public static final String KEY_WFC_SPN_FORMAT_IDX_INT = "wfc_spn_format_idx_int";