Commit graph

174 commits

Author SHA1 Message Date
Aditya Choudhary
ad2ba1b851 [DON'T BLOCK] Test ownership migration rules
This CL is created as a best effort to migrate test targets
to the new android ownership model. If you find incorrect or unnecessary
attribution in this CL, please create a separate CL to fix that.

For more details please refer to the link below,
go/new-android-ownership-model

Bug: 304529413
Test: N/A
Change-Id: Ic8c4bd6ac246e7efa98bbdaf822d12ae8e1230a5
2024-02-05 15:45:22 +00:00
Treehugger Robot
48612c25b3 Merge "Merge OWNERS files for tv" into main am: 425d2071c9
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2746939

Change-Id: Ia0335803198967fac9decc06bb832584679d5394
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-11 17:20:20 +00:00
Devin Moore
db191ca6eb Merge OWNERS files for tv
Test: none
Bug: 296950573
Change-Id: If3d849c1c1a4a3c66edbd4c61a4f6ecf09159289
2023-09-08 23:09:37 +00:00
Paul Colta
a93bdd0578 HDMICEC: Out of Bounds Write in sendMessage in HdmiCec.cpp
Bug: 278243594
Test: m && m android.hardware.tv.cec@1.0 && m android.hardware.tv.cec@1.0-service && atest VtsHalTvCecV1_0TargetTest
Change-Id: I2989f66f41172b345e3047218e138358c18b8644
(cherry picked from commit 2371bc8191)
2023-06-01 07:52:40 +00:00
Nathalie Le Clair
99a74b845d Merge "CEC : fix VtsHalTvCecV1_0TargetTest SendMessage test failed." am: c054e7fda9 am: 2c01719f44 am: 1ef37ce895
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2535500

Change-Id: If5df9c663e3cb36b315b82d271a5c0fc63d2d9e0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-21 15:51:08 +00:00
Nathalie Le Clair
9c95ea9b7f Add OWNERS to CEC HIDL HAL directory am: 683a0fc078 am: 0746c1b1bc am: 6ad971501b
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2550510

Change-Id: I6078124d1d67fcc7678c6ec4af5dd8b12af393cf
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-20 17:26:34 +00:00
caijq
d936eb4589 CEC : fix VtsHalTvCecV1_0TargetTest SendMessage test failed.
If CEC DUT is a TV device type,we should reset logical address to tv ,
 and then set message.initiator to tv.

Change-Id: If7f7b9ddce182e5de80c91a30c4ec18294459fbf
Signed-off-by: caijq <callen.cai@rock-chips.com>
2023-04-20 07:46:15 +00:00
Nathalie Le Clair
683a0fc078 Add OWNERS to CEC HIDL HAL directory
Bug: 277715429
Test: none

Change-Id: I3ca74319cc4d1f49a48c9e9f83a0ae402f56b782
2023-04-20 07:45:06 +00:00
Paul Colta
a696f19de8 Handle portId out of bounds index
Bug: 268631136
Test: m && m android.hardware.tv.cec@1.0-impl && m android.hardware.tv.cec@1.0
Change-Id: I454caf56c309aae9667afd0e58da453002458a80
(cherry picked from commit 588b958ce1)
2023-02-23 16:48:47 +00:00
Venkatarama Avadhani
601d29917a Refactor HDMI related AIDL packages
Move CEC, EArc and the old "HDMI" package in to one common hdmi package
as cec, earc and connection.

Test: Build
Bug: 261729059

Change-Id: Ic657713e3a4078125e211bb0d337519a9192aaa1
2023-01-09 16:53:02 +05:30
Michal Olech
3cc2a00799 Add CEC AIDL tests to test mapping (presubmit)
Bug: 250526670
Bug: 250526969
Test: acloud create --local-instance --local-image && cd
hardware/interfaces/tv && atest

Change-Id: I8ecdabc0fcfd1d259153e0fd1fa579aca64d9be4
Merged-In: I8ecdabc0fcfd1d259153e0fd1fa579aca64d9be4
2023-01-09 07:04:42 +00:00
Venkatarama Avadhani
820b548de9 CEC: Add AIDL interface
Split and convert to AIDL the HDMI CEC HAL into two separate HALs -
CEC and HDMI. CEC handles the CEC messages while HDMI handles the
hotplug and physical ports.
Also add the default and VTS for the two HALs.

Bug: 233026642
Test: m android.hardware.tv.cec-update-api
      make
Change-Id: I67c6d7aeea6922f69a1ffa7acb36c811c80afabf
2022-10-11 10:03:02 +05:30
Shraddha Basantwani
65165d5b94 CEC: Add support for multiple ports to default HdmiCec
Bug: 185434120
Test: manual
Change-Id: I4e1a1f2ff7cb4530e8b223169d8efd452412089b
2021-10-19 11:11:50 +05:30
Shraddha Basantwani
9fb5e8232e CEC: Add implementation of SYSTEM_CEC_CONTROL option to default HdmiCec
SYSTEM_CEC_CONTROL is updated when system goes into or comes out of
standby mode.
When set to true, Android system is handling CEC commands.
When set to false, microprocessor is handling CEC commands.

Bug: 185434120
Test: manual
Change-Id: I0fbb13a65639508634c6c163b5eaed1885f9e127
2021-10-18 18:12:37 +05:30
Shraddha Basantwani
dedd40e3e8 CEC: Refactor HdmiCecDefault class
Use class member variables instead of global variables
Remove struct keyword since it is redundant
Replace property_get_int32 usage with libbase API

Bug: 185434120
Test: manual
Change-Id: Ide477efd0f1d65bb684993aff783447adbe43aed
2021-10-18 18:12:36 +05:30
Treehugger Robot
bef23cceeb Merge "Adding OWNERS for CEC HAL" am: 52f4717d0e
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1816196

Change-Id: Icc18218ba1422e956a4ed039939ad1359092e544
2021-09-06 12:13:11 +00:00
Nathalie Le Clair
4fc4870973 Adding OWNERS for CEC HAL
Bug: 185434120
Test: none

Change-Id: Ie475d581a7e703f9f82a7afb9188c9a2c789189b
Merged-In: Ie475d581a7e703f9f82a7afb9188c9a2c789189b
2021-09-01 15:50:00 +00:00
Treehugger Robot
dfcbb902d3 Merge "CEC: Add implementation of WAKEUP option to default HdmiCec" am: 229d55513b am: a5a924db68
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1742234

Change-Id: I1fb7c4a068454680075be7ae7653370637466657
2021-06-30 12:13:13 +00:00
Treehugger Robot
f5bf43772e Merge "CEC: Add implementation of ENABLE_CEC option to default HdmiCec" am: 22135d775e am: 85f9d241c0
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1742233

Change-Id: I5af558a3acb89e47b019335ba17281ab600ba1eb
2021-06-30 12:13:05 +00:00
Treehugger Robot
4007d5df6d Merge changes Iaaec9a0a,I280d1424,Ic8a65044,I019cb5cf,I245d52a7, ... am: dba159dcfd am: 0bbe24d12d
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1730535

Change-Id: Ibe0d554ca146a75db95beb7fef55949317c92ae5
2021-06-30 11:22:15 +00:00
Shraddha Basantwani
05c454f356 CEC: Add implementation of WAKEUP option to default HdmiCec
When WAKEUP is set to false, HAL does not wake up the system
upon receiving <Image View On> or <Text View On> messages.

Bug: 185434120
Test: manual
Change-Id: Iaf98020decc887f04b02da480adc70b76189b66d
2021-06-24 16:30:47 +05:30
Shraddha Basantwani
d591d97536 CEC: Add implementation of ENABLE_CEC option to default HdmiCec
When ENABLE_CEC is set to false, all the CEC commands are discarded

Bug: 185434120
Test: manual
Change-Id: Iaf7e61af0b5047b041818acf2590c3ffce2f3318
2021-06-24 16:30:47 +05:30
Shraddha Basantwani
0c8a05440b CEC: Add event handler to default HdmiCec
Event handler polls the file descriptor for
CEC messages and events

Bug: 185434120
Test: manual
Change-Id: Iaaec9a0a74b264e5ec8625d7fce3d821208fd5ac
2021-06-18 20:26:09 +05:30
Shraddha Basantwani
92fa8e926f CEC: Add implementation of setCallback method to default HdmiCec
Bug: 185434120
Test: manual
Change-Id: I280d142427ae49eca5abce01eded569efdaf8221
2021-06-18 16:12:42 +05:30
Shraddha Basantwani
d50fd04f4c CEC: Add implementation of addLogicalAddress method to default HdmiCec
Bug: 185434120
Test: manual
Change-Id: Ic8a65044434d3b8a4e0aead5ccf9534dab388d9e
2021-06-18 16:12:42 +05:30
Shraddha Basantwani
105b1c3007 CEC: Add implementation of getCecVersion method to default HdmiCec
Bug: 185434120
Test: manual
Change-Id: I019cb5cf68e73331b1468b60cbfb95be7a052522
2021-06-18 16:12:42 +05:30
Shraddha Basantwani
2120790ee6 CEC: Add implementation of isConnected method to default HdmiCec
Bug: 185434120
Test: manual
Change-Id: I245d52a7ef4e57852277fce655bd6383e0461f92
2021-06-18 16:12:42 +05:30
Shraddha Basantwani
697e280bde CEC: Add implementation of getVendorId method to default HdmiCec
Bug: 185434120
Test: manual
Change-Id: Ie6b1f0d2551ca271d492c59be5897f77e18b0698
2021-06-18 16:12:42 +05:30
Shraddha Basantwani
332541054e CEC: Add implementation of getPortInfo method to default HdmiCec
Bug: 185434120
Test: manual
Change-Id: Icb12d161304559b12723900192482173c6280052
2021-06-18 16:12:42 +05:30
Shraddha Basantwani
0dacc5cd5c CEC: Add implementation of clearLogicalAddress method to default HdmiCec
Bug: 185434120
Test: manual
Change-Id: Ia21b415f47bfabe9b429378da2319ab7aa543e26
2021-06-18 16:12:42 +05:30
Shraddha Basantwani
9b1e529ce8 CEC: Add implementation of getPhysicalAddress method to default HdmiCec
Bug: 185434120
Test: manual
Change-Id: I5e52a82a7e5966cfeab95005c1b454c45ce995b6
2021-06-18 16:12:42 +05:30
Shraddha Basantwani
971853be15 CEC: Add implementation of SendMessage method to default HdmiCec
Bug: 185434120
Test: manual
Change-Id: Ic546bc45df5331b381406314f2ba797e607f301e
2021-06-18 16:12:42 +05:30
Shraddha Basantwani
f3a43c8d5e CEC: Initialise the HAL based on default implementation
Bug: 185434120
Test: manual
Change-Id: I4bbe5e799388b0f17c532108dca4c2f037f1ff33
2021-06-18 16:12:42 +05:30
Bob Badour
0f81cab176 [LSC] Add LOCAL_LICENSE_KINDS to hardware/interfaces
Added SPDX-license-identifier-Apache-2.0 to:
  tv/cec/1.0/vts/functional/Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all

Exempt-From-Owner-Approval: janitorial work
Change-Id: I2ddf826c4af294e2b4ee76d2032c1efef90d93f3
2021-03-30 19:03:18 -07:00
Bob Badour
c243ccb718 [LSC] Add LOCAL_LICENSE_KINDS to hardware/interfaces am: e3681c542c
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/14039189

Change-Id: I94a174749ab0890421eef6ed3968d7c395949f7c
2021-03-31 02:03:18 +00:00
Bob Badour
e3681c542c [LSC] Add LOCAL_LICENSE_KINDS to hardware/interfaces
Added SPDX-license-identifier-Apache-2.0 to:
  tv/cec/1.0/vts/functional/Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all

Exempt-From-Owner-Approval: janitorial work
Change-Id: I8441f20cebce71d6ba3c5bcf1e6f4fc6afe27130
2021-03-30 12:40:47 -07:00
Michal Olech
87af3e99ff Merge changes from topic "vts_cec_10" am: 293d67a425 am: 2a8959d969 am: 236a29ea05
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1584904

Change-Id: I6c9c8e07e0e8503951e90e1e7e6604c57b317b40
2021-03-30 12:43:25 +00:00
Shraddha Basantwani
1e75d6f116 CEC: Add methods to get device types am: 3a19b4246f am: 4a74ccc749 am: f38c8a53f2
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1577106

Change-Id: I79a0a3838f37e231de3fec6aa7af442dd7afc913
2021-03-30 12:43:23 +00:00
Shraddha Basantwani
586fe14899 CEC: Add VTS test to check is connected am: b75639ca66 am: de3c301a52 am: ae30530f38
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1584905

Change-Id: Ie578de3bba8ef2069a4441010aa9f0eed1bb56e1
2021-03-30 12:43:22 +00:00
Shraddha Basantwani
d5c68842c9 CEC: Add README for VTS tests am: 5a1c92594c am: d678e1e24a am: ac131439bd
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1584903

Change-Id: I933e20d2ec995a3706d05f2c1e1f551f070956fc
2021-03-30 12:43:21 +00:00
Shraddha Basantwani
35dfeee4cb CEC: Add VTS test to enable audio return channel am: a17d5ae5be am: e7a66a40de am: fa72d25470
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1579867

Change-Id: I9f65c279e14ea20ce787da7ef0cc3a9e85967273
2021-03-30 12:43:20 +00:00
Shraddha Basantwani
70bd68f32b CEC: Add VTS test to get port info am: 0098a8d3d5 am: 5437ca198c am: 372de06d81
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1579866

Change-Id: Ib293fecd9d0c4b57cc521985d50862ae9ef65081
2021-03-30 12:43:18 +00:00
Shraddha Basantwani
53b4ececb7 CEC: Add VTS test to set language am: 3857aae7f1 am: 83c8fc6343 am: 529dae159a
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1577105

Change-Id: I8a419bb5bf67bc81cfe10348fa471895f606131b
2021-03-30 12:43:17 +00:00
Shraddha Basantwani
3550814954 CEC: Add VTS test to set option am: 57af1d4b9a am: c2e83b76b8 am: 7dbed4a1ab
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1577104

Change-Id: I63afe27dd4ad7d493e7d2e0be78f1f3779c7d653
2021-03-30 12:43:16 +00:00
Shraddha Basantwani
3ebc585d59 CEC: Add VTS test to send CEC messages am: 24a9d29a4e am: 7696a5afe5 am: fe8b5b73cb
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1559095

Change-Id: Ic866694f18d72249cfb951aeca59c01ef9122bc2
2021-03-30 12:43:15 +00:00
Shraddha Basantwani
b95e4519c4 CEC: Add VTS test to clear and add logical address am: 0ebb24b4b7 am: 8fec722557 am: 1f444aead3
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1556542

Change-Id: I774391cf6b0d18651aae51e9f9b525cf1b2bd637
2021-03-30 12:43:14 +00:00
Shraddha Basantwani
5b0feb9424 CEC: Add VTS test to get Vendor Id am: b494d6140f am: 8cdd1dc38d am: ae6d450222
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1556541

Change-Id: I699d20360c91970aac65f1c2f194d80592f6ac80
2021-03-30 12:43:12 +00:00
Shraddha Basantwani
9998c6b5b1 CEC: Add VTS test to get CEC version am: d79f658b20 am: 63f7f61577 am: ce5ce9534b
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1556540

Change-Id: I111f4b851df67d8fec9ad53a31eb9828ad7b6151
2021-03-30 12:43:09 +00:00
Michal Olech
02f3e6be8b Merge "CEC: Add VTS test to check is connected (HAL 1.1)" into sc-dev 2021-03-30 09:40:21 +00:00
Shraddha Basantwani
3a19b4246f CEC: Add methods to get device types
Test: atest VtsHalTvCecV1_0TargetTest
Bug: 172316717
Change-Id: I4dd0c73865b9d12d4b0588cd92f4087cc0c556b4
2021-03-22 17:37:02 +05:30