Commit graph

15016 commits

Author SHA1 Message Date
Hsin-Yi Chen
88eaae6913 Move main function out of namespace
Bug: 135473483
Test: adb shell /data/local/tmp/VtsHalPowerStatsV1_0TargetTest \
      --list_registered_services
Test: vts-tradefed run vts -m VtsHalPowerStatsV1_0Target
Change-Id: I01084afbf48cff268288a8cce23328a2e4d1e4a0
2019-06-18 16:09:36 +08:00
TreeHugger Robot
16b2c77456 Merge "Removing an extraneous test" into qt-dev 2019-06-17 21:21:04 +00:00
Mark Tabry
977d275a9a Merge "Move START_SESSION definition to bottom of VmsMessageType." into qt-dev 2019-06-17 19:43:29 +00:00
Max Bires
cf9daece29 Removing an extraneous test
Test: VTS passes
Bug: 133316458
Change-Id: I98d73ff025515a89e2743ed20950c840aedb5114
(cherry picked from commit b28e69f37e)
2019-06-17 15:32:05 +00:00
Steven Moreland
a27c627f51 Merge "libhidltransport users user libhidlbase" into qt-dev 2019-06-14 22:54:21 +00:00
Mark Tabry
56ff57b4ce Move START_SESSION definition to bottom of VmsMessageType.
Bug: 130313799
Test: N/A
Change-Id: Iaa1be8f047c58491970b5aaa0dfab4e418164dee
2019-06-14 10:34:43 -07:00
Steven Moreland
085a82ecb1 libhidltransport users user libhidlbase
libhidltransport symbols are being moved into libhidlbase in order to
optimize linking/memory usage. libhidltransport will no longer be
required in the future (however removing references to it will come
separately).

Bug: 134961554
Test: boot
Change-Id: Ibcc2db32d3bec1a786b60e11d4820ecd0605f403
2019-06-12 13:49:19 -07:00
Tim Lin
9c93b3500a Fix RadioConfig 1.1 vts test
Bug: 134645639
Test: VtsHalRadioConfigV1_0Target
      VtsHalRadioConfigV1_1Target
      VtsHalRadioConfigV1_2Target

Change-Id: I0c3171bf50de4f320b53d73962a4a5013a9c72e4
2019-06-12 16:44:07 +08:00
Brian Duddie
b6b28e58c4 Fix null deref in sensors 2.0 VTS teardown
Avoid attempting to clean up resources that were never initialized, e.g.
if the target device doesn't support the version of the HAL in question.

Fixes: 134911861
Test: run VtsHalSensorsV2_0Target on device that only supports HAL v1.0
Change-Id: I6b529fae13b1347d533a19e04f1c7748bcda961b
2019-06-11 17:43:22 +00:00
Shuzhen Wang
22f6dcec7e Camera: Use original dataspace/format for 3.5 device
Starting from CameraDeviceSession 3.5, for IMPLEMENTATION_DEFINED pixel
format, configureStreams call uses original format and dataspace instead
of the overridden value.

This makes sure the HAL interface behavior is consistent between first
and subsequent processCaptureRequest() calls.

Test: Camera CTS and partner testing
Bug: 131864007
Change-Id: Id701141d2c11089ef063fd3f32444212855f84ab
2019-06-06 07:50:50 -07:00
Baranidharan Muthukumaran
8457060338 Merge "Skip NoUserConfirmation VTS test for Strongbox" into pie-vts-dev am: f1a67b301f
am: a29da54690

Change-Id: Ie49cf6b134ac8975b164639326758ab9eb2414e4
2019-06-04 18:35:39 -07:00
Baranidharan Muthukumaran
a29da54690 Merge "Skip NoUserConfirmation VTS test for Strongbox" into pie-vts-dev
am: f1a67b301f

Change-Id: If7dab84389f3a3bd0922faa00209561b71b739da
2019-06-04 17:53:26 -07:00
Treehugger Robot
f1a67b301f Merge "Skip NoUserConfirmation VTS test for Strongbox" into pie-vts-dev 2019-06-04 21:15:38 +00:00
TreeHugger Robot
9155a07da7 Merge "Update EVS VTS test cases" into qt-dev 2019-06-01 03:34:38 +00:00
Changyeon Jo
17aa6d3512 Update EVS VTS test cases
This change modifies existing test cases and adds one new test case
for EVS manager implementation.

