platform_hardware_interfaces/neuralnetworks/1.2
Xusong Wang b61ba1ed0b Fix caching interface according to vendor feedback.
- Instead of isCachingSupport returning a single boolean, switch to
  getNumberOfCacheFilesNeeded returning the number of cache files. This
  is to support use cases when driver needs more than one cache file for
  each type, or when driver does not need data cache.

- Instead of a separate saveToCache, pass cache info along with
  prepareModel_1_2 to save into cache as well as perform compilation.
  This is to avoid a potential additional copy of cache files.

Bug: 123780248
Test: VtsHalNeuralnetworksV1_xTargetTest with 1.2 sample driver
Test: VtsHalNeuralnetworksV1_xTargetTest with a test driver that can
      read and write cache entries
Change-Id: I921b7b8ccc3c66af19f6589f7213c6870d6f07bf
2019-03-21 14:17:08 -07:00
..
vts Fix caching interface according to vendor feedback. 2019-03-21 14:17:08 -07:00
Android.bp Update makefies: no 'types' 2019-03-04 11:27:17 -08:00
IBurstCallback.hal NNAPI Burst -- HAL interface 2019-01-24 14:04:35 -08:00
IBurstContext.hal NNAPI Burst -- HAL interface 2019-01-24 14:04:35 -08:00
IDevice.hal Fix caching interface according to vendor feedback. 2019-03-21 14:17:08 -07:00
IExecutionCallback.hal Update neuralnetworks HAL to allow collecting execution duration. 2019-01-24 16:07:03 -08:00
IPreparedModel.hal Fix caching interface according to vendor feedback. 2019-03-21 14:17:08 -07:00
IPreparedModelCallback.hal Add 1.2 NN HAL: IPreparedModel & callbacks. 2018-12-13 13:56:51 -08:00
types.hal Fix caching interface according to vendor feedback. 2019-03-21 14:17:08 -07:00