Commit Graph

15185 Commits

Author SHA1 Message Date
Pawin Vongmasa
80fb244de2 OMX VTS: Move device resource files to data/local/tmp
am: a54bf6ed5a

Change-Id: Ib1c168576acb581727c908b156af35e8a0bfcd1c
2019-08-22 18:50:24 -07:00
Pawin Vongmasa
a54bf6ed5a OMX VTS: Move device resource files to data/local/tmp
Some devices make /sdcard a symbolic link to a non-constant target. The
target changes between the setup and the execution, so files pushed to
/sdcard during the setup cannot be found when the test runs.

Test: vts-tradefed run vts -m VtsHalMediaOmxV1_0Host

Bug: 138388013
Change-Id: I824b84ef8570ba501cf8137d695f98c335f92c7b
2019-08-22 07:29:05 +00:00
Anil Admal
8a6bb6c296 [automerger skipped] Add GetLocationLowPower VTS 2.0 test
am: 02376b9e11 -s ours
am skip reason: change_id Icbd18d80468e9e5a542f2eace5bfbe45af08ca47 with SHA1 03bc98e028 is in history

Change-Id: Icf9b9d48ebc09d65e739d571ff01844952408046
2019-08-20 16:28:09 -07:00
Anil Admal
02376b9e11 Add GetLocationLowPower VTS 2.0 test
- Run test only if LOW_POWER_MODE capability is supported.
- Modify the corresponding VTS 1.1 test to run only if the GNSS
  HAL version is 1.1.

Fixes: 127434062
Test: atest VtsHalGnssV2_0Target
Change-Id: Icbd18d80468e9e5a542f2eace5bfbe45af08ca47
Merged-In: Icbd18d80468e9e5a542f2eace5bfbe45af08ca47
(cherry picked from commit 03bc98e028)
2019-08-12 17:11:31 -07:00
Anil Admal
8250bb264b [automerger skipped] Add GNSS satellite blacklist VTS 2.0 test
am: ad9f6b17a3 -s ours
am skip reason: change_id Idd44a5a1c9d54d7434da945ecbd1ee90007f5054 with SHA1 f42602678f is in history

Change-Id: Ic4b58806a392116e2ce1c491a984d5a581143c12
2019-08-12 08:41:23 -07:00
Anil Admal
ad9f6b17a3 Add GNSS satellite blacklist VTS 2.0 test
- Use IGnssCallback@2.0::gnssSvStatusCb_2_0() method to receive SV
  info.
- Run the test only if SATELLITE_BLACKLIST capability is supported.
- IRNSS is excluded from blacklisting as IGnssConfiguration@2.0 is
  not updated to support the blacklisting new constellation type.
- Modify the corresponding VTS 1.1 test to run only if the GNSS
  HAL version is 1.1.

Bug: 128028791
Test: atest VtsHalGnssV2_0Target
Change-Id: Idd44a5a1c9d54d7434da945ecbd1ee90007f5054
Merged-In: Idd44a5a1c9d54d7434da945ecbd1ee90007f5054
(cherry picked from commit f42602678f)
2019-08-10 07:28:27 +00:00
TreeHugger Robot
8813be6341 Merge changes from topic "c2f2_sensors_vts" into qt-r1-dev
* changes:
  Fix handling of reportToken when stopping
  Change expected return type in direct report VTS
  Add support for new gralloc HAL versions
2019-08-03 02:32:32 +00:00
TreeHugger Robot
effdb89c97 Merge "VTS Sensor HAL 2.0: Fix Batch for One Shot sensors" into qt-r1-dev 2019-08-03 02:32:32 +00:00
Brian Duddie
63d4f57976 Fix handling of reportToken when stopping
VTS should ignore the reportToken returned by configDirectReport when it
passes in RateLevel::STOP.

