Android Bluetooth Code

来源:互联网 发布:ug编程和pm编程那个累 编辑:程序博客网 时间:2024/06/01 17:25

1.  App/UI part
packages/apps/Bluetooth  (bpp,findme,ftp,map,opp,pbap,proximity, thermometer)
packages/apps/Settings/src/com/android/settings/bluetooth
A2dpProfile.java,DUNProfile.java, HeadsetProfile.java, HidProfile.java, OppProfile.java, PanProfile.java, SapProfile.java,
LocalBluetoothProfile.java, LocalBluetoothProfileManager.java, BluetoothEnabler.java,BluetoothSettings.java,CachedBluetoothDevice.java

 

2. Frameworks/base part

frameworks/base/core/java/android/bluetooth

frameworks/base/core/java/android/server
(BluetoothA2dpService.java, BluetoothAdapterProperties.java, BluetoothAdapterStateMachine.java, BluetoothBondState.java
BluetoothDeviceProperties.java, BluetoothEventLoop.java, BluetoothGattProfileHandler.java,BluetoothHealthProfileHandler.java,
BluetoothInputProfileHandler.java, BluetoothPanProfileHandler.java, BluetoothService.java)

frameworks/base/core/jni
(android_bluetooth_*.c, android_server_BluetoothService.cpp, android_server_BluetoothEventLoop.cpp, android_server_BluetoothA2dpService.cpp)

 

3. Native C part

system/bluetooth
external/bluetooth/bluez
#define LOG_TAG "A2DP"
#define LOG_NDEBUG 0
#include <utils/Log.h>

 

4. Kernel part

kernel/net/bluetooth
(hci_core.c,hci_event.c,l2cap_core.c, sco.c)
kernel/drivers/bluetooth/
bluetooth-power.c, bluesleep.c, btuart/sdio/usb/smd

 

原创粉丝点击