Commit graph

18351 commits

Author SHA1 Message Date
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
Michael Butler
c3e1a29a60 NN 1.3 HAL: ANAPIC review follow up
This CL makes the following three interface changes:
* Removes @1.3::Operand.ExtraParams, because it was the same as
  @1.2::Operand.ExtraParams
* Changes int32_t token to uint32_t for IDevice::allocate and for
  @1.3::Request.MemoryPool
* Renames OptionalTimePoint::nanoseconds to
  OptionalTimePoint::nanosecondsSinceEpoch

This CL also makes test changes in response to the interface changes,
and fixes a minor comment issue in @1.2::types.hal and @1.3::types.hal.

Bug: 148617339
Test: mma
Test: VtsHalNeuralnetworksV1_3TargetTest
Change-Id: I95b49ab34b0b79f587dda035ede700b73dc44a38
Merged-In: I95b49ab34b0b79f587dda035ede700b73dc44a38
(cherry picked from commit 6a4172cd3d)
2020-02-12 17:52:34 -08:00
Automerger Merge Worker
4ae48e66a6 Merge "Add STORAGE_KEY tag to keymaster 4.1" am: 9498310c3d
Change-Id: Ic9b254f0f1b9ccf7253547b92e123e461c4eb465
2020-02-12 01:07:26 +00:00
Automerger Merge Worker
ec48df715a Merge "Add support lib wrappers for clients" am: b2f3e87ce3
Change-Id: If4f081c444e653b02f08c33ebdb2725a4be3a6b7
2020-02-12 01:06:54 +00:00
Automerger Merge Worker
56b8c4ede6 Merge "Keymaster 4.1 VTS tests" am: 75629017d2
Change-Id: I44e678dac52ec15b7c3d1884735582495dfd21ab
2020-02-12 01:05:59 +00:00
Automerger Merge Worker
097aaee88f Merge "Update KM4 VTS tests to allow s/w implementation to pass." am: 1cba34ebd4
Change-Id: I83adafe6eef5abad38647a55f854a7985843ad10
2020-02-12 01:05:45 +00:00
Automerger Merge Worker
d2ac5c416c Merge "Remove service death test." am: 42542b5715
Change-Id: I0369512d0682c44043687ae6ee0db48fd910a5de
2020-02-12 01:05:23 +00:00
Automerger Merge Worker
bf1591fd91 Merge "Change finish input test to avoid large sizes." am: c24d51fa46
Change-Id: Iffab4f642ffe606189b50c8409150def00cd6e58
2020-02-12 01:05:00 +00:00
Automerger Merge Worker
63f4ac766b Merge changes I487000cc,I9310a851 am: a15f40bd0c
Change-Id: Ib890b46db60d9099123f60494fcc8a8f046c9728
2020-02-12 01:03:43 +00:00
Automerger Merge Worker
1c550eb78f Remove dependency on libsoftkeymaster. am: fcc4c5c71b
Change-Id: I80a3f4f8a9b9715e63ad84365cf2793b5aaf1446
2020-02-12 01:03:40 +00: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
Automerger Merge Worker
abd26b3862 Merge "power: add more modes into into power hal" am: 502d38d9f7
Change-Id: If1d79bb206c83832ca2913268c7381a407de42db
2020-02-12 00:53:08 +00:00
Wei Wang
502d38d9f7 Merge "power: add more modes into into power hal" 2020-02-12 00:40:57 +00:00
Automerger Merge Worker
be35252727 Update VTS tests for executeFenced am: aaa3c24f10
Change-Id: Ieb8f5d319c0d71fd4b33d7a19f289a34e047cba3
2020-02-12 00:02:17 +00:00
Automerger Merge Worker
eb72581807 Add a VTS test to validate NNAPI driver name string. am: cc18d3fede
Change-Id: Idf27e80e73b8e4b98bc3e11c4abed5e19faa8e07
2020-02-12 00:02:14 +00: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
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
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
Automerger Merge Worker
3251b30fb2 Merge "Revert "Remove VtsHalNeuralnetworksV1_2TargetTest from vts-core suite"" am: 20a5d89241
Change-Id: Icf2aef7d900275e8294a5ccd01beba245287ac7f
2020-02-11 19:00:43 +00:00
Treehugger Robot
20a5d89241 Merge "Revert "Remove VtsHalNeuralnetworksV1_2TargetTest from vts-core suite"" 2020-02-11 18:48:38 +00:00
Automerger Merge Worker
ce49c1fe76 Merge "Add definitions of GMOCK_RESULT_ and GMOCK_ARG_" am: 71650dd6ba
Change-Id: Idfe0937e899a366d04871145fde88429feb458cf
2020-02-11 01:08:31 +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
Automerger Merge Worker
2bd5e654fb Merge "Update copyHAL.sh after changes in libaudiohal" am: f2212ca85c
Change-Id: I88c12a5ddacd2092d81fba81cdb1a974382b7bde
2020-02-10 22:39:23 +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
Automerger Merge Worker
74f96cef00 Merge "IDumpstateDevice@1.1 polish" am: d05efa2c1f
Change-Id: Ib2fb4c0749f96fcfea01ab957f5da1bded3dd852
2020-02-10 20:53:37 +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
Automerger Merge Worker
2b59db2ca7 Merge "Fix health.storage test" am: 5adcaebd8c
Change-Id: I98bb28cff68ea4a25e81e236cd577fa79d5dc7e5
2020-02-09 03:54:52 +00:00
Treehugger Robot
5adcaebd8c Merge "Fix health.storage test" 2020-02-09 03:47:37 +00:00
Automerger Merge Worker
2d42961f91 Merge "Add a few type for Analog frontend" am: 69459316b8
Change-Id: Ia5cfbf4393123f7e8367b418ac58b01a3739bc22
2020-02-08 02:27:51 +00:00
Treehugger Robot
69459316b8 Merge "Add a few type for Analog frontend" 2020-02-08 02:10:24 +00:00
Automerger Merge Worker
cc5bbb2b38 Merge "Add @export to frontend scan enums" am: 76c90b21cc
Change-Id: If1dc78c857105b378ab724afe542e735acc092ed
2020-02-08 01:57:25 +00:00
Automerger Merge Worker
c61fdd1fb4 Merge "Export FrontendDvbtPlpMode" am: 4556d59c3a
Change-Id: I9615940e9ccd13061af7d9e69bcfcf51e9403cf6
2020-02-08 01:57:15 +00:00
Automerger Merge Worker
6fa8b8e7e2 Merge "Add DataId for Audio Handle in Audio Track" am: c670dca9c6
Change-Id: I199bacb74de834cbf552d9a938c67ec8dd589f2c
2020-02-08 01:57:00 +00:00