Add accessibility event for assist disclosure

Bug: 21568059
Change-Id: Ib51d4236fcc87acd54cb5d191197b9b2c6cc54ea
This commit is contained in:
Jorim Jaggi
2015-06-25 17:26:10 -07:00
parent 825c2a006e
commit e85da2bad5
6 changed files with 20 additions and 0 deletions

View File

@@ -688,6 +688,11 @@ public final class AccessibilityEvent extends AccessibilityRecord implements Par
*/
public static final int TYPE_VIEW_CONTEXT_CLICKED = 0x00800000;
/**
* Represents the event of the assistant currently reading the users screen context.
*/
public static final int TYPE_ASSIST_READING_CONTEXT = 0x01000000;
/**
* Change type for {@link #TYPE_WINDOW_CONTENT_CHANGED} event:
* The type of change is not defined.
@@ -1413,6 +1418,13 @@ public final class AccessibilityEvent extends AccessibilityRecord implements Par
}
builder.append("TYPE_VIEW_CONTEXT_CLICKED");
eventTypeCount++;
}
case TYPE_ASSIST_READING_CONTEXT: {
if (eventTypeCount > 0) {
builder.append(", ");
}
builder.append("TYPE_ASSIST_READING_CONTEXT");
eventTypeCount++;
}
break;
}