366 Commits

Author SHA1 Message Date
Treehugger Robot
8da02240e6 Merge "android.hardware.broadcastradio-service.default_fuzzer: Add signal() to handle SIGPIPE" into main am: 16e368f00d am: 98daabb39b
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3382170

Change-Id: I52dd1219a372837f24368c3f0cfe09435b9ff320
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-12-04 05:28:36 +00:00
Akhilesh Sanikop
b1b886d553 android.hardware.broadcastradio-service.default_fuzzer: Add signal() to handle SIGPIPE
Adding signal handler to avoid abort() due to
broken pipe.

Test: ./android.hardware.broadcastradio-service.default_fuzzer
Bug: 376201407
Change-Id: I283644ca1062737435c27d809e3961e9267e0f30
2024-11-29 15:03:48 +05:30
Weilin Xu
8328b0068a Fix emergency radio alert AIDL doc
Bug: 361348719
Flag: EXEMPT HAL interface change
Test: atest VtsHalBroadcastradioAidlTargetTest
Change-Id: I17b131b95dc8dcc5c70cc671526cb2bcc7640876
2024-11-21 11:01:45 -08:00
Weilin Xu
9d79f312f9 Implement emergency radio in default HAL
Implemented adb shell command in default broadcast radio HAL to
simulate an emergency alert.

Bug: 361348719
Flag: EXEMPT HAL interface change
Test: adb root
Test: adb shell dumpsys android.hardware.broadcastradio.IBroadcastRadio/amfm --simulateAlert actual alert geo,transport future severe possible "alertmessage" en-US geocode:SAME,006109_geocode:SAME,006209_polygon:-38.47,-120.14,38.34,-119.95,38.52,-119.74,38.62,-119.89,-38.47,-120.14+geocode:SAME,006009
Change-Id: Idbfdb47a65c88bc3dc1839729b772bb285c563b4
2024-10-25 10:10:11 -07:00
Weilin Xu
ffc334521e Merge "Define emergency alert system in bcradio HAL" into main 2024-10-22 23:03:31 +00:00
Weilin Xu
7536b44e1f Define emergency alert system in bcradio HAL
Bug: 361348719
Flag: EXEMPT HAL interface change
Test: atest VtsHalBroadcastradioAidlTargetTest
Change-Id: Iaffe7f34dd4d48dc15d339b7c7321952bab1f1db
2024-10-17 15:34:03 -07:00
Yihan Dong
4101bdb08a Add proposed trendy teams for VTS modules
Change-Id: I206dbaa54035b021c793a65c16a11ba4effddcab
Test: build locally
Bug: 368362374
2024-10-12 09:04:33 +00:00
Weilin Xu
882e734c47 Fix crash after running broadcast radio VTS am: dc81760779 am: 0d032f1a63
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3162860

Change-Id: Id2f8d030b880dc35812702f1bedc116f0323cff2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-07-09 19:11:21 +00:00
Weilin Xu
0d032f1a63 Fix crash after running broadcast radio VTS am: dc81760779
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3162860

Change-Id: I8dd715ed2783958e4099c427dc38ef2c6ec5b536
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-07-09 19:06:23 +00:00
Weilin Xu
dc81760779 Fix crash after running broadcast radio VTS
Config broadcast radio VTS not to change framework status, such as
registering new tuner callback, to avoid radio service crash due to
no tuner callback registered after VTS completes.

Bug: 246866675
Test: atest VtsHalBroadcastradioAidlTargetTest
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:f39ac7f62bcb38329f9c39a8ae31048405612afa)
Merged-In: If8d1d26a860acdfc77eed5803926035224ad2d2a
Change-Id: If8d1d26a860acdfc77eed5803926035224ad2d2a
2024-07-09 18:18:36 +00:00
Weilin Xu
f39ac7f62b Fix crash after running broadcast radio VTS
Config broadcast radio VTS not to change framework status, such as
registering new tuner callback, to avoid radio service crash due to
no tuner callback registered after VTS completes.

