Merge changes from topic "move-inflate-ss-to-cc"
* changes: Remove config_inflateSignalStrength Move config_inflateSignalStrength to CC
This commit is contained in:
@@ -1,26 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/*
|
||||
** Copyright 2019, 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.
|
||||
*/
|
||||
-->
|
||||
|
||||
<!-- These resources are around just to allow their values to be customized
|
||||
for different hardware and product builds. -->
|
||||
<resources>
|
||||
<!-- Enable 5 bar signal strength icon -->
|
||||
<bool name="config_inflateSignalStrength">true</bool>
|
||||
</resources>
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/*
|
||||
** Copyright 2019, 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.
|
||||
*/
|
||||
-->
|
||||
|
||||
<!-- These resources are around just to allow their values to be customized
|
||||
for different hardware and product builds. -->
|
||||
<resources>
|
||||
<!-- Enable 5 bar signal strength icon -->
|
||||
<bool name="config_inflateSignalStrength">true</bool>
|
||||
</resources>
|
||||
|
||||
@@ -20,9 +20,6 @@
|
||||
<!-- These resources are around just to allow their values to be customized
|
||||
for different hardware and product builds. -->
|
||||
<resources>
|
||||
<!-- Enable 5 bar signal strength icon -->
|
||||
<bool name="config_inflateSignalStrength">true</bool>
|
||||
|
||||
<!-- Boolean indicating whether frameworks needs to reset cell broadcast geo-fencing
|
||||
check after reboot or airplane mode toggling -->
|
||||
<bool translatable="false" name="reset_geo_fencing_check_after_boot_or_apm">true</bool>
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/*
|
||||
** Copyright 2019, 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.
|
||||
*/
|
||||
-->
|
||||
|
||||
<!-- These resources are around just to allow their values to be customized
|
||||
for different hardware and product builds. -->
|
||||
<resources>
|
||||
<!-- Enable 5 bar signal strength icon -->
|
||||
<bool name="config_inflateSignalStrength">true</bool>
|
||||
</resources>
|
||||
|
||||
@@ -20,9 +20,6 @@
|
||||
<!-- These resources are around just to allow their values to be customized
|
||||
for different hardware and product builds. -->
|
||||
<resources>
|
||||
<!-- Enable 5 bar signal strength icon -->
|
||||
<bool name="config_inflateSignalStrength">true</bool>
|
||||
|
||||
<!-- Boolean indicating whether frameworks needs to reset cell broadcast geo-fencing
|
||||
check after reboot or airplane mode toggling -->
|
||||
<bool translatable="false" name="reset_geo_fencing_check_after_boot_or_apm">true</bool>
|
||||
|
||||
@@ -49,9 +49,6 @@
|
||||
<item>"#9"</item>
|
||||
</string-array>
|
||||
|
||||
<!-- Enable 5 bar signal strength icon -->
|
||||
<bool name="config_inflateSignalStrength">true</bool>
|
||||
|
||||
<!-- Boolean indicating whether frameworks needs to reset cell broadcast geo-fencing
|
||||
check after reboot or airplane mode toggling -->
|
||||
<bool translatable="false" name="reset_geo_fencing_check_after_boot_or_apm">true</bool>
|
||||
|
||||
@@ -20,9 +20,6 @@
|
||||
<!-- These resources are around just to allow their values to be customized
|
||||
for different hardware and product builds. -->
|
||||
<resources>
|
||||
<!-- Enable 5 bar signal strength icon -->
|
||||
<bool name="config_inflateSignalStrength">true</bool>
|
||||
|
||||
<!-- Boolean indicating whether frameworks needs to reset cell broadcast geo-fencing
|
||||
check after reboot or airplane mode toggling -->
|
||||
<bool translatable="false" name="reset_geo_fencing_check_after_boot_or_apm">true</bool>
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/*
|
||||
** Copyright 2019, 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.
|
||||
*/
|
||||
-->
|
||||
|
||||
<!-- These resources are around just to allow their values to be customized
|
||||
for different hardware and product builds. -->
|
||||
<resources>
|
||||
<!-- Enable 5 bar signal strength icon -->
|
||||
<bool name="config_inflateSignalStrength">true</bool>
|
||||
</resources>
|
||||
|
||||
@@ -20,9 +20,6 @@
|
||||
<!-- These resources are around just to allow their values to be customized
|
||||
for different hardware and product builds. -->
|
||||
<resources>
|
||||
<!-- Enable 5 bar signal strength icon -->
|
||||
<bool name="config_inflateSignalStrength">true</bool>
|
||||
|
||||
<!-- Boolean indicating whether frameworks needs to reset cell broadcast geo-fencing
|
||||
check after reboot or airplane mode toggling -->
|
||||
<bool translatable="false" name="reset_geo_fencing_check_after_boot_or_apm">true</bool>
|
||||
|
||||
@@ -40,7 +40,4 @@
|
||||
|
||||
<bool name="config_use_sim_language_file">true</bool>
|
||||
|
||||
<!-- Enable 5 bar signal strength icon -->
|
||||
<bool name="config_inflateSignalStrength">true</bool>
|
||||
|
||||
</resources>
|
||||
|
||||
@@ -4351,10 +4351,6 @@
|
||||
only. The component must be part of a system app. -->
|
||||
<string name="config_defaultSupervisionProfileOwnerComponent" translatable="false"></string>
|
||||
|
||||
<!-- Whether to artificially interpret all signal strengths as
|
||||
one bar higher than they actually are -->
|
||||
<bool name="config_inflateSignalStrength">false</bool>
|
||||
|
||||
<!-- Contains a blacklist of apps that should not get pre-installed carrier app permission
|
||||
grants, even if the UICC claims that the app should be privileged. See b/138150105 -->
|
||||
<string-array name="config_restrictedPreinstalledCarrierApps" translatable="false"/>
|
||||
|
||||
@@ -3860,7 +3860,6 @@
|
||||
<java-symbol type="color" name="decor_view_status_guard_light" />
|
||||
|
||||
<java-symbol type="string" name="config_defaultSupervisionProfileOwnerComponent" />
|
||||
<java-symbol type="bool" name="config_inflateSignalStrength" />
|
||||
<java-symbol type="array" name="config_restrictedPreinstalledCarrierApps" />
|
||||
|
||||
<java-symbol type="array" name="config_highRefreshRateBlacklist" />
|
||||
|
||||
@@ -17,7 +17,8 @@
|
||||
package com.android.settingslib.net;
|
||||
|
||||
import android.content.Context;
|
||||
import android.telephony.SubscriptionManager;
|
||||
import android.os.PersistableBundle;
|
||||
import android.telephony.CarrierConfigManager;
|
||||
|
||||
/**
|
||||
* Utilities for dealing with signal strength.
|
||||
@@ -28,7 +29,13 @@ public class SignalStrengthUtil {
|
||||
* bar for the subscription with the given id
|
||||
*/
|
||||
public static boolean shouldInflateSignalStrength(Context context, int subscriptionId) {
|
||||
return SubscriptionManager.getResourcesForSubId(context, subscriptionId)
|
||||
.getBoolean(com.android.internal.R.bool.config_inflateSignalStrength);
|
||||
final CarrierConfigManager carrierConfigMgr =
|
||||
context.getSystemService(CarrierConfigManager.class);
|
||||
PersistableBundle bundle = null;
|
||||
if (carrierConfigMgr != null) {
|
||||
bundle = carrierConfigMgr.getConfigForSubId(subscriptionId);
|
||||
}
|
||||
return (bundle != null && bundle.getBoolean(
|
||||
CarrierConfigManager.KEY_INFLATE_SIGNAL_STRENGTH_BOOL, false));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1157,7 +1157,6 @@ public class NetworkControllerImpl extends BroadcastReceiver
|
||||
boolean show4gForLte = false;
|
||||
boolean hideLtePlus = false;
|
||||
boolean hspaDataDistinguishable;
|
||||
boolean inflateSignalStrengths = false;
|
||||
boolean alwaysShowDataRatIcon = false;
|
||||
|
||||
static Config readConfig(Context context) {
|
||||
@@ -1169,8 +1168,6 @@ public class NetworkControllerImpl extends BroadcastReceiver
|
||||
res.getBoolean(com.android.internal.R.bool.config_alwaysUseCdmaRssi);
|
||||
config.hspaDataDistinguishable =
|
||||
res.getBoolean(R.bool.config_hspa_data_distinguishable);
|
||||
config.inflateSignalStrengths = res.getBoolean(
|
||||
com.android.internal.R.bool.config_inflateSignalStrength);
|
||||
|
||||
CarrierConfigManager configMgr = (CarrierConfigManager)
|
||||
context.getSystemService(Context.CARRIER_CONFIG_SERVICE);
|
||||
|
||||
@@ -1085,6 +1085,15 @@ public class CarrierConfigManager {
|
||||
public static final String KEY_SHOW_SIGNAL_STRENGTH_IN_SIM_STATUS_BOOL =
|
||||
"show_signal_strength_in_sim_status_bool";
|
||||
|
||||
/**
|
||||
* Flag specifying if we should interpret all signal strength as one bar higher
|
||||
* This is a replacement for the former resource config_inflateSignalStrength
|
||||
* The default value is false.
|
||||
* @hide
|
||||
*/
|
||||
public static final String KEY_INFLATE_SIGNAL_STRENGTH_BOOL =
|
||||
"inflate_signal_strength_bool";
|
||||
|
||||
/**
|
||||
* Flag specifying whether an additional (client initiated) intent needs to be sent on System
|
||||
* update
|
||||
@@ -3914,6 +3923,7 @@ public class CarrierConfigManager {
|
||||
sDefaults.putStringArray(KEY_CARRIER_VVM_PACKAGE_NAME_STRING_ARRAY, null);
|
||||
sDefaults.putBoolean(KEY_SHOW_ICCID_IN_SIM_STATUS_BOOL, false);
|
||||
sDefaults.putBoolean(KEY_SHOW_SIGNAL_STRENGTH_IN_SIM_STATUS_BOOL, true);
|
||||
sDefaults.putBoolean(KEY_INFLATE_SIGNAL_STRENGTH_BOOL, false);
|
||||
sDefaults.putBoolean(KEY_CI_ACTION_ON_SYS_UPDATE_BOOL, false);
|
||||
sDefaults.putString(KEY_CI_ACTION_ON_SYS_UPDATE_INTENT_STRING, "");
|
||||
sDefaults.putString(KEY_CI_ACTION_ON_SYS_UPDATE_EXTRA_STRING, "");
|
||||
|
||||
Reference in New Issue
Block a user