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

Commit aaa5e42d authored by Ling Ma's avatar Ling Ma
Browse files

Separate timer for availability and performance

Add res config: auto_data_switch_performance_stability_time_threshold_millis
as stability check when switch due to RAT/signal strength.

Test: adb shell am broadcast -a com.android.internal.telephony.TestServiceState --ei phone_id 1 --ei data_rat 3
Test: inspect log to confirm
Test: data browsing and voice call
Fix: 308456021

Change-Id: Ic4b870ed3679bb5b25ddc6daa014ceb1b5fa4357
parent ff66e3ed
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -58,6 +58,12 @@
    <integer name="auto_data_switch_availability_stability_time_threshold_millis">10000</integer>
    <java-symbol type="integer" name="auto_data_switch_availability_stability_time_threshold_millis" />

    <!-- Define the bar of considering the RAT and signal strength advantage of a subscription to be
     stable in milliseconds, where 0 means immediate switch, and negative milliseconds indicates the
     switch base on RAT and signal strength feature is disabled.-->
    <integer name="auto_data_switch_performance_stability_time_threshold_millis">120000</integer>
    <java-symbol type="integer" name="auto_data_switch_performance_stability_time_threshold_millis" />

    <!-- Define the maximum retry times when a validation for switching failed.-->
    <integer name="auto_data_switch_validation_max_retry">7</integer>
    <java-symbol type="integer" name="auto_data_switch_validation_max_retry" />