Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8aa43ac7 authored by Sally's avatar Sally Committed by Sally Yuen
Browse files

Update AccessibilityService global headset action docs to fully recognize calling behavior

There's already a CTS test(http://shortn/_w3OkkmZCO5) to make sure the global action affects calls.

This establishes in javadocs that this action should affect calling states for accessibility users.

Bug: 301451932
Test: n/a docs
Change-Id: Iba81f093320d112515f4e3f55dc049704326bb10
parent 7ab7a215
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -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;