Merge changes from topic "inflate-signal" into rvc-d1-dev-plus-aosp
* changes: Remove config_inflateSignalStrength Move config_inflateSignalStrength to CC
This commit is contained in:
committed by
Android (Google) Code Review
commit
9da3d65fb3
@@ -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>
|
|
||||||
|
|
||||||
@@ -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>
|
|
||||||
|
|
||||||
@@ -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>
|
|
||||||
|
|
||||||
@@ -23,8 +23,4 @@
|
|||||||
<!-- Configure mobile network MTU. Carrier specific value is set here.
|
<!-- Configure mobile network MTU. Carrier specific value is set here.
|
||||||
-->
|
-->
|
||||||
<integer name="config_mobile_mtu">1410</integer>
|
<integer name="config_mobile_mtu">1410</integer>
|
||||||
|
|
||||||
<!-- Enable 5 bar signal strength icon -->
|
|
||||||
<bool name="config_inflateSignalStrength">true</bool>
|
|
||||||
|
|
||||||
</resources>
|
</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>
|
|
||||||
|
|
||||||
@@ -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>
|
|
||||||
|
|
||||||
@@ -40,7 +40,4 @@
|
|||||||
|
|
||||||
<bool name="config_use_sim_language_file">true</bool>
|
<bool name="config_use_sim_language_file">true</bool>
|
||||||
|
|
||||||
<!-- Enable 5 bar signal strength icon -->
|
|
||||||
<bool name="config_inflateSignalStrength">true</bool>
|
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
|
|||||||
@@ -4218,10 +4218,6 @@
|
|||||||
only. The component must be part of a system app. -->
|
only. The component must be part of a system app. -->
|
||||||
<string name="config_defaultSupervisionProfileOwnerComponent" translatable="false"></string>
|
<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>
|
|
||||||
|
|
||||||
<!-- Trigger a warning for notifications with RemoteView objects that are larger in bytes than
|
<!-- Trigger a warning for notifications with RemoteView objects that are larger in bytes than
|
||||||
this value (default 1MB)-->
|
this value (default 1MB)-->
|
||||||
<integer name="config_notificationWarnRemoteViewSizeBytes">2000000</integer>
|
<integer name="config_notificationWarnRemoteViewSizeBytes">2000000</integer>
|
||||||
|
|||||||
@@ -3826,7 +3826,6 @@
|
|||||||
<java-symbol type="color" name="decor_view_status_guard_light" />
|
<java-symbol type="color" name="decor_view_status_guard_light" />
|
||||||
|
|
||||||
<java-symbol type="string" name="config_defaultSupervisionProfileOwnerComponent" />
|
<java-symbol type="string" name="config_defaultSupervisionProfileOwnerComponent" />
|
||||||
<java-symbol type="bool" name="config_inflateSignalStrength" />
|
|
||||||
|
|
||||||
<java-symbol type="drawable" name="android_logotype" />
|
<java-symbol type="drawable" name="android_logotype" />
|
||||||
<java-symbol type="layout" name="platlogo_layout" />
|
<java-symbol type="layout" name="platlogo_layout" />
|
||||||
|
|||||||
@@ -17,7 +17,8 @@
|
|||||||
package com.android.settingslib.net;
|
package com.android.settingslib.net;
|
||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.telephony.SubscriptionManager;
|
import android.os.PersistableBundle;
|
||||||
|
import android.telephony.CarrierConfigManager;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Utilities for dealing with signal strength.
|
* Utilities for dealing with signal strength.
|
||||||
@@ -28,7 +29,13 @@ public class SignalStrengthUtil {
|
|||||||
* bar for the subscription with the given id
|
* bar for the subscription with the given id
|
||||||
*/
|
*/
|
||||||
public static boolean shouldInflateSignalStrength(Context context, int subscriptionId) {
|
public static boolean shouldInflateSignalStrength(Context context, int subscriptionId) {
|
||||||
return SubscriptionManager.getResourcesForSubId(context, subscriptionId)
|
final CarrierConfigManager carrierConfigMgr =
|
||||||
.getBoolean(com.android.internal.R.bool.config_inflateSignalStrength);
|
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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1191,7 +1191,6 @@ public class NetworkControllerImpl extends BroadcastReceiver
|
|||||||
boolean show4gForLte = false;
|
boolean show4gForLte = false;
|
||||||
boolean hideLtePlus = false;
|
boolean hideLtePlus = false;
|
||||||
boolean hspaDataDistinguishable;
|
boolean hspaDataDistinguishable;
|
||||||
boolean inflateSignalStrengths = false;
|
|
||||||
boolean alwaysShowDataRatIcon = false;
|
boolean alwaysShowDataRatIcon = false;
|
||||||
|
|
||||||
static Config readConfig(Context context) {
|
static Config readConfig(Context context) {
|
||||||
@@ -1203,8 +1202,6 @@ public class NetworkControllerImpl extends BroadcastReceiver
|
|||||||
res.getBoolean(com.android.internal.R.bool.config_alwaysUseCdmaRssi);
|
res.getBoolean(com.android.internal.R.bool.config_alwaysUseCdmaRssi);
|
||||||
config.hspaDataDistinguishable =
|
config.hspaDataDistinguishable =
|
||||||
res.getBoolean(R.bool.config_hspa_data_distinguishable);
|
res.getBoolean(R.bool.config_hspa_data_distinguishable);
|
||||||
config.inflateSignalStrengths = res.getBoolean(
|
|
||||||
com.android.internal.R.bool.config_inflateSignalStrength);
|
|
||||||
|
|
||||||
CarrierConfigManager configMgr = (CarrierConfigManager)
|
CarrierConfigManager configMgr = (CarrierConfigManager)
|
||||||
context.getSystemService(Context.CARRIER_CONFIG_SERVICE);
|
context.getSystemService(Context.CARRIER_CONFIG_SERVICE);
|
||||||
|
|||||||
@@ -1084,6 +1084,15 @@ public class CarrierConfigManager {
|
|||||||
public static final String KEY_SHOW_SIGNAL_STRENGTH_IN_SIM_STATUS_BOOL =
|
public static final String KEY_SHOW_SIGNAL_STRENGTH_IN_SIM_STATUS_BOOL =
|
||||||
"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
|
* Flag specifying whether an additional (client initiated) intent needs to be sent on System
|
||||||
* update
|
* update
|
||||||
@@ -3989,6 +3998,7 @@ public class CarrierConfigManager {
|
|||||||
sDefaults.putStringArray(KEY_CARRIER_VVM_PACKAGE_NAME_STRING_ARRAY, null);
|
sDefaults.putStringArray(KEY_CARRIER_VVM_PACKAGE_NAME_STRING_ARRAY, null);
|
||||||
sDefaults.putBoolean(KEY_SHOW_ICCID_IN_SIM_STATUS_BOOL, false);
|
sDefaults.putBoolean(KEY_SHOW_ICCID_IN_SIM_STATUS_BOOL, false);
|
||||||
sDefaults.putBoolean(KEY_SHOW_SIGNAL_STRENGTH_IN_SIM_STATUS_BOOL, true);
|
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.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_INTENT_STRING, "");
|
||||||
sDefaults.putString(KEY_CI_ACTION_ON_SYS_UPDATE_EXTRA_STRING, "");
|
sDefaults.putString(KEY_CI_ACTION_ON_SYS_UPDATE_EXTRA_STRING, "");
|
||||||
|
|||||||
Reference in New Issue
Block a user