Set summary for SIM entries in multi-SIM header

On the Network & internet page, when you have multiple active SIMs we
add a header with an entry for each one. This CL sets the summary for
those entries to be a 1 or 2 line indication of what services (calls,
SMS, and data) that SIM is used for by default, or just an indication
that the SIM is available. And for the SIM used by default for data, we
include status information about whether it's connected or not.

Bug: 116349402
Test: make RunSettingsRoboTests
Change-Id: I46f37433f753724bbde8876f0d89c3155b2c3812
This commit is contained in:
Antony Sargent
2019-02-07 10:22:29 -08:00
parent 7d257171dc
commit 8fc473629a
3 changed files with 151 additions and 2 deletions

View File

@@ -10456,6 +10456,30 @@
<item quantity="other"><xliff:g id="count" example="2">%1$d</xliff:g> SIMs</item>
</plurals>
<!-- Network & internet page. Summary indicating that a SIM is used by default for calls when
multiple SIMs are present. [CHAR LIMIT=40] -->
<string name="default_for_calls">Default for calls</string>
<!-- Network & internet page. Summary indicating that a SIM is used by default for SMS messages
when multiple SIMs are present. [CHAR LIMIT=40] -->
<string name="default_for_sms">Default for SMS</string>
<!-- Network & internet page. Summary indicating that a SIM is used by default for calls and SMS
messages when multiple SIMs are present. [CHAR LIMIT=40] -->
<string name="default_for_calls_and_sms">Default for calls &amp; SMS</string>
<!-- Network & internet page. Summary indicating that a SIM is used by default for mobile data
when multiple SIMs are present. [CHAR LIMIT=40] -->
<string name="default_for_mobile_data">Default for mobile data</string>
<!-- Network & internet page. Summary indicating that a SIM has an active mobile data connection
when multiple SIMs are present. [CHAR LIMIT=40] -->
<string name="mobile_data_active">Mobile data active</string>
<!-- Network & internet page. Summary indicating that a SIM is used by default for mobile data
when multiple SIMs are present, but mobile data is currently turned off.
[CHAR LIMIT=40] -->
<string name="mobile_data_off">Mobile data off</string>
<!-- Network & internet page. Summary indicating that a SIM is available to be used for services
such as calls, SMS, or data when multiple SIMs are present, but is not currently the
default SIM for any of those services. [CHAR LIMIT=40] -->
<string name="subscription_available">Available</string>
<!-- Title of item shown at the bottom of the page listing multiple mobile service
subscriptions; tapping it leads to a UI to add more [CHAR LIMIT=40] -->
<string name="mobile_network_list_add_more">Add more</string>