Skip to content
Commit 5fe5f8b8 authored by sallyyuen's avatar sallyyuen Committed by Sally
Browse files

Query the cache for AccessibilityInteractionClient's findFocus

TalkBack is making a lot of findFocus calls which is impacting
performance. We track focus in the cache so reuse it here.

AccessibilityManagerService does not need a cache, so
only initialize a cache when needed

Bug: 187731774
Test: atest CtsAccessibilityServiceTestCases  CtsAccessibilityTestCases CtsUiAutomationTestCases FrameworksServicesTests:com.android.server.accessibility FrameworksCoreTests:com.android.internal.accessibility FrameworksCoreTests:android.view.accessibility
 atest AccessibilityCacheTest, manual
Change-Id: Ie6f693345d31a3f82ffa479428f76a09fa972a83
parent 719079be
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment