summaryrefslogtreecommitdiff
path: root/camera/common/1.0/default/CameraModule.cpp
diff options
context:
space:
mode:
authorMichael Butler <butlermichael@google.com>2020-11-19 20:46:58 -0800
committerMichael Butler <butlermichael@google.com>2020-11-20 17:59:25 -0800
commit5a74c0fb0f23474a89471c49111e5ab526735392 (patch)
tree10ea1ecf3b9813c74595449a4fc0e333e3ddaee7 /camera/common/1.0/default/CameraModule.cpp
parentf51af3b721d0821e50bc7785723a447a5cd04585 (diff)
Invalidate NN interface objects on cache mismatch
Currently, if an IDevice object is a DEAD_OBJECT, the runtime attempts to re-retrieve the handle to the rebooted IDevice service. If an update occurs after the IDevice was originally created, the rebooted IDevice object may have different metadata and behavior. This is problematic because the original metadata is cached in the runtime. Further, an application might have made decisions based on that metadata and behavior. (Note that a driver service that is functionally the same but has a different underlying implementation such as having more optimized code will have different `getVersionString` metadata.) Instead, this CL invalidates the IDevice object on cache mismatch, and always returns an error if it is used. Bug: 173081926 Test: mma Change-Id: I805987361c627c32d45e1b7c7aed230376fc66ad
Diffstat (limited to 'camera/common/1.0/default/CameraModule.cpp')
0 files changed, 0 insertions, 0 deletions