Commit graph

16659 commits

Author SHA1 Message Date
android-build-team Robot
2a96ed7f7e Snap for 5778854 from 8813be6341 to qt-c2f2-release
Change-Id: Id11570d9215be763b59e5709b7082a6439879e43
2019-08-03 23:04:21 +00:00
Brian Duddie
bab0c7efe3 Merge changes from topic "c2f2_sensors_vts" into qt-r1-dev
am: 8813be6341

Change-Id: Ie652236cdbd4734dc723fac8c27ca876161f623d
2019-08-02 19:40:55 -07:00
Anthony Stange
86063dc8da Change expected return type in direct report VTS
am: 4bdd8fc774

Change-Id: I7b313096992aa15f34a408fbed67b02e74060d5f
2019-08-02 19:40:49 -07:00
Brian Duddie
1eee061c84 Add support for new gralloc HAL versions
am: df6e2b70ae

Change-Id: Iea28b01046e9094a28d538119e5acdf845385f6f
2019-08-02 19:40:42 -07:00
Vishal Agarwal
7af073c790 Merge "VTS Sensor HAL 2.0: Fix Batch for One Shot sensors" into qt-r1-dev
am: effdb89c97

Change-Id: Ie3fa0c0a3a02e58d88ecc6971ca8bb744c005103
2019-08-02 19:40:33 -07: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
Andrew Lehmer
2e3eceded7 Fix assumptions in SensorsHidlTest.NoStaleEvents
am: d8b212ec3e

Change-Id: I039f346605006576c7854de75d4d57b0aac08324
2019-08-02 17:33:35 -07: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
Janis Danisevskis
f3fe582f05 Merge "Keymaster should be developed in AOSP" am: a5e28d6abf am: e84234afc8
am: 2657dcc125

Change-Id: If5a28f342bf2ee70f917c40274b246dc600ccb3a
2019-08-02 10:26:02 -07:00
Janis Danisevskis
2657dcc125 Merge "Keymaster should be developed in AOSP" am: a5e28d6abf
am: e84234afc8

Change-Id: I078a17c9f6e05f3fe97ca877a54abe58c2aac487
2019-08-02 10:14:02 -07:00
Janis Danisevskis
e84234afc8 Merge "Keymaster should be developed in AOSP"
am: a5e28d6abf

Change-Id: I290f732459635300fa84ca69523d2935bec9fd89
2019-08-02 10:01:58 -07:00
Treehugger Robot
a5e28d6abf Merge "Keymaster should be developed in AOSP" 2019-08-02 16:32:24 +00:00
Janis Danisevskis
11d910b6a4 Keymaster should be developed in AOSP
This patch adds notifications for internal contributors of
confirmationui, gatekeeper, and keymaster, indicating that these HALS
are developed in AOSP.

Test: N/A
Bug: 118491737
Change-Id: I7f6d5da663026c3cd2124cc3a025a08835585a1c
2019-08-01 15:52:53 -07:00
Steven Moreland
56a5be926c Fix cas build.
am: b492526cac

Change-Id: Ic422b97c13793ff4a335530e79e906c79739557c
2019-07-31 20:43:36 -07:00
android-build-team Robot
4dd458dab6 Merge cherrypicks of [9111407, 9111408, 9111409, 9111410, 9111411, 9111332, 9110454] into qt-release
Change-Id: Ic9723493034182084113fcdb716988d4329c7037
2019-08-01 00:59:19 +00:00
Youming Ye
f5d07b84c1 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
(cherry picked from commit fc85e8fa50)
2019-08-01 00:58:48 +00:00
Daniel Norman
e7342a0d84 Merge "Replaces 'oneshot' and 'interface' with 'onrestart restart audioserver'." am: 5bb99e24ad am: 3a6c4696bd
am: 1fd3dbe764

Change-Id: Icf7852d9b75a42df53a628301f8b037982a70122
2019-07-31 15:50:52 -07:00
Daniel Norman
1fd3dbe764 Merge "Replaces 'oneshot' and 'interface' with 'onrestart restart audioserver'." am: 5bb99e24ad
am: 3a6c4696bd

Change-Id: Id599ba9fe2eda07569204956730d0ec78b4272f4
2019-07-31 15:41:20 -07:00
Daniel Norman
3a6c4696bd Merge "Replaces 'oneshot' and 'interface' with 'onrestart restart audioserver'."
am: 5bb99e24ad

Change-Id: I38708e1b102546d6024a1f80d2c7d7a7e1c18ee9
2019-07-31 15:21:08 -07:00
Daniel Norman
5bb99e24ad Merge "Replaces 'oneshot' and 'interface' with 'onrestart restart audioserver'." 2019-07-31 21:12:12 +00:00
Daniel Norman
fb4aadf622 Replaces 'oneshot' and 'interface' with 'onrestart restart audioserver'.
This default service should still restart on audioserver restart because
audioserver uses 'onrestart restart vendor.audio-hal-2-0' for restarts.

Bug: 138114550
Bug: 80227481
Test: for i in {0..100}; do \
      adb shell 'ps|grep audio;killall audioserver;ps|grep audio' \
      && sleep 2; \
      done
