Commit graph

585 commits

Author SHA1 Message Date
ming.lo
3d49487541 Add blindScan condition to blindScan test
Bug: 203389496

Change-Id: If44df620ab90b5b0247fbee15e2b2a57e27683b5
Merged-In: If44df620ab90b5b0247fbee15e2b2a57e27683b5
2021-11-16 18:56:18 +00:00
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
229d55513b Merge "CEC: Add implementation of WAKEUP option to default HdmiCec" 2021-06-30 11:52:03 +00:00
Treehugger Robot
22135d775e Merge "CEC: Add implementation of ENABLE_CEC option to default HdmiCec" 2021-06-30 11:41:43 +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
Treehugger Robot
dba159dcfd Merge changes Iaaec9a0a,I280d1424,Ic8a65044,I019cb5cf,I245d52a7, ...
* changes:
  CEC: Add event handler to default HdmiCec
  CEC: Add implementation of setCallback method to default HdmiCec
  CEC: Add implementation of addLogicalAddress method to default HdmiCec
  CEC: Add implementation of getCecVersion method to default HdmiCec
  CEC: Add implementation of isConnected method to default HdmiCec
  CEC: Add implementation of getVendorId method to default HdmiCec
  CEC: Add implementation of getPortInfo method to default HdmiCec
  CEC: Add implementation of clearLogicalAddress method to default HdmiCec
  CEC: Add implementation of getPhysicalAddress method to default HdmiCec
  CEC: Add implementation of SendMessage method to default HdmiCec
  CEC: Initialise the HAL based on default implementation
2021-06-30 10:53:02 +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
Treehugger Robot
555c368ddb Merge "Replace writepid with task_profiles command for cgroup migration" am: a43f14bdac am: 7151796908
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1740279

Change-Id: I8c9ebb5de59a2b8a87c8045cfc8c64b71eac0f10
2021-06-23 23:09:57 +00:00
Suren Baghdasaryan
dd50b2f45d 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: I249ecc45a001a69d73b06b77154f9b6e5f9964d9
2021-06-23 18:43:27 +00:00
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
Hongguang Chen
8fc14a8d99 Remove some TODOs from tuner HAL and its VTS.
1) The tuner cases should be always allowed on devices w/o tuner.
  -- VTS is common for all devices, we must allow the tuner cases to
     pass/skip on non TV devices.
  -- The tuner HAL is also optional on TV devices, like OTT, the tuner
     VTS cases should be skipped on those devices too.
2) Filter type has been checked in Demux::attachRecordFilter().

Bug: 188709323
Test: make vts
Change-Id: Ifd1cb805d7f5d552a4aa7365ba78ff87b8a3ccc1
2021-06-07 16:52:09 +00:00
TreeHugger Robot
2f01c57494 Merge "Add timeout configure item and set it as 30m" into sc-dev 2021-05-14 19:34:42 +00:00
Gareth Fenn
b9722f1236 Add additional DVBT settings example usage to sample_tuner_vts_config.xml
Test: atest VtsHalTvTunerV1_0TargetTest

Change-Id: Id027b74267e97822f76607545bf23174a623e74e
Merged-In: I58bd8b941f6340d9e69153702b5269cc35c646da
2021-05-14 18:23:21 +00:00
Henry Fang
2eaf17e767 Add timeout configure item and set it as 30m
bug: 182519645
Test: atest VtsHalTvTunerV1_0TargetTest
Change-Id: I82c4617ae4c9c3109b972b22984ca6db706c1e5d
2021-05-14 10:53:57 -07:00
Gareth Fenn
8fa4cff4ce Add additional DVBT settings to TunerTestingConfig
Test: atest VtsHalTvTunerV1_0TargetTest

Change-Id: I486ccad855662e6b9fa7cd1be3eb3949356d6a1f
Merged-In: I58bd8b941f6340d9e69153702b5269cc35c646da
2021-05-14 16:34:36 +00:00
Henry Fang
0d591fd0a4 Add more configure items for DVBT
bug: 182519645

Test: atest VtsHalTvTunerV1_0TargetTest
Change-Id: I58bd8b941f6340d9e69153702b5269cc35c646da
2021-05-14 01:50:18 +00:00
Henry Fang
dfb386f9f3 Fix bug for none fe test case
Test: atest VtsHalTvTunerV1_0TargetTest

bug: 182519645
Change-Id: I5deca5fe7f4f023cbadaf54f894657c1c6efe38a
Merged-In: I86458142ba4155274594a793eb939567bea24734
2021-05-10 16:09:40 +00:00
Henry Fang
3e1a1d32f5 Fix bug for none fe test case
bug: 182519645
Test: atest VtsHalTvTunerV1_0TargetTest
Change-Id: I86458142ba4155274594a793eb939567bea24734
2021-05-04 13:54:47 -07:00
Amy Zhang
63f4175b6e Allow users to switch between FE source and DVR source when testing
record/descrambling/broadcast

Test: atest VtsHalTvTunerV1_0TargetTest
Test: atest VtsHalTvTunerV1_1TargetTest
Bug: 182519645
CTS-Coverage-Bug: 184077478
Change-Id: I6c57657ac3539d6a6fb3f63d2ecc9af7f6b9e2dc
Merged-In: I6c57657ac3539d6a6fb3f63d2ecc9af7f6b9e2dc
2021-04-28 20:25:36 -07:00
Amy Zhang
160a72c9e2 Allow users to switch between FE source and DVR source when testing
record/descrambling/broadcast