Bug: 138758242
Test: run direct channel tests on device using 2.0 HAL
Change-Id: I07e789157e051ceab488a61e856f17d50f435072
2019-08-02 15:16:45 -07:00
Anthony Stange
4bdd8fc774 Change expected return type in direct report VTS
If a sensor doesn't support a particular memory type for direct
reporting, then registerChannel will return an invalid channel handle.
When this handle is used in configureDirectReport, it will return
BAD_VALUE and when used in unregisterDirectReport, it will return OK.
Currently, the VTS tests assert it will return INVALID_OPERATION, but
that will only happen if the entire HAL doesn't support direct
reporting instead of a single sensor not supporting a certain memory
type.

Bug: 138758242
Test: Run VTS and verify DirectChannel* tests now pass
Change-Id: Ifba4262b68ec0c4ca6921dad40a03e0a52088d28
2019-08-02 15:08:30 -07:00
Vishal Agarwal
66d8297210 VTS Sensor HAL 2.0: Fix Batch for One Shot sensors
One Shot sensors have minDelay set to -1. Force the minDelay to be 0 in
the VTS test to avoid errors from invalid parameter

Bug: 138758242
Test: Run Batch test manually VtsHalSensorsV2_0TargetTest --gtest_filter=SensorsHidlTest.Batch
Change-Id: Ib2287f6f11502c10d346f5e7216c5f31d585edf9
2019-08-02 14:03:41 -07:00
Andrew Lehmer
d8b212ec3e Fix assumptions in SensorsHidlTest.NoStaleEvents
This test was making a couple of false assumptions which were causing it
to fail. The fixes are related to the following assertions:
  1. One-shot sensors do not report an initial event.
  2. Special sensors may not report an initial event.
  2. Some on-change sensors may not report an initial event.
The test now only checks for a stale event if the sensor reports an
initial event consistently.

Bug: 138758242
Test: ran on C2 DVT; only fails due to an improperly configured sensor
Change-Id: I83f0cb2f6e878244f3d94ae77f64bb8ed2f78e0b
2019-08-02 14:01:57 -07:00
Brian Duddie
df6e2b70ae Add support for new gralloc HAL versions
As VTS connects to the IMapper and IAllocator HALs directly, it needs to
handle the case where the device only supports the newer HAL versions,
which includes IMapper 2.1 & 3.0 and IAllocator 3.0.

Since sensors VTS uses the same functionality from the different HAL
versions, condense the code into a common interface with HAL
version-specific template instantiation. Also remove the unused code
that came along with copying from the gralloc VTS reference source.

Bug: 138758242
Test: run gralloc-related sensors VTS on Pixel 2+
Change-Id: I1646d8f92546623594af8541bc8ac02955370694
2019-08-02 12:07:39 -07:00
Steven Moreland
b492526cac Fix cas build.
Bug : 137128492
Test: Manual

Change-Id: I37eec1138d9a6eff92c7df30b4c1b7ba7a45e3ae
(cherry picked from commit b2ee26784b)
2019-07-31 18:04:13 +00:00
sqian
4f1b208f66 Merge "Verify there are no more current calls" into qt-dev
am: 1f12b5323a

Change-Id: I1c0cedb7ab51d52639be6556b6c7546040c88d1b
2019-07-30 16:07:30 -07:00
TreeHugger Robot
1f12b5323a Merge "Verify there are no more current calls" into qt-dev 2019-07-30 22:37:53 +00:00
Roshan Pius
583ea72d3e hostapd(vts): Use the correct syntax for vendor prop
am: 4335de4cac

Change-Id: I8b1ae7411e5f476892f51abb12282577cccee86b
2019-07-30 07:58:44 -07:00
TreeHugger Robot
29c8337d89 Merge "Fix wait_for timestamps in Sensors VTS" into qt-r1-dev 2019-07-29 21:57:29 +00:00
Anthony Stange
4a80e231ed Fix wait_for timestamps in Sensors VTS
Previously, NoStaleEvents was treating any timestamps it dealt with as
if they were in microseconds, but sensors.minDelay is in microseconds
and Event timestamps are in nanoseconds. This uses std::chrono helpers
to ensure the correct time is used when deciding how long to sleep
during the test so that if waitForEvents never passes, the test doesn't
time out.

