android_packages_modules_Co.../Tethering/tests
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Quang Anh Luong 9cebb8c3b1 Pre-emptively fail pending pan requests upon opposite request
If there are pending pan requests for an enable but a disable request
comes (or vice versa), remove all the pending requests and pre-emptively
fail their result listeners. This simplifies the logic and helps us
keep track of which request the future link layer event should be long
to.

Technically this is an app-visible behaviour change. In particular, if
something disables bluetooth tethering while the service is
disconnected and request(s) to enable tethering are queued, then the new
code will immediately send onTetheringFailed to all those requests,
whereas the old code would wait until the service connects, enable
tethering (and send the enabler an onTetheringStarted), and then disable
it. Given that this situation is very rare, and Bluetooth tethering is
itself so uncommon (<1% of total tethering sessions) this is an
acceptable trade-off.

Bug: 216524590
Test: atest TetheringTest
Change-Id: I061733d714894b741e7d686810dd39f054e85476
2025-02-13 10:24:42 +09:00
..
integration Introduce interfaceName field into TetheringRequestParcel 2024-12-05 08:14:10 +09:00
mts Make java_sdk_library dependencies explicit 2024-09-10 00:01:31 +00:00
privileged Rename TapPacketReader to PollPacketReader for broader applicability 2024-10-15 13:42:05 +09:00
unit Pre-emptively fail pending pan requests upon opposite request 2025-02-13 10:24:42 +09:00
Android.bp [DON'T BLOCK] Test ownership migration rules 2024-01-31 12:34:50 +00:00
jarjar-rules.txt ConnectivityCoverageTests refactoring 2022-04-06 19:35:28 +09:00