Commit graph

13049 commits

Author SHA1 Message Date
Brian Stack
d23f200603 Data Injection Support for Default Sensors HAL 2.0
Implements data injection support for the default Sensors HAL 2.0.
Allows events to be injected into the Sensors HAL and these events be
written back to the Event FMQ.

Bug: 111070257
Test: Passes data injection VTS tests
Change-Id: If652417ec0df4148ffb5be3d5dd8bc6f0be65467
2018-11-13 17:32:10 -08:00
Brian Stack
9c1867eec8 Update member variables to use mNamingConvention
Bug: 115969174
Test: Builds
Change-Id: Id4334d9060a3110d13debcfaf1bebc9dddd321c5
2018-11-07 17:26:01 -08:00
Brian Stack
40525b145e Implement activate tests for Sensors HAL 2.0
Implements new VTS tests to verify that Sensors HAL 2.0 activate
function behaves as expected and returns the correct values.

Bug: 115969174
Test: Tests pass against default implementation
Change-Id: I3dbc86b0c9df3958f11bae4eff925d1869319738
2018-11-07 17:26:01 -08:00
TreeHugger Robot
70fc684b4c Merge changes I607ff18f,Icb8c3d77
* changes:
  Implement batch test for Sensors 2.0
  Implement VTS tests for Sensors 2.0 flush
2018-11-08 01:10:21 +00:00
Shuzhen Wang
3cda195d25 Merge "Camera: Add support for recommended stream configurations" 2018-11-07 22:54:04 +00:00
Brian Stack
0a20036927 Implement batch test for Sensors 2.0
Verify that the batch function is correctly implemented for Sensors
HAL 2.0. This test ensures that the interface is properly implemented,
not that sensors generate events at the requested rate.

Bug: 115969174
Test: Builds, new test passes against default implementation
Change-Id: I607ff18f59d1ba73aa972ed46b04332892772355
2018-11-07 13:48:20 -08:00
Brian Stack
1fdd1bb4db Implement VTS tests for Sensors 2.0 flush
Bug: 115969174
Test: Tests pass against default implementation
Change-Id: Icb8c3d7776b8460d502bfec251ded061f978bec9
2018-11-07 13:36:11 -08:00
Kevin DuBois
e52f011f42 Merge "graphics: Add display color sampling interface." 2018-11-07 17:39:04 +00:00
Emilian Peev
ee37bd5ced Camera: Add support for recommended stream configurations
Hal must be able to recommend efficient stream
configurations for common client use cases. Add the
necessary static metadata keys.

Bug: 64029608
Test: vts-tradefed run commandAndExit vts --skip-all-system-status-check
--skip-preconditions --module VtsHalCameraProviderV2_4Target -l INFO
Change-Id: I0c2306501094383af78cb7ced1fa700b259d2b08
2018-11-07 10:13:16 +00:00
Shuzhen Wang
662c7d2a99 Merge "Camera: Add new metadata entries for Y8" 2018-11-07 05:54:41 +00:00
Peiyong Lin
156d2b1f2e Merge "[ConfigStore] Add VTS" 2018-11-07 01:59:32 +00:00
Steven Moreland
470a647496 Merge "Tests for Enum#len" am: 2267c72423 am: 0e878f8b10
am: c6ef74f43a

Change-Id: Iea2b8ae24a25cd8fd16999f7c15036c9467cb6d0
2018-11-06 15:46:21 -08:00
Peiyong Lin
f16e843b69 [ConfigStore] Add VTS
BUG: 113800257
Test: run VtsHalConfigstoreV1_2TargetTest/VtsHalConfigstoreV1_2TargetTest
Change-Id: I1444a4d1fe54fbcdce68aa3a1c39dbf541cfab66
2018-11-06 15:33:55 -08:00
Steven Moreland
c6ef74f43a Merge "Tests for Enum#len" am: 2267c72423
am: 0e878f8b10

Change-Id: I05d3bdebaac0c6a9fba48ca0fa9a2fd5413bf222
2018-11-06 15:32:10 -08:00
Steven Moreland
0e878f8b10 Merge "Tests for Enum#len"
am: 2267c72423

Change-Id: I03b433676863f511d28bb51d591aada772403392
2018-11-06 15:19:32 -08:00
Steven Moreland
2267c72423 Merge "Tests for Enum#len" 2018-11-06 22:55:49 +00:00
TreeHugger Robot
1b7796d0eb Merge "Add int16_t to MixedTyped" 2018-11-06 14:37:06 +00:00
Michael K. Sanders
da87a9dbce [automerger skipped] Merge "Implements RANDOM_MULTINOMIAL CTS/VTS tests." am: fb50b69ae1 am: 27584f237b
am: 426070a7b9  -s ours

