Commit graph

8632 commits

Author SHA1 Message Date
Frank Salim
ad57fa93fb ImportWrappedKey: preliminary VTS tests
• Happy-path import
• Masked
• Wrong mask
• Wrong Purpose

Bug: 63931634

Test: data/nativetest/VtsHalKeymasterV4_0TargetTest/VtsHalKeymasterV4_0TargetTest --hal_service_instance=android.hardware.keymaster@4.0::IKeymasterDevice/strongbox
Change-Id: Ie7948bca25ee4840d179fb879b054755199c96d9
2018-01-18 17:32:35 -07:00
TreeHugger Robot
df8671555f Merge "health: update comments." 2018-01-18 22:40:29 +00:00
Hongwei Wang
8655bc3e59 Removes deprecated audio property in vehicle hal
Bug: 72054677
Test: None
Change-Id: I68a29c786dabf99afb4c44b49586f372a97abae6
2018-01-18 21:01:24 +00:00
Yifan Hong
83a5b5a9eb health: update comments.
Test: pass
Bug: 63702641
Change-Id: Iedf1bfe37a356e5801a09e313ac186fdc73668ca
2018-01-18 12:49:19 -08:00
Guennadi Liakhovetski
e56eafc61d Merge "Camera: Fix hotplug" am: d7a0f2984d am: 78d88380d3
am: 99aaf673c5

Change-Id: I3e9566c4960c9f11376c7b0c8f377f9ccc1ac1ac
2018-01-18 20:20:55 +00:00
Guennadi Liakhovetski
99aaf673c5 Merge "Camera: Fix hotplug" am: d7a0f2984d
am: 78d88380d3

Change-Id: I1900d086672c7541e1100321563079c675a5d55d
2018-01-18 20:18:16 +00:00
Guennadi Liakhovetski
78d88380d3 Merge "Camera: Fix hotplug"
am: d7a0f2984d

Change-Id: I4080b7ac5ae3999702e346224e9392c548015a4c
2018-01-18 20:16:15 +00:00
Treehugger Robot
d7a0f2984d Merge "Camera: Fix hotplug" 2018-01-18 20:11:39 +00:00
Etan Cohen
9e7a405733 [AWARE] Add power confriguration parameters to HAL 1.2
Add configuration parameters (power optimization) to NAN HAL 1.2.

Bug: 67745737
Test: integration tests
Change-Id: I65524c05c6861d7b54e441572b3be918bc6bb5ab
2018-01-18 19:29:59 +00:00
TreeHugger Robot
ad22189d79 Merge changes Iab4d397d,Ie38dd261,Ibec647f1,I5f5cbb59,I01c0c867
* changes:
  soundtrigger: Add VTS tests for v2.1
  soundtrigger: Default implementation for version 2.1
  soundtrigger: Refactor the default implementation to be extensible
  soundtrigger: Apply clang-format to 2.0 default implementation
  soundtrigger: Define v2.1 HAL
2018-01-18 18:40:24 +00:00
TreeHugger Robot
759987d939 Merge changes from topic "health_report_api"
* changes:
  Test API returning health information
  Add an API to return Health Info
2018-01-18 18:04:18 +00:00
Mikhail Naganov
dd49a1b129 soundtrigger: Add VTS tests for v2.1
Re-tests the implementation of the inherited methods from v2.0.

Adds tests for the methods introduced in v2.1.

Bug: 68823037
Test: VtsHalSoundtriggerV2_1TargetTest
Change-Id: Iab4d397d2581da1ff9e0d87c7f8d4fa8b483cdd5
2018-01-17 17:24:21 -08:00
Steven Moreland
43ca3b0a37 Merge "Update makefiles for audio." am: e5b3e4b869 am: b87db68677
am: 55113b8256

Change-Id: I7c99c9450f8ac12fcd08cded9da31b1c89a6b474
2018-01-18 01:21:44 +00:00
Steven Moreland
55113b8256 Merge "Update makefiles for audio." am: e5b3e4b869
am: b87db68677

Change-Id: I30ba693f50ce05e4fe083e24be17bb5f8a3f13dd
2018-01-18 01:12:41 +00:00
Steven Moreland
b87db68677 Merge "Update makefiles for audio."
am: e5b3e4b869

Change-Id: Ibb692f7dafbf1bc0e905ca8acac23221f6e1b193
2018-01-18 01:04:19 +00:00
Roshan Pius
e178c932d0 Merge "hostapd(interface): Add a HIDL interface for hostapd" 2018-01-18 00:49:19 +00:00
Treehugger Robot
e5b3e4b869 Merge "Update makefiles for audio." 2018-01-18 00:41:57 +00:00
TreeHugger Robot
dfae884922 Merge "Add support for 3DES algorithm to Keymaster." 2018-01-18 00:38:32 +00:00
Hridya Valsaraju
87e29602a0 Test API returning health information
Bug: 71860528
Test: vts-tradefed run vts -m VtsHalHealthV2_0
Change-Id: I44f76b383a890a3f75f82da512d778c3572b3dea
2018-01-18 00:27:42 +00:00
Steven Moreland
23f19b13f1 Update makefiles. am: a6c5ff2c6d am: 19fda75273
am: 66477194a4

