1description: "Switches between the homescreen and screen off, launching a " 2 "voice search when the DSP should be enabled. The search is " 3 "also just of OK Google." 4 5step { 6 audio_file : "okg-us-female.wav" 7 audio_file_sample_rate : 24000 8 delay_after : 3 9} 10step { 11 command: "shell input keyevent 3" 12 delay_after: 1 13} 14step { 15 command: "shell input keyevent 26" 16 delay_after: 1 17} 18step { 19 command: "shell dumpsys battery unplug" 20 delay_after: 1 21} 22step { 23 command: "shell dumpsys deviceidle force-idle" 24 delay_after: 10 25} 26 27expected_result { 28 aohd_hotword_detected : 1 29 assistant_started : 1 30 dsp_false_accept : 0 31 logcat_iteration : 1 32 speaker_id_rejected : 0 33 vis_software_hotword : 1 34} 35 36event { 37 name: "device_crashed" 38 condition: "iterations_since_aohd_hotword_detected >= 30" 39 "or iterations_since_assistant_started >= 30" 40 action: "BUGREPORT" 41 action: "REMOVE_DEVICE" 42} 43