Commit graph

729 commits

Author SHA1 Message Date
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
Shraddha Basantwani
fdbc1dd5cc Tuner : Add missing bug component id for VTS
Bug: 278494089
Bug: 278494335
Test: NA
Change-Id: Icb2a536e32aee26b0a8a01a266b11ebabe3db5ea
2023-04-19 15:53:40 +05:30
Treehugger Robot
ebd7b7afb8 Merge "Add ATSC support in the vts" into android12-tests-dev am: 333df15518 am: 368ca264f2 am: fee45b6dbb
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2471289

Change-Id: If81bfd72c984aed3ff5bdd281995413b4825c747
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-15 01:00:54 +00:00
Treehugger Robot
fee45b6dbb Merge "Add ATSC support in the vts" into android12-tests-dev am: 333df15518 am: 368ca264f2
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2471289

Change-Id: I384cfc0e1dc70275f87e10997a29b14225690105
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-15 00:38:23 +00:00
Treehugger Robot
368ca264f2 Merge "Add ATSC support in the vts" into android12-tests-dev am: 333df15518
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2471289

Change-Id: If47be0aaa310c6e3bbcddeffcc1c2a201654a0f6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-15 00:01:42 +00:00
Treehugger Robot
333df15518 Merge "Add ATSC support in the vts" into android12-tests-dev 2023-03-14 23:24:36 +00:00
Wei
d4dcef21e7 Add ATSC support in the vts
ATSC configuration isn't supported in current config reader.
Add it in this CL.

Bug: 271933206
Test: manual

Change-Id: I7a1f5356c33d6576d6ae6c71fd4af171b5ad30ac
2023-03-14 19:51:22 +00:00
stanley-ct.chen
ce666fc17f Fix google vts dead lock am: 33a593ab59 am: 18738f2a5c am: f7bd18c7c6
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2486875

Change-Id: I5082637054be9a223f638bdeb87ca9f37a54d893
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-14 19:26:33 +00:00
stanley-ct.chen
f7bd18c7c6 Fix google vts dead lock am: 33a593ab59 am: 18738f2a5c
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2486875

Change-Id: I1518cdc4eaa836569ab470edb73ceaa408d8d502
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-14 19:01:31 +00:00
stanley-ct.chen
18738f2a5c Fix google vts dead lock am: 33a593ab59
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2486875

Change-Id: I5b81aa26e0e5823309345e09a2238b09d3fa767c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-14 18:42:08 +00:00
stanley-ct.chen
33a593ab59 Fix google vts dead lock
[Description]
Fix google vts dead lock

Bug: 271400402
Test:
1. AC on/off PASS
2. UHDTV Scan PASS
3. UHDTV Switch PASS

Change-Id: Ic198224309636c83d533a24bb15519e67931b6d1
2023-03-14 11:38:29 +08:00
zijunzhao
7edcd7cd66 Fix the missing std
Bug: b/239662094
Test: enable Wunqualified-std-cast-call locally and run m to build
Change-Id: I79b79a9fdaf8e78a39346190200f67ccf5a66aab
2023-03-10 17:04:09 +00:00
zijunzhao
ab9e5bcdea Fix the missing std
Bug: b/239662094
Test: enable Wunqualified-std-cast-call locally and run m to build
Change-Id: Ifc51be5ee13296e9711c91ffac320d1cc7048ff0
2023-03-03 03:42:02 +00:00
Nathalie Le Clair
5bfad05259 Handle out-of-bound indices
Bug: 267007175
Test: lunch cf_x86_tv-userdebug; make;
atest VtsHalTvHdmiConnectionAidlTargetTest;

Change-Id: I0083953e8eaadea0ac66a9103358c0d4e1427086
Merged-In: I0083953e8eaadea0ac66a9103358c0d4e1427086
2023-02-28 10:58:04 +00:00
Nathalie Le Clair
bb819d396b Clarify which HAL (methods) apply to which devices
Bug: 265906860
Test: make
Change-Id: Icc8df58d4a806d71fc2c073a67bedfd9dd9d3f60
Merged-In: Icc8df58d4a806d71fc2c073a67bedfd9dd9d3f60
2023-02-23 17:45:06 +01:00
Nathalie Le Clair
a4bf33775c Update HAL interface
Based on the Android Native API Council's review.

Bug: 268601655
Test: make
Change-Id: I84e828ed08d6ad5dd30dd33541b0c91324b5f8fb
Merged-In: I84e828ed08d6ad5dd30dd33541b0c91324b5f8fb
2023-02-23 17:44:35 +01:00
Nathalie Le Clair
3944d07e40 Add portId to HPD-related methods
Test: lunch cf_x86_tv-userdebug; make;
atest VtsHalTvHdmiConnectionAidlTargetTest;
Bug: 266178786