Change-Id: Ibd056d86f726c70e08a2db0c29f75fd10ae0648d
2018-01-18 00:17:52 +00:00
Steven Moreland
66477194a4 Update makefiles. am: a6c5ff2c6d
am: 19fda75273

Change-Id: I2cbd273d4f9420d075351d97bae4a635037749a5
2018-01-18 00:08:47 +00:00
Steven Moreland
19fda75273 Update makefiles.
am: a6c5ff2c6d

Change-Id: I624ec8f0956cbfcd7d461e245d8121919f441167
2018-01-17 23:58:30 +00:00
TreeHugger Robot
f24b8c30ac Merge "Refactor get_health_service" 2018-01-17 22:55:25 +00:00
Shawn Willden
8823a4415c Add support for 3DES algorithm to Keymaster.
Test: VtsHalKeymasterV4_0TargetTest
Bug: 31675676
Change-Id: I68a67b78979002a38e92454f79715ed516026889
2018-01-17 14:15:38 -07:00
TreeHugger Robot
3c0740e238 Merge "IHealth: get* function return 0 on fail." 2018-01-17 20:46:28 +00:00
Hridya Valsaraju
1bd3772833 Add an API to return Health Info
Bug: 71860528
Test: vts-tradefed run vts -m VtsHalHealthV2_0

Change-Id: I5e0defdabcd8e44b32a6eab609492ff354512e64
2018-01-17 20:31:32 +00:00
Steven Moreland
11f290b1ba Update makefiles for audio.
This dependency is imported but not used, so it should technically
go in the Android.bp file.

Bug: 71863483
Test: none
Change-Id: I3ee391bdea47182689156b3243b75a3572f7d8bf
2018-01-17 11:25:24 -08:00
Steven Moreland
a6c5ff2c6d Update makefiles.
Some have missed being updated.

Bug: N/A
Test: N/A
Change-Id: I0925e85701f6e8b98f9b09bfafbed73469d1d185
2018-01-17 11:20:17 -08:00
Yifan Hong
81874af4a1 IHealth: get* function return 0 on fail.
getChargeCounter, getCurrentNow, getCurrentAverage,
getCapacity, getEnergyCounter returns 0 when result is
not SUCCESS.

This is consistent with the invalid value defined
by @1.0::IHealthInfo and @2.0::IHealthInfo.
IHealthInfoCallback.healthInfoChanged() and
IHealth.getHealthInfo() both zero-fill invalid values.

This does not affect any clients, because client code
checks for result before using the value.

Test: health VTS test
Change-Id: I50e6faa5f4feb42bb1ec899e289567d6dde7e9c2
2018-01-17 11:14:50 -08:00
Yifan Hong
954c3ff81a Refactor get_health_service
Refactor get_health_service into a module named libhealthhalutils.

Test: pass
Bug: 68388678
Change-Id: Ibeb22c017689c87dc81f21e954f9cedced4ee39c
2018-01-17 18:26:23 +00:00
Wei Wang
b55e22a5b5 Merge "add powerhal 1.2 to compatibility_matrix" 2018-01-17 17:44:54 +00:00
Mikhail Naganov
2b228bb378 soundtrigger: Default implementation for version 2.1
Wrapped around the 2.0 default implementation. Added functionality
for retrieving and sending the data via shared memory.

Bug: 68823037
Test: compiles
Change-Id: Ie38dd261dc8c635462a7e2ee26672a83af915e84
2018-01-17 09:31:57 -08:00
Mikhail Naganov
dfdc3bbccd soundtrigger: Refactor the default implementation to be extensible
Introduce an inner "trampoline" class that implements
ISoundTriggerHw. This allows minor uprev implementation to inherit
from SoundTriggerHalImpl and reuse its functionality.

Split SoundModelClient into an abstract common part and
version-specific part. This allows the client to be redefined for
the types used in callback interface extensions.

Split the impl library into "core" part and the part implementing
HIDL_FETCH_ISoundTriggerHw function to avoid clash with the same
function introduced in minor uprev implementation.

Bug: 68823037
Change-Id: Ibec647f1aa7bc6a2a0bdfd1c9f9a066e4779a1bf
Test: make
2018-01-17 09:31:57 -08:00
Mikhail Naganov
0bbc4aa61f soundtrigger: Apply clang-format to 2.0 default implementation
The implementation needs to be updated to become extensible.
The current coding style is not consistent with the style
required for hardware/interfaces.

Reformatted with:
   clang-format -style=file -i <...>/SoundTriggerHalImpl.*
No manual changes.

Bug: 68823037
Change-Id: I5f5cbb599190a515dec8afe9026ca835b8fd20fa
Test: make
2018-01-17 09:31:57 -08:00
Mikhail Naganov
882d2377ec soundtrigger: Define v2.1 HAL
SoundTrigger 2.1 HAL is an extension to 2.0 fixing
the issue with of data blobs of arbitrary size that
can't outgrow HwBinder's IPC transaction size limit.
Instead of vectors, shared memory handles are used.

