Home | History | Annotate | Download | only in headset
      1 page.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 <p>To ensure your headset is compatible with the minimally required
     28 functionality, conduct these tests.</p>
     29 
     30 <h2 id=headset_insertion>Headset insertion</h2>
     31 
     32 <ol>
     33   <li> Start with the Android device turned off.
     34   <li> Plug in the headset.
     35   <li> Turn the device on.
     36   <li> Unlock.
     37   <li> Open the <a
     38        href="https://github.com/googlesamples/android-UniversalMusicPlayer">open
     39        source</a> <a
     40        href="https://android-developers.blogspot.com/2015/03/a-new-reference-app-for-multi-device.html">Universal
     41        Music Player</a>.
     42   <li> Press the device volume buttons to maximize media volume.
     43   <li> Start playing music and verify audio comes out of the headset.
     44   <li> While music is playing, disconnect the headset and verify music stops.
     45   <li> Reconnect the headset, start playing music again, and verify audio comes out of
     46 the headset.
     47 </ol>
     48 
     49 <h2 id=volume_buttons>Volume buttons</h2>
     50 
     51 <ol>
     52   <li> Play music and ensure it is coming out of the headset.
     53   <li> Press the volume-down button. Verify the volume panel
     54 displays the media volume decrease by one notch and the volume output is
     55 reduced as expected.
     56   <li> Long press the volume-down button. Verify the volume panel shows media
     57 volume going all the way down and volume output is reduced gradually to muted.
     58   <li> Press the volume-up button. Verify the volume panel displays the media
     59 volume go up one notch and the volume output is increased as expected.
     60   <li> Long press the volume-up button. Verify the volume panel shows the
     61 media volume go all the way up to maximum and the volume output is increased as
     62 expected.
     63 </ol>
     64 
     65 <h2 id=play_pause_for_music>Play/pause for music</h2>
     66 
     67 <p>Press quickly on the play/pause button and verify music stops playing out of
     68 the headset. If music was not already playing, then it should start playing out
     69 of the headset.</p>
     70 
     71 <h2 id=play_pause_for_telephony>Play/pause for telephony</h2>
     72 <p>The actions to mute and hang up a phone call may differ across Android
     73 devices. This test documents the most common behavior.</p>
     74 
     75 <ol>
     76   <li> Make a phone call.
     77   <li> Long press the play/pause button while in the call.
     78   <li> Verify the microphone mutes. And if you long press again, the microphone
     79 should un-mute.
     80   <li> While still in the call, short press the play/pause button.
     81   <li> Verify the short press ends the telephone call.
     82   <li> Receive a phone call on the Android device.
     83   <li> Short press the play/pause button while the phone is ringing and verify
     84 the call is accepted.
     85   <li> Receive another phone call on the Android device.
     86   <li> Long press the play/pause button while the phone is ringing and verify the
     87 call is rejected.
     88 </ol>
     89 
     90 <h2 id=play_pause_for_voice_actions_microphone>Play/pause for voice actions + microphone</h2>
     91 
     92 <ol>
     93   <li> Unlock the Android device and go to the home screen.
     94   <li> Long press the play/pause button.
     95   <li> Verify:
     96   <ol>
     97     <li> you hear a beep after which you should be able to make a voice search query,
     98 such as What time is it?
     99     <li> you hear a response, such as The time is ...
    100   </ol>
    101   </ol>
    102 
    103 <h2 id=voice_button_for_voice_actions_microphone>Voice button for voice actions + microphone</h2>
    104 
    105 <ol>
    106   <li> Unlock the Android device and go to the home screen. 
    107   <li> Short press the voice button.
    108   <li> Verify:
    109   <ol>
    110     <li> you hear a beep after which you should be able to make a search query, such as
    111 What time is it?
    112     <li> you hear a response, such as The time is ...
    113   </ol>
    114   </ol>
    115 
    116 <p class="note"><strong>Important</strong>: A press on the voice button can launch any search app, for example
    117 Google search.</p>
    118