Commit graph

23 commits

Author SHA1 Message Date
Tomasz Wasilczyk
701a5bdda5 Widen dummy band range to cover all regions.
Bug: b/64115131
Test: VTS, instrumentation
Change-Id: I34e9aac440a003226200243c835e6116ba7eae90
2017-08-10 16:07:20 -07:00
Tomasz Wasilczyk
dd130660d3 Pass ProgramInfo over currentProgramInfoChanged and drop afSwitch_1_1.
Bug: b/64229617
Test: VTS, instrumentation
Change-Id: Id2d209a31d801f85e197312673eb6b7ee63ada46
2017-08-04 12:14:53 -07:00
Tomasz Wasilczyk
fa3a559d86 Pass vendor-specific info as map.
This solves a problem of identifying, if a given application is talking
to a hardware that can handle format of these strings.

Bug: b/64229617
Test: VTS, instrumentation
Change-Id: If1a5f9900800b8537ef158beefcbaf3c1008c3da
2017-08-03 18:21:47 -07:00
Tomasz Wasilczyk
dd58770c39 Implement missing broadcastradio 1.1 VTS tests.
Bug: b/36864490
Test: VTS
Change-Id: Iff25fdd65624db09e6667d32108e479d5eee6964
2017-08-03 12:59:12 -07:00
Tomasz Wasilczyk
b8a2afe446 Address Broadcast Radio HAL review notes.
Bug: b/64229617
Test: instrumentation, VTS
Change-Id: I4009b33eaea6df585f514711f22dfb7fec5ad379
2017-08-01 14:53:43 -07:00
Tomasz Wasilczyk
efadc19b6b Make virtual radio space generic, not only FM-exclusive.
Bug: b/36864090
Test: VTS, instrumentalization
Change-Id: I2764d09f56a397a1b80914a2634d6bad4b3bd3d2
2017-07-29 11:29:46 -07:00
Tomasz Wasilczyk
5be4c2b6e3 Remove a hack for 1.0/1.1 bitmap compatibility.
Instead, implement it correctly.
This hack was a quick jury-rigging before O MR1 FC.

Bug: b/36864090
Test: VTS
Change-Id: Ia9caff9228518ec573a85437e9070db777057359
2017-07-29 11:29:46 -07:00
Tomasz Wasilczyk
753c1d1ef2 Implement closing default radio implementation by invalidating all future calls.
Also, use the new hidl_vec range constructor.

Bug: b/36864090
Test: VTS
Change-Id: I92a22ab7f263edd39e42abb65bc25b3d3dc33a1e
2017-07-29 11:29:46 -07:00
Tomasz Wasilczyk
6e93c9c8ba Broadcast Radio default implementation: analog forced switch.
Bug: b/36864090
Test: VTS
Change-Id: I2b7bcf2bb3ad7075f39280ab72b32bff5bf166a3
2017-07-28 08:58:08 -07:00
Tomasz Wasilczyk
c1763a6796 Fix remaining broadcastradio 1.1 VTS TODOs.
This includes:
- cover all AM/FM bands, not just first one
- fix flakiness on late callback dereference
- fix 1.0 tuneComplete check
- move utils includes into separate subdirectories

Bug: b/36864490
Test: VTS
Change-Id: I6e2427ac29abd6278c9783cf83b4df05195ac7ea
2017-07-26 14:41:35 -07:00
Tomasz Wasilczyk
ba3e254483 Implement out-of-band metadata images.
This saves a lot of HIDL bandwidth, by not including raw image data in
metadata vector.

Bug: b/63702941
Test: VTS
Change-Id: I73d5218095e4af34c58da8dcfc520abd4cb46c26
2017-07-19 13:38:26 -07:00
Tomasz Wasilczyk
24180098d7 Fill announcement-related gaps in Broadcast Radio APIs.
- adds TA and TP flags to ProgramInfo struct
- adds a callback to cancel announcement

