Testing

来自: http://source.android.com/devices/accessories/headset/testing.html

 

Testing

 

Headset insertion


  1. Start with the Android device turned off.
  2. Plug in the headset.
  3. Turn the device on.
  4. Unlock.
  5. Open the open source Universal Music Player.
  6. Press the DUT volume buttons to maximize media volume.
  7. Start playing music and verify audio comes out of the headset.
  8. While Music is playing, disconnect the headset and verify music stops.
  9. Reconnect the headset, start playing music again, and verify audio comes out of the headset.

Volume buttons


  1. Play music and ensure it is coming out of the headset.
  2. Press (“short press”) on the volume-down button. Then verify the volume panel displays the media volume decrease by one notch and the volume output is reduced as expected.
  3. Long press on the volume-down button. Then verify the volume panel shows media volume going all the way down and volume output is reduced gradually to muted.
  4. Press on the volume-up button. Then verify the volume panel displays the media volume go up one notch and the volume output is increased as expected.
  5. Long press on the volume-up button. Then verify the volume panel shows the media volume go all the way up to maximum and the volume output is increased as expected.

Play/pause for music


Press quickly on the play/pause button and verify music stops playing out of the headset. If music was not already playing, then it should start playing out of the headset.

Play/pause for telephony


  1. Make a phone call.
  2. Press quickly on the play/pause button while in the call.
  3. Verify the microphone mutes. And if you press quickly again, the microphone should un-mute.
  4. While still in the call, long press on the play/pause button.
  5. Verify the long press ends the telephone call
  6. Receive a phone call on the Android device.
  7. Press quickly on the play/pause button while the phone is ringing and verify the call is accepted.
  8. Receive another phone call on the Android device.
  9. Long press on the play/pause button while the phone is ringing and verify the call is rejected.

Play/pause for voice actions + microphone


  1. Open the screen on your Android device, unlock it, and go to the home screen.
  2. Long press on the play/pause button.
  3. Verify:
    1. you hear a beep after which you should be able to make a voice search query, such as “What time is it?”
    2. you hear a response, such as “The time is ...”

Voice button for voice actions + microphone


  1. Open the screen on your Android device, unlock it, and go to the home screen.
  2. Short press on the voice button.
  3. Verify:
    1. you hear a beep after which you should be able to make a search query, such as “What time is it?”
    2. you hear a response, such as “The time is ...”

Important: A press on the voice button can launch launch any search app, for example Google search.

 

posted @ 2016-04-19 11:17  dolinux  阅读(307)  评论(0)    收藏  举报