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

Commit d9de4bef authored by Thomas Nguyen's avatar Thomas Nguyen
Browse files

Add SATELLITE_RESULT_DISABLE_IN_PROGRESS result code

Flag: EXEMPT bugfix
Bug: 355660913
Test: SatelliteManagerTestOnMockService SatelliteSessionControllerTest SatelliteControllerTest
Manual tests: b/364618205

Change-Id: Id9165832f4d3fde74094dfc1ebb5d17206b968af
parent 69195772
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
@@ -412,6 +412,14 @@ public final class SatelliteManager {
    @FlaggedApi(Flags.FLAG_OEM_ENABLED_SATELLITE_FLAG)
    public static final int SATELLITE_RESULT_EMERGENCY_CALL_IN_PROGRESS = 27;

    /**
     * Disabling satellite is in progress.
     *
     * @hide
     */
    @FlaggedApi(Flags.FLAG_OEM_ENABLED_SATELLITE_FLAG)
    public static final int SATELLITE_RESULT_DISABLE_IN_PROGRESS = 28;

    /** @hide */
    @IntDef(prefix = {"SATELLITE_RESULT_"}, value = {
            SATELLITE_RESULT_SUCCESS,
@@ -441,7 +449,8 @@ public final class SatelliteManager {
            SATELLITE_RESULT_MODEM_TIMEOUT,
            SATELLITE_RESULT_LOCATION_DISABLED,
            SATELLITE_RESULT_LOCATION_NOT_AVAILABLE,
            SATELLITE_RESULT_EMERGENCY_CALL_IN_PROGRESS
            SATELLITE_RESULT_EMERGENCY_CALL_IN_PROGRESS,
            SATELLITE_RESULT_DISABLE_IN_PROGRESS
    })
    @Retention(RetentionPolicy.SOURCE)
    public @interface SatelliteResult {}
+9 −0
Original line number Diff line number Diff line
@@ -83,7 +83,16 @@ oneway interface ISatellite {
     * is enabled, this may also disable the cellular modem, and if the satellite modem is disabled,
     * this may also re-enable the cellular modem.
     *
     * Framework might send an enable request to update the enable attributes of an already-started
     * satellite session. In such cases, modem needs to apply the new enable attrbitues to the
     * satellite session. Moreover, modem needs to report its current state and signal strength
     * level to framework right after receiving this request from framework.
     *
     * Framework might send a disable request when an enable request is being processed. In such
     * cases, modem needs to abort the enable request and process the disable request.
     *
     * @param enableAttributes The enable parameters that will be applied to the satellite session
     * @param resultCallback The callback to receive the error code result of the operation.
     *
     * Valid result codes returned:
     *   SatelliteResult:SATELLITE_RESULT_SUCCESS