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

Commit dad385ae authored by Kitta Koutarou's avatar Kitta Koutarou Committed by Jordan Liu
Browse files

Make LTE signal bar thresholds customizable with carrier configuration

Move config_lteDbmThresholds to KEY_LTE_RSRP_THRESHOLDS_INT_ARRAY
to control the LTE signal bar thresholds by carrier configuration.

Test: manual - Checked that the LTE signal bar thresholds can be
controlled by carrier config.
Test: auto - Confirmed that run
ServiceStateTrackerTest#testSignalStrength and it has no problem.
Bug: 70698348
Change-Id: Ia613663956ff00fbf299dcf69113733eae5a3458
Merged-In: Ia613663956ff00fbf299dcf69113733eae5a3458
parent 1d5e2c3c
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
@@ -25,15 +25,5 @@
    -->
    <integer name="config_mobile_mtu">1358</integer>

    <!--Thresholds for LTE dbm in status bar-->
    <integer-array translatable="false" name="config_lteDbmThresholds">
        <item>-140</item>    <!-- SIGNAL_STRENGTH_NONE_OR_UNKNOWN -->
        <item>-115</item>    <!-- SIGNAL_STRENGTH_POOR -->
        <item>-105</item>    <!-- SIGNAL_STRENGTH_MODERATE -->
        <item>-95</item>     <!-- SIGNAL_STRENGTH_GOOD -->
        <item>-85</item>     <!-- SIGNAL_STRENGTH_GREAT -->
        <item>-44</item>
    </integer-array>

    <string translatable="false" name="prohibit_manual_network_selection_in_gobal_mode">true;BAE0000000000000</string>
</resources>
+0 −10
Original line number Diff line number Diff line
@@ -51,16 +51,6 @@

    <bool name="config_auto_attach_data_on_creation">false</bool>

    <!--Thresholds for LTE dbm in status bar-->
    <integer-array translatable="false" name="config_lteDbmThresholds">
        <item>-140</item>    <!-- SIGNAL_STRENGTH_NONE_OR_UNKNOWN -->
        <item>-115</item>    <!-- SIGNAL_STRENGTH_POOR -->
        <item>-105</item>    <!-- SIGNAL_STRENGTH_MODERATE -->
        <item>-95</item>     <!-- SIGNAL_STRENGTH_GOOD -->
        <item>-85</item>     <!-- SIGNAL_STRENGTH_GREAT -->
        <item>-44</item>
    </integer-array>

    <string translatable="false" name="prohibit_manual_network_selection_in_gobal_mode">true</string>

    <bool name="config_use_sim_language_file">true</bool>
+0 −10
Original line number Diff line number Diff line
@@ -31,16 +31,6 @@
      <item>9</item>
    </integer-array>

    <!--Thresholds for LTE dbm in status bar-->
    <integer-array translatable="false" name="config_lteDbmThresholds">
        <item>-140</item>    <!-- SIGNAL_STRENGTH_NONE_OR_UNKNOWN -->
        <item>-120</item>    <!-- SIGNAL_STRENGTH_POOR -->
        <item>-115</item>    <!-- SIGNAL_STRENGTH_MODERATE -->
        <item>-100</item>    <!-- SIGNAL_STRENGTH_GOOD -->
        <item>-90</item>     <!-- SIGNAL_STRENGTH_GREAT -->
        <item>-44</item>
    </integer-array>

    <!-- Configure mobile network MTU. Carrier specific value is set here.
    -->
    <integer name="config_mobile_mtu">1400</integer>
+0 −32
Original line number 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 my 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.
*/
-->

<!-- These resources are around just to allow their values to be customized
     for different hardware and product builds. -->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
    <!--Thresholds for LTE dbm in status bar-->
    <integer-array translatable="false" name="config_lteDbmThresholds">
        <item>-140</item>    <!-- SIGNAL_STRENGTH_NONE_OR_UNKNOWN -->
        <item>-120</item>    <!-- SIGNAL_STRENGTH_POOR -->
        <item>-115</item>    <!-- SIGNAL_STRENGTH_MODERATE -->
        <item>-100</item>    <!-- SIGNAL_STRENGTH_GOOD -->
        <item>-90</item>     <!-- SIGNAL_STRENGTH_GREAT -->
        <item>-44</item>
    </integer-array>
</resources>
+0 −32
Original line number 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 my 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.
*/
-->

<!-- These resources are around just to allow their values to be customized
     for different hardware and product builds. -->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
    <!--Thresholds for LTE dbm in status bar-->
    <integer-array translatable="false" name="config_lteDbmThresholds">
        <item>-140</item>    <!-- SIGNAL_STRENGTH_NONE_OR_UNKNOWN -->
        <item>-120</item>    <!-- SIGNAL_STRENGTH_POOR -->
        <item>-115</item>    <!-- SIGNAL_STRENGTH_MODERATE -->
        <item>-100</item>    <!-- SIGNAL_STRENGTH_GOOD -->
        <item>-90</item>     <!-- SIGNAL_STRENGTH_GREAT -->
        <item>-44</item>
    </integer-array>
</resources>
Loading