OSDN Git Service

Updated accessibility nodes not properly cached.
authorSvetoslav <svetoslavganov@google.com>
Thu, 24 Jul 2014 19:19:22 +0000 (12:19 -0700)
committerSvetoslav Ganov <svetoslavganov@google.com>
Thu, 24 Jul 2014 19:24:42 +0000 (19:24 +0000)
commitf7c42c506796b8d828fbd1233edb9752a1f50e12
tree49324543a2b583ac26f3dc7cc259cea335efe7aa
parent747a69965e0b476745e40c05bd930151134a0985
Updated accessibility nodes not properly cached.

We have an accessibiliy node info cache in the process of each
accessibility service. Sometimes the cached node changes and
in this case we have evict from the cache the sub-trees rooted
at children that are no longer present. There was bug where if
none of the children is present anymore we did not evict their
sub-trees.

Also the verification logic was not stopping if a duplicate
node is seen potentially getting into an infinite loop.

bug:15729762

Change-Id: I7adf4f0a1bde07b385556d9acdded5059231f1f3
core/java/android/view/accessibility/AccessibilityCache.java