Bug: 136736906
Test: Run VTS and verify VtsHalSensorsV2_0Target doesn't finish as an
    incomplete module.

Change-Id: Ibba59dbf9312f97d7275e5aa8cd36547ab09e328
2019-07-29 14:40:20 -04:00
Roshan Pius
4335de4cac hostapd(vts): Use the correct syntax for vendor prop
Change the prop to add "ro.vendor." prefix for the new vendor prop.

Bug: 136645414
Change-Id: I5edfdc98991068eac279975397b6a29313bf31da
2019-07-29 11:16:56 -07:00
sqian
5f68117e87 Verify there are no more current calls
After disconnect calls, we want to verify there are no more current calls
by calling IRadio.getCurrenctCalls

Test: run vts
Bug: 138413412
Change-Id: Iacca49abff11fbdfb4ae6dd060a5f150e9e4a74d
2019-07-26 18:49:02 +00:00
Youming Ye
a50e3bd185 Add REQUEST_NOT_SUPPORTED to startNetworkScan
am: d005bbeb53

Change-Id: Idf31d03af5291e7d515405278dff77dd398b145c
2019-07-23 13:21:51 -07:00
Youming Ye
d005bbeb53 Add REQUEST_NOT_SUPPORTED to startNetworkScan
Test: VTS
Bug: 137298570
Change-Id: I0afacd413d467c3e25585d6d5431278fd61a1562
2019-07-22 18:34:56 -07:00
Thomas Joseph Avila
b857ef8cbb [automerger skipped] Merge "Setting callbacktype type to invalid value before invoking HIDL call" into pie-vts-dev am: 5e9cf46491 am: d7059a8549 -s ours
am: b4e4ddc88e -s ours
am skip reason: change_id I9211c3e172727f56d0cceaf91b98f8d5b3c7fc7e with SHA1 18408a93d9 is in history

Change-Id: I3bceb7921e4c222313783001d1fb4f40045a0334
2019-07-22 18:34:56 -07:00
Thomas Joseph Avila
b4e4ddc88e [automerger skipped] Merge "Setting callbacktype type to invalid value before invoking HIDL call" into pie-vts-dev am: 5e9cf46491
am: d7059a8549 -s ours
am skip reason: change_id I9211c3e172727f56d0cceaf91b98f8d5b3c7fc7e with SHA1 18408a93d9 is in history

Change-Id: I261c1136ef8736309d6c05a8b1e7e2384196d76b
2019-07-22 18:25:55 -07:00
Thomas Joseph Avila
d7059a8549 Merge "Setting callbacktype type to invalid value before invoking HIDL call" into pie-vts-dev
am: 5e9cf46491

Change-Id: I487650af18179f7df94843618fe5032c1476db44
2019-07-22 18:18:05 -07:00
Thomas Joseph Avila
5e9cf46491 Merge "Setting callbacktype type to invalid value before invoking HIDL call" into pie-vts-dev 2019-07-23 00:50:43 +00:00
Youming Ye
0639b1cc0d Merge "Add non-dds check for startNetworkScan" into qt-dev
am: 53861e16c3

Change-Id: Icdea09484bf16f01450fb3cf8734f2c013cf5052
2019-07-22 17:25:14 -07:00
Youming Ye
53861e16c3 Merge "Add non-dds check for startNetworkScan" into qt-dev 2019-07-23 00:08:37 +00:00
Nate Jiang
1a20113e68 Setting callbacktype type to invalid value before invoking HIDL call
Avoid race condition between event callback and wait context. Make
callbacktype to invalid before call function to change it.

