Testing
来自: http://source.android.com/devices/accessories/headset/testing.html
Testing
Headset insertion
- Start with the Android device turned off.
- Plug in the headset.
- Turn the device on.
- Unlock.
- Open the open source Universal Music Player.
- Press the DUT volume buttons to maximize media volume.
- Start playing music and verify audio comes out of the headset.
- While Music is playing, disconnect the headset and verify music stops.
- Reconnect the headset, start playing music again, and verify audio comes out of the headset.
Volume buttons
- Play music and ensure it is coming out of the headset.
- 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.
- 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.
- 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.
- 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
- Make a phone call.
- Press quickly on the play/pause button while in the call.
- Verify the microphone mutes. And if you press quickly again, the microphone should un-mute.
- While still in the call, long press on the play/pause button.
- Verify the long press ends the telephone call
- Receive a phone call on the Android device.
- Press quickly on the play/pause button while the phone is ringing and verify the call is accepted.
- Receive another phone call on the Android device.
- Long press on the play/pause button while the phone is ringing and verify the call is rejected.
Play/pause for voice actions + microphone
- Open the screen on your Android device, unlock it, and go to the home screen.
- Long press on the play/pause button.
- Verify:
- you hear a beep after which you should be able to make a voice search query, such as “What time is it?”
- you hear a response, such as “The time is ...”
Voice button for voice actions + microphone
- Open the screen on your Android device, unlock it, and go to the home screen.
- Short press on the voice button.
- Verify:
- you hear a beep after which you should be able to make a search query, such as “What time is it?”
- 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.
本文来自博客园,作者:dolinux,未经同意,禁止转载