Bug: 246866675
Test: atest VtsHalBroadcastradioAidlTargetTest
Change-Id: If8d1d26a860acdfc77eed5803926035224ad2d2a
2024-07-08 10:16:19 -07:00
Weilin Xu
6d71e46f31 Create a skeleton Rust broadcast radio HAL
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
2024-04-26 14:14:31 -07:00
Weilin Xu
3e6625c793 Add latest version bcradio HAL defaults
Bug: 335304370
Test: atest VtsHalBroadcastradioAidlTargetTest
Test: broadcastradio_utils_aidl_test
Change-Id: Iaefbb6bdb032cd6ee47f5eb733ea2abaf7ab4b47
2024-04-17 14:52:51 -07:00
Weilin Xu
4db4b7b602 Fix wrong integer type in AIDL bcradio utils lib
Bug: 310029333
Test: atest broadcastradio_utils_aidl_test
Change-Id: I929049c0991a557f518853ecebd5ba67973e4274
2024-04-08 11:56:05 -07:00
Weilin Xu
fe3a8461f2 Add isValid method test for V2 bcradio utils
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
2024-03-08 10:20:58 -08:00
Weilin Xu
af20855c7c Fix isValidV2 check for HD station location id
Bug: 328313667
Test: atest broadcastradio_utils_aidl_test
Change-Id: I570d24fee3607cf53d197fe886e6c4a5a611b932
2024-03-06 10:55:25 -08:00
Weilin Xu
1b6c03d742 Check secondary ids in bcradio HAL utils isValid methods
Check whether secondary ids in isValid and isValidV2 methods in AIDL
broadcast radio utils lib.

Bug: 328312711
Test: atest broadcastradio_utils_aidl_test
Change-Id: Ie693de565c3819d1599b6ff40c95ecfd83483722
2024-03-05 16:48:08 -08:00
Devin Moore
a8efdb127e Vendor API level 202404 is now frozen
Ignore-AOSP-First: VINTF 202404 Finalization
Bug: 279809333
Test: build
Change-Id: Ie6d38d27a287e258c30516e0030ad8c931d06432
2024-02-20 21:05:23 +00:00
Treehugger Robot
f14f75ab25 Merge "Added config flag test for default bcradio HAL" into main 2024-02-14 22:29:09 +00:00
Weilin Xu
f6a462d9fa Added config flag test for default bcradio HAL
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
2024-02-14 13:02:31 -08:00
Treehugger Robot
1fdd38f48e Merge "Migrate bcradio HAL test to new test owner model" into main 2024-02-13 22:41:32 +00:00
Weilin Xu
942eb1cdad Migrate bcradio HAL test to new test owner model
Bug: 324978397
Test: build okay
Change-Id: I9c62d40c590f7c81381cfa9668ae34525308dc1f
2024-02-13 11:58:57 -08:00
Weilin Xu
ed44150e86 Add program list test for default bcradio HAL
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
2024-02-12 13:59:15 -08:00
Weilin Xu
382b44d40e Added seek unit tests for default bcradio HAL
Added unit tests for the seek method in the default AIDL broadcast
radio HAL implementation.

Bug: 316630344
Test: atest DefaultBroadcastRadioHalTestCase
Change-Id: Ia82b420f9c1d86125eaf9672715d5391aa14f3e8
2024-02-08 10:53:39 -08:00
Weilin Xu
b5dd5a7362 Add idenfitier iterator test for bcradio HAL utils
Added unit tests for identifier iterator in AIDL broadcast radio
HAL utils library.

Bug: 310708886
Test: atest broadcastradio_utils_aidl_test
Change-Id: I09ea6b73e50edcc4a503758ea1af75b260f426f1
2024-02-06 10:57:40 -08:00
Treehugger Robot
7bce2972f6 Merge "Add bcradio HAL tests to presubmit" into main 2024-02-03 00:13:39 +00:00
Treehugger Robot
13a6753ea3 Merge "Add step and cancel tests for default bcradio HAL" into main 2024-02-02 23:44:58 +00:00
Weilin Xu
8ec8a37f23 Add bcradio HAL tests to presubmit
Bug: 320556913
Test: m -j
Change-Id: I873e48fedecde88e4eaa7adde1a2a33ac0c8465b
2024-02-02 15:03:43 -08:00
Weilin Xu
ed2d124ec1 Add step and cancel tests for default bcradio HAL
Added unit tests for step and cancel methods in the default AIDL
broadcast radio HAL implementation.

