platform_hardware_interfaces/broadcastradio/common/utils
Weilin Xu d7483327cb Add onTuneFailed when canceling tuning operation
Due to RadioTuner API documentation, onTuneFailed should be called
when a pending tuning operation is canceled. Therefore, a new
result value Canceled was added in broadcast radio HAL. The
onTuneFailed callback for pending tuning operations in default HAL
was implemented by adding whatIfCanceled function field in Task
struct in WorkerThread utils class.

Bug: 257337458
Test: atest RadioTunerTest#cancel_whenTune
Test: atest RadioTunerTest#cancel_whenSeek
Change-Id: I901ab2cc3561082e5f11a9f6c33db044fc9bc28b
2022-12-07 19:36:15 +00:00
..
include/broadcastradio-utils Add onTuneFailed when canceling tuning operation 2022-12-07 19:36:15 +00:00
Android.bp [LSC] Add LOCAL_LICENSE_KINDS to hardware/interfaces 2021-02-23 14:26:20 -08:00
WorkerThread.cpp Add onTuneFailed when canceling tuning operation 2022-12-07 19:36:15 +00:00