Commit graph

122 commits

Author SHA1 Message Date
Amy Zhang
68afca6d7c Add the PTS field for recording-time indexing in the DemuxFilterEvent
Test: atest VtsHalTvTunerV1_1TargetTest
Bug: 158816517
Change-Id: Ib29fd0f55aaae2fb44b77f754cceb5152fc7158d
2020-07-24 10:42:43 -07:00
Amy Zhang
05eaa97502 Add Tuner HAL and TvInput HAL VTS tests into the exception list of the uninstantiated am: f122309667 am: 917757a92e am: 9d989309c1
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/12203374

Change-Id: I73d0ef4c0c1d6cdf1f7e24c1082146b0a733b6da
2020-07-22 00:20:40 +00:00
Amy Zhang
f122309667 Add Tuner HAL and TvInput HAL VTS tests into the exception list of the uninstantiated
parameterized tests.

This test can be disabled on the phone target once there is
a cuttlefish tv target enabled to run the test continuously.

The test will be removed from the exception list afterwards.

Test: make VtsHalTvTunerV1_0TargetTest
Bug: 161805444
Change-Id: I7a2ad0e8a43c6262628354be316c530ab00ac520
2020-07-21 21:51:40 +00:00
TreeHugger Robot
b1ca9e45c6 Merge "Tuner HAL: fix a memcpy issue" 2020-07-21 03:28:39 +00:00
shubang
3e2de6cc22 Tuner HAL: fix a memcpy issue
Bug: 161481210
Test: cuttlefisih + TIS
Change-Id: I79274970ddd8ed8b7b97f56ca4200499fdee1b38
2020-07-20 19:26:36 -07:00
Amy Zhang
6d774c89a1 Fix bugs in the Tuner HAL 1.0 VTS
The previous implementation did not check some of the
Descrambler API test results to stop the test.
And the test itself was also implemented in a wrong way.

Test: atest VtsHalTvTunerV1_0TargetTest
Bug: 150987138
Change-Id: Ie26db0ec1b231062d0314631eebec319382da1bc
2020-07-16 12:41:32 -07:00
Jooyung Han
d18cba85fe update hidl .bp
HIDL libs are not necessarily part of VNDK now. Because some are
used by VNDK libs, they are still VNDK. But rest are now just
vendor-available.

.hidl_for_test files are also removed because they are used to exclude
test-purpose hidl libs from VNDK libs.

Instead, .hidl_for_system_ext files are added to tests/lazy to
distinguish them from others which are installed /system.

Bug: 143933769
Test: update-makefiles.sh && m com.android.vndk.current
Merged-In: Ia81312dda340b6b5cbdd7a3c21e1d323bda39a4a
Change-Id: Ia81312dda340b6b5cbdd7a3c21e1d323bda39a4a
(cherry picked from commit b0907a6bb8)
2020-07-02 12:26:37 +09:00
Jooyung Han
b0907a6bb8 update hidl .bp
HIDL libs are not necessarily part of VNDK now. Because some are
used by VNDK libs, they are still VNDK. But rest are now just
vendor-available.

.hidl_for_test files are also removed because they are used to exclude
test-purpose hidl libs from VNDK libs.

Instead, .hidl_for_system_ext files are added to tests/lazy to
distinguish them from others which are installed /system.

Bug: 143933769
Test: update-makefiles.sh && m com.android.vndk.current
Change-Id: Ia81312dda340b6b5cbdd7a3c21e1d323bda39a4a
2020-07-02 09:18:17 +09:00
Amy Zhang
85a9ab32d7 Implement ES data process in Tuner default impl to support Sample TIS
This CL also provides a new VTS case to test ES input stream.
Please see the test.es https://drive.google.com/file/d/13ZDT9uhEO1LXDT2GcOhB91iIK6m_KEER/view?usp=sharing

ES Format(all the numbers are in decimal):
1. First line is a general meta data to describe the whole file

m:meta data size in bytes, l:ES frame line count X, V:video raw data size
int bytes, A:audio raw data size in bytes, pv:video pid, pa:audio pid

2. The following X lines(equals to the ES frame line count) are the size/pts information
of the video or audio ES frames. Starting with v means video, a means
audio. They are printed in the same order as how they presented in the
original ts.

v, Len:current ES frame size in bytes, PTS: current ES frame PTS

3. After the X lines of ES frame descriptions, there are the video ES raw
data connected with the audio ES raw data.

