A2DP Sink, AVRCP Controller and HFP Client in Android L
来源:互联网 发布:火花棱镜淘宝 编辑:程序博客网 时间:2024/05/01 02:07
The APIs of A2DP sink, AVRCP controller and HFP client are not published in Android L, but the code which implements the profiles is indeed in Android L. You can set the configuration for the car to build the code.
Where is the code?
- A2DP sink
- /frameworks/base/core/java/android/bluetooth/BluetoothA2dpSink.java
- /packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/A2dpSinkService.java
- /packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/A2dpSinkStateMachine.java
- /packages/apps/Bluetooth/jni/com_android_bluetooth_a2dp_sink.cpp
- /hardware/libhardware/include/hardware/bt_av.h
- /frameworks/base/core/java/android/bluetooth/BluetoothA2dpSink.java
- AVRCP controller
- /frameworks/base/core/java/android/bluetooth/BluetoothAvrcpController.java
- /packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/AvrcpControllerService.java
- /packages/apps/Bluetooth/jni/com_android_bluetooth_avrcp_controller.cpp
- /frameworks/base/core/java/android/bluetooth/BluetoothAvrcpController.java
- HFP client
- /frameworks/base/core/java/android/bluetooth/BluetoothHeadsetClient.java
- /frameworks/base/core/java/android/bluetooth/BluetoothHeadsetClientCall.java
- /packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/HeadsetClientHalConstants.java
- /packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/HeadsetClientService.java
- /packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/HeadsetClientStateMachine.java
- /packages/apps/Bluetooth/jni/com_android_bluetooth_hfpclient.cpp
- /hardware/libhardware/include/hardware/bt_hf_client.h
- /frameworks/base/core/java/android/bluetooth/BluetoothHeadsetClient.java
How to build the code?
Google develops A2DP sink, AVRCP controller and HFP client for Android Auto. car_hammerhead.mk is added in /device/lge/hammerhead/. You must add the product item 'add_lunch_combo car_hammerhead-userdebug' in /device/lge/hammerhead/vendorsetup.sh. Then run 'lunch', and select 'car_hammerhead-userdebug'. Now you can build the image of car_hammerhead and flash the image to Nexus 5.
You can used hcitool and sdptool to browse all available services on Nexus 5 with car_hammerhead image. You should see A2DP sink, AVRCP controller and HFP client in the list of available services. If you want to hear the sound from the speaker of Nexus 5 with car_hammerhead image, you have to develop the App which uses A2DP sink APIs to trigger the audio routing from from BT stack to speaker. If no App registers a listener to bluedroid, the audio data will be discarded before decoder.
0 0
- A2DP Sink, AVRCP Controller and HFP Client in Android L
- A2DP Sink, AVRCP Controller and HFP Client in Android L
- A2DP Sink, AVRCP Controller and HFP Client in Android L
- HFP、HSP、A2DP 和 AVRCP
- 蓝牙协议 HFP,HSP,A2DP,AVRCP,OPP,PBAP
- 蓝牙协议 HFP,HSP,A2DP,AVRCP,OPP,PBAP
- The Implementation of A2DP Sink in Android 4.4
- a2dp sink 在android kk(4.4)和L(5.0)实现的区别
- 蓝牙profile:A2DP,AVRCP
- android蓝牙协议名词解释 OPP HFP HDP A2DP PAN
- android 蓝牙hfp client实现简介
- android蓝牙hfp client使用例
- android4.2 bluetooth蓝牙HFP/HSP/A2DP
- Howto Enable and Use A2DP Sink on Ubuntu Linux with Bluez
- CSR8670的A2DP与AVRCP的应用笔记
- A2DP & AVRCP,蓝牙音频协议的兄弟组合(1)
- A2DP和AVRCP蓝牙音频传输协议的应用解释
- Android BluetoothProfile之AVRCP
- 15款开源PHP类库
- linux命令大全
- 调试打印ethhdr,iphdr,tcphdr和指定长度的内存块
- 查看二进制中1的个数
- startActivityForResult用法
- A2DP Sink, AVRCP Controller and HFP Client in Android L
- STL中的set和multiset学习小记
- 欢迎使用CSDN-markdown编辑器
- MP3头部结构体定义(一)
- Extjs4 之单元格编辑 获取列的对象
- POJ - 1018 Communication System
- 【转】Could not open Selected VM debug port (8700)
- TestLink用户手册学习总结
- uva 11324 the largest clique (2-sat 二分答案)