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

Commit 30e44575 authored by Aishwarya Mallampati's avatar Aishwarya Mallampati Committed by Android (Google) Code Review
Browse files

Merge "Return starlink error code for outgoing call if eligibility is true." into main

parents fa270d23 cfc78eea
Loading
Loading
Loading
Loading
+16 −0
Original line number Diff line number Diff line
@@ -6224,6 +6224,22 @@ public class SatelliteController extends Handler {
        }
    }

    /** Return last notified ntn eligibility. */
    public boolean getLastNotifiedNtnEligibility(@NonNull Phone phone) {
        int selectedSatelliteSubId = getSelectedSatelliteSubId();
        int subId = phone.getSubId();
        if (subId != selectedSatelliteSubId) {
            plogd("getLastNotifiedNtnEligibility: subId=" + subId
                    +  " does not match selectedSatelliteSubId=" + selectedSatelliteSubId);
            return false;
        }

        synchronized (mSatellitePhoneLock) {
            plogd("getLastNotifiedNtnEligibility: return " + mLastNotifiedNtnEligibility);
            return mLastNotifiedNtnEligibility;
        }
    }

    private long getSatelliteConnectionHysteresisTimeMillis(int subId) {
        PersistableBundle config = getPersistableBundle(subId);
        return (config.getInt(