Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 517ad76e authored by joonhunshin's avatar joonhunshin Committed by Android Build Coastguard Worker
Browse files

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
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:2b315c1881b3b2cdd20295df933c771d0c5672be)
Merged-In: I59f58e141e81de1969163b44e554c2d568f6176d
Change-Id: I59f58e141e81de1969163b44e554c2d568f6176d
parent 28f4876c
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -2933,6 +2933,20 @@ public class SatelliteController extends Handler {
        }
    }

    /**
     * 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.
     *