Commit graph

17499 commits

Author SHA1 Message Date
Dan Stoza
8fa535c78e power: Make AIDL HAL mandatory for new devices
Makes the AIDL Power HAL mandatory for new devices. As almost all of
the power hints are already optional, this is effectively just
requiring FIXED_PERFORMANCE mode, which is necessary for game tuning
and performance profiling.

Bug: 136285293
Test: N/A
Change-Id: Ie4c01f13661b2388d8c905159d957f9996c41ee6
2020-02-13 14:50:34 -08:00
Dan Stoza
cca80279e2 power: Add DPF and update imminent hints to AIDL
Adds FIXED_PERFORMANCE mode for the dynamic performance framework as
well as a "display update imminent hint" to the AIDL version of the
Power HAL.

Test: VtsHalPowerTargetTest
Bug: 120610745
Bug: 136285293
Bug: 146453294
Change-Id: I0cda99822eed015131f8f068512842a388f9c25c
2020-02-13 14:49:16 -08:00
Treehugger Robot
9498310c3d Merge "Add STORAGE_KEY tag to keymaster 4.1" 2020-02-12 00:56:27 +00:00
Treehugger Robot
b2f3e87ce3 Merge "Add support lib wrappers for clients" 2020-02-12 00:56:18 +00:00
Treehugger Robot
75629017d2 Merge "Keymaster 4.1 VTS tests" 2020-02-12 00:56:06 +00:00
Treehugger Robot
1cba34ebd4 Merge "Update KM4 VTS tests to allow s/w implementation to pass." 2020-02-12 00:55:56 +00:00
Treehugger Robot
42542b5715 Merge "Remove service death test." 2020-02-12 00:55:47 +00:00
Treehugger Robot
c24d51fa46 Merge "Change finish input test to avoid large sizes." 2020-02-12 00:55:27 +00:00
Treehugger Robot
a15f40bd0c Merge changes I487000cc,I9310a851
* changes:
  Update Keymaster 4.0 VTS to use parameterized tests.
  Remove dependency on libsoftkeymaster.
2020-02-12 00:55:15 +00:00
Wei Wang
502d38d9f7 Merge "power: add more modes into into power hal" 2020-02-12 00:40:57 +00:00
Barani Muthukumaran
9e8014d1d5 Add STORAGE_KEY tag to keymaster 4.1
These are keymaster keys used specifically for storage
encryption. This provides the ability for keymaster implementations to
securely protect storage encryption keys.

Test: VtsHalKeymasterV4_1TargetTest
Bug: 147733587
Change-Id: I5f7f83755fcbed96d8f38fa51812aa6d2eb0927b
Merged-In: I5f7f83755fcbed96d8f38fa51812aa6d2eb0927b
2020-02-11 15:51:03 -07:00
Shawn Willden
166c5c70c2 Add support lib wrappers for clients
Bug: 140193672
Bug: 140192237
Test: CtsKeystoreTestCases
Change-Id: I0157df310f85d83cef07282ea80204c035626518
Merged-In: I0157df310f85d83cef07282ea80204c035626518
2020-02-11 15:51:03 -07:00
Shawn Willden
3f7c80ac05 Keymaster 4.1 VTS tests
Bug: 140193672
Bug: 140192237
Test:  VtsHalKeymasterV4_1TargetTest
Change-Id: I488402079ebb3940e021ac1558aeee15c4b133c9
Merged-In: I488402079ebb3940e021ac1558aeee15c4b133c9
2020-02-11 15:51:03 -07:00
Shawn Willden
390825b291 Update KM4 VTS tests to allow s/w implementation to pass.
Although no real devices should have a software implementation,
emulator and cloud devices do, and it's useful to be able to use them
as a development platform, which is facilitated by having useful VTS
tests.

This is in preparation for Keymaster 4.1 implementation and VTS work.

