summaryrefslogtreecommitdiff
path: root/camera/common/1.0/default/CameraModule.cpp
diff options
context:
space:
mode:
authorXusong Wang <xusongw@google.com>2019-01-18 17:28:26 -0800
committerXusong Wang <xusongw@google.com>2019-01-29 08:59:06 -0800
commit3405878e5e0eb85549363b69b8dffb3f91c7b8ff (patch)
tree703ce123b864be3de22ff03983c69a1816b72d33 /camera/common/1.0/default/CameraModule.cpp
parent38264cde55953da9bfeba2859ad931b667ce2e00 (diff)
Add VTS tests for NNAPI compilation caching.
Add the following tests for compilation caching: - validation tests - Test isCachingSupported - Test prepareModelFromCache with invalid numFd and invalid access mode - Test saveToCache with invalid numFd, invalid access mode, invalid file size, and invalid fd offset - execution test - Save a mobilenet model to cache and then retrieve and run accuracy evaluation. - The same test but the file offsets for prepareModelFromCache is not at zero. - security test - CompilationCachingSecurityTest.CorruptedSecuritySensitiveCache Randomly flip one bit of security-sensitive cache. - CompilationCachingSecurityTest.WrongLengthSecuritySensitiveCache Randomly append bytes to security-sensitive cache. - CompilationCachingSecurityTest.WrongToken Randomly flip one bit of cache token. Bug: 119616526 Test: VtsHalNeuralnetworksV1_xTargetTest with 1.2 sample driver Test: VtsHalNeuralnetworksV1_xTargetTest with a test driver that can read and write cache entries Change-Id: Iae9211cb28ce972b29572dfedd45d1ade4dfdaf5
Diffstat (limited to 'camera/common/1.0/default/CameraModule.cpp')
0 files changed, 0 insertions, 0 deletions