Change-Id: I05d5609850082844c815c9231a78c85cd81ad623
2018-11-06 01:46:58 -08:00
Michael K. Sanders
426070a7b9 Merge "Implements RANDOM_MULTINOMIAL CTS/VTS tests." am: fb50b69ae1
am: 27584f237b

Change-Id: Ibcb925ebbd84afa1aa657b807feb70f4fc324227
2018-11-06 01:42:19 -08:00
Michael K. Sanders
27584f237b Merge "Implements RANDOM_MULTINOMIAL CTS/VTS tests."
am: fb50b69ae1

Change-Id: I99d29ed863a914f330fcacd8e91ce2a7e8a4c876
2018-11-06 01:35:56 -08:00
Michael K. Sanders
fb50b69ae1 Merge "Implements RANDOM_MULTINOMIAL CTS/VTS tests." 2018-11-06 09:28:17 +00:00
TreeHugger Robot
a29f60d68a Merge "Only save newly received events during testing" 2018-11-06 03:54:28 +00:00
Jack He
bcaf73e772 Merge "VTS: Subscribe to death notification of HAL service" am: 41e05b27a7 am: 880de12aa4
am: c16eed4f4f

Change-Id: I6d9f1b02a1e71dab2c7813f7ef24fa8ae4b55366
2018-11-05 19:52:51 -08:00
Jack He
c16eed4f4f Merge "VTS: Subscribe to death notification of HAL service" am: 41e05b27a7
am: 880de12aa4

Change-Id: I1a1e80d72b4b69df1d83d9e77f628ead700b164a
2018-11-05 19:34:51 -08:00
Jack He
880de12aa4 Merge "VTS: Subscribe to death notification of HAL service"
am: 41e05b27a7

Change-Id: Ied99a7c37232e16509df2e713d4c3341ad5ef846
2018-11-05 19:27:12 -08:00
Treehugger Robot
41e05b27a7 Merge "VTS: Subscribe to death notification of HAL service" 2018-11-06 03:19:20 +00:00
Michael K. Sanders
da3bdbc918 Implements RANDOM_MULTINOMIAL CTS/VTS tests.
Bug: 113562775
Test: VtsHalNeuralnetworksV1_2TargetTest --hal_service_instance=android.hardware.neuralnetworks@1.2::IDevice/sample-all
Change-Id: I3d39d056bf5034e01ce9c5c5e3f416a63d7ec8eb
Merged-In: I3d39d056bf5034e01ce9c5c5e3f416a63d7ec8eb
(cherry picked from commit 941d61a62d)
2018-11-05 18:04:09 -08:00
Arthur Ishiguro
e8f98ff983 Merge "Updates EventPayload documentation for (Geomag)-RV" am: 79189993ec am: d60adf2dd9
am: f81482a5f6

Change-Id: I8e3668e3da2c73b5265dfd4d8927692854f94216
2018-11-05 17:57:47 -08:00
Arthur Ishiguro
f81482a5f6 Merge "Updates EventPayload documentation for (Geomag)-RV" am: 79189993ec
am: d60adf2dd9

Change-Id: Ie7cc8345c813e2deb371ce1c2360e62a01248ac5
2018-11-05 17:47:39 -08:00
Arthur Ishiguro
d60adf2dd9 Merge "Updates EventPayload documentation for (Geomag)-RV"
am: 79189993ec

Change-Id: I952001c89791b32d46dedf04e4358775adb94aa0
2018-11-05 17:43:37 -08:00
Arthur Ishiguro
79189993ec Merge "Updates EventPayload documentation for (Geomag)-RV" 2018-11-06 01:28:23 +00:00
Jack He
fac144bb80 VTS: Subscribe to death notification of HAL service
Test: make, run HciReset test
Change-Id: I03bfc115e2330eb92608c8020edfda898902eec8
2018-11-06 00:24:57 +00:00
Arthur Ishiguro
6fd13218a5 Merge "Adds conversion for quaternion data with accuracy" am: c8d0f5eaa9 am: 0492a56fdc
am: 6c9e09bda4

Change-Id: I8d20fd3ddaff64927e8ef4c8022bc3a68b3596b3
2018-11-05 14:51:55 -08:00
Arthur Ishiguro
6c9e09bda4 Merge "Adds conversion for quaternion data with accuracy" am: c8d0f5eaa9
am: 0492a56fdc

Change-Id: I49d1772bd7e48ce34359695ee2a30b9122713712
2018-11-05 14:48:14 -08:00
Arthur Ishiguro
0492a56fdc Merge "Adds conversion for quaternion data with accuracy"
am: c8d0f5eaa9

Change-Id: I8a0efc459bfc0fa45e19eed00be1682d05ab4de1
2018-11-05 14:43:06 -08:00
Kevin DuBois
bf141483fa graphics: Add display color sampling interface.
Add a graphics.composer@2.3 interface that will expose
color sampling hardware present on some devices to the
framework. Adds:
  getDisplayedContentSamplingAttributes
  setDisplayedContentSamplingEnabled
  getDisplayedContentSample

