最近在项目中遇到了一个连接蓝牙耳机听歌,手机功耗太大的问题,手机的电流大于参考标椎40ma左右。
log分析, 出问题的时间点,avrcp一直在更新歌曲的进度,但是是负值,这个值表示的是下一个播放位置减去当前的播放位置,所以这个值不可能是负的。
06-17 21:12:30.839735 21887 21997 D Avrcp_ext: sendPlayPosNotificationRsp: (false) 738445 <=? 792497 <=? 740445 mLastReportedPosition 739445 Playing State: 3 Timeout -52052ms
06-17 21:12:30.839749 21887 21997 V Avrcp_ext: AvrcpMessageHandler: received message=14
06-17 21:12:30.839765 21887 21997 D Avrcp_ext: isPlayerPaused: state=3
06-17 21:12:30.839777 21887 21997 D Avrcp_ext: Exit getPlayPosition, position: 792497
06-17 21:12:30.839797 21887 21997 D Avrcp_ext: isPlayerPaused: state=3
06-17 21:12:30.839810 21887 21997 D Avrcp_ext: sendPlayPosNotificationRsp: (false) 738445 <=? 792497 <=? 740445 mLastReportedPosition 739445 Playing State: 3 Timeout -52052ms
06-17 21:12:30.839825 21887 21997