summaryrefslogtreecommitdiff
path: root/libs/appfunctions/java
diff options
context:
space:
mode:
author Jayant Chowdhary <jchowdhary@google.com> 2024-10-08 22:28:33 +0000
committer Jayant Chowdhary <jchowdhary@google.com> 2024-10-10 22:34:08 +0000
commit3d5cfaacb78e41bc0892c1ab57a825872e3ac5be (patch)
tree833dfe9bda3913bef36b75f3df47e2ce69b4c413 /libs/appfunctions/java
parente8c0fd8f96fab06b556ed1c04f7fff6c3d18e1e1 (diff)
camera2 jni: nativeReadValues() can use camera_metadata_ro_entry instead of camera_metadata_entry
We don't guarantee CameraMetadata access is thread safe, however for existing apps that might query camera metadata from multiple threads, this change could help avoid read failures due to the need for native camera metadata's internal lock. Also return a NULL array instead of a 0 sized array in case the entry.count is 0 since the caller expects either something with a valid number of entries or null. Bug: 371223465 Flag: EXEMPT bugfix Test: manual GCA Change-Id: I144f8e5438a4135440e34b9c65f326bba7748faa Signed-off-by: Jayant Chowdhary <jchowdhary@google.com>
Diffstat (limited to 'libs/appfunctions/java')
0 files changed, 0 insertions, 0 deletions