Add requestSatelliteDisplayNameForSubscription in SatelliteManager
BUG: b/378693661
Change-Id: I3a8099c326baddcb067ee3e3b035e8bc17150846
FLAG: com.android.internal.telephony.flags.carrier_roaming_nb_iot_ntn
diff --git a/src/com/android/phone/PhoneInterfaceManager.java b/src/com/android/phone/PhoneInterfaceManager.java
index bb39302..9ba9dec 100644
--- a/src/com/android/phone/PhoneInterfaceManager.java
+++ b/src/com/android/phone/PhoneInterfaceManager.java
@@ -13770,6 +13770,26 @@
}
/**
+ * Request to get the name to display for Satellite subscription.
+ *
+ * @param result The result receiver that returns the display name to use for satellite feature
+ * in the UI for current satellite subscription if the request is successful,
+ * or an error code if the request failed.
+ *
+ * @throws SecurityException if the caller doesn't have the required permission.
+ */
+ @Override
+ public void requestSatelliteDisplayName(@NonNull ResultReceiver result) {
+ enforceSatelliteCommunicationPermission("requestSatelliteDisplayName");
+ final long identity = Binder.clearCallingIdentity();
+ try {
+ mSatelliteController.requestSatelliteDisplayName(result);
+ } finally {
+ Binder.restoreCallingIdentity(identity);
+ }
+ }
+
+ /**
* Request to get the currently selected satellite subscription id.
*
* @param result The result receiver that returns the currently selected satellite subscription