summaryrefslogtreecommitdiff
path: root/camera/common/1.0/default/CameraModule.cpp
diff options
context:
space:
mode:
authorXusong Wang <xusongw@google.com>2019-04-26 15:33:38 -0700
committerXusong Wang <xusongw@google.com>2019-05-09 15:45:01 -0700
commit4f71afc50dbab91baeb84928e8d623e5e0c68615 (patch)
treeddd00a43b029aca755a72a67cac4c45ec2108f32 /camera/common/1.0/default/CameraModule.cpp
parente371f6f85e621ea336986f44913b0d06da0fa1b0 (diff)
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 f8c5987bbd8f747a6ecc0c349128eb7d4d57e11d)
Diffstat (limited to 'camera/common/1.0/default/CameraModule.cpp')
0 files changed, 0 insertions, 0 deletions