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

Commit 3e31185a authored by Thomas Nguyen's avatar Thomas Nguyen
Browse files

Add APIs for mocking satellite entilement response

Flag: TEST_ONLY
Bug: 415391612
Test: MultiProviderCoexistSatelliteTest SatelliteManagerTestOnMockService ManualConnectCarrierRoamingSatelliteTest AutoConnectCarrierRoamingSatelliteTest
Change-Id: Ie769f4dd1f2236a42e6481e7a82e66b792fde9b1
parent 743e80dc
Loading
Loading
Loading
Loading
+28 −0
Original line number Diff line number Diff line
@@ -3535,6 +3535,34 @@ interface ITelephony {
     */
    boolean setIsSatelliteCommunicationAllowedForCurrentLocationCache(in String state);

    /**
     * This API can be used by only CTS to override the satellite entitlement status response.
     *
     * @param overriddenEntilementStatusResponse the overridden entitlement status response.
     * @param throwException whether to throw exception when receiving a request for entitlement
     *                       status.
     * @return {@code true} if the setting is successful, {@code false} otherwise.
     */
    boolean overrideSatelliteEntilementStatusResponseForCtsTest(
            in String overriddenEntilementStatusResponse, in boolean throwException);
    /**
     * This API can be used by only CTS to override the entitlement query conditions.
     *
     * @param ignoreInternetConnection whether to ignore the internet connection check.
     * @param ignoreRefreshCondition whether to ignore the refresh condition.
     * @return {@code true} if the setting is successful, {@code false} otherwise.
     */
    boolean overrideSatelliteEntilementQueryConditions(
            boolean ignoreInternetConnection, boolean ignoreRefreshCondition);

    /**
     * This API can be used by only CTS to control the max allowed data mode.
     *
     * @param maxAllowedDataMode The max allowed data mode.
     * @return {@code true} if the value is set successfully, {@code false} otherwise.
     */
    boolean setMaxAllowedSatelliteDataModeForCtsTest(int maxAllowedDataMode);

    /**
     * Request to get the session stats of the satellite service.
     *