Skip to content

Commit 01fa888

Browse files
sganovAndroid (Google) Code Review
authored andcommitted
Merge "Adding FEEDBACK_BRAILLE to AccessibilityServiceInfo." into jb-mr1-dev
2 parents 4b15ab6 + eb9862f commit 01fa888

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)