一、alps/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/HeadsetStateMachine.java

processAnswerCall
这个方法就是接听电话 我们来往上走 还是
alps/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/HeadsetStateMachine.java

原来是jni回调java。

alps/packages/apps/Bluetooth/jni/com_android_bluetooth_hfp.cpp

alps/packages/apps/Bluetooth/jni/com_android_bluetooth_hfp.cpp

alps/packages/apps/Bluetooth/jni/com_android_bluetooth_hfp.cpp

alps/packages/apps/Bluetooth/jni/com_android_bluetooth_hfp.cpp

alps/packages/apps/Bluetooth/jni/com_android_bluetooth_hfp.cpp


alps/system/bt/btif/src/btif_hf.c

alps/system/bt/btif/src/btif_hf.c

alps/system/bt/btif/src/btif_hf.c


alps/hardware/libhardware/include/hardware/bt_hf.h



好了 跟踪完了
HAL_CBACK(bt_hf_callbacks, answer_call_cmd_cb,
&btif_hf_cb[idx].connected_bda);

logcat | grep "AT cmd"
第一个是接听 第二个是挂断

再往下跟


p_cmd_cback
alps/system/bt/bta/ag/bta_ag_at.c
bta_ag_process_at


alps/system/bt/bta/ag/bta_ag_at.c

system/bt/bta/ag/bta_ag_act.c

网友评论