Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Unintended behavior
View staffing
Description
actual: ASR is cancelled as soon as ASR button is pressed, regardless of longpress state.
Protocol spec says we should just use reportKey sending key downs and key ups, but as soon as key down is sent ASR is cancelled.
If we send reportKeyLongPress instead, then ASR is again cancelled immediately.
GalMonitor trace:
timestamp: 1594953722617 1970-01-01T00:26:34.953Z
11:53:18.314 r fl:0 ch:2 sz:22 :Input
INPUT_MESSAGE_INPUT_REPORT
key_event {
keys {
down: true
keycode: 84 KEYCODE_SEARCH
longpress: false
metastate: 0
}
}
timestamp: 4875011000000 1970-01-01T01:21:15.011Z
11:53:18.314 r fl:0 ch:2 sz:22 :Input
INPUT_MESSAGE_INPUT_REPORT
key_event {
keys {
down: false
keycode: 84 KEYCODE_SEARCH
longpress: false
metastate: 0
}
}
timestamp: 4875011000000 1970-01-01T01:21:15.011Z
11:53:18.332 s fl:0 ch:0 sz:4 :Control
MESSAGE_VOICE_SESSION_NOTIFICATION
status: VOICE_SESSION_START
timestamp: 1594953725617 1970-01-01T00:26:34.953Z
11:53:21.373 r fl:0 ch:2 sz:22 :Input
INPUT_MESSAGE_INPUT_REPORT
key_event {
keys {
down: true
keycode: 84 KEYCODE_SEARCH
longpress: true
metastate: 0
}
}
timestamp: 4878071000000 1970-01-01T01:21:18.071Z
11:53:21.384 s fl:0 ch:0 sz:4 :Control
MESSAGE_VOICE_SESSION_NOTIFICATION
status: VOICE_SESSION_END
Note also - HUIG 2.7 appears to contradict the protocol spec with regards the use of reportKeyLongPress...
10.2.2: Long-Press
The HU MUST use the reportKeyLongPress function to send the KEYCODE_SEARCH keycode to the MD to initiate an AAP session (R10-130).
However protocol spec states:
"Used to signal a long press of a button by simulating a key down, hold, key up on the phone. Do not report a key up after setting this flag. This should only be used if the system cannot signal the initial key down. Contact the GAL team before you decide to set this flag."
and also HUIG
10.2.3 Cancelling or restarting an ASR session
KEYCODE_SEARCH keycode MUST be sent using the reportKey function as soon as the ASR hardware button is pressed down
PDK v1.6
AA v6.0.615344-release
Thanks,
Adrian