Test: excute VtsHalWifiNanV1_0TargetTest VtsHalWifiNanV1_2TargetTest
Bug: 133484330
Merged-In: I9211c3e172727f56d0cceaf91b98f8d5b3c7fc7e
Change-Id: I0a7e27411cb8fbd877f8228e9d53b62cac424b17
2019-07-22 18:52:06 +00:00
Youming Ye
fc85e8fa50 Add non-dds check for startNetworkScan
Providing non-dds exemption for HAL 1.2 network scan due to some devices
only perform network scan on preferred data sim. Since logical modem
id(0/1) and physical sim slot id(0/1) are intuitively aligned. Set
first sim as dds sim, and skip the network scan on the second one
(non-dds).

Test: Vts
Bug: 135243177
Change-Id: I58b89473714dc6d3ce6567ba1809baad6cd6d799
2019-07-19 16:32:46 -07:00
Anil Admal
6857687ebc VTS 1.1 TestGnssMeasurementCallback test must allow 1.1 or 1.0 versions
am: e16ca9abca

Change-Id: Ida026479cbe61592ac2a1c8540e9360acf43dffb
2019-07-19 16:21:35 -07:00
Anil Admal
e16ca9abca VTS 1.1 TestGnssMeasurementCallback test must allow 1.1 or 1.0 versions
Fixes: 137839372
Test: atest VtsHalGnssV1_1Target
Change-Id: Ie3b1fa8b4738c03bff7924396b5eb5c6774841f1
(cherry picked from commit 6abdaac714)
2019-07-19 18:18:16 +00:00
Anil Admal
f22b39c457 Merge "VTS 1.1 TestGnssMeasurementCallback test must allow 1.1 or 1.0 versions" into qt-r1-dev 2019-07-19 18:12:24 +00:00
Valerie Hau
7f42547069 [automerger skipped] Merge changes from topic "FixSRGBSetColorMode_VTS_qt-dev" into qt-dev
am: 818fff840a -s ours
am skip reason: change_id Ie8f53effe3e6e29a4523ebfa450c79fdf96ed585 with SHA1 37d1599e0b is in history

Change-Id: I78053cd905db78c02ea6848a4b0fc9fb3d619b3c
2019-07-19 08:08:48 -07:00
Valerie Hau
818fff840a Merge changes from topic "FixSRGBSetColorMode_VTS_qt-dev" into qt-dev
* changes:
  DO NOT MERGE: Fixing SRGB for devices that do not support SRGB color mode
  VTS : fix vts fail [1/1]
2019-07-19 14:49:44 +00:00
Anil Admal
6abdaac714 VTS 1.1 TestGnssMeasurementCallback test must allow 1.1 or 1.0 versions
Fixes: 137839372
Test: atest VtsHalGnssV1_1Target
Change-Id: Ie3b1fa8b4738c03bff7924396b5eb5c6774841f1
2019-07-18 18:40:53 -07:00
Roshan Pius
354c2c6c55 Merge "hostapd(vts): Add a property for SAP interface" into qt-dev
am: 896c71a7d2

Change-Id: Ib1c81c3a07e8145edc00e783357079304eff9f75
2019-07-18 18:18:57 -07:00
TreeHugger Robot
896c71a7d2 Merge "hostapd(vts): Add a property for SAP interface" into qt-dev 2019-07-19 00:57:14 +00:00
Roshan Pius
9a8538b4ee hostapd(vts): Add a property for SAP interface
Changes to the VTS test to support OEM's who use a separate
dedicated SAP interface.

Note: This is a VTS test change only. The default implementation does
not still support a dedicated SAP interface (OEM's can obviously
customize the default implementation for their devices).

Bug: 136645414
Test: None (verified by partner OEM)
Change-Id: I42b87bf90cfa90c7c218309164ab2b77f3685f9e
2019-07-18 14:38:41 +00:00
nxp72763
a17bbf6d31 Merge "Align NFCEE ID range with NCI 1.0 in VtsNfcv1.2 test" into qt-dev
am: fc480f5904