Bug: 316630344
Test: atest DefaultBroadcastRadioHalTestCase
Change-Id: I83b7e9321ebd8bad1eb035d4f23bedce47712511
2024-02-02 14:32:31 -08:00
Treehugger Robot
082411ee97 Merge "Add tests for comparator in AIDL bcradio HAL utils" into main 2024-02-01 19:35:14 +00:00
Weilin Xu
6519fd8ce9 Merge "Add tests for isValid methods bcradio HAL utils" into main 2024-01-23 20:54:02 +00:00
Weilin Xu
ffe00b7fb8 Add tune test for default bcradio HAL
Added unit tests for tune method in the default AIDL broadcast radio
HAL implementation.

Bug: 316630344
Test: atest DefaultBroadcastRadioHalTestCase
Change-Id: I62c6ca088c8797fe6c3e9ea1d1fe76d5d7aa5c23
2024-01-22 16:02:51 -08:00
Weilin Xu
278da2e0d3 Merge "Add tests for tunesTo in AIDL bcradio HAL utils" into main 2024-01-19 22:02:22 +00:00
Weilin Xu
b61ee9eb39 Add tuner callback for default bcradio HAL
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
2024-01-18 17:44:41 -08:00
Weilin Xu
86883f2b54 Add tests for comparator in AIDL bcradio HAL utils
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
2024-01-17 10:45:25 -08:00
Weilin Xu
a8b00cad62 Add tests for isValid methods bcradio HAL utils
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
2024-01-17 10:44:13 -08:00
Weilin Xu
d1b814885f Add tests for tunesTo in AIDL bcradio HAL utils
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
2024-01-17 10:12:17 -08:00
Weilin Xu
7b1e7ce836 Merge "Add test mapping for bcradio HAL" into main 2024-01-17 17:16:09 +00:00
Weilin Xu
92f32b0de8 Add test mapping for bcradio HAL
Bug: 320556913
Test: m -j
Change-Id: I35689fdcc1377040b4e1ae5a046694b9f9d1efb6
2024-01-16 16:23:30 -08:00
Weilin Xu
4a67014830 Merge "Add tests for generic bcradio HAL utils methods" into main 2024-01-16 22:13:45 +00:00
Weilin Xu
ff28474bd5 Merge "Add metadata format check in bcradio VTS" into main 2024-01-16 21:33:06 +00:00
Weilin Xu
f4cfe19efd Add tests for generic bcradio HAL utils methods
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
2024-01-16 13:22:12 -08:00
Weilin Xu
9eb515c286 Merge "Don't mark SAT/DT as failures" into main am: c22a8ddcb5 am: 0e66031666 am: 928ae6caaf
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2907438

Change-Id: I14ad9c88f8717b284491d1410e694c364db5606c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-13 01:30:00 +00:00
Weilin Xu
2f1dd4cda8 Add metadata format check in bcradio VTS
Added metadata format check in AIDL broadcast radio HAL VTS.

Bug: 318868350
Test: atest VtsHalBroadcastradioAidlTargetTest
Change-Id: I47cdb178e76173941682fd8594fe9da13d661a1b
2024-01-12 15:17:14 -08:00
Weilin Xu
67e83a3c06 Add format check utils method for bcradio metadata
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
2024-01-12 15:15:27 -08:00
V,Anilkumar
86f31e76b0 Don't mark SAT/DT as failures
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
2024-01-12 19:31:12 +00:00
Weilin Xu
6633a85732 Add DAB unit test for bcradio utils lib
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
2024-01-10 12:49:25 -08:00
Weilin Xu
aeba4a25d5 Merge "Add unit tests for default bcradio HAL" into main 2024-01-10 18:23:19 +00:00
Weilin Xu
2cd50c3199 Merge "Update metadata doc for AIDL 2 bcradio HAL" into main 2024-01-09 01:45:18 +00:00
Weilin Xu
1ccbbd9262 Update metadata doc for AIDL 2 bcradio HAL
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
2024-01-09 00:59:01 +00:00