Test: atest VtsHalTvTunerV1_0TargetTest
Bug: 159027928
Change-Id: I56bd799fd6eda867df54d593235510a5e4758257
2020-06-23 17:53:51 +00:00
Amy Zhang
1fb7d06712 Merge "Enable frontend input loop when FrontendTune happens before Demux is configured." into rvc-dev 2020-06-12 23:16:38 +00:00
Amy Zhang
e0422236e2 Enable frontend input loop when FrontendTune happens before Demux is
configured.

Test: atest VtsHalTvTunerV1_0TargetTest
Bug: 153366959
Change-Id: I6fa98e367a7530e308ea2a74e7efeb6ed4d3a56b
2020-06-12 13:05:24 -07:00
TreeHugger Robot
abd049609d Merge "Move testing ts on Cuttlefish under /data/ directory" into rvc-dev 2020-06-12 19:51:48 +00:00
Amy Zhang
6bda6397cc Move testing ts on Cuttlefish under /data/ directory
/data directory is a proper place for test pusher to adb push the ts
during run time. It saves image size comparing to bundle the ts during
compiling.

Files under the /data directory could only be passed around by fd
instead of directly opening. This CL also changes the way the DVR VTS
reads the ts.

Also for virtual frontend, to read the shell data file, we need the
DVR playback to input the data when testing frontend.
This CL also changes the way default implementation reads the data -
from the dvr playback fmq.

Test: atest VtsHalTvTunerV1_0TargetTest
Bug: 153366959
Change-Id: I72a98e4c4c0328206da106fb1c3459745c1644b7
2020-06-11 19:29:19 -07:00
Amy Zhang
7e4859ce4a Add TimeFilter test in Tuner VTS
Test: VtsHalTvTunerV1_0TargetTest
Bug: 150953857
Change-Id: I5509f4d368a44a7cb9bbe1b2499a4b4760b510b6
2020-06-10 14:28:53 -07:00
Amy Zhang
71a50c311d Add getLnbByName Test in Tuner VTS
Test: atest VtsHalTvTunerV1_0TargetTest
Bug: 157955950
Change-Id: I69f5c37a63543ebde2b85f57d1301b4498183627
2020-06-05 14:43:21 -07:00
Amy Zhang
cda23ea38e Add Broadcast and Record tests for Frontend with Lnb
Test: VtsHalTvTunerV1_0TargetTest
Bug: 157955950
Change-Id: I71d33b9d481e44879867094a519d7a6c444bc10a
2020-06-05 14:43:06 -07:00
Amy Zhang
e5a9da2e17 Add ILnb VTS tests
Test: atest VtsHalTvTunerV1_0TargetTest
Bug: 157955950
Change-Id: Icc2fca6f65e48a05c916a9629913cc7b18a8fd80
2020-06-05 14:39:24 -07:00
Amy Zhang
f4c09fbbd0 Add filter linkage test to the Tuner VTS
Test: atest VtsHalTvTunerV1_0TargetTest
Bug: 150953857
Change-Id: Ic98cf1655551623fdc4e4f7e6784faf814adfda5
2020-06-04 18:48:50 -07:00
Amy Zhang
b035b6a80f Merge "Add DescramberTests in Tuner VTS" into rvc-dev 2020-05-30 00:57:29 +00:00
Amy Zhang
fd7c644470 Add DescramberTests in Tuner VTS
Note that this test also includes MediaCasService openSession test
to pass the session id as the key token to the IDescrambler

