Commit graph

15023 commits

Author SHA1 Message Date
Anil Admal
f9e2ec1bc3 Merge "Update GNSS VTS 2.0 tests to address sub-HAL support requirements" into qt-dev
am: bb477b95ad

Change-Id: I15e394aef23bd4d3d1b9796018ee741bec63d78d
2019-05-02 21:36:03 -07:00
Anil Admal
bb477b95ad Merge "Update GNSS VTS 2.0 tests to address sub-HAL support requirements" into qt-dev 2019-05-03 04:26:24 +00:00
Anil Admal
62d2ca7687 Update GNSS VTS 2.0 tests to address sub-HAL support requirements
- IGnssConfiguration.hal@2.0 must be supported.
- If IAGnss.hal is supported, it must be at IAGnss.hal@2.0
- If IAGnssRil.hal is supported, it must be at IAGnssRil.hal@2.0
- gnss.visibility_control sub-HAL is optional
- gnss.measurement_corrections sub HAL is optional.
- IGnssBatching.hal@2.0 support is optional.

Bug: 70978505
Test: atest VtsHalGnssV2_0TargetTest
Change-Id: Icf98c13ef32bdea7dafda8f79b685466712b16b6
2019-05-02 13:52:53 -07:00
Jack Yu
6cc457a923 [automerger skipped] Update nfc@1.1 to nfc@1.2 am: e573c8a46c
am: 46873071bb -s ours
am skip reason: change_id Ieaef96a228c8410f8c84aae89a36ac8e494eca68 with SHA1 57c15713c9 is in history

Change-Id: I5bcd4b1233de31a36c2d7dfa95f6c5a6c7d7f5ab
2019-05-02 04:21:15 -07:00
Jack Yu
46873071bb Update nfc@1.1 to nfc@1.2
am: e573c8a46c

Change-Id: Ib50ecaf4d369c9216c79156d1bc3adbd23ab0b6d
2019-05-02 04:16:12 -07:00
Slava Shklyaev
bb840a986a Merge "Document that quantized PAD behavior is undefined before NNAPI 1.2" into qt-dev
am: 7af01ada85

Change-Id: Ie720d5e1010d5dfc40f7b05c212fa1e56a028a96
2019-05-02 03:31:09 -07:00
TreeHugger Robot
7af01ada85 Merge "Document that quantized PAD behavior is undefined before NNAPI 1.2" into qt-dev 2019-05-02 10:13:28 +00:00
Jack Yu
e573c8a46c Update nfc@1.1 to nfc@1.2
Test: Manual
Bug: 129732996
Change-Id: Id7daa539208668727b4d18b9c032c5b68b422afd
Merged-In: Ieaef96a228c8410f8c84aae89a36ac8e494eca68
2019-05-02 08:48:28 +00:00
Steven Moreland
2e7c641b2c Merge "Add dep to ...broadcastradio@common-utils-2x-tests" into qt-dev
am: d64f48a504

Change-Id: Id77ccc02e5c9f6c2696765a9b13cbc4bb0366b23
2019-04-30 19:18:49 -07:00
Anil Admal
d8706c1fba Merge "Enforce launched-in-Q devices support gnss@2.0 HAL package (hal)" into qt-dev
am: 11ae50dcc2

Change-Id: Ia4aa2bb9ed08ca7a90f362ac1cc609020b73b4f4
2019-04-30 19:17:05 -07:00
Steven Moreland
d64f48a504 Merge "Add dep to ...broadcastradio@common-utils-2x-tests" into qt-dev 2019-05-01 01:21:46 +00:00
Anil Admal
11ae50dcc2 Merge "Enforce launched-in-Q devices support gnss@2.0 HAL package (hal)" into qt-dev 2019-05-01 00:21:49 +00:00
Michael Butler
852820c4ed Merge "Add validation tests for NNAPI Burst serialized format" into qt-dev
am: ef85db2b65

Change-Id: I8c8cdab2b2ea67322601f7d35146430b555e821a
2019-04-30 14:05:38 -07:00
Slava Shklyaev
b01ce9644e Document that quantized PAD behavior is undefined before NNAPI 1.2
We had no tests for quantized PAD in NNAPI 1.1 and think that vendors might have implemented different behaviors.

