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

Commit 6be3c39e authored by Oleg Nitz's avatar Oleg Nitz
Browse files

Address Android API Council feedback for Serial API.

In SerialManager.registerSerialPortListener:
 - Make the listener the last parameter in SerialManager.registerSerialPortListener for consistency and a more idiomatic usage in kotlin clients.
 - Add the throw tag for the IllegalStateException and the @CallbackExecutor annotation.

In SerialPort.requestOpen:
 - Introduce public constants for the flag and define an @IntDef for them.

Bug: 427450020
Bug: 427647872
Flag: android.hardware.serial.flags.enable_serial_api
Test: manual
Change-Id: I266fb182f02eefce5e05a78114f266fbe112dab5
parent d9d83fd9
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