android_packages_modules_Co.../Tethering/tests/unit
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Quang Anh Luong d1f8cea4df Only allow one pending bluetooth request at a time
Currently there may be multiple identical bluetooth requests waiting for
the PAN service to connect before their listeners are notified. To
simplify future code, we should only allow one pending request/listener
pair at a time, and reject every subsequent request with
TETHER_ERROR_SERVICE_UNAVAILABLE.

This should be OK because
1) Bluetooth tethering is hardly used at all
2) Settings disallows extra startTethering calls between the first call
   and the bluetooth service starting
3) Apps are expected to handle TETHER_ERROR_SERVICE_UNAVAILABLE
   correctly.

Bug: 216524590
Test: atest TetheringTest
Change-Id: I8375d495575715f428e893316f7cd7e5a7ebba59
2025-03-10 21:02:50 -07:00
..
common/android/net Add TetheredClient tests 2020-04-23 01:10:19 +00:00
src Only allow one pending bluetooth request at a time 2025-03-10 21:02:50 -07:00
Android.bp no-op: Use helper class to handle pending requests 2025-03-06 15:18:28 +09:00
AndroidManifest.xml TetheringServiceTest: test caller permission 2020-05-25 12:07:06 +08:00