Bug: 122243484
Test: N/A
Change-Id: Ibfc0801ab746fc271dc5f8efc764b818c6d49df4
2019-04-30 15:27:53 +01:00
Miao Wang
0221549cfb Merge "Fix the order of width and height for NNAPI RESIZE_BILINEAR and RESIZE_NEAREST_NEIGHBOR" into qt-dev
am: e867be8b40

Change-Id: Ic98819efbddfba1be56fd4202806470aabdc29cf
2019-04-29 23:07:35 -07:00
Xusong Wang
d49c50c270 Merge "Move getSupportedOperations out of saveToCache." into qt-dev
am: 3ca195bf02

Change-Id: I391d730ee0c7d8965fe4066f303e8348d35013f8
2019-04-29 22:37:05 -07:00
Michael Butler
ef85db2b65 Merge "Add validation tests for NNAPI Burst serialized format" into qt-dev 2019-04-30 03:58:12 +00:00
TreeHugger Robot
e867be8b40 Merge "Fix the order of width and height for NNAPI RESIZE_BILINEAR and RESIZE_NEAREST_NEIGHBOR" into qt-dev 2019-04-30 03:23:31 +00:00
Steven Moreland
a58718951a soundtrigger: remove '/*' in comment. am: 48f0efb302
am: 0ce1e109dd

Change-Id: If990c96c2f895c58fb13777daca170388abdd574
2019-04-29 17:18:43 -07:00
Steven Moreland
0ce1e109dd soundtrigger: remove '/*' in comment.
am: 48f0efb302

Change-Id: I1698b9bb0d979af51369720fcc166eee60c7fbef
2019-04-29 17:11:41 -07:00
Miao Wang
286339b4c8 Fix the order of width and height for NNAPI RESIZE_BILINEAR and
RESIZE_NEAREST_NEIGHBOR

  - The CPU implementation always had the order of {width, height}.
  - In P, the documentation was incorrectly changed to {height, width}.

Bug: 131623949
Bug: 130035110
Test: mm
Change-Id: I6c79459fa73347fb51fc34a76ad78d5ac207f210
2019-04-30 00:06:17 +00:00
Michael Butler
20f28a24e9 Add validation tests for NNAPI Burst serialized format
This CL adds the following two types of validation tests on the NNAPI
Burst serialized format:
(1) it directly modifies the serialized data (invalidating it) to ensure
    that vendor  driver services properly validates the serialized
    request
(2) it ensures that vendor driver services properly fail when the result
    channel is not large enough to return the data

This CL additionally includes miscellaneous cleanups:
(1) having a generic "validateEverything" function
(2) moving the "prepareModel" function that's common across
    validateRequest and validateBurst to a common area

Fixes: 129779280
Bug: 129157135
Test: mma
Test: VtsHalNeuralnetworksV1_2TargetTest (with sample-all)
Change-Id: Ib90fe7f662824de17db5a254a8c501855e45f6bd
2019-04-29 23:56:48 +00:00
Xusong Wang
3ca195bf02 Merge "Move getSupportedOperations out of saveToCache." into qt-dev 2019-04-29 23:41:42 +00:00
Steven Moreland
48f0efb302 soundtrigger: remove '/*' in comment.
This is causing C++ compiles of this interface to fail now that these
comments get copied into the output.

Bug: 130911129
Test: compilation now succeeds
Change-Id: Iaa3877620b032b7144e3bab114fbcd1e1483bc8e
2019-04-29 14:22:13 -07:00
Xusong Wang
f8c5987bbd Move getSupportedOperations out of saveToCache.
Before this change, getSupportedOperations_1_2 was invoked in
saveModelToCache prior to prepareModel_1_2, which delayed the model
preparation and cache overwriting always ran faster in
SaveToCache_TOCTOU test.

This change increases the chance that the model is overwritten after it
is saved in SaveToCache_TOCTOU test by moving getSupportedOperations_1_2
out of saveToCache.

Bug: 123433989
Test: VtsHalNeuralnetworksV1_xTargetTest with 1.2 sample driver
Test: VtsHalNeuralnetworksV1_xTargetTest with a test driver that can
      read and write cache entries
Test: TOCTOU tests with a sample driver that is deliberately broken