Bug: 140193672
Bug: 140192237
Bug: 140824829
Test: VtsHalKeymaster4.0TargetTest
Change-Id: Idc5de13c342ef1ac62d3131a1a2185d5e78a0d45
Merged-In: Idc5de13c342ef1ac62d3131a1a2185d5e78a0d45
2020-02-11 15:51:03 -07:00
Shawn Willden
4c813d3c21 Remove service death test.
Moving to KM4.1 VTS.

Test: VtsHalKeymasterV4_0TargetTest
Change-Id: I8f2b7ab3305833fe8639fdefb9cc263f99684920
Merged-In: I8f2b7ab3305833fe8639fdefb9cc263f99684920
2020-02-11 15:51:03 -07:00
Shawn Willden
d6afe21ccd Change finish input test to avoid large sizes.
We'll add a large-size test to the Keymaster 4.1 VTS tests.

Test: VtsHalKeymasterV4_0TargetTest
Change-Id: I2460106cf918e44ea5eeac5c518a89c311756eb3
Merged-In: I2460106cf918e44ea5eeac5c518a89c311756eb3
2020-02-11 15:51:03 -07:00
Shawn Willden
ef28554d35 Update Keymaster 4.0 VTS to use parameterized tests.
Bug: 139437880
Test: VtsHalKeyamsterV4_0TargetTest
Change-Id: I487000cc19fe355fdef88f1561a38b2cbfd3c3c3
Merged-In: I487000cc19fe355fdef88f1561a38b2cbfd3c3c3
2020-02-11 15:51:03 -07:00
Shawn Willden
fcc4c5c71b Remove dependency on libsoftkeymaster.
This is part of a refactor to facilitate reuse in Keymaster 4.1 VTS
tests.

Bug: 140193672
Bug: 140192237
Test: VtsHalKeymasterV4_0TargetTest
Change-Id: I9310a851648c028850f9795d303419c6a7e29a11
Merged-In: I9310a851648c028850f9795d303419c6a7e29a11
2020-02-11 15:51:03 -07:00
Wei Wang
0cbdab785a power: add more modes into into power hal
Doze and display state modes can be useful for device level
power/perf optimization for inactive device state.
Right now setInteractive is coupled with display setting
config_powerDecoupleInteractiveModeFromDisplay so this CL introduces
2 more mores to expose device idle and display state to device
explicitly.

Bug: 140148621
Test: Build
Change-Id: Id1d15750ec0a3c6f7be400bda9ec771cd5a90341
2020-02-11 14:32:52 -08:00
Miao Wang
aaa3c24f10 Update VTS tests for executeFenced
- Remove the DEVICE_UNAVAILABLE check
 - Pass deadline down to the driver.

Bug: 148979873
Test: mm
Test: VtsHalNeuralnetworksV1_3TargetTest
Change-Id: If90a0dce8c8907a2f8f806455074fa27e3f397ef
Merged-In: If90a0dce8c8907a2f8f806455074fa27e3f397ef
(cherry picked from commit 15a25f6ec1)
2020-02-11 12:37:36 -08:00
Miao Wang
cc18d3fede Add a VTS test to validate NNAPI driver name string.
Bug: 134755158
Test: VtsHalNeuralnetworksV1_2TargetTest
Change-Id: Iead93f0a251fdbbf94df6dfdf27919d3f6fd71a8
Merged-In: Iead93f0a251fdbbf94df6dfdf27919d3f6fd71a8
(cherry picked from commit 2729d825cb)
2020-02-11 12:37:20 -08:00
Treehugger Robot
20a5d89241 Merge "Revert "Remove VtsHalNeuralnetworksV1_2TargetTest from vts-core suite"" 2020-02-11 18:48:38 +00:00
Dan Shi
6e48bde237 Revert "Remove VtsHalNeuralnetworksV1_2TargetTest from vts-core suite"
This reverts commit 07f4235b53.

Reason for revert: b/144527956

Change-Id: I70c3e99689901556e279200751a90e77fb4fd840
2020-02-11 01:04:07 +00:00
Haibo Huang
71650dd6ba Merge "Add definitions of GMOCK_RESULT_ and GMOCK_ARG_" 2020-02-11 00:56:13 +00:00
Treehugger Robot
f2212ca85c Merge "Update copyHAL.sh after changes in libaudiohal" 2020-02-10 22:32:44 +00:00
Haibo Huang
2d2ca3ca41 Add definitions of GMOCK_RESULT_ and GMOCK_ARG_
These two definitions are removed in new googletest. Copy them here.

