diff options
| author | Phil Weaver <pweaver@google.com> | 2018-04-20 14:51:39 -0700 |
|---|---|---|
| committer | Phil Weaver <pweaver@google.com> | 2018-04-20 15:53:58 -0700 |
| commit | 466b71e1a287bd20560f1bf10db15e5fa7f2c8d1 (patch) | |
| tree | d6c46e59d73235bff230845e4e7c157e169c45b6 /core/java | |
| parent | ed2a3cadc1eaea962b9be0ebc180e090ab03a6b8 (diff) | |
Add config value for fingerprint gesture support
Also correcting docs for using the fingerprint gesture
flag.
Bug: 76419487
Test: Verified with a test a11y service that gestures are
not available. Adding a unit test to verify this case.
Change-Id: I90233613777013e8b117a2d94f767be292c80019
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/accessibilityservice/AccessibilityServiceInfo.java | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/core/java/android/accessibilityservice/AccessibilityServiceInfo.java b/core/java/android/accessibilityservice/AccessibilityServiceInfo.java index 452225cd7da0..ed684d7a5901 100644 --- a/core/java/android/accessibilityservice/AccessibilityServiceInfo.java +++ b/core/java/android/accessibilityservice/AccessibilityServiceInfo.java @@ -302,7 +302,16 @@ public class AccessibilityServiceInfo implements Parcelable { /** * This flag requests that all fingerprint gestures be sent to the accessibility service. - * It is handled in {@link FingerprintGestureController} + * <p> + * Services that want to set this flag have to declare the capability + * to retrieve window content in their meta-data by setting the attribute + * {@link android.R.attr#canRequestFingerprintGestures} to + * true, otherwise this flag will be ignored. For how to declare the meta-data + * of a service refer to {@value AccessibilityService#SERVICE_META_DATA}. + * </p> + * + * @see android.R.styleable#AccessibilityService_canRequestFingerprintGestures + * @see AccessibilityService#getFingerprintGestureController() */ public static final int FLAG_REQUEST_FINGERPRINT_GESTURES = 0x00000200; |
