Commit graph

18499 commits

Author SHA1 Message Date
Przemyslaw Szczepaniak
7460d44faf Merge "Add TENSOR_QUANT8_ASYMM_SIGNED support for activations" 2019-11-25 10:14:15 +00:00
Przemyslaw Szczepaniak
83ad3583b8 Merge "Add TENSOR_QUANT8_ASYMM_SIGNED support for pooling ops" 2019-11-25 10:13:34 +00:00
TreeHugger Robot
ebd6c752c2 Merge "vibrator: Add Composition APIs" 2019-11-25 05:04:45 +00:00
Hao Chen
ad1222486d Merge "Add GRPC Server as a Library to VHal Build File" 2019-11-22 22:37:18 +00:00
Marissa Wall
78b167aa60 Merge "gralloc: list supported metadata types" 2019-11-22 19:26:20 +00:00
Hao Chen
744fe1a75b Merge changes Iab77a0ae,Ibf525ffe
* changes:
  Applying the vehicle connector to the VHAL
  Implement the connector for emulated vehicles
2019-11-22 19:03:40 +00:00
TreeHugger Robot
9b83948852 Merge "gralloc: clean up comments" 2019-11-22 17:10:17 +00:00
TreeHugger Robot
947a2172e0 Merge "audio effect: Avoid using stack-allocated arrays" 2019-11-22 02:18:26 +00:00
Marissa Wall
0129f43366 gralloc: clean up comments
Clean up code comments based on review comments in ag/9684750 and
ag/9684750.

Bug: 144551649
Test: Compiles
Change-Id: I96f5962d2c1b79352f85dcf9354689814310ecc0
2019-11-22 01:44:26 +00:00
Hao Chen
fba3ac86cc Applying the vehicle connector to the VHAL
Make VHAL to use the connector/server interfaces instead of talking to
the (faked) vehicle directly. Use passthrough connector for now since we
have not moved to the virtualized scenario yet (but soon :)

Bug: b/141493212

Test: On both Osprey and Hawk. Build and flash the image. If on Osprey, see
go/enable-google-vhal-on-osprey; if on hawk, `aae app vhal apply google`
to enable Google VHAL

```
# no VHAL crash
$ adb logcat

$ vts-tradefed
> run vts-hal-auto -m VtsHalAutomotiveVehicleV2_0Host
# 30 passed, 2 failed, the same as the result before this patch

# See value changed in Vehicle HAL tab, KitchenSink app:
$ python packages/services/Car/tools/emulator/prop_event_simulator.py --property
VEHICLEPROPERTY_HVAC_AC_ON --area 0 --value 1

# unit tests
$ atest packages/services/Car/tests/vehiclehal_test/src/com/android/car/vehiclehal/test/CarPropertyTest.java
```

Change-Id: Iab77a0ae32db2c55b4c65aa8f3e4f73ec9ef2644
2019-11-21 16:57:31 -08:00
Ytai Ben-tsvi
b27fdb4301 Merge "More memory test interfaces" 2019-11-22 00:33:34 +00:00
Shawn Willden
bdc9434b3c Merge changes from topic "add-km-41" am: f66777ad50 am: 7f7e9608dc
am: 78926e3375

Change-Id: I7964555358e9150d58f53eb154ee7acf5eea1a78
2019-11-21 15:01:55 -08:00
Shawn Willden
d5800c9be9 [automerger skipped] Add Keymaster 4.1 hashes am: 0e363cda29 am: 67eb28f18c
am: cc61aebaf9 -s ours
am skip reason: change_id If0705662121c91f7f4a5753bba9e2f9a07890686 with SHA1 4ffd6b6152 is in history

Change-Id: I1d55fc2e98cb6a5fc6465026385dc3a194a8adc1
2019-11-21 15:01:51 -08:00
Shawn Willden
78926e3375 Merge changes from topic "add-km-41" am: f66777ad50
am: 7f7e9608dc

Change-Id: Ie91e9628b69262c3676fc2595bfecbc37c9b8bae
2019-11-21 14:57:42 -08:00
Shawn Willden
cc61aebaf9 Add Keymaster 4.1 hashes am: 0e363cda29
am: 67eb28f18c

Change-Id: I682a9234ae129324781587d06e14d21f6331679f
2019-11-21 14:57:38 -08:00
Shawn Willden
7f7e9608dc Merge changes from topic "add-km-41"
am: f66777ad50

Change-Id: I936540f9f9956a01c8c03fc1db6c54ffe81f3489
2019-11-21 14:53:57 -08:00
Shawn Willden
67eb28f18c Add Keymaster 4.1 hashes
am: 0e363cda29

Change-Id: I3ce53b9286af305ffe7217397dd0e83caea861a0
2019-11-21 14:53:53 -08:00
Hao Chen
3ebbb8273f Add GRPC Server as a Library to VHal Build File
Bug: b/141493212

Test: Tested with ag/9775633, successfully compiled, also tested with ag/9775563