Bug: 122468953
Change-Id: I5cee01dfe0b0617c3f5c46beb94dcda0387f4ba0
Signed-off-by: Changyeon Jo <changyeon@google.com>
2019-05-31 21:20:56 +00:00
Jordan Liu
15df27e428 Add radio config 1.2 VTS tests
Bug: 122730535
Test: run vts -m VtsHalRadioConfigV1_2Target
Change-Id: Ib4fc17ea9f76caaf0cb0d4a2914595b7cfb7b041
2019-05-31 17:20:47 +00:00
Kai Wang
4522783767 Merge "Add number of ticks in HW_KEY_INPUT" into qt-dev 2019-05-30 20:27:14 +00:00
TreeHugger Robot
1289d1fefa Merge "[VTS][AWARE]Setting callbacktype type to invalid value before invoking HIDL call" into qt-dev 2019-05-29 23:33:37 +00:00
Kai
26dcce67aa Add number of ticks in HW_KEY_INPUT
Bug: 132291593
Test: build and flash
Change-Id: I0baf4d8bbb802f724122d63cd19af5c5f9f4ddfb
2019-05-29 21:16:47 +00:00
Nate Jiang
18408a93d9 [VTS][AWARE]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: atest VtsHalWifiNanV1_0TargetTest VtsHalWifiNanV1_2TargetTest
Bug: 133484330
Change-Id: I9211c3e172727f56d0cceaf91b98f8d5b3c7fc7e
2019-05-29 10:41:55 -07:00
Pierre Fite-Georgel
26c952bf61 Clarify documentation for AINFO_SENSOR_PLACEMENT
Specify units of location vector and define the direction of the
rotation matrix translation as Android device frame to local sensor
frame.

Fixes: 133264933
Test: n/a, comment update only
Change-Id: I76dae7a6fae3c8f44a4dcd1fcc6b790abff86420
2019-05-29 09:07:52 -07:00
TreeHugger Robot
d05b62368b Merge "Audio: Document channel order convention" into qt-dev 2019-05-29 03:55:25 +00:00
Kevin Rocard
64a35d0d16 Audio: Document channel order convention
This patch restores the documentation on the channel order convention
that was present in the Audio HAL 2.0 but remove by mistake in 4.0.

This is a vendor feedback.

Test: mm
Bug: 133453897
Change-Id: I8eabd8883612d39ced21481fc44661b0808754bb
Signed-off-by: Kevin Rocard <krocard@google.com>
2019-05-29 00:34:38 +00:00
James Mattis
87592de6f2 Merge "Fix so that dual access points (AP) works." into qt-dev 2019-05-24 23:21:37 +00:00
Roshan Pius
4ae7dd19ba Merge "wifi(tests): Unit tests for iface event cb's" into qt-dev 2019-05-24 06:21:05 +00:00
Roshan Pius
c733f3bbed Merge changes I760dc5ca,Ia2da1dcf into qt-dev
* changes:
  wifi(implementation): Send NAN disabled on wlan0 down & up
  wifi(implementation): Invalidate NAN iface on STA iface removal
2019-05-24 06:20:55 +00:00
Nathan Harold
cc4f62336a [automerger skipped] Enable incremental scans for interval checks am: cba6580749
am: 357d68b24a -s ours
am skip reason: change_id I94874f538d2df70a72913b489d9298f8d1cf9b56 with SHA1 f56b9a41dd is in history

Change-Id: I8590919175b73243e363e94c1d5379a997a738ac
2019-05-23 22:18:15 -07:00
Pengquan Meng
db5118bdad Merge "Send LTE|LTE_CA to modem in vts" into qt-dev 2019-05-24 01:28:16 +00:00
Nathan Harold
357d68b24a Enable incremental scans for interval checks
am: cba6580749

Change-Id: I197fe0bb0e85db309d88bb966a33cf75a62b2d96
2019-05-23 17:44:55 -07:00
Pengquan Meng
2b3d7740fb Send LTE|LTE_CA to modem in vts
Bug: 132057161
Test: vts
Change-Id: I963933aff316318053546b54ca680cb65e6a290a
2019-05-23 21:56:59 +00:00
Pengquan Meng
2317d2e960 Merge "Add Vts to enforce radioConfig is existed" into qt-dev 2019-05-23 21:44:21 +00:00
James Mattis
d2e4c07465 Fix so that dual access points (AP) works.
Devices that only have dual AP setup without an STA were not working. A
use case for this would be in a car, having a wifi hotspot active while
also projecting to the car head unit from your phone. This was working
but a recent change in CL a3e5b7f that forced STA to be on wlan0 and AP to start at
wlan1 broke this functionality. This change is to augment the original
CL to keep it's function in place while also taking into
account devices that have dual AP.

Bug: 132268977
Test: Manual boot of hawk device along with testing of tethering and
local only hotspot.

Change-Id: I8da5dd4f0baea1bf0f22d3275e356936a58fb3d1
2019-05-22 16:26:55 -07:00
Pengquan Meng
806591aac8 Add Vts to enforce radioConfig is existed
This vts enforce IRadioConfig is existed when IRadio service is supported.
We didn't add IRadioConfigV1.2, so in this test IRadioConfigV1.1 will be
checked.

Bug: 132379735
Test: atest VtsHalRadioV1_4TargetTest
Change-Id: I2062ed6b191193d9a8af4f25059fed6cc8dc09d8
2019-05-22 15:03:32 -07:00
Roshan Pius
c885df0af3 wifi(tests): Unit tests for iface event cb's
Few class refactors to help with unit tests for ag/7567226.