Test: atest VtsHalTvTunerV1_0TargetTest
Test: atest VtsHalTvTunerV1_1TargetTest
Bug: 182519645
CTS-Coverage-Bug: 184077478
Change-Id: I6c57657ac3539d6a6fb3f63d2ecc9af7f6b9e2dc
2021-04-26 21:51:17 -07:00
Amy Zhang
f36edfcef4 Add descrambler dynamic configuration into Tuner 1.0 VTS
Test: atest VtsHalTvTunerV1_0TargetTest
Bug: 182519645
CTS-Coverage-Bug: 184077478
Change-Id: I2ab16fa9645dba07f8969e3cd7a26cf3b9bcb527
Merged-In: I2ab16fa9645dba07f8969e3cd7a26cf3b9bcb527
2021-04-12 17:37:19 -07:00
Amy Zhang
78e3dadf53 Add lnb/timeFilter dynamic configuration into Tuner 1.0 VTS
Test: atest VtsHalTvTunerV1_0TargetTest
Bug: 182519645
CTS-Coverage-Bug: 184077478
Change-Id: I75d7fb53054120c6ef5ce36a0bea1e4e334183c7
Merged-In: I75d7fb53054120c6ef5ce36a0bea1e4e334183c7
2021-04-12 17:36:24 -07:00
Amy Zhang
1d603678ae Add filter dynamic configuration into Tuner 1.0 VTS
Test: atest VtsHalTvTunerV1_0TargetTest
Bug: 182519645
CTS-Coverage-Bug: 184077478
Change-Id: I26da0561b79ae741d1516bedda8c273fa0ed933b
Merged-In: I26da0561b79ae741d1516bedda8c273fa0ed933b
2021-04-12 17:35:31 -07:00
Amy Zhang
06fa69e246 Extend 1.0 dynamic config reader to read 1.1 Tuner HAL types
Test: atest VtsHalTvTunerV1_1TargetTest
Test: atest VtsHalTvTunerV1_0TargetTest
Bug: 182519645
CTS-Coverage-Bug: 184077478
Change-Id: I0438fff48a6a763b88ed20e34d8ace66a6211302
2021-04-09 19:35:22 -07:00
Amy Zhang
131d5309c5 Add dvr dynamic configuration into Tuner 1.0 VTS
Test: atest VtsHalTvTunerV1_0TargetTest
Bug: 182519645
CTS-Coverage-Bug: 184077478

Change-Id: I04ef708064179e62c0c7b8c790fe844543b3eac8
Merged-In: I04ef708064179e62c0c7b8c790fe844543b3eac8
2021-04-09 15:33:48 -07:00
Amy Zhang
c178991ae1 Refactor Tuner 1.0 vts to use dynamic configuration
This CL starts the refatoring of Tuner 1.0 vts configuration file
to replace the previous manual config with the current dynamic config
using xml/xsd.

Note that this CL only connects the frontend setting section with
the dynamic config. The CLs to connect other hardware configs will come as
child CLs.

This CL also has some default implementation/vts test impl changes to
sync the sc-dev vts 1.0 with the aosp.

Child CL will also replace the 1.1 manual config with the dynamic
config.

Test: atest VtsHalTvTunerV1_0TargetTest
Bug: 182519645
CTS-Coverage-Bug: 184077478
Change-Id: I13e6ea3d91e474c10e4f822a6ce59d99cc7c7d1d
Merged-In: I13e6ea3d91e474c10e4f822a6ce59d99cc7c7d1d
2021-04-09 15:33:37 -07:00
Amy Zhang
32b6f9eaf0 Add descrambler dynamic configuration into Tuner 1.0 VTS
Test: atest VtsHalTvTunerV1_0TargetTest
Bug: 182519645
CTS-Coverage-Bug: 184077478
Change-Id: I2ab16fa9645dba07f8969e3cd7a26cf3b9bcb527
2021-04-08 11:51:20 -07:00
Amy Zhang
c0e9a11256 Add lnb/timeFilter dynamic configuration into Tuner 1.0 VTS
Test: atest VtsHalTvTunerV1_0TargetTest
Bug: 182519645
CTS-Coverage-Bug: 184077478
Change-Id: I75d7fb53054120c6ef5ce36a0bea1e4e334183c7
2021-04-08 11:51:07 -07:00
Amy Zhang
2ea2fe2e5b Add filter dynamic configuration into Tuner 1.0 VTS
Test: atest VtsHalTvTunerV1_0TargetTest
Bug: 182519645
CTS-Coverage-Bug: 184077478
Change-Id: I26da0561b79ae741d1516bedda8c273fa0ed933b
2021-04-08 11:50:07 -07:00
Amy Zhang
e50f08d05f Add dvr dynamic configuration into Tuner 1.0 VTS
Test: atest VtsHalTvTunerV1_0TargetTest
Bug: 182519645
CTS-Coverage-Bug: 184077478

Change-Id: I04ef708064179e62c0c7b8c790fe844543b3eac8
2021-04-06 22:29:49 +00:00
Amy Zhang
2de5d78cf0 Merge "Refactor Tuner 1.0 vts to use dynamic configuration" into sc-dev 2021-04-06 17:24:50 +00:00
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