Change-Id: Ifc02910c85e47515bc990de4b08a4f4930f6576b
2019-07-18 00:19:17 -07:00
zhangweiwei
588b4ead25 Adapt change clearkey to Lazy hal
am: 0a50473369

Change-Id: I9710b3b0caeb98853981728c47226bccce2445c6
2019-07-18 00:11:19 -07:00
TreeHugger Robot
fc480f5904 Merge "Align NFCEE ID range with NCI 1.0 in VtsNfcv1.2 test" into qt-dev 2019-07-18 07:06:16 +00:00
zhangweiwei
0a50473369 Adapt change clearkey to Lazy hal
Exempt-From-Owner-Approval

Bug:135896867
Test: vts-tradefed run commandAndExit vts-staging-default -m VtsHalDrmV1_1Target

Change-Id: Iadba7a7afdccfe8a6299e3c0e1e03f63a58c5ca8
2019-07-17 23:24:56 +00:00
Anil Admal
954f4fef65 Merge "Add GetLocationLowPower VTS 2.0 test" into qt-r1-dev 2019-07-17 21:38:29 +00:00
Valerie Hau
37d1599e0b DO NOT MERGE: Fixing SRGB for devices that do not support SRGB color mode
Bug: 135375302
Test: build, boot, VtsHalGraphicsComposerV2_2TargetTest
Change-Id: Ie8f53effe3e6e29a4523ebfa450c79fdf96ed585
2019-07-16 21:24:57 +00:00
Valerie Hau
2f3553e1ed DO NOT MERGE: Fixing SRGB for devices that do not support SRGB color mode
Bug: 135375302
Test: build, boot, VtsHalGraphicsComposerV2_2TargetTest
Change-Id: Ie8f53effe3e6e29a4523ebfa450c79fdf96ed585
Merged-In: Ie8f53effe3e6e29a4523ebfa450c79fdf96ed585
2019-07-16 14:24:02 -07:00
jie.yuan
70e5b556ef VTS : fix vts fail [1/1]
Problem:
VtsHalGraphicsComposerV2_1Target#GraphicsComposerHidlCommandTest.PRESENT_DISPLAY_NO_LAYER_STATE_CHANGES fail
the testcase setcolormode SRGB without check if current device support SRGB

Solution:
change setColorMode from SRGB to NATIVE

Verify:
verify in on franklin

Bug: 135375302
Test: build, boot, VtsHalGraphicsComposerV2_1TargetTest
Change-Id: I646c263d96b03f9d30e6563a45cff37835001609
Merged-In: I5eebe5f530e3b62037d669992cf2eca0849f10be
2019-07-16 14:19:05 -07:00
jie.yuan
0d7f7882e7 VTS : fix vts fail [1/1]
Problem:
VtsHalGraphicsComposerV2_1Target#GraphicsComposerHidlCommandTest.PRESENT_DISPLAY_NO_LAYER_STATE_CHANGES fail
the testcase setcolormode SRGB without check if current device support SRGB

Solution:
change setColorMode from SRGB to NATIVE

Verify:
verify in on franklin

Bug:135375302
Test: build, boot, VtsHalGraphicsComposerV2_1TargetTest
Change-Id: I5eebe5f530e3b62037d669992cf2eca0849f10be
Merged-In: I5eebe5f530e3b62037d669992cf2eca0849f10be
2019-07-16 13:39:09 -07:00
Anil Admal
03bc98e028 Add GetLocationLowPower VTS 2.0 test
- Run test only if LOW_POWER_MODE capability is supported.
- Modify the corresponding VTS 1.1 test to run only if the GNSS
  HAL version is 1.1.

Fixes: 127434062
Test: atest VtsHalGnssV2_0Target
Change-Id: Icbd18d80468e9e5a542f2eace5bfbe45af08ca47
2019-07-15 18:56:37 -07:00