Add an API to update satellite listening timeout duration

Bug: 276762737
Test: Call/SMS/MMS with live network.
atest android.telephony.satellite.cts.SatelliteManagerTestOnMockService
atest android.telephony.satellite.cts.SatelliteManagerTest

Change-Id: Ib7fd7ce4ea5b830ec602dba0b4514e9abd6fe014
This commit is contained in:
Thomas Nguyen
2023-04-06 20:53:25 -07:00
parent 2592f714e2
commit a5776ed071

View File

@@ -2989,4 +2989,14 @@ interface ITelephony {
* {@code false} otherwise.
*/
boolean setSatelliteServicePackageName(in String servicePackageName);
/**
* This API can be used by only CTS to update the timeout duration in milliseconds that
* satellite should stay at listening mode to wait for the next incoming page before disabling
* listening mode.
*
* @param timeoutMillis The timeout duration in millisecond.
* @return {@code true} if the timeout duration is set successfully, {@code false} otherwise.
*/
boolean setSatelliteListeningTimeoutDuration(in long timeoutMillis);
}