Skip to content

Commit eb9862f

Browse files
committed
Adding FEEDBACK_BRAILLE to AccessibilityServiceInfo.
1. The feedback type provided by braille devices differs from all already predefined types and this change defines braille feedback type. Braille does not fit in the already predefined categories. bug:6998945 Change-Id: Ide6043bed03fdecd6d2ee45a08762f5bd07a2118
1 parent fa8d83d commit eb9862f

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

api/current.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2066,6 +2066,7 @@ package android.accessibilityservice {
20662066
field public static final int DEFAULT = 1; // 0x1
20672067
field public static final int FEEDBACK_ALL_MASK = -1; // 0xffffffff
20682068
field public static final int FEEDBACK_AUDIBLE = 4; // 0x4
2069+
field public static final int FEEDBACK_BRAILLE = 32; // 0x20
20692070
field public static final int FEEDBACK_GENERIC = 16; // 0x10
20702071
field public static final int FEEDBACK_HAPTIC = 2; // 0x2
20712072
field public static final int FEEDBACK_SPOKEN = 1; // 0x1

core/java/android/accessibilityservice/AccessibilityServiceInfo.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,11 @@ public class AccessibilityServiceInfo implements Parcelable {
8484
*/
8585
public static final int FEEDBACK_GENERIC = 0x0000010;
8686

87+
/**
88+
* Denotes braille feedback.
89+
*/
90+
public static final int FEEDBACK_BRAILLE = 0x0000020;
91+
8792
/**
8893
* Mask for all feedback types.
8994
*
@@ -92,6 +97,7 @@ public class AccessibilityServiceInfo implements Parcelable {
9297
* @see #FEEDBACK_AUDIBLE
9398
* @see #FEEDBACK_VISUAL
9499
* @see #FEEDBACK_GENERIC
100+
* @see #FEEDBACK_BRAILLE
95101
*/
96102
public static final int FEEDBACK_ALL_MASK = 0xFFFFFFFF;
97103

@@ -186,6 +192,7 @@ public class AccessibilityServiceInfo implements Parcelable {
186192
* @see #FEEDBACK_HAPTIC
187193
* @see #FEEDBACK_SPOKEN
188194
* @see #FEEDBACK_VISUAL
195+
* @see #FEEDBACK_BRAILLE
189196
*/
190197
public int feedbackType;
191198

@@ -591,6 +598,12 @@ public static String feedbackTypeToString(int feedbackType) {
591598
}
592599
builder.append("FEEDBACK_VISUAL");
593600
break;
601+
case FEEDBACK_BRAILLE:
602+
if (builder.length() > 1) {
603+
builder.append(", ");
604+
}
605+
builder.append("FEEDBACK_BRAILLE");
606+
break;
594607
}
595608
}
596609
builder.append("]");

0 commit comments

Comments
 (0)