Change-Id: Icf046aafe3d5794a8b79183baa370bdbbcdb796a
2019-11-21 14:51:04 -08:00
Treehugger Robot
f66777ad50 Merge changes from topic "add-km-41"
* changes:
  Add Keymaster 4.1
  Add Keymaster 4.1 hashes
2019-11-21 22:41:50 +00:00
Mikhail Naganov
2a652cec4b audio effect: Avoid using stack-allocated arrays
This is to prevent OOB write in case when a sufficiently
large HIDL vector is provided via a HwBinder call.

Bug: 143787559
Test: atest VtsHalAudioEffectV5_0TargetTest
Change-Id: I6ea78804a5a3ed7a245929d3de47580b12c0da9a
2019-11-21 14:05:45 -08:00
Ytai Ben-Tsvi
5be5483f4c More memory test interfaces
Change-Id: I21bb7c28aa774801cad94cd530ccb6b5c3b621e0
Bug: 143566068
2019-11-21 13:40:29 -08:00
Hao Chen
cda8e6e03a Implement the connector for emulated vehicles
Some functions are copyed from the original VHAL implementation. The
ones left in the old implementation will be removed after enabling the
Vehicle Connector. Keeping them right now because otherwise it will
break the build.

Bug: b/141493212

Test: since nothing changed in the "active" code, just compiled by `mm`

Change-Id: Ibf525ffe056d6a4c789a7a407eb0b54f61858041
2019-11-21 13:21:49 -08:00
TreeHugger Robot
96276e8996 Merge "gralloc: add get and set BufferMetadata support" 2019-11-21 20:41:22 +00:00
Ady Abraham
3fd4bc2802 Merge "composer: few changes for refresh rate switching" 2019-11-21 19:39:38 +00:00
Lev Proleev
3466c78b04 Add TENSOR_QUANT8_ASYMM_SIGNED support for activations
Ops updated: RELU, RELU1, RELU6, TANH, LOGISTIC

Change-Id: Id5e7a8c6b30463708bd93dbf6a3f30d05c2bcf40
Fix: 143933951
Fix: 143934720
Fix: 143933831
Fix: 143934770
Fix: 143934743
Test: quantization coupling tests in CTS and VTS
2019-11-21 17:35:30 +00:00
Lev Proleev
e1e4fc9a38 Merge "Add TENSOR_QUANT8_ASYMM_SIGNED support to ADD, MUL and SUB." 2019-11-21 15:27:35 +00:00
Lev Proleev
3f17cc3daa Add TENSOR_QUANT8_ASYMM_SIGNED support for pooling ops
* Update AVERAGE_POOL_2D and MAX_POOL_2D

Bug: 143934716
Bug: 143934303
Test: quantization coupling tests in CTS and VTS
Change-Id: I15f36d6f819c92f96a46c40f9cc1491627644278
2019-11-21 14:39:40 +00:00
nelsonli
e8cb5a2bcb [vts-core] Fix presubmit error in RadioConfigHidlEnvironment am: 942de9e663 am: d5aef05f73
am: 6604e957e5

Change-Id: I41c94cadbe6446e1834a216a722c87defb59d74e
2019-11-20 19:17:54 -08:00
nelsonli
6604e957e5 [vts-core] Fix presubmit error in RadioConfigHidlEnvironment am: 942de9e663
am: d5aef05f73

Change-Id: I1407dd96fcf49074f13b5784b41d6f7d443ccaed
2019-11-20 19:14:24 -08:00
nelsonli
d5aef05f73 [vts-core] Fix presubmit error in RadioConfigHidlEnvironment
am: 942de9e663

Change-Id: I00e9ce8887e52b79438c1affd168d53c8c9caedd
2019-11-20 19:10:52 -08:00
nelsonli
942de9e663 [vts-core] Fix presubmit error in RadioConfigHidlEnvironment
Remove the un-included class.
Also add missing include of log library.

Test: $atest VtsHalRadioConfigV1_2TargetTest
Change-Id: Ia7475f6fa2df9c35a4822a6434a783d775f3f9be
2019-11-21 10:55:25 +08:00
Harpreet \"Eli\" Sangha
7eab6201a9 vibrator: Add Composition APIs
Bug: 139762802
Test: Manual Invocation via 'idlcli'
Change-Id: Ibc938d08f186039681d523784b90f4172a52af51
Signed-off-by: Harpreet \"Eli\" Sangha <eliptus@google.com>
2019-11-21 11:40:00 +09:00
Marissa Wall
0001a5d5ba gralloc: list supported metadata types
Add function to get the metadata types supported by IMapper.
In future releases, we will add more standard types but upgrading
devices may not support those types. This function will allow the
framework to identify which metadata types the device supports.

Bug: 141632767
Test: VtsHalGraphicsMapperV4_0TargetTest

Change-Id: I760cf054d2b6f08a52ad70f4ae60a39a63500939
2019-11-20 15:38:42 -08:00
Lloyd Pique
43286a882b Merge "audio: Remove redundant PrintTo definitions" am: 7582ba18ee am: c93cb2e4b4
am: b72d057e24

