1page.title=Testing 2@jd:body 3 4<!-- 5 Copyright 2015 The Android Open Source Project 6 7 Licensed under the Apache License, Version 2.0 (the "License"); 8 you may not use this file except in compliance with the License. 9 You may obtain a copy of the License at 10 11 http://www.apache.org/licenses/LICENSE-2.0 12 13 Unless required by applicable law or agreed to in writing, software 14 distributed under the License is distributed on an "AS IS" BASIS, 15 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 See the License for the specific language governing permissions and 17 limitations under the License. 18--> 19<div id="qv-wrapper"> 20 <div id="qv"> 21 <h2>In this document</h2> 22 <ol id="auto-toc"> 23 </ol> 24 </div> 25</div> 26 27<h2 id=headset_insertion>Headset insertion</h2> 28 29<ol> 30 <li> Start with the Android device turned off. 31 <li> Plug in the headset. 32 <li> Turn the device on. 33 <li> Unlock. 34 <li> Open the <a 35 href="https://github.com/googlesamples/android-UniversalMusicPlayer">open 36 source</a> <a 37 href="https://android-developers.blogspot.com/2015/03/a-new-reference-app-for-multi-device.html">Universal 38 Music Player</a>. 39 <li> Press the DUT volume buttons to maximize media volume. 40 <li> Start playing music and verify audio comes out of the headset. 41 <li> While Music is playing, disconnect the headset and verify music stops. 42 <li> Reconnect the headset, start playing music again, and verify audio comes out of 43the headset. 44</ol> 45 46<h2 id=volume_buttons>Volume buttons</h2> 47 48<ol> 49 <li> Play music and ensure it is coming out of the headset. 50 <li> Press (“short press”) on the volume-down button. Then verify the volume panel 51displays the media volume decrease by one notch and the volume output is 52reduced as expected. 53 <li> Long press on the volume-down button. Then verify the volume panel shows media 54volume going all the way down and volume output is reduced gradually to muted. 55 <li> Press on the volume-up button. Then verify the volume panel displays the media 56volume go up one notch and the volume output is increased as expected. 57 <li> Long press on the volume-up button. Then verify the volume panel shows the 58media volume go all the way up to maximum and the volume output is increased as 59expected. 60</ol> 61 62<h2 id=play_pause_for_music>Play/pause for music</h2> 63 64<p>Press quickly on the play/pause button and verify music stops playing out of 65the headset. If music was not already playing, then it should start playing out 66of the headset.</p> 67 68<h2 id=play_pause_for_telephony>Play/pause for telephony</h2> 69 70<ol> 71 <li> Make a phone call. 72 <li> Press quickly on the play/pause button while in the call. 73 <li> Verify the microphone mutes. And if you press quickly again, the microphone 74should un-mute. 75 <li> While still in the call, long press on the play/pause button. 76 <li> Verify the long press ends the telephone call 77 <li> Receive a phone call on the Android device. 78 <li> Press quickly on the play/pause button while the phone is ringing and verify 79the call is accepted. 80 <li> Receive another phone call on the Android device. 81 <li> Long press on the play/pause button while the phone is ringing and verify the 82call is rejected. 83</ol> 84 85<h2 id=play_pause_for_voice_actions_microphone>Play/pause for voice actions + microphone</h2> 86 87<ol> 88 <li> Open the screen on your Android device, unlock it, and go to the home screen. 89 <li> Long press on the play/pause button. 90 <li> Verify: 91 <ol> 92 <li> you hear a beep after which you should be able to make a voice search query, 93such as “What time is it?” 94 <li> you hear a response, such as “The time is ...” 95 </ol> 96 </ol> 97 98<h2 id=voice_button_for_voice_actions_microphone>Voice button for voice actions + microphone</h2> 99 100<ol> 101 <li> Open the screen on your Android device, unlock it, and go to the home screen. 102 <li> Short press on the voice button. 103 <li> Verify: 104 <ol> 105 <li> you hear a beep after which you should be able to make a search query, such as 106“What time is it?” 107 <li> you hear a response, such as “The time is ...” 108 </ol> 109 </ol> 110 111<p><strong>Important</strong>: A press on the voice button can launch launch any search app, for example 112Google search.</p> 113