Test: atest VtsHalTvTunerV1_0TargetTest
Bug: 150987138
Change-Id: Iacd4ad5fcd957a6e3bb4a5730337ecaa3adc0aa2
2020-05-29 16:35:18 -07:00
Amy Zhang
b727291a67 Merge "Add IDemux getSyncHwId/getAcSyncTime tests in Tuner VTS" into rvc-dev 2020-05-20 00:07:51 +00:00
Amy Zhang
b717eb547e Add IDemux getSyncHwId/getAcSyncTime tests in Tuner VTS
Test: atest VtsHalTvTunerV1_0TargetTest
Bug: 150953857
Change-Id: I6e19de3666e9a0edc9db12f002db3ce45c940a2f
2020-05-18 19:27:10 -07:00
Amy Zhang
7bfe997e13 Add IFrontend.getStatus VTS test
Test: atest VtsHalTvTunerV1_0TargetTest
Bug: 150953857
Change-Id: I4979ae41f102dfd1a836c1d3a67bf3b932891e23
2020-05-15 15:00:00 -07:00
shubang
6ab3f08328 Add more FrontendStatus for CTS
Bug: 155342902
Test: atest android.media.tv.tuner.cts.TunerTest
Change-Id: I90e08eea2470d223f54179a8fa13eef69e2f5230
2020-05-01 17:32:40 -07:00
TreeHugger Robot
11c711a434 Merge "Update FrontendInfo for CTS" into rvc-dev 2020-05-02 00:27:09 +00:00
shubang
f809faed3c Update FrontendInfo for CTS
Bug: 155342902
Test: atest android.media.tv.tuner.cts.TunerFrontendTest
Change-Id: Iacc0eb09499a14cbbb6cc605c91fa404361a073c
2020-04-29 18:16:39 -07:00
Amy Zhang
6e8163a241 Fix issues in Tuner VTS Dvr testing
This CL fixes the following issues:
1. Modified some unnecessary or not proper debug msg in the VTS/Default
impl
2. Some incorrect VTS testing order
3. Added a flush test on Dvr status
4. Used a ts from Android aosp cts for testing
5. Changed the configuration to run with the new ts on cf
6. Fixed some deadlock and logic issues in the VTS/Default
implementation

Test: atest VtsHalTvTunerV1_0TargetTest
Bug: 150989084
Bug: 153366959
Bug: 153367094
Change-Id: If7eb8534caff4fc11ac4e166ef5391e8f543408d
2020-04-28 19:06:09 -07:00
Amy Zhang
a305c1c58c Refactoring the Dvr data flow tests in the Tuner VTS
Test: atest VtsHalTvTunerV1_0TargetTest
Bug: 150989084
Change-Id: I496dccd9dddcf6043c05faee6fbe1f0418586bc4
2020-04-28 15:00:38 -07:00
Amy Zhang
d8040b86f7 Merge "Make dvr tests a separate module" into rvc-dev 2020-04-25 00:48:21 +00:00
shubang
fd882510f3 Add Lnbs for CTS
Bug: 150952758
Test: atest android.media.tv.tuner.cts.TunerTest
Change-Id: I0e1954ceaa93c110dabc669759675834f30b9524
2020-04-22 14:59:03 -07:00
Amy Zhang
0fe25be005 Make dvr tests a separate module
Test: atest VtsHalTvTunerV1_0TargetTest
Bug: 150989084
Change-Id: I35d717f357b176d5cbec5d154f4df30fd2c4a18e
2020-04-21 01:16:57 -07:00
shubang
a990ecee79 Call scan callback for ATSC
It's a temp solution for CTS.

Bug: 150952758
Test: atest android.media.tv.tuner.cts.TunerTest
Change-Id: I31242910af39108dca5920bd0892fa16aa6d29be
2020-04-17 18:29:27 -07:00
TreeHugger Robot
32e9b63608 Merge "Return SUCCESS in scan for ATSC" into rvc-dev 2020-04-16 23:15:06 +00:00
Dan Shi
fdbc494c69 Remove references of VtsHalHidlTargetTestBase
Bug: 147894326
Test: build
Change-Id: If847cc3aa5bb17682b92266f5460efe9d3fadfab
2020-04-13 23:15:50 -07:00
Amy Zhang
4f6980571a Separate Demux and Filter fixture classes from the Tuner HAL VTS target
test

Test: atest VtsHalTvTunerV1_0TargetTest
Bug: 150953857
Change-Id: I373c3ba56ab80e02c79d24f865a956dae4b44226
2020-04-13 15:23:58 -07:00
Amy Zhang
b3fb40bd05 Make VtsHalTvTunerV1_0FrontendTest an independent test.
Note that this refactoring extracts two header files for
VtsHalTvTunerV1_0FrontendTest and VtsHalTvTunerV1_0TargetTest.

Test: atest VtsHalTvTunerV1_0FrontendTest/VtsHalTvTunerV1_0TargetTest
Bug: 150953857

Change-Id: Ie5f0dc4a9180ecc779004cb451a45ae54a6ea47c
2020-04-13 15:19:56 -07:00
shubang
71d6059bba Return SUCCESS in scan for ATSC
This is for a CTS test case

