Add public method to retrun whether the satellite request is for an emergency or not
Bug: 350516702
Test: atest TelephonyConnectionServiceTest
Flag: com.android.internal.telephony.flags.carrier_roaming_nb_iot_ntn
Change-Id: I59f58e141e81de1969163b44e554c2d568f6176d
diff --git a/src/java/com/android/internal/telephony/satellite/SatelliteController.java b/src/java/com/android/internal/telephony/satellite/SatelliteController.java
index f5bc0a2..ea94624 100644
--- a/src/java/com/android/internal/telephony/satellite/SatelliteController.java
+++ b/src/java/com/android/internal/telephony/satellite/SatelliteController.java
@@ -3028,6 +3028,20 @@
}
/**
+ * Return whether the satellite request is for an emergency or not.
+ *
+ * @return {@code true} if the satellite request is for an emergency and
+ * {@code false} otherwise.
+ */
+ public boolean getRequestIsEmergency() {
+ if (mFeatureFlags.carrierRoamingNbIotNtn()) {
+ return mIsEmergency;
+ }
+
+ return false;
+ }
+
+ /**
* Return capabilities of carrier roaming satellite network.
*
* @param phone phone object