Bug: 132943959
Test: ./hardware/interfaces/wifi/1.3/default/tests/runtests.sh
Change-Id: I62909f3f94899bc1593824684b93d29f44954eae
2019-05-22 14:22:01 -07:00
Roshan Pius
356d5a6ed2 wifi(implementation): Send NAN disabled on wlan0 down & up
When the iface state is toggled for MAC address change on the underlying
interface for NAN operations, send NAN disabled event up to the
framework. The iface down/up toggle resets all NAN operations in the
firmware. So, this callback should trigger a cleanup of any
operations initiated by the framework.

Bug: 132943959
Test: Unit tests in the follow-up CL.
Test: Will send for regression tests.
Change-Id: I760dc5ca3b9276956f5edd40a97c3c13811f442c
2019-05-22 14:11:16 -07:00
Wally Yau
d89fab7c34 [automerger skipped] Merge "Detach pollThread only if it is joinable" into pie-vts-dev am: cf4a2880c9
am: 7a2b3edec5 -s ours
am skip reason: SHA1 7a2b3edec5 skipped by user wyau

Change-Id: I7462da6f078837df605af65367b2139b038eb806
2019-05-22 11:53:12 -07:00
Nathan Harold
cba6580749 Enable incremental scans for interval checks
Currently tests that check for incremental scan interval
range-checking have incremental scans disabled.
This CL turns on incremental scans for tests where the
invalid interval range checks are being validated.

Bug: 112486807
Test: atest RadioHidlTest_v1_2#startNetworkScan_InvalidPeriodicity1;
      atest RadioHidlTest_v1_2#startNetworkScan_InvalidPeriodicity2;
Merged-In: I94874f538d2df70a72913b489d9298f8d1cf9b56
Change-Id: I94874f538d2df70a72913b489d9298f8d1cf9b56
(cherry picked from commit f56b9a41dd)
2019-05-22 18:50:31 +00:00
Nathan Harold
1d957da30b Merge changes I94874f53,I90133555 into qt-dev
* changes:
  Enable incremental scans for interval checks
  Allow impls to ignore incremental scan interval
2019-05-22 18:30:39 +00:00
Nathan Harold
f56b9a41dd Enable incremental scans for interval checks
Currently tests that check for incremental scan interval
range-checking have incremental scans disabled.
This CL turns on incremental scans for tests where the
invalid interval range checks are being validated.

Bug: 112486807
Test: atest RadioHidlTest_v1_2#startNetworkScan_InvalidPeriodicity1;
      atest RadioHidlTest_v1_2#startNetworkScan_InvalidPeriodicity2;
Change-Id: I94874f538d2df70a72913b489d9298f8d1cf9b56
2019-05-22 10:07:11 -07:00
Nathan Harold
944efca78d Allow impls to ignore incremental scan interval
When incremental results are disabled for network scans,
update the API documentation to allow implementations to
ignore range checking for the incremental scan interval.

Bug: 112486807
Test: compilation - docstring-only change
Change-Id: I901335550b4b8c2cf75f91b39fd031f03ffae982
2019-05-22 10:07:11 -07:00
Wally Yau
7a2b3edec5 Merge "Detach pollThread only if it is joinable" into pie-vts-dev
am: cf4a2880c9

Change-Id: I9845ff5af2235cfbdb92c0a066a4960d1dfdc2d5
2019-05-22 09:33:37 -07:00
Treehugger Robot
cf4a2880c9 Merge "Detach pollThread only if it is joinable" into pie-vts-dev 2019-05-22 15:02:02 +00:00
TreeHugger Robot
e7a523a89c Merge "Fix RadioConfig 1.0 vts test" into qt-dev 2019-05-22 04:59:28 +00:00
Kai Wang
68fa370815 Merge "Update VHAL documentation" into qt-dev 2019-05-21 18:45:48 +00:00
Jordan Liu
bdebb008a1 Fix RadioConfig 1.0 vts test
Bug: 122730535
Test: VtsHalRadioConfigV1_0Target
Change-Id: Ib3843e9ce727f97972f76e69cf9b450124f7afae
2019-05-21 17:41:20 +00:00
TreeHugger Robot
057de3759f Merge "Camera: Add support for IMapper 3.0" into qt-dev 2019-05-21 04:35:47 +00:00
TreeHugger Robot
9aec56107a Merge "Camera: Fix remaining OWNER file include" into qt-dev 2019-05-21 03:39:26 +00:00
TreeHugger Robot
91309a04c8 Merge "Validate HAL mic input" into qt-dev 2019-05-21 03:30:35 +00:00
Nazanin Bakhshi
ef4abb83b3 Merge "Add INVALID_STATE to list of errors for when there is only one modem available" into qt-dev 2019-05-21 03:29:51 +00:00
Kai
ac4edf053e Update VHAL documentation
Clarify when range in VehcileAreaConfig need to be specified.
Change Range_remaining to be read only.
Update docmentation about Night Mode.

Bug: 126908895
Bug: 128607457
Test: Flash and build
Change-Id: Ifcf92bcc9eed3859d8a846d55e824c2b00d61d19
2019-05-20 17:33:33 -07:00