白露卓爱(二): Bluedroid从enable()开死
2014-03-24 23:44
274 查看
不是闲的蛋疼,来做驱动半年了bluedroid的代码还没怎么看过,婶婶的感觉到蛋疼,今天抽空看起来。
从哪看起,必须从按下蓝牙开关开始,今天尝试从setting里面的蓝牙开关看起,失败了,毕竟不是做java的,惭(mei)愧(shi)。
条件反射搜一下有没有bluetooth.c这么弱智的命名方式,一搜果然有,里面竟然还有个enable,哦耶。
先把我找到的调用关系列在下面,一目了然。
(如需转载或引用此文章请标明作者和出处,未经同意禁止用于任何商业用途)
从哪看起,必须从按下蓝牙开关开始,今天尝试从setting里面的蓝牙开关看起,失败了,毕竟不是做java的,惭(mei)愧(shi)。
条件反射搜一下有没有bluetooth.c这么弱智的命名方式,一搜果然有,里面竟然还有个enable,哦耶。
先把我找到的调用关系列在下面,一目了然。
enable();//@external/bluetooth/btif/bluetooth.c |---btif_enable_bluetooth();//@external/bluetooth/btif/btif_core.c |---bte_main_enable();//@external/bluetooth/bluedroid/main/bte_main.c |---GKI_create_task(btu_task);//GKI--General Kernel Interface |---bte_hci_enable();//@external/bluetooth/bluedroid/main/bte_main.c | |---hci.init();//@external/bl...th/bl...id/hci/src/bt_hci_bdroid.c | | |---init_vnd_if(bdaddr);//@external/bl...th/bl...id/hci/src/bt_hw.c | |---hci.set_power(ON);//@ex...al/bl...th/bl...id/hci/src/bt_hci_bdroid.c |---GKI_run(0);//@external/bl...th/bl...id/gki/ulinux/gki_ulinux.c |---bte_snoop_create_task();//HCI log
(如需转载或引用此文章请标明作者和出处,未经同意禁止用于任何商业用途)
相关文章推荐
- 白露卓爱(一): Bluedroid如何开启HCI log
- Android BlueDroid(三):BlueDroid蓝牙开启过程enable
- Android BlueDroid(三):BlueDroid蓝牙开启过程enable
- Android Bluetooth Stack: Bluedroid(三):Enable Bluetooth
- Bluedroid的启动与enable流程
- Android BlueDroid(三):BlueDroid蓝牙开启过程enable
- Android BlueDroid(三):BlueDroid蓝牙开启过程enable
- Android BlueDroid(三):BlueDroid蓝牙开启过程enable
- 蓝牙之十五-bluedroid enable流程
- Android BlueDroid(三):BlueDroid蓝牙开启过程enable
- android中bluedroid如何读取pcm数据,并将其写入文件中?
- Android BlueDroid(蓝牙协议栈)
- Android BlueDroid(一):BlueDroid概述
- Android BlueDroid分析: Linux中的Eventfd
- Android BlueDroid分析: OSI中的reactor的实现与使用分析
- 蓝牙系列之BlueDroid与MTK代码分布
- 蓝牙系列之BlueDroid与MTK代码分布
- bluedroid 协议栈之蓝牙地址 bt address
- Dissect Bluedroid From A2DP Part I: Use Case
- Android BlueDroid(二):BlueDroid蓝牙开启过程init