Change-Id: I759f0e3a808780eb8b686d2553efeb96e46c3b7f
2019-11-20 15:02:12 -08:00
Lloyd Pique
b72d057e24 Merge "audio: Remove redundant PrintTo definitions" am: 7582ba18ee
am: c93cb2e4b4

Change-Id: I4e6e65be595b0d4df466c235904ad8b4c7d3ea75
2019-11-20 14:58:51 -08:00
Lloyd Pique
c93cb2e4b4 Merge "audio: Remove redundant PrintTo definitions"
am: 7582ba18ee

Change-Id: I0a56044e6e532dd5608f8908963904a7c1b1fc1d
2019-11-20 14:55:19 -08:00
Lloyd Pique
7582ba18ee Merge "audio: Remove redundant PrintTo definitions" 2019-11-20 22:46:34 +00:00
Steven Moreland
7a72c47eb3 Merge "TEST_MAPPING: vts_treble_vintf_*_test" am: 432717e309 am: f65c312af9
am: b891c44582

Change-Id: Ie2724281a1ad44b376c84e762286ac8082e51bc5
2019-11-20 13:42:28 -08:00
Steven Moreland
b891c44582 Merge "TEST_MAPPING: vts_treble_vintf_*_test" am: 432717e309
am: f65c312af9

Change-Id: I947ffdd2c9d5da1dc92e10752dd9ac887ca7a761
2019-11-20 13:38:57 -08:00
Steven Moreland
f65c312af9 Merge "TEST_MAPPING: vts_treble_vintf_*_test"
am: 432717e309

Change-Id: Iee582dd25dff453a97077ec3126c33c5d1196637
2019-11-20 13:35:26 -08:00
TreeHugger Robot
2db70a94a1 Merge "Camera: Signal when all Hal requested buffers return" 2019-11-20 21:26:04 +00:00
Treehugger Robot
432717e309 Merge "TEST_MAPPING: vts_treble_vintf_*_test" 2019-11-20 21:18:19 +00:00
Shawn Willden
0e363cda29 Add Keymaster 4.1 hashes
Merging hashes separately to address merge conflict.

Change-Id: I929ddc0b9a02ffac45be67aa04adda2a32f6a85c
Merged-in: If0705662121c91f7f4a5753bba9e2f9a07890686
Test: N/A
2019-11-20 12:14:36 -07:00
Shawn Willden
94ad891792 Add Keymaster 4.1
Note that CL is missing complete tests (what's included is just a
stub, really) and support library code.  All of that will come in
near-future CLs.  This CL omits them because they'll take time and
there's a need to unblock Keymaster 4.1 implementers now.

Bug: 140193672
Bug: 140192237
Bug: 140824829
Test: Will be in a future CL
Change-Id: I0e6e3a38356f0517158a10604b549415641ad1b9
2019-11-20 12:14:36 -07:00
Jakub Pawlowski
1e32cdf320 Merge "bluetooth: V1.1" am: 58b3a47b89 am: 57ab4a1db2
am: 4fd666d86a

Change-Id: Ice95085e625ffb90db8efb0411fb70437093d41c
2019-11-20 11:05:38 -08:00
Jakub Pawlowski
4fd666d86a Merge "bluetooth: V1.1" am: 58b3a47b89
am: 57ab4a1db2

Change-Id: I1829438c711c76ef2ff585c8ec75a5baf9e88213
2019-11-20 11:01:58 -08:00
Jakub Pawlowski
57ab4a1db2 Merge "bluetooth: V1.1"
am: 58b3a47b89

Change-Id: I5083217a4c23ba223a02774ab071f0edfb7079b6
2019-11-20 10:57:58 -08:00
Jakub Pawlowski
58b3a47b89 Merge "bluetooth: V1.1" 2019-11-20 18:42:10 +00:00
Ady Abraham
a1df7c3d1f composer: few changes for refresh rate switching
- getDisplayConfigs is required to remain backward compatible with
   composer@2.3 and older versions. To keep it that way a new config
   attribute was added to group similar configs.
 - getSupportedDisplayVsyncPeriods was removed as the vsync period
   can be obtained by getDisplayAttribute for each individual config.
 - renamed setActiveConfigAndVsyncPeriod -> setActiveConfigWithConstraints
   to better describe what this function does.
 - added VsyncPeriodChangeTimeline and onVsyncPeriodTimingChanged

With these changes composer is expected to return all possible
configurations when getDisplayConfigs (similar to older composer versions).
The client knows whether a seamless vsync period is possible or not by
the config groups.

Test: rev up composer to 2.4 and test refresh rate switching
Bug: 141329414
Change-Id: I1b4525f7e00b62cdaf260274abe4a6a5962ed1ab
2019-11-20 18:30:34 +00:00
Steven Moreland
69472910fd Merge "Remove vibrator@1.4" am: 716868f7fd am: eec11626a9
am: 41b1637078

Change-Id: I6ad19307c02ff01b1cedb791db33575db351d248
2019-11-20 09:09:47 -08:00