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

Commit 65a0e87c authored by Arun Voddu's avatar Arun Voddu Committed by Android (Google) Code Review
Browse files

Merge "Google contribution item #12 - subitem #2, base [VZW-Skylo] apply Idle...

Merge "Google contribution item #12 - subitem #2, base [VZW-Skylo] apply Idle Mode Scanning for Terrestrial Network" into main
parents af83423b a7846d1f
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -42,4 +42,11 @@ oneway interface ISatelliteModemStateCallback {
     *                  For LTE (EMM), cause codes are TS 24.301 Sec 9.9.3.9
     */
    void onRegistrationFailure(in int causeCode);

    /**
     * Indicates that the background search for terrestrial network is finished with result
     *
     * @param isAvailable True means there's terrestrial network and false means there's not.
     */
    void onTerrestrialNetworkAvailableChanged(in boolean isAvailable);
}
+6 −0
Original line number Diff line number Diff line
@@ -1862,6 +1862,12 @@ public final class SatelliteManager {
                        executor.execute(() -> Binder.withCleanCallingIdentity(() ->
                                callback.onRegistrationFailure(causeCode)));
                    }

                    @Override
                    public void onTerrestrialNetworkAvailableChanged(boolean isAvailable) {
                        executor.execute(() -> Binder.withCleanCallingIdentity(() ->
                                callback.onTerrestrialNetworkAvailableChanged(isAvailable)));
                    }
                };
                sSatelliteModemStateCallbackMap.put(callback, internalCallback);
                return telephony.registerForSatelliteModemStateChanged(internalCallback);
+8 −0
Original line number Diff line number Diff line
@@ -54,4 +54,12 @@ public interface SatelliteModemStateCallback {
     * @hide
     */
    default void onRegistrationFailure(int causeCode) {};

    /**
     * Indicates that the background search for terrestrial network is finished with result
     *
     * @param isAvailable True means there's terrestrial network and false means there's not.
     * @hide
     */
    default void onTerrestrialNetworkAvailableChanged(boolean isAvailable) {};
}
+6 −2
Original line number Diff line number Diff line
@@ -70,12 +70,16 @@ oneway interface ISatellite {
            in IIntegerConsumer resultCallback);

    /**
     * Allow cellular modem scanning while satellite mode is on.
     * Framework will call this API to determine if there are any TN networks available.
     * This API will be called if framework identifies that user is inactive i.e. no
     * data transfer or no pointing to satellite.
     * Modem can send the callback with available for either in service or limited service.

     * @param enabled  {@code true} to enable cellular modem while satellite mode is on
     * and {@code false} to disable
     * @param errorCallback The callback to receive the error code result of the operation.
     */
    void enableCellularModemWhileSatelliteModeIsOn(in boolean enabled,
    void enableTerrestrialNetworkScanWhileSatelliteModeIsOn(in boolean enabled,
        in IIntegerConsumer errorCallback);

    /**
+7 −0
Original line number Diff line number Diff line
@@ -82,4 +82,11 @@ oneway interface ISatelliteListener {
     *        For LTE (EMM), cause codes are TS 24.301 Sec 9.9.3.9
     */
    void onRegistrationFailure(in int causeCode);

    /**
     * Modem can send the callback with available for either in service or limited service.
     *
     * @param isAvailable True means there's terrestrial network and false means there's not.
     */
    void onTerrestrialNetworkAvailableChanged(in boolean isAvailable);
}
Loading