Bug: 150952758
Test: atest android.media.tv.tuner.cts.TunerTest
Change-Id: I8761fec6af392e4f2d18bc38760effcae2aec273
2020-04-10 18:13:25 -07:00
shubang
b0c1bbb354 Add frontend caps for CTS
Bug: 150952758
Test: atest android.media.tv.tuner.cts.TunerTest
Change-Id: I5bf1fbf24ef6375b08554617bcd05792e7e9e521
2020-04-09 16:57:54 -07:00
Amy Zhang
91d504821e Merge "Enhance and refactoring the Tuner VTS on searching frontend by type test" into rvc-dev 2020-04-09 22:51:05 +00:00
Amy Zhang
050bf78644 Enhance and refactoring the Tuner VTS on searching frontend by type test
Test: atest VtsHalTvTunerV1_0TargetTest on cf and vendor device
Bug: 150953857
Change-Id: I9c90e34c6b336d20f5456e7f676ced699f166d54
2020-04-09 11:01:04 -07:00
TreeHugger Robot
8bc18c0ed5 Merge "Add SECTION/TS/AUDIO/VIDEO Tuner vts Broadcast tests" into rvc-dev 2020-04-09 03:28:56 +00:00
Dan Shi
aad51fa000 Rename vts-core to vts
Bug: 151896491
Test: local build
Exempt-From-Owner-Approval: This CL update suite name vts-core to vts as
the suite name is updated. This CL won't change test logic or behavior.

Change-Id: I562b4dc50765e953800a814a8fd84a01c1b9352b
Merged-In: I562b4dc50765e953800a814a8fd84a01c1b9352b
2020-04-07 16:37:40 -07:00
Amy Zhang
e2654bfb87 Add SECTION/TS/AUDIO/VIDEO Tuner vts Broadcast tests
Please expect to see a refactoring on a more robust and cleaner version
of the new filter tests the child CL.

Test: atest VtsHalTvTunerV1_0TargetTest on cf and vendor device
Bug: 150953857
Change-Id: I34fbb193d0208d19496f360d900ae5078ece2cc5
2020-04-07 16:01:09 -07:00
Amy
e3b052154d Align Tuner VTS scan tests with the latest scan mechanism
Test: atest VtsHalTvTunerV1_0TargetTest
Bug: 135708935
Bug: 150953857
Change-Id: Ibb0a70195b1e8f89a45f3ab1a025dfaab4c76859
2020-03-27 16:01:05 -07:00
Amy
d6afead9fc Copy filtered av data to ion buffer to test on cuttlefish
Test: atest VtsHalTvTunerV1_0TargetTest
Bug: 150952766
Change-Id: If007f9c021102dc95be8e9dc70be70d3945192a9
2020-03-27 16:00:47 -07:00
Amy
0f15956fb5 Refactor Tuner VTS dvr and descrambler test implementation
Note that we are not testing them right now
Test entry will be implemented or uncomment in next Tuner develop phase

Test: cuttlefish + vendor device
Bug: 135708935
Change-Id: Iea72bd54c85105f74133c67433bd51f8fd07f28d
(cherry picked from commit fc7cc15ebb)
2020-02-27 15:31:53 -08:00
Amy
c1353fced6 Refactor Tuner VTS broadcast data flow test
Test: cuttlefish + vendor device test
Bug: 135708935
Change-Id: Ia7b6bf76c1f98202fb93ddf5d4f09c742e3f7c8b
(cherry picked from commit 46f46cd931)
2020-02-27 15:31:30 -08:00
Amy
d2ee30021f Refactor Tuner VTS filter part
Test: cuttlefish + vendor device
Bug: 135708935
Change-Id: I77b86da48720fa117d5afd273c3b157ddd650e10
(cherry picked from commit 6fbe5d77d7)
2020-02-27 15:31:06 -08:00
Amy
3c95a93b48 Refactor Tuner vts test Demux part
Test: cuttlefish + vendor device test
Bug: 135708935
Change-Id: I7e8e14809975854d6c88819a40819227a187a5a1
(cherry picked from commit dd08190510)
2020-02-27 15:30:46 -08:00
Amy
c830cfb345 Refactoring Tuner VTS frontend test part
Note that other interface tests are comment out in this CL
and will be refactored and uncomment in the CL chains.

Test: cuttlefish atest + vendor device test
Bug: 135708935
Change-Id: If831219fc588827c9367a506ba7fe7c96bea0286
(cherry picked from commit a5d00e6498)
2020-02-27 15:30:24 -08:00