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

Skip to content
Commit 6784dd72 authored by Archie Pusaka's avatar Archie Pusaka
Browse files

hh: Queue input data when before receiving UHID_OPEN

UHID_OPEN is sent by UHID when it's ready to receive data. It is
possible for a peer device to start transferring data even before we
receive UHID_OPEN. In such a case, the input will be lost.

Introduce a queue to temporarily store the input data when UHID is not
ready. Additionally, add a small delay even after receiving UHID_OPEN
because it is known for some cases that the underlying input could
still be not ready even after UHID_OPEN is received.

Flag: com.android.bluetooth.flags.hid_report_queuing
Bug: 299192582
Bug: 291522341
Bug: 345498287
Test: mmm packages/modules/Bluetooth
Test: see test in aosp/3003554

Change-Id: I136c7800e3290dd5aa521eea9fa57a7f5d814aa2
parent cd984d9e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment