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 'dumpsys window | grep mCurrentFocus'" 12 delay_after: 3 13} 14step { 15 command: "shell input keyevent 3" 16 delay_after: 1 17} 18step { 19 command: "shell input keyevent 26" 20 delay_after: 1 21} 22step { 23 command: "shell dumpsys battery unplug" 24 delay_after: 1 25} 26step { 27 command: "shell dumpsys deviceidle force-idle" 28 delay_after: 10 29} 30 31expected_result { 32 aohd_hotword_detected : 1 33 assistant_started : 1 34 dsp_false_accept : 0 35 logcat_iteration : 1 36 speaker_id_rejected : 0 37 vis_software_hotword : 1 38} 39 40event { 41 name: "device_crashed" 42 condition: "iterations_since_aohd_hotword_detected >= 30" 43 "or iterations_since_assistant_started >= 30" 44 action: "BUGREPORT" 45 action: "REMOVE_DEVICE" 46} 47