Test: Ran steps mentioned in http://b/80227481#comment1, device did not
get stuck in boot animation. Killing either audioserver or audio-hal
caused both to restart (just once) and the device booted correctly after
the sleep finished.
Change-Id: Ice128b51f79d3a9de22a719e6d897c8dca915e28
2019-07-31 21:08:02 +00:00
Amy
6490b2fc5f Using named pipe as input/output of the CEC hal mock impl
Test: see go/cec_1.0_cuttlefish "How to test HDMI framework on Cuttlefish"
Bug: 135684678
Change-Id: Ice53fe48780d10491a01ec2da764335753150521
2019-07-31 13:26:14 -07:00
sqian
be6e63b777 [automerger skipped] Verify there are no more current calls am: c8a08c1816 am: 0acb1b7219 -s ours
am: 09db36645c -s ours
am skip reason: change_id Iacca49abff11fbdfb4ae6dd060a5f150e9e4a74d with SHA1 5f68117e87 is in history

Change-Id: I31395684a871a100e1eb554ff8f1eed1651d4d66
2019-07-31 12:17:33 -07:00
sqian
09db36645c [automerger skipped] Verify there are no more current calls am: c8a08c1816
am: 0acb1b7219 -s ours
am skip reason: change_id Iacca49abff11fbdfb4ae6dd060a5f150e9e4a74d with SHA1 5f68117e87 is in history

Change-Id: I5070bed982d6dbf4367185381f5869b570452fef
2019-07-31 12:03:30 -07:00
sqian
0acb1b7219 Verify there are no more current calls
am: c8a08c1816

Change-Id: I3209c206b8299b2ecb7f6ec5df69dee2f643c743
2019-07-31 11:51:30 -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
android-build-team Robot
04ac4ef3bd Snap for 5768201 from 4f1b208f66 to qt-c2f2-release
Change-Id: Iaca796795d5bddd15d287443bea44f66d58b4a92
2019-07-31 03:11:00 +00:00
sqian
c8a08c1816 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
Merged-In: Iacca49abff11fbdfb4ae6dd060a5f150e9e4a74d
(cherry picked from commit 5f68117e87)
2019-07-30 16:29:33 -07:00
Android Build Merger (Role)
acb530ed42 Merge "Merge "Verify there are no more current calls" into qt-dev am: 1f12b5323a am: 4f1b208f66" into qt-r1-dev-plus-aosp 2019-07-30 23:22:44 +00:00
sqian
7deffe8568 Merge "Verify there are no more current calls" into qt-dev am: 1f12b5323a
am: 4f1b208f66

Change-Id: I914697c17f4d3336f96716ef197e54ba9f502b9a
2019-07-30 16:22:26 -07:00
sqian
d9465385c6 Merge "Verify there are no more current calls" into qt-dev am: 1f12b5323a
am: 45fa5dacd9

Change-Id: Icedd28ef8734308638cd0d01e21d80fba765aeb9
2019-07-30 16:22:08 -07: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
sqian
45fa5dacd9 Merge "Verify there are no more current calls" into qt-dev
am: 1f12b5323a

Change-Id: I6279a0da6ebf1f5c6e78e0c43d4d0ce4dc9a566a
2019-07-30 16:07:28 -07:00
TreeHugger Robot
1f12b5323a Merge "Verify there are no more current calls" into qt-dev 2019-07-30 22:37:53 +00:00
Android Build Merger (Role)
2788d3f705 Merge "hostapd(vts): Use the correct syntax for vendor prop am: 4335de4cac am: 39502371dd" into qt-r1-dev-plus-aosp 2019-07-30 15:09:55 +00:00
Roshan Pius
ca9b6951ef hostapd(vts): Use the correct syntax for vendor prop am: 4335de4cac
am: 583ea72d3e

Change-Id: Idddb55fea34a54870413ec27fef07a14d0f95615
2019-07-30 08:09:44 -07:00
Roshan Pius
2fdcdb7a5b hostapd(vts): Use the correct syntax for vendor prop am: 4335de4cac
am: 39502371dd

Change-Id: I90da206af3175c7efdbef3797b68c20cb979d2d9
2019-07-30 08:09:44 -07: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
Roshan Pius
39502371dd hostapd(vts): Use the correct syntax for vendor prop
am: 4335de4cac

Change-Id: I1e89831588dd3eec16e6e04cf2ac9446cac2ce65
2019-07-30 07:58:44 -07:00
android-build-team Robot
a6f45c0489 Snap for 5764972 from 29c8337d89 to qt-c2f2-release
Change-Id: I149a2bea757aad0fd34a7b4c012baa952d860b7c
2019-07-30 03:11:05 +00:00
Anthony Stange
1cc1242cbe Merge "Fix wait_for timestamps in Sensors VTS" into qt-r1-dev
am: 29c8337d89

Change-Id: I781d960f513045bdf46e8ee6e2f613e8e0f5aa8a
2019-07-29 15:45:41 -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
Michael Butler
4c906e53a1 NNAPI VTS fix from NNAPI CL: Cleanup HalInterfaces.h am: 3835f61986 am: 8f77ce7442
am: fe4464fa0c

Change-Id: I25ea02acad167d9f8905be0f2fcd95573560a158
2019-07-26 14:37:11 -07:00