Added methods for getting and setting parameters.
The parameters are opaque to the framework, it does
not interpret them.

Bug: 68823037
Change-Id: I01c0c867e1d13023a22ccf408e84da78947d3bc2
Test: run hardware/interfaces/update-makefiles.sh
2018-01-17 09:31:57 -08:00
TreeHugger Robot
d2339ffff2 Merge "camera: Correct 'availableSessionKeys' version" 2018-01-17 10:25:31 +00:00
Wei Wang
277ce85c27 add powerhal 1.2 to compatibility_matrix
Bug: 71613821
Test: Build
Change-Id: I4587028c5c38e35e00522b2e9041f0b07ac7e036
2018-01-16 18:37:58 -08:00
TreeHugger Robot
3b71d1b3d2 Merge "Add Trusted User Presence support to Keymaster HAL." 2018-01-17 01:54:26 +00:00
Peng Xu
6e7e1fb1ae Merge "Fix flakiness of sensor VTS test cases" into oreo-dev am: 863c52448e -s ours am: 4e87b60b32 -s ours am: 838e20a332 -s ours
am: 1c0e2b979c  -s ours

Change-Id: I71b4dcb8806b672cda969861808c767d22a05580
2018-01-17 01:10:45 +00:00
Mikhail Naganov
a2409ba938 Audio VTS: Allow 4GB buffer prepareToWrite/Read to succeed on 64 bits am: c5103e68ae -s ours am: 8b0d0f9443 -s ours am: 7ab1aff33e -s ours
am: a37d2a50aa  -s ours

Change-Id: Ibab89aeb9482d67738af38cb0a939a75c24a8620
2018-01-17 01:10:19 +00:00
Chia-I Wu
d48e7f3f9d graphics: ignore/reduce spurious vsync in VTS am: 353cc075bf -s ours am: 6fb7e9ba65 am: f6c9802326
am: 365ae7f934

Change-Id: I8365b0bb1c257c295c4f504100d476a9fee9acb4
2018-01-17 01:09:58 +00:00
Peng Xu
1c0e2b979c Merge "Fix flakiness of sensor VTS test cases" into oreo-dev am: 863c52448e -s ours am: 4e87b60b32 -s ours
am: 838e20a332  -s ours

Change-Id: I1b9aab933c458bcbc20fa6bfca893827dea16aea
2018-01-17 01:08:20 +00:00
Mikhail Naganov
a37d2a50aa Audio VTS: Allow 4GB buffer prepareToWrite/Read to succeed on 64 bits am: c5103e68ae -s ours am: 8b0d0f9443 -s ours
am: 7ab1aff33e  -s ours

Change-Id: I04ff1051a42a37d86c9eda103a9fe7cdbad34b41
2018-01-17 01:07:55 +00:00
Chia-I Wu
365ae7f934 graphics: ignore/reduce spurious vsync in VTS am: 353cc075bf -s ours am: 6fb7e9ba65
am: f6c9802326

Change-Id: Ib04a132ce0b399cbcfdfeee3a27669cb278a5c91
2018-01-17 01:07:29 +00:00
Peng Xu
838e20a332 Merge "Fix flakiness of sensor VTS test cases" into oreo-dev am: 863c52448e -s ours
am: 4e87b60b32  -s ours

Change-Id: I4fd82816601d638e1d0f57f181d7ce4720d33bef
2018-01-17 01:06:01 +00:00
Mikhail Naganov
7ab1aff33e Audio VTS: Allow 4GB buffer prepareToWrite/Read to succeed on 64 bits am: c5103e68ae -s ours
am: 8b0d0f9443  -s ours

Change-Id: I1e69b561a5d6d1192ab254907b371c291dcffc17
2018-01-17 01:05:33 +00:00
Chia-I Wu
f6c9802326 graphics: ignore/reduce spurious vsync in VTS am: 353cc075bf -s ours
am: 6fb7e9ba65

Change-Id: I459e48299b6364b00a68635eee00235c5bae2c03
2018-01-17 01:05:09 +00:00
Chia-I Wu
e3d33876d4 graphics: use allocator HAL support library in default impl am: 699df2167a am: 4e8ce3ea5e
am: 0569d7fdec

Change-Id: Id09e0c7e8a864c350ea6f4bfa9f24b5485ce60d3
2018-01-16 18:46:36 +00:00
Chia-I Wu
aa04f5beb9 graphics: clang-format allocator default impl am: 864c9f8234 am: 0651511689
am: c11b350596

Change-Id: Iffa1203ba058201539f0bb34c910c5fddb93a66f
2018-01-16 18:46:18 +00:00
Chia-I Wu
986c62c85b graphics: make allocator default impl a static library am: b511645d99 am: 80a04eb319
am: 2876b05378

Change-Id: I9a1cb8b600a0b1846877cacf15d837a47aeaf07f
2018-01-16 18:46:01 +00:00