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.

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值