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

Commit 032539fb authored by Sarah Kim's avatar Sarah Kim Committed by Automerger Merge Worker
Browse files

Merge "Create APIs to check satelite controller enabled and demo mode on" into...

Merge "Create APIs to check satelite controller enabled and demo mode on" into udc-dev am: 60cbd331

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/opt/telephony/+/22953983



Change-Id: I538e0cc0324387075c6a98f8487db88dcbcf2125
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 3ea8fa37 60cbd331
Loading
Loading
Loading
Loading
+20 −0
Original line number Diff line number Diff line
@@ -918,6 +918,17 @@ public class SatelliteController extends Handler {
        sendRequestAsync(CMD_IS_SATELLITE_ENABLED, result, SatelliteServiceUtils.getPhone());
    }

    /**
     * Get whether the satellite modem is enabled.
     * This will return the cached value instead of querying the satellite modem.
     *
     * @return {@code true} if the satellite modem is enabled and {@code false} otherwise.
     */
    public boolean isSatelliteEnabled() {
        if (mIsSatelliteEnabled == null) return false;
        return mIsSatelliteEnabled;
    }

    /**
     * Request to get whether the satellite service demo mode is enabled.
     *
@@ -952,6 +963,15 @@ public class SatelliteController extends Handler {
        result.send(SatelliteManager.SATELLITE_ERROR_NONE, bundle);
    }

    /**
     * Get whether the satellite service demo mode is enabled.
     *
     * @return {@code true} if the satellite demo mode is enabled and {@code false} otherwise.
     */
    public boolean isDemoModeEnabled() {
        return mIsDemoModeEnabled;
    }

    /**
     * Request to get whether the satellite service is supported on the device.
     *