summaryrefslogtreecommitdiff
path: root/docs/html/sdk/api_diff
diff options
context:
space:
mode:
authorJames Dong <jdong@google.com>2012-04-28 21:30:46 -0700
committerThe Android Automerger <android-build@android.com>2012-05-01 17:16:08 -0700
commit6e98c05cdce3fc3314709ac528db80ada41f1be0 (patch)
tree33fc98f80e525b4c296a66d426ba565c39c0a901 /docs/html/sdk/api_diff
parent456fe00e103ffc0a4652328f2a9c9af266ea1c7c (diff)
Fix a race condition in Camera API for handling focus
In the case where a previous AF completion was outstanding but before the completion notification reached the application, the application cancelled this AF request, and then started a new AF request. Right after the new AF request, the AF completion notification for earlier AF request reached the application. The application could not tell the AF completion notification was meant for the cancelled AF, but thought the new AF was successfully completed. Subsequently, the application trid to take a picture, which failed as a result. The fix is to add an explicit lock in the Camera.java class to fix the race condition to synchornize autoFocus(), cancelAutoFocus() and the callback of the pending AF completion message. o related-to-bug: 6026480 Change-Id: I33d244d908ac066698e792f641ba88fe228b14a9
Diffstat (limited to 'docs/html/sdk/api_diff')
0 files changed, 0 insertions, 0 deletions