Bug: b/63702941
Test: Instrumentalization, VTS
Change-Id: I03a0781d37429d4a84aab2dce3e5bb7794a20c57
2017-07-17 16:56:02 -07:00
Tomasz Wasilczyk
f8866e79d7 Added programInfoChanged callback.
Also, updated tuneComplete_1_1 and afSwitch_1_1 to match the new behavior
(not passing the whole ProgramInfo struct).

Bug: b/32621193
Test: VTS (none added)
Change-Id: Ic8aee15b05cb982d97e550fc0806f34fbe112e22
2017-07-17 16:56:02 -07:00
Tomasz Wasilczyk
2834b95b12 Move utils lib out from implementation namespace.
RadioService may benefit from it too.

Also, fix subchannel base, as I found a tiny comment about it in the 1.0 HAL.

Bug: b/32621193
Test: instrumentalization
Change-Id: I11939025b72bdeab4cc6393e25159f53164e22ed
2017-07-13 14:14:11 -07:00
Tomasz Wasilczyk
c9ba646a72 Refactor Broadcast Radio 1.1 VTS test.
Also apply some minor fixes and log tweaks to the default implementation.

Bug: b/36864490
Test: VTS
Change-Id: I16558d71c6cdee71854ecae9106b8a1c78032439
2017-07-10 15:32:29 -07:00
Tomasz Wasilczyk
a02b6ef23c Implement ProgramSelector at HIDL layer.
No front-end implementation yet.

Bug: b/32621193
Test: VTS
Change-Id: I48f034e709254836cad35bbeb4285c3c42a9e1cd
2017-07-06 17:45:26 -07:00
Tomasz Wasilczyk
100f2ed58a Add RDS info to virtual stations, convert to ProgramInfo.
Bug: b/36864090
Test: manual, VTS (none added)
Change-Id: Iad54f5abee4c722030ae118cb3c4d8ad64225b34
2017-06-30 09:06:30 -07:00
Tomasz Wasilczyk
4837755ce9 Initial Broadcast Radio HAL 1.1 default implementation.
The new implementation does not rely on legacy HAL, it implements
HAL 1.1 directly instead.

This is not a full implementation yet, but passes all existing tests.

Bug: b/36864090
Test: VTS, instrumentalization, Unit
Change-Id: Ic8eddd19d0bf6777b4086d099183d71e05d7da0e
2017-06-28 14:00:19 -07:00
Tomasz Wasilczyk
6ca90ed3cf Fix getProgramList comment about possible result.
Also change default implementation results for not implemented calls
to be less harsh.

Test: instrumentation
Bug: b/36863239
Change-Id: I7f9adea8aa5b84aec81be13f5614ba16c8b74b75
2017-05-15 15:39:00 -07:00
Tomasz Wasilczyk
c7002820c3 Add analog force mode for analog/digital hybrid modes.
Bug: b/32621193
Test: existing VTS pass, none added.
Change-Id: I240829d9aea553f450a0530aa1cfaa7a317134fd
2017-03-29 14:21:23 -07:00
Tomasz Wasilczyk
803301a2ed Add background scan routines and callbacks to broadcast radio HAL.
Bug: b/34054813
Test: existing VTS pass, none added.
Change-Id: I2009e73a9e5edc4752366fd84f67b5a745856441
2017-03-23 14:59:41 -07:00
Tomasz Wasilczyk
2dd1d8dcfe Add getProgramList call.
Test: existing VTS tests pass, but none added.
Bug: b/34054813
Change-Id: I33891256c0b7ba7edd8ca42074e65900169e2952
2017-03-07 17:40:31 -08:00
Tomasz Wasilczyk
213170b663 Create Broadcast radio HAL 1.1; implement DigitalStatus enum.
Test: VTS
Change-Id: I338c467c4e373cae547f331ba876afa040238376
2017-02-27 13:13:26 -08:00