(Ideally we should not depend on googletest internal.

Change-Id: I399549dc33dce7a464e81978e0697fc649ff01b0
2020-02-10 22:09:18 +00:00
Mikhail Naganov
d432d51627 Update copyHAL.sh after changes in libaudiohal
Bug: 148118201
Test: copyHAL.sh 5.0 6.0
Change-Id: I7cb2f7c5216c4095fa36c2c96ebbe2a2255b0691
2020-02-10 12:46:23 -08:00
Treehugger Robot
d05efa2c1f Merge "IDumpstateDevice@1.1 polish" 2020-02-10 20:38:39 +00:00
Treehugger Robot
5adcaebd8c Merge "Fix health.storage test" 2020-02-09 03:47:37 +00:00
Treehugger Robot
69459316b8 Merge "Add a few type for Analog frontend" 2020-02-08 02:10:24 +00:00
Amy Zhang
76c90b21cc Merge "Add @export to frontend scan enums" 2020-02-08 01:47:40 +00:00
Amy Zhang
4556d59c3a Merge "Export FrontendDvbtPlpMode" 2020-02-08 01:47:21 +00:00
Amy Zhang
c670dca9c6 Merge "Add DataId for Audio Handle in Audio Track" 2020-02-08 01:47:09 +00:00
Michael Butler
ea14e3445e Merge "NNAPI HAL: Remove priority from prepareModelFromCache_1_3" 2020-02-08 00:39:37 +00:00
Yifan Hong
c6e3fd118a Fix health.storage test
- fix root
- fix test timeout

Test: adb unroot and atest

Fixes: 149044321

Change-Id: Icc34af149641f7fe5035cee1fe9685b395adc22f
2020-02-07 22:49:07 +00:00
Treehugger Robot
e961dddd15 Merge "Add AIDL Lights HAL to support multiple lights per type" 2020-02-07 20:22:52 +00:00
Treehugger Robot
6918c455e1 Merge "audio: Fix audio effects schema for V6" 2020-02-07 18:26:07 +00:00
Treehugger Robot
195682b2cf Merge "[vts-core] add VtsHalBluetoothV1_0TargetTest to vts-core" 2020-02-07 09:49:42 +00:00
shubang
e3b37d3789 Add @export to frontend scan enums
Test: make;
Change-Id: I9489ae28722e73de0aba7e83b115935546e8e357
Merged-In: I9489ae28722e73de0aba7e83b115935546e8e357
(cherry picked from commit efb7ffa6ca)
2020-02-07 02:49:07 +00:00
Henry Fang
8c7b8b7e18 Add a few type for Analog frontend
Test: Manual
bug: 135708935
Change-Id: Ib0dbd610620682854f8c2b421285da39233cec01
Merged-In: Ib0dbd610620682854f8c2b421285da39233cec01
(cherry picked from commit d13c298ff5)
2020-02-06 18:48:40 -08:00
Henry Fang
92f17c7dcb Add DataId for Audio Handle in Audio Track
Test: Manual
bug: 135708935
Change-Id: I639d65999dbf1bf727837298804c350698a9f08a
Merged-In: I639d65999dbf1bf727837298804c350698a9f08a
(cherry picked from commit fe019ac3f7)
2020-02-06 18:47:55 -08:00
shubang
785589353f Export FrontendDvbtPlpMode
Test: make;
Change-Id: I3d4c0667ba1251b3038681759c50b453cd40a8ca
Merged-in: I3d4c0667ba1251b3038681759c50b453cd40a8ca
(cherry picked from commit e266073ed6)
2020-02-06 18:45:19 -08:00
Hunter Knepshield
256f77a588 IDumpstateDevice@1.1 polish
- Return a DumpstateStatus from dumpstateBoard_1_1
- Better toggle API surface: set/getDeviceLoggingEnabled
- Improved testing to allow for unsupported DumpstateMode values

Bug: 143183758
Bug: 143184495
Test: atest VtsHalDumpstateV1_1TargetTest
Merged-In: I505c2a790dc28ddce9b6f5b674394ef65b31c80c
(cherry picked from commit 6e278a3798)

Change-Id: Ibbd15f65674cfa6b9f5c1d6a633277a419499d9f
2020-02-06 18:23:38 -08:00
Steven Moreland
84dd3b7496 Add AIDL Lights HAL to support multiple lights per type
This is a revision of the previous 2.0 HIDL-based light HAL.
It accomplishes 2 goals:
 1) Support more than 1 light for a given type. This allows Assistant to
    use the HAL on TV platforms that have usually 4 indicator lights.
 2) Use AIDL, which is the more modern way of writing HALs.