Change-Id: Ieba6a82252623ac429d5fcb6950b99db949f9886
2019-04-29 11:47:54 -07:00
Slava Shklyaev
f058fd6603 [automerger skipped] Specify ranks supported by MAXIMUM and MINIMUM am: 2331d7588e
am: 4e8fa9ac6e -s ours
am skip reason: change_id I8d877153e1acc8ca2ad5179d7fd7cdc136838ca3 with SHA1 6e15578156 is in history

Change-Id: Ib613a435a1bc8190d69f6b06ecf9b91a81c08da3
2019-04-29 11:44:26 -07:00
Slava Shklyaev
4e8fa9ac6e Specify ranks supported by MAXIMUM and MINIMUM
am: 2331d7588e

Change-Id: I188b39565713a04219d60c8b6902054c0d4d52cb
2019-04-29 11:39:23 -07:00
Yin-Chia Yeh
299d87a167 Merge "External Camera: support less thumbnail sizes" into qt-dev
am: 70e106d961

Change-Id: Id8b8a8e6dde98e1098a4c4d8d187543da1044dc5
2019-04-29 10:43:09 -07:00
TreeHugger Robot
70e106d961 Merge "External Camera: support less thumbnail sizes" into qt-dev 2019-04-29 17:33:11 +00:00
Xusong Wang
9f4cd602ec Test corrupted data cache in CompilationCachingTests.
am: 83ab17f224

Change-Id: I25a761d0982a8eb4dc5b32d8925feab9f66f61a1
2019-04-26 19:08:43 -07:00
Xusong Wang
98bd9a6884 Test TOCTOU in VTS CompilationCachingTests.
am: a44e130a92

Change-Id: I2e55bfd50ae29981dbc2334b4dbc7dc8e43d02fa
2019-04-26 19:08:33 -07:00
Changyeon Jo
78f17c5769 Merge "Add BGRA8888 format support." into qt-dev
am: 8d161a678b

Change-Id: I060d60122166eae3c0a8b8d732b26dabdc04da38
2019-04-26 18:43:08 -07:00
Michael Dooley
807e04fad7 Merge "Hooking up Hal Soundtrigger V2_2 VTS test" into qt-dev
am: 4ee2bc31a4

Change-Id: Ic1613b7442ee06005e46e64a7953fdff12adebeb
2019-04-26 18:15:25 -07:00
Garret Kelly
0c098a4af0 Merge "Fix comparison between hex and binary values" into qt-dev
am: a8a23aa389

Change-Id: I2974a3c02139d31038e759d65383ce4a91530b75
2019-04-26 16:57:36 -07:00
Slava Shklyaev
e5c74550ac Specify ranks supported by MAXIMUM and MINIMUM
am: 6e15578156

Change-Id: I98e4a1d9b83307967f68948c6f9c6f2a2ba14d43
2019-04-26 16:38:54 -07:00
Xusong Wang
83ab17f224 Test corrupted data cache in CompilationCachingTests.
We only expect the driver to not crash.

Bug: 123433989
Test: VtsHalNeuralnetworksV1_xTargetTest with 1.2 sample driver
Test: VtsHalNeuralnetworksV1_xTargetTest with a test driver that can
      read and write cache entries

Change-Id: Ic9bd7ad6e42d77d505955cb9dda597a39e95cdb6
2019-04-26 15:35:03 -07:00
Xusong Wang
a44e130a92 Test TOCTOU in VTS CompilationCachingTests.
Two tests are added into VTS:

1. The TOCTOU test, for a fixed number of iterations.

We try to attack the driver by replacing the model cache with another
cache entry from a similar model while the driver is saving to or
preparing from cache, and see if the driver crashes or falsely prepares
an unexpected model (by checking the execution result). Either of the
following results are acceptable

* Fails -> the driver detects this corruption.
* Succeeds and produces correct execution result -> the corruption
happens before saving to cache or after preparing from cache.

Due to the racy nature, this test is probabilistic and we run it several
times.

2. Similar to the TOCTOU test but replace the content between
compile-to-cache and compile-from-cache (once only).

Additionally, remove tmp cache directory if test succeeds.

Bug: 123433989
Test: VtsHalNeuralnetworksV1_xTargetTest with 1.2 sample driver
Test: VtsHalNeuralnetworksV1_xTargetTest with a test driver that can
      read and write cache entries
Test: Check /data/local/tmp and confirm that
      * dirs are preserved on failure
      * dirs are removed on success

