commit | 3bdcdd8531781569d501e7023c22e25e2bae0dd1 | [log] [tgz] |
---|---|---|
author | Jeff Brown <jeffbrown@google.com> | Tue Apr 10 20:36:07 2012 -0700 |
committer | Jeff Brown <jeffbrown@google.com> | Tue Apr 10 20:36:07 2012 -0700 |
tree | 134407d32b8c13a31e7b847ea884f4e57bcb5aa7 | |
parent | 9f25b7fdf216c9ef0bd2322cd223eeaf0d60f77f [diff] |
Be more careful about exceptions in input callbacks. consumeEvents() may be called reentrantly so we need to be careful when handling exceptions. When called directly through JNI, the exception should be allowed to bubble up to the caller. When called from a Looper callback, the exception should be recorded on the MessageQueue and bubbled when the call to nativePollOnce() returns. Bug: 6312938 Change-Id: Ief5e315802f586aa85af7eef1bd6e9bea4ce24ab