This is to prove that rust broadcast radio HAL can be built and can
run. The skeleton Rust broadcast radio HAL will return UNKNOWN_ERROR
for all APIs.
Bug: 335514024
Test: m android.hardware.broadcastradio-rust-service
Change-Id: I763175b984c130d75cdc9506ba92c8c1b44338b5
Refactored unit tests isValid broadcast radio utils methods to reuse
testcases. Also fixed isValidV2 check for HD station location.
Bug: 310708886
Test: atest broadcastradio_utils_aidl_test
Change-Id: Ic168776493a5433606849d39175347a5a83b492f
Added unit tests for methods related to config flag in the default AIDL
broadcast radio HAL implementation.
Bug: 316630344
Test: atest DefaultBroadcastRadioHalTestCase
Change-Id: Id42915613f931ebcd40ca05d9534dc087e479461
Added unit tests for methods related to program list updates
in the default AIDL broadcast radio HAL implementation and the
corresponding mock tuner callback methods.
Bug: 316630344
Test: atest DefaultBroadcastRadioHalTestCase
Change-Id: I0bde2b9cc376315320521a1d13ec521781a77cca
Added unit tests for the seek method in the default AIDL broadcast
radio HAL implementation.
Bug: 316630344
Test: atest DefaultBroadcastRadioHalTestCase
Change-Id: Ia82b420f9c1d86125eaf9672715d5391aa14f3e8
Added unit tests for identifier iterator in AIDL broadcast radio
HAL utils library.
Bug: 310708886
Test: atest broadcastradio_utils_aidl_test
Change-Id: I09ea6b73e50edcc4a503758ea1af75b260f426f1
Added unit tests for step and cancel methods in the default AIDL
broadcast radio HAL implementation.
Bug: 316630344
Test: atest DefaultBroadcastRadioHalTestCase
Change-Id: I83b7e9321ebd8bad1eb035d4f23bedce47712511
Added unit tests for tune method in the default AIDL broadcast radio
HAL implementation.
Bug: 316630344
Test: atest DefaultBroadcastRadioHalTestCase
Change-Id: I62c6ca088c8797fe6c3e9ea1d1fe76d5d7aa5c23
Implemented mocked tuner callback and added unit test for getting
and setting the default broadcast radio HAL implementation.
Bug: 316630344
Test: atest DefaultBroadcastRadioHalTestCase
Change-Id: I4d41746f7725a79a8d398a1fb798fbc7cab94e09
Added unit tests for comparators of program selector and program
info in utils library for AIDL broadcast radio HAL.
Bug: 310708886
Test: atest broadcastradio_utils_aidl_test
Change-Id: I1a46196f183cb6a0a45342f3bb379900fd049f32
Added unit tests for isValid methods in utils library for AIDL
broadcast radio HAL.
Bug: 310708886
Test: atest broadcastradio_utils_aidl_test
Change-Id: I0ff19d624f83e48789142a5cba48b9c896dc4204
Added unit tests for tunesTo method in utils library for AIDL
broadcast radio HAL.
Bug: 310708886
Test: atest broadcastradio_utils_aidl_test
Change-Id: Id69467fdb873cd42f8a875bbd26155bb261d9481
Added unit tests for generic methods in utils library for AIDL
broadcast radio HAL.
Bug: 310708886
Test: atest broadcastradio_utils_aidl_test
Change-Id: I968d43c82cd5f9179a63438845dfa167bc30f2cc
Added metadata format check in AIDL broadcast radio HAL VTS.
Bug: 318868350
Test: atest VtsHalBroadcastradioAidlTargetTest
Change-Id: I47cdb178e76173941682fd8594fe9da13d661a1b
Added format check method for AIDL broadcast radio HAL metadata in
AIDL utils library. Also corrected local variable name in
getMetadataString method.
Bug: 318868350
Test: atest broadcastradio_utils_aidl_test
Change-Id: I8220e2845143931e99b4e4da0e07c9cae585588e
If SAT/DT is not supported, should be marked as
ignored but they are marked as failures.
If no support for SAT/DT the implementation returns INVALID_ARGUMENTS
and test is calling the printSkipped function.
Instead of calling printSkipped, if GTEST_SKIP() called
unsupported TC results are parsed properly and test cases will move
to ignored category
Bug: 191229970
Test: VtsHalBroadcastradioV1_0TargetTest
Signed-off-by: V,Anilkumar <anilkumar.v@intel.com>
Change-Id: I4ed7828757a6cc8b83bae989e11289da1a3e814f
Added unit tests for utils method related to DAB radio in AIDL broadcast
radio utils library.
Bug: 310708886
Test: atest broadcastradio_utils_aidl_test
Change-Id: I7c7333c11898665ae7e5184bd3022a7019f862ca
Change "must be up to" to "should be <=" in Metadata of broadcast radio
HAL definition so that the format for metadata types is clear.
Bug: 318763229
Test: m -j
Change-Id: Ibd54988587170f2c20f7770be0f8376d9be2d3b2
Accessed mIsTerminating inside the same lock as what is used in while
loop in worker thread class of broadcast radio HAL utils lib. This fixed
the race condition that mIsTerminating is accessed as true in threadLoop
while the destructor is setting mIsTerminating as false, which causes the
thread waits forever for lock after lock is released in the desctructor.
Bug: 314100017
Test: atest VtsHalBroadcastradioAidlTargetTest WorkerThreadTest
Change-Id: I885e1487ac39525fc2d1ee2134d24409264ca0fc
Added unit test for the default broadcast radio HAL implementation.
Bug: 316630344
Test: atest DefaultBroadcastRadioHalTestCase
Change-Id: I2dac3ff4611fde3836c5235c50057c4f117a62e0
Added unit tests for utils method related to AM, FM and HD radio
in AIDL broadcast radio utils library.
Bug: 310708886
Test: atest broadcastradio_utils_aidl_test
Change-Id: I2ba334bb5c0e76cd7fa3b31e79d310bf2a8fa0c2
Use GTEST_SKIP in bcradio AIDL HAL VTS so that the tests with
assumption failed are ignored instead of passed.
Bug: 315344807
Test: atest VtsHalBroadcastradioAidlTargetTest
Change-Id: Ie170b9ed301f0183e8a4b83e53160674b900b658
Define customized comparators for program selector and program info
in broadcast radio AIDL HAL utils library, which can be used to
sort program list by the order of frequency in HAL implementation of
devices other than emulator.
Bug: 315389663
Test: atest VtsHalBroadcastradioAidlTargetTest
Change-Id: Ie8de342f3c123d896589751a6244f871ee07eb81
Improved DAB radio support in the reference implementation for AIDL
broadcast radio HAL. Used real DAB service ID, ECC code, freuqnecy
and ensemble values for virtual DAB stations and implemented sub-channel
support for DAB radio.
Bug: 309693129
Test: atest VtsHalBroadcastradioAidlTargetTest
Change-Id: I6a78794e16400f05c6d7c5ec99aa4978adca5b58
Implemented HD signal acquisition status change using program info flag
in the reference broadcast radio HAL.
Bug: 309694368
Test: seek/tune to an HD radio station in radio KS app
Change-Id: Ibde570429d4c21b2f894f8658de1b37001541f3a
Separated AM/FM band so that seeking should loop within the band of
the current program info in default AIDL broadcast radio HAL
implementation. Also updated program list by tuner callback when the
AM/FM band is switched.
Bug: 309694368
Test: switch to AM and do not see FM stations in program list in radio KS app
Test: seek in FM band and do not jump any AM stations in radio KS app
Change-Id: Ia4618232d8726f2d779ac2ec87f169b0263ee979