Change-Id: Ie04fa905f465c3775979f0ca74359d185dcacea9
2019-04-26 15:35:03 -07:00
Anil Admal
e640a420af Enforce launched-in-Q devices support gnss@2.0 HAL package (hal)
Bug: 121287858
Test: atest VtsTrebleVendorVintfTest
Change-Id: I45d7f3b6c8353141922724df23780d42df870413
2019-04-26 15:12:37 -07:00
Steven Moreland
24621daf45 Add dep to ...broadcastradio@common-utils-2x-tests
Required now because iterators use the base hidl_vec constructor.

It's not expected this type of change would be needed in any places.
This test originally came with the introduction of the constructor
that created the hidl_vec.

Bug: 131356202
Test: build only, links (note b/130918604)
Change-Id: Ide3cb13b6afd79489c208af2396e7c02b7da436e
Merged-In: Ide3cb13b6afd79489c208af2396e7c02b7da436e
2019-04-26 11:31:18 -07:00
TreeHugger Robot
8d161a678b Merge "Add BGRA8888 format support." into qt-dev 2019-04-26 17:38:39 +00:00
Slava Shklyaev
2331d7588e Specify ranks supported by MAXIMUM and MINIMUM
Note that this change documents existing behavior.

Bug: 131210955
Test: mma
Change-Id: I8d877153e1acc8ca2ad5179d7fd7cdc136838ca3
Merged-In: I8d877153e1acc8ca2ad5179d7fd7cdc136838ca3
(cherry picked from commit 6e15578156)
2019-04-26 15:34:31 +01:00
Michael Dooley
4ee2bc31a4 Merge "Hooking up Hal Soundtrigger V2_2 VTS test" into qt-dev 2019-04-26 05:33:09 +00:00
Yin-Chia Yeh
0d540b3e75 External Camera: support less thumbnail sizes
Since larger thumbnail sizes might hit the app1 size limit
of 64KB.

Test: camera CTS
Bug: 119775355
Change-Id: I9d8d21ac0784c53b42c536cfa09a8c40c4f15ea0
2019-04-25 14:55:22 -07:00
TreeHugger Robot
a8a23aa389 Merge "Fix comparison between hex and binary values" into qt-dev 2019-04-25 19:12:17 +00:00
Lev Proleev
a8aa8f3349 [automerger skipped] Fix docs: clarify usage of float16 scalars in operations am: 0a9895d9b7
am: 055f5d6a12 -s ours
am skip reason: change_id I9028c4a109c80f0b8571fab45555818e9e4bc783 with SHA1 6d13ba258b is in history

Change-Id: Ie117ce367ae3bb06fb8b233dd22e73fc99b48169
2019-04-25 10:31:46 -07:00
Slava Shklyaev
0445026e83 [automerger skipped] Clarify NNAPI documentation for MEAN am: 16a5cb1947
am: 0f00cb6864 -s ours
am skip reason: change_id Icd1ce2fb9054ab9ac6f660dce84823c73563ddb8 with SHA1 d6e605985b is in history

Change-Id: Id20a9422bb20c8b338ef3f5bf771cf734147de66
2019-04-25 10:31:15 -07:00
Slava Shklyaev
1ff576b976 [automerger skipped] Clarify NNAPI documentation for RESHAPE am: e19c19113d
am: 87f3059549 -s ours
am skip reason: change_id I620873536ed99ac79b7eced286a8f2621524290b with SHA1 5f5d5f9a54 is in history

Change-Id: Ie07ca64d4a15e6ff1c16d70d36d6d91fcd8316f2
2019-04-25 10:28:56 -07:00
Lev Proleev
055f5d6a12 Fix docs: clarify usage of float16 scalars in operations
am: 0a9895d9b7

Change-Id: Ibd44c81816bef2eae78ae6405c01605aed58055b
2019-04-25 10:26:10 -07:00
Slava Shklyaev
0f00cb6864 Clarify NNAPI documentation for MEAN
am: 16a5cb1947

Change-Id: I42ab01419be4ca801e870d3cae23a82aa12a8b3c
2019-04-25 10:25:47 -07:00
Slava Shklyaev
87f3059549 Clarify NNAPI documentation for RESHAPE
am: e19c19113d

Change-Id: If91949fe9d2cdc59672be625014bc8f4331fb245
2019-04-25 10:23:45 -07:00