Michael Butler d6e38fd71b 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
Merged-In: Ib90fe7f662824de17db5a254a8c501855e45f6bd
(cherry picked from commit 20f28a24e9)
2019-05-08 22:40:22 +00:00
2019-04-17 09:38:50 -07:00
2019-04-17 09:38:50 -07:00
2019-04-17 09:38:50 -07:00
2019-04-17 09:38:50 -07:00
2019-04-17 09:38:50 -07:00
2019-04-17 09:38:50 -07:00
2019-04-17 09:38:50 -07:00
2019-04-17 09:38:50 -07:00
2019-04-17 09:38:50 -07:00
2019-04-17 09:38:50 -07:00
2019-04-17 09:38:50 -07:00
2019-04-17 09:38:50 -07:00
2019-04-17 09:38:50 -07:00
2019-04-17 09:38:50 -07:00
2019-04-23 12:51:21 -07:00
2019-04-17 09:38:50 -07:00
2019-04-17 09:38:50 -07:00
2019-04-17 09:38:50 -07:00
2019-04-17 09:38:50 -07:00
2019-04-17 09:38:50 -07:00
2019-04-17 09:38:50 -07:00
2019-04-17 09:38:50 -07:00
2019-04-17 09:38:50 -07:00
2016-08-30 11:28:36 -07:00
2016-08-30 11:28:36 -07:00
2019-02-12 11:25:14 -08:00
Description
No description provided
134 MiB
Languages
C++ 56.3%
AIDL 41.2%
C 1.5%
Rust 0.4%
Java 0.4%
Other 0.1%