platform_hardware_interfaces/neuralnetworks/1.1
Xusong Wang 3405878e5e 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
2019-01-29 08:59:06 -08:00
..
vts Add VTS tests for NNAPI compilation caching. 2019-01-29 08:59:06 -08:00
Android.bp Update Android.bp via update-makefiles.sh 2018-04-18 19:34:10 +00:00
IDevice.hal NNAPI: Add execution preference to prepareModel (HAL) 2018-04-18 19:08:24 +00:00
types.hal Sync docs with NeuralNetworks.h 2018-09-24 12:31:03 +00:00