OSDN Git Service

Fixing bugs discovered by the CTS tests.
authorSvetoslav <svetoslavganov@google.com>
Tue, 16 Jul 2013 00:12:41 +0000 (17:12 -0700)
committerSvetoslav <svetoslavganov@google.com>
Tue, 16 Jul 2013 00:22:04 +0000 (17:22 -0700)
commit8d820ecffdc853aab88cc85bb45bfe72dd2ad893
tree06ae2a4e5164930f1d1ba1b17631a887a095eea0
parent326ef35f6f0ee3221804585592e462a9307c2df1
Fixing bugs discovered by the CTS tests.

1. Delayed accessibility events sent when a view subtree changes may be
   be delivered after accessibility is disabled leading to a crash. It is
   possible that accessibility was disabled while we were waiting for
   the timeout before sending the event. Added a check before dispatching.

2. When refreshing a cached node the accessibility node info cache was
   not using the correct bypass cache argument value and as result was
   not getting the latest node but its cached value. We really want to
   get the latest state to update the cache.

3. The debugging cache integrity verification logic was incorrectly
   removing nodes from the cache while doing its work.

4. Removed the comments for some debug logging.

bug:9857067

Change-Id: I20ee1a6ffa65ad35457b51d3f2dc0bc5d8d784e6
core/java/android/view/ViewRootImpl.java
core/java/android/view/accessibility/AccessibilityNodeInfoCache.java