Change-Id: I58aff832606156bd529f2640541cad530953bd67
Merged-In: I58aff832606156bd529f2640541cad530953bd67
2023-02-23 17:44:07 +01:00
Nathalie Le Clair
3d593db9df Unify OWNERS file
So that the same group also has OWNERS for the hdmi/ folder itself.

Test: make
Bug: 265906860
Change-Id: I2d6f4f6e0a86de80138598662c0b490667aa6239
2023-02-15 15:03:14 +01:00
Treehugger Robot
f4957e5586 Merge "Remove VTS that were moved to new directory" 2023-01-24 22:29:05 +00:00
Nathalie Le Clair
3c85daf45b Remove VTS that were moved to new directory
These tests can now be found in the hdmi/connection directory, instead of the hdmi/directory.

Test: none
Bug:233026642

Change-Id: I60a8086e543d8a4714dda54456fd6e2dfb2a6069
2023-01-24 14:19:52 +00:00
Nathalie Le Clair
4e24d7a342 Specify that only output ports need to be positive.
Test: presubmit
Bug: 265117347

Change-Id: Ibac61ae11368baa62438c5b04549c5ea9e2b1c9f
2023-01-24 10:57:19 +00:00
Sham Rathod
8a68cbc4d0 EARC: Make reportCapabilities param a reference
Test: atest VtsHalTvEArcAidlTargetTest

Bug: 240388105
Change-Id: Id367550589ff22b6fbda796406f712a7d195d70c
2023-01-12 09:35:57 +05:30
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
90373fe4d6 EARC: Add eARC AIDL files
AIDL files for eARC HAL.

Test: m android.hardware.tv.earc-update-api
      atest VtsHalTvEArcAidlTargetTest
Bug: 240388105
Change-Id: Id2a337b928e64e022d97b4339bf7788cc80ea653
2022-12-27 17:57:32 +05:30
Venkatarama Avadhani
04ee1a4f68 HDMI: Add Hotplug Detection Signal support
The HPD (Hotplug Detection) signal indicates the type of signal that the
HAL should use.

Bug: 258394639
Test: atest VtsHalTvHdmiAidlTargetTest
Change-Id: Ic391064d10636aca3c8e5c256c41d40144fbfe9c
2022-12-27 17:57:31 +05:30
Venkatarama Avadhani
3d35efca19 HDMI: Add new field eArcSupported
Add a new field called eArcSupported to the port info structure to
determine if the port supports eARC.

Bug: 255901009
Test: make
Change-Id: Iff97479010a097018efcd5070c232a69aa1e1c77
2022-11-02 10:16:28 +05:30
Henry Fang
d8a70b00c6 Merge "Fix tunerhal vts feId uninitialized on getFrontendIdByType" into android11-tests-dev am: 40087f64c5
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2235855

Change-Id: I5984bcb9f4ba77cdd3deba87beaea43aaedd3a72
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-25 17:05:55 +00:00
Henry Fang
40087f64c5 Merge "Fix tunerhal vts feId uninitialized on getFrontendIdByType" into android11-tests-dev 2022-10-25 16:47:05 +00:00
cmlin0118
5b9ba198ec Fix tunerhal vts feId uninitialized on getFrontendIdByType
Problem: FeId uninitialized on getFrontendIdByType
Solution: Initializ feId
Test: run vts -m VtsHalTvTunerV1_0TargetTest
Bug: 248472007
Change-Id: I373c49cf0a105869743be7f2c0737b4f5b30ae26
2022-10-14 14:52:26 +08: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
Treehugger Robot
81022732af Merge "tunerhal:set default frontend to DVBS [1/1]" into android11-tests-dev 2022-09-28 01:54:02 +00:00
junchao yuan
ab5c449227 tunerhal:set default frontend to DVBS [1/1]
bug:239667706

Problem:
test tunerhal vts fail with DVBS;

Solution:
set defualt frontend to DVBS;

Verify:
s905X4/ohm

Change-Id: I79386738783309b917ec5cff89c48b2bdc99bd7c
2022-09-23 01:49:46 +00:00
Yixiao Luo
7c22a89d1d Add OWNERS file to TV Input HAL
Bug: 227673740
Test: N/A
Change-Id: I35db194e2597cdd17ecb7b15c5591fb1009e1be8
2022-08-17 18:46:14 -07:00
Gregory Montoir
9fc37c0d3c Merge "Fix VTS PlaybackDataFlowWithTsVideoFilterTest sometimes failed." into android12-tests-dev am: 14ecb1c6a1
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2141155