Test: boot up pixel3
Test: VtsHalGraphicsComposerV2_3TargetTest on revved Pixel3 hwcomposer
Bug: 116028976
Change-Id: I88455f200590926f677c47efc39e9b6678e2318c
2018-11-05 14:32:49 -08:00
Treehugger Robot
c8d0f5eaa9 Merge "Adds conversion for quaternion data with accuracy" 2018-11-05 22:31:14 +00:00
TreeHugger Robot
a27049a8b1 Merge "graphics: Base resource classes need virtual dtor" 2018-11-05 19:23:30 +00:00
Arthur Ishiguro
d3881ea7fa Updates EventPayload documentation for (Geomag)-RV
The former HAL documentation incorrectly documented (Geomag)-RV
sensor data as Vec4, although an accuracy field is expected according
to the Android sensor docs. Former default HAL implementation has set
the accuracy value to zero, preventing apps from getting this value.

This change guides OEMs to use the Vec4 + accuracy when converting
(Geomag)-RV sensor events. The default HAL implementation passes
this extra data now (ag/5224072), but clients of the former
implementation will still get the data it needs if assuming
the Vec4 sensor data format.

Bug: 116874058
Test: Compile only
Change-Id: I6a5c8a48dd372c3d4682ed5329f7f87862746cb9
2018-11-05 11:01:57 -08:00
TreeHugger Robot
6ee1cb1d68 Merge "Add message id to interface" 2018-11-05 18:27:38 +00:00
Lev Proleev
ca80ff0840 Add int16_t to MixedTyped
Test: NeuralNetworksTest_static
Test: VtsHalNeuralnetworksV1_2TargetTest
Change-Id: I223a36cd2106b54155e0a80ffabe4f7a1c1f23f9
2018-11-05 14:51:06 +00:00
TreeHugger Robot
efb5f951c5 Merge "[WPA3] Added setGroupMgmtCipher and getGroupMgmtCipher for Suite-B" 2018-11-05 01:08:13 +00:00
Steven Moreland
4fc9b6e8de Tests for Enum#len
Bug: 117951873
Test: hidl_test
Change-Id: I532c983f72013446869e3c8e3bbc11c776bfcbfa
2018-11-02 17:41:12 -07:00
TreeHugger Robot
bc2fe346bb Merge "Use new version of IGraphicBufferProducer" 2018-11-03 00:14:47 +00:00
Lloyd Pique
79d6d0c1d0 graphics: Base resource classes need virtual dtor
ComposerResources allows a derived class to define specializations of
the ComposerDisplayResource and ComposerLayerResource classes, which are
returned by overrides of the createDisplayResources() and
createLayerResources() member functions. The pointers are wrapped using
a std::unique_ptr, which destroys the owned instance via the base class
destructor.

As the destructor was not virtual, this meant that only the base class
destructor functionality would be used. Any additional cleanup done by
the derived class destructor would not be run!

This impacts the composer-hal 2.2 utility code for example, which adds a
readback buffer cache as a display resource. Any readback buffers that
are imported there will not be released, effectively leaking graphic
buffer memory.

It also affected an ARC++ specialization where a similar per-layer buffer
resource cache was added, and where the leak was observable since layers
are created and destroyed much more often than displays.

Bug: 117877825
Test: No leaks for ARC++ devices
Change-Id: I6e604b415d3ed787c2e51729a77278594e41e7a9
2018-11-02 23:08:08 +00:00
Xusong Wang
7304f95d9e Merge "Update nn hidl to version 1.2 in compatibility_matrix.current.xml." am: 190473b02b am: 00e60996b3
am: 317778cb1f

Change-Id: I1836935e921164ca875cc0667c2c4569c49696f2
2018-11-02 15:55:14 -07:00
Yifan Hong
03a02366e6 Merge "Add dump_hals_for_release." am: e13ea410c2 am: 90c37dc879
am: b7005e9367

Change-Id: If05318559571840a3711d9523fc8f1001969b568
2018-11-02 15:42:39 -07:00
Xusong Wang
317778cb1f Merge "Update nn hidl to version 1.2 in compatibility_matrix.current.xml." am: 190473b02b
am: 00e60996b3

Change-Id: I859a465c8edfb59da287f7e0fb3c4fb2caa76523
2018-11-02 15:40:30 -07:00
Yifan Hong
b7005e9367 Merge "Add dump_hals_for_release." am: e13ea410c2
am: 90c37dc879

Change-Id: I5063d448487e198b683e0abc30db0fdd585fb13c
2018-11-02 15:36:47 -07:00
Xusong Wang
00e60996b3 Merge "Update nn hidl to version 1.2 in compatibility_matrix.current.xml."
am: 190473b02b

Change-Id: Iacb29b603f95df07d0fb82ee25ebbea55c6f7e5b
2018-11-02 15:36:27 -07:00