Xusong Wang 4f71afc50d Move getSupportedOperations out of saveToCache.
Before this change, getSupportedOperations_1_2 was invoked in
saveModelToCache prior to prepareModel_1_2, which delayed the model
preparation and cache overwriting always ran faster in
SaveToCache_TOCTOU test.

This change increases the chance that the model is overwritten after it
is saved in SaveToCache_TOCTOU test by moving getSupportedOperations_1_2
out of saveToCache.

Bug: 123433989
Test: VtsHalNeuralnetworksV1_xTargetTest with 1.2 sample driver
Test: VtsHalNeuralnetworksV1_xTargetTest with a test driver that can
      read and write cache entries
Test: TOCTOU tests with a sample driver that is deliberately broken

Change-Id: Ieba6a82252623ac429d5fcb6950b99db949f9886
Merged-In: Ieba6a82252623ac429d5fcb6950b99db949f9886
(cherry picked from commit f8c5987bbd)
2019-05-09 15:45:01 -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-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
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%