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