OSDN Git Service

Match attributes to actions for pip a11y
authorPhil Weaver <pweaver@google.com>
Thu, 4 May 2017 22:15:29 +0000 (15:15 -0700)
committerPhil Weaver <pweaver@google.com>
Thu, 4 May 2017 23:51:01 +0000 (16:51 -0700)
commit22e0d48bbe15293da067eefe3a73ef59fa66b062
tree94188845e3a5534c7a5bb5320035affcadd18349
parentda3dd7c0cf1fcd7e352c8f9e30519e85776c5662
Match attributes to actions for pip a11y

When we strip and replace actions for UIs inside a picture-
in-picture window, make sure attributes match. For example,
if an node was clickable and exposes ACTION_CLICK, when
removing actions we must clear both the click action and
the clickable attribute.

Bug: 37923645
Test: Updating unit tests
Change-Id: I84de5cae136bccb20b2234aef59bf5e0a7c15949
services/accessibility/java/com/android/server/accessibility/ActionReplacingCallback.java
services/tests/servicestests/src/com/android/server/accessibility/ActionReplacingCallbackTest.java