The previous HAL is in hardware/interfaces/light/2.0 and the new one is
in versioned as aidl, as that supports forward compatibility.

Test: atest VtsHalLightTargetTest
Bug: 142715294, 142230898
Change-Id: I6d8c12b3df88e02f2a0fff8b6aa8543372b510c8
Merged-In: I08d831ca0380d8bb187e43f6d5c214810ff72f50
2020-02-07 01:50:36 +01:00
Treehugger Robot
456d54c936 Merge "NNAPI: Add OptionalTimeoutDuration to 1.3/types.t" 2020-02-07 00:50:17 +00:00
Mikhail Naganov
9f83bb9fb7 audio: Fix audio effects schema for V6
There was a mistake in the XSD file introduced in aosp/1201850.

Bug: 148979886
Test: atest VtsHalAudioEffectV6_0TargetTest
Change-Id: I02f869031e0d4687d6e099fa5d4593d4b5cc8243
2020-02-06 10:33:25 -08:00
Michael Butler
68a868b2ac NNAPI HAL: Remove priority from prepareModelFromCache_1_3
prepareModelFromCache_1_3 uses model cache and data cache that
represent a prepared model. Any argument that contributes in a
meaningful way to the prepared model is implicitly included in
this model cache and data cache. For example, "model" and
"executionPreference" appear in prepareModel_1_3 but not in
prepareModelFromCache_1_3 because they are implicitly included
in the model cache and data cache. In a similar way, because
it could affect the resulting model, "priority" should be
removed from prepareModelFromCache_1_3.

Fixes: 148802784
Test: mma
Test: VtsHalNeuralnetworksV1_3TargetTest
Change-Id: I518e493ead8aa97220b16370cce8523b425c378c
Merged-In: I518e493ead8aa97220b16370cce8523b425c378c
(cherry picked from commit c90250ff57)
2020-02-06 11:38:08 +00:00
Lev Proleev
124659e450 NNAPI: Add OptionalTimeoutDuration to 1.3/types.t
To sync 1.3/types.t with 1.3/types.hal

Test: generate_api.sh
Change-Id: I6a6e46ec82b4f25d77f7e1af18cc9d6f9478e5b7
Merged-In: I6a6e46ec82b4f25d77f7e1af18cc9d6f9478e5b7
(cherry picked from commit a9c097abec)
2020-02-06 11:38:06 +00:00
Dongwon Kang
b0607b90b9 Remove unnecessary include in service.cpp
Test: build.
Bug: 139201422

Exempt-From-Owner-Approval: cherry-pick from internal

Merged-In: I13fcd1223eacc999c66c514b549c51a96e4efda6
(cherry picked from commit d6887ca8cc)
Change-Id: I13fcd1223eacc999c66c514b549c51a96e4efda6
2020-02-06 18:47:39 +09:00
nelsonli
036685442b [vts-core] add VtsHalBluetoothV1_0TargetTest to vts-core
Bug: 142397658
Test: $atest VtsHalBluetoothV1_0TargetTest
Change-Id: Ic9efda5d766e35f58f9067d489ca91b1c3c3634e
2020-02-06 16:21:08 +08:00