summaryrefslogtreecommitdiff
path: root/tests/common/java/android/net/NetworkCapabilitiesTest.java
diff options
context:
space:
mode:
authorChalard Jean <jchalard@google.com>2021-09-16 21:50:07 +0900
committerChalard Jean <jchalard@google.com>2021-09-18 04:03:13 +0000
commit0702f98edc8ae01854231da6dd87f861c7c18128 (patch)
treee3cf18c2a0bbf8445ed5c436cf031e5d01364f31 /tests/common/java/android/net/NetworkCapabilitiesTest.java
parent3cbd991ab4b82286d6b8186ee575aca337eedf42 (diff)
Add a mode for cell radios unable to time share
Upon changing the default SIM card, the radio will create a new connection to the new subscription. If that subscription works correctly, the stack will prefer it to the old one as the new subscription will be marked with a Primary policy flag it its score. Normally, at this point the old network lingers to give apps an opportunity to gracefully migrate their connections. But with some radios, this may have a dramatic effect on the performance of the new connection. This patch introduces a flag so that devices with such radios can be marked. In this case the stack will move to a degraded mode and eschew the grace delay for apps and give them a hard break instead, so that the new network can reach a good performance immediately. Apps with existing connections will suffer a worse experience. If there is a request that can only be served by the old connection, still keep it, as arguably the user still expects their MMS be sent on the old connection, even if the new connection doesn't work well until it's done. Test: new test in this patch, and add relevant tests in both modes also manually change the value of the flag and run FrameworksNetTests and CtsNetTestCasesLatestSdk Bug: 200226979 Change-Id: I4ace82f90e873bf06298cc689bb1d794ed5124bd
Diffstat (limited to 'tests/common/java/android/net/NetworkCapabilitiesTest.java')
0 files changed, 0 insertions, 0 deletions