Change-Id: I1e3a07087b606a28c98bd4f61f84d74d99d40931
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-04 07:45:50 +00:00
mike liao
a230f3af3d Fix VTS PlaybackDataFlowWithTsVideoFilterTest sometimes failed.
[Description]
If filter is started after playback thread, sometimes
filter cannot get data correctly because of timing issue.

Start playback thread after filter is started
so that filter will always get data correctly.

Bug: 235185563
Test:
1. Testcase pass

Change-Id: I97c38dab1ff81c31b4bb48c8015b626b3a6325ed
2022-06-30 16:17:04 +08:00
Treehugger Robot
88b7c10cd8 [conflict] Merge "vts: fix some tunerhal vts fail without frontend device" into android11-tests-dev am: 6807799ad9
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2003730

Change-Id: I5993b88b7d0831c9b95adfc50ebe501215f40498
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-22 00:03:16 +00:00
Silver Chen
fbbb209b63 Fix VTS PlaybackDataFlowWithTsVideoFilterTest sometimes failed.
[Description]
If filter is started after playback thread, sometimes
filter cannot get data correctly because of timing issue.

Start playback thread after filter is started
so that filter will always get data correctly.

Bug: 235185563
Test:
1. Testcase pass

Change-Id: I97c38dab1ff81c31b4bb48c8015b626b3a6325ed
(cherry picked from commit 8ab7fd8b21)
2022-06-20 01:13:57 +00:00
Jiyong Park
70f5837e1f Freeze AIDL APIs for TM
Bug: 225941299
Test: m
Change-Id: I61eb51c0334eb99489c6f1570110d7e18c350c99
2022-04-16 07:03:24 +09:00
Gareth Fenn
9a8084505e Fix support for platforms without Frontends
Fix: 227741234
Test: atest VtsHalTvTunerTargetTest
Change-Id: Ic3d74be776bbdb377541ea24fb890152ad632508
2022-04-04 13:57:09 -07:00
Jiyong Park
703e97920e Freeze AIDL APIs for TM
Bug: 225941299
Test: m
Change-Id: Ie41cc0797710f813f92c65c387f247c7806d8394
2022-03-31 12:01:39 +09:00
Suren Baghdasaryan
dd1221d2d4 Replace writepid with task_profiles command for cgroup migration
writepid command usage to join a cgroup has been deprecated in favor
of a more flexible approach using task_profiles. This way cgroup path
is not hardcoded and cgroup changes can be easily made. Replace
writepid with task_profiles command to migrate between cgroups.

Bug: 191283136
Test: build and boot
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: Icbf3e66e61e7ebb570ac3aba5f1cf9e10ef6720d
Merged-In: Icbf3e66e61e7ebb570ac3aba5f1cf9e10ef6720d
2022-03-25 00:22:33 +00:00
junchao yuan
4a9941d7a6 vts: fix some tunerhal vts fail without frontend device
PD#OTT-27646
bug:222020221

Problem:
some tunerhal vts fail without frontend device

Solution:
fix some logic errors without frontend device

verify:
ohm

Change-Id: I611a81400eb21bb52d59281f2266f3a95e015de9
Signed-off-by: junchao yuan <junchao.yuan@amlogic.com>
2022-03-01 16:32:59 +08:00
Treehugger Robot
2d5a397487 Merge "Declare license metadata for copied files." am: 243be18aa1 am: bfede49097 am: 553bedcd1e
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1984822

Change-Id: Ie6eeedaf0e84c44ddcdc0b2c0f83819013712251
2022-02-15 09:29:38 +00:00
Bob Badour
c00f8ad8f0 Declare license metadata for copied files.
Bug: 151177513

Test: m all dist reportmissinglicenses
Change-Id: I9efbffb3f38dc700f4a569d74baada37e491bc25
2022-02-13 15:46:33 -08:00
Hongguang
e8f2f7ccf9 Clarify getHardwareInfo() beavhior
Bug: 184017033
Bug: 218911006
Fix: 218911006
Test: make
Change-Id: Ica02177f4804fcb9b71062912f6c44836a7044f5
2022-02-11 02:18:54 +00:00
Steven Moreland
78d4b31c48 Merge "-= src_available (internal)" 2022-01-31 21:30:48 +00:00
Steven Moreland
22c5b64894 -= src_available (internal)
Default now. To Remove.

Bug: 215754978
Test: N/A
Change-Id: Ie83df828ea2ec892c6586ffa32e9f6c42d83a2fe
2022-01-31 19:52:35 +00:00
Hongguang
c8438c0702 Send a unlocked message for test coverage
Bug: 215435869
Test: atest VtsHalTvTunerTargetTest
Test: atest android.media.tv.tuner.cts
Change-Id: I8e63eac1e96ab9a638f3aa04dc0bfd39cbdd52fa
2022-01-29 05:15:26 +00:00