diff --git a/res/values/strings.xml b/res/values/strings.xml
index 47efbe74767..62f52c51e3b 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -12695,10 +12695,10 @@ Data usage charges may apply.
Send and receive text messages by satellite. Contact your carrier for details.
Satellite messaging, satellite connectivity
-
- About %1$s
-
- You can send and receive text messages by satellite with an eligible %1$s account
+
+ About satellite connectivity
+
+ You can send and receive text messages and use some apps by satellite with an eligible %1$s account
Your %1$s account
diff --git a/res/xml/satellite_setting.xml b/res/xml/satellite_setting.xml
index e299951092d..74bee71c31a 100644
--- a/res/xml/satellite_setting.xml
+++ b/res/xml/satellite_setting.xml
@@ -22,10 +22,12 @@
settings:keywords="@string/keywords_satellite_setting">
+ android:title="@string/category_name_about_satellite_connectivity"
+ android:key="key_category_about_satellite"
+ settings:controller="com.android.settings.network.telephony.satellite.SatelliteSettingAboutContentController">
+ android:key="key_about_satellite_connectivity"/>
{
+ on { getSimOperatorName(TEST_SUB_ID) } doReturn TEST_SIM_OPERATOR_NAME
+ }
+
+ private var context: Context = spy(ApplicationProvider.getApplicationContext()) {
+ on { getSystemService(TelephonyManager::class.java) } doReturn mockTelephonyManager
+ }
+
+ private val controller = SatelliteSettingAboutContentController(
+ context = context,
+ key = PREF_KEY_ABOUT_SATELLITE_CONNECTIVITY,
+ )
+
+ private lateinit var screen: PreferenceScreen
+ private lateinit var preference: TopIntroPreference
+
+ @Before
+ fun setUp() {
+ preference =
+ TopIntroPreference(context).apply { key = PREF_KEY_ABOUT_SATELLITE_CONNECTIVITY }
+ screen = PreferenceManager(context).createPreferenceScreen(context)
+ screen.addPreference(preference)
+ }
+
+ @Test
+ fun displayPreference_preferenceTitle_hasSimOperatorName() {
+ controller.init(TEST_SUB_ID)
+
+ controller.displayPreference(screen)
+
+ assertThat(preference.title).isEqualTo(
+ context.getString(
+ R.string.description_about_satellite_setting,
+ TEST_SIM_OPERATOR_NAME
+ )
+ )
+ }
+
+ private companion object {
+ const val TEST_SUB_ID = 1
+ const val TEST_SIM_OPERATOR_NAME = "Test Carrier"
+ }
+}
\ No newline at end of file