summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Sally Yuen <sallyyuen@google.com> 2023-12-05 23:53:52 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2023-12-05 23:53:52 +0000
commit405bed5ced0822d7a2bebd35f4e8f7f317ab87f3 (patch)
tree0ca54ef4aa02bf14efd2dec86f1db6b56099d913
parent038197d18467b87a10b22e8936c394f1a13e334b (diff)
parent8aa43ac7f00f3935baa781c1bb3901fce43453d7 (diff)
Merge "Update AccessibilityService global headset action docs to fully recognize calling behavior" into main
-rw-r--r--core/java/android/accessibilityservice/AccessibilityService.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/core/java/android/accessibilityservice/AccessibilityService.java b/core/java/android/accessibilityservice/AccessibilityService.java
index 1000612ee0e2..2a7dbab2bfd1 100644
--- a/core/java/android/accessibilityservice/AccessibilityService.java
+++ b/core/java/android/accessibilityservice/AccessibilityService.java
@@ -566,8 +566,10 @@ public abstract class AccessibilityService extends Service {
public static final int GLOBAL_ACTION_TAKE_SCREENSHOT = 9;
/**
- * Action to send the KEYCODE_HEADSETHOOK KeyEvent, which is used to answer/hang up calls and
- * play/stop media
+ * Action to send the KEYCODE_HEADSETHOOK KeyEvent, which is used to answer and hang up calls
+ * and play and stop media. Calling takes priority. If there is an incoming call,
+ * this action can be used to answer that call, and if there is an ongoing call, to hang up on
+ * that call.
*/
public static final int GLOBAL_ACTION_KEYCODE_HEADSETHOOK = 10;