summaryrefslogtreecommitdiff
path: root/identity/support/src/cppbor_parse.cpp
diff options
context:
space:
mode:
authorXusong Wang <xusongw@google.com>2019-02-25 16:58:58 -0800
committerXusong Wang <xusongw@google.com>2019-03-22 13:10:54 -0700
commited0822bc780d3c86418fb55a37d70cdcddfc52a6 (patch)
tree2daecef55cc208823a5d1bf4ad6a63f481aaa122 /identity/support/src/cppbor_parse.cpp
parented5c004915fccb2bb17ddd542b5cf394e9b8c0aa (diff)
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 Merged-In: I921b7b8ccc3c66af19f6589f7213c6870d6f07bf (cherry picked from commit b61ba1ed0ba850db7ef8f3a42c58bbc250488d52)
Diffstat (limited to 'identity/support/src/cppbor_parse.cpp')
0 files changed, 0 insertions, 0 deletions