Loading android/app/AndroidManifest.xml +8 −0 Original line number Diff line number Diff line Loading @@ -316,6 +316,14 @@ <action android:name="android.media.browse.MediaBrowserService" /> </intent-filter> </service> <service android:process="@string/process" android:name = ".avrcp.AvrcpTargetService" android:enabled = "@bool/profile_supported_avrcp_target" > <intent-filter> <action android:name="android.bluetooth.IBluetoothAvrcp" /> </intent-filter> </service> <service android:process="@string/process" android:name = ".avrcpcontroller.AvrcpControllerService" Loading android/app/jni/com_android_bluetooth.h +2 −0 Original line number Diff line number Diff line Loading @@ -81,6 +81,8 @@ int register_com_android_bluetooth_a2dp_sink(JNIEnv* env); int register_com_android_bluetooth_avrcp(JNIEnv* env); int register_com_android_bluetooth_avrcp_target(JNIEnv* env); int register_com_android_bluetooth_avrcp_controller(JNIEnv* env); int register_com_android_bluetooth_hid_host(JNIEnv* env); Loading android/app/jni/com_android_bluetooth_btservice_AdapterService.cpp +5 −0 Original line number Diff line number Diff line Loading @@ -1312,6 +1312,11 @@ jint JNI_OnLoad(JavaVM* jvm, void* reserved) { return JNI_ERR; } status = android::register_com_android_bluetooth_avrcp_target(e); if (status < 0) { ALOGE("jni new avrcp target registration failure: %d", status); } status = android::register_com_android_bluetooth_avrcp_controller(e); if (status < 0) { ALOGE("jni avrcp controller registration failure: %d", status); Loading android/app/res/values/config.xml +1 −0 Original line number Diff line number Diff line Loading @@ -26,6 +26,7 @@ <bool name="pbap_include_photos_in_vcard">true</bool> <bool name="pbap_use_profile_for_owner_vcard">true</bool> <bool name="profile_supported_map">true</bool> <bool name="profile_supported_avrcp_target">false</bool> <bool name="profile_supported_avrcp_controller">false</bool> <bool name="profile_supported_sap">false</bool> <bool name="profile_supported_pbapclient">false</bool> Loading android/app/src/com/android/bluetooth/btservice/Config.java +3 −0 Original line number Diff line number Diff line Loading @@ -26,6 +26,7 @@ import android.util.Log; import com.android.bluetooth.R; import com.android.bluetooth.a2dp.A2dpService; import com.android.bluetooth.a2dpsink.A2dpSinkService; import com.android.bluetooth.avrcp.AvrcpTargetService; import com.android.bluetooth.avrcpcontroller.AvrcpControllerService; import com.android.bluetooth.gatt.GattService; import com.android.bluetooth.hdp.HealthService; Loading Loading @@ -81,6 +82,8 @@ public class Config { (1 << BluetoothProfile.MAP)), new ProfileConfig(HeadsetClientService.class, R.bool.profile_supported_hfpclient, (1 << BluetoothProfile.HEADSET_CLIENT)), new ProfileConfig(AvrcpTargetService.class, R.bool.profile_supported_avrcp_target, (1 << BluetoothProfile.AVRCP)), new ProfileConfig(AvrcpControllerService.class, R.bool.profile_supported_avrcp_controller, (1 << BluetoothProfile.AVRCP_CONTROLLER)), Loading Loading
android/app/AndroidManifest.xml +8 −0 Original line number Diff line number Diff line Loading @@ -316,6 +316,14 @@ <action android:name="android.media.browse.MediaBrowserService" /> </intent-filter> </service> <service android:process="@string/process" android:name = ".avrcp.AvrcpTargetService" android:enabled = "@bool/profile_supported_avrcp_target" > <intent-filter> <action android:name="android.bluetooth.IBluetoothAvrcp" /> </intent-filter> </service> <service android:process="@string/process" android:name = ".avrcpcontroller.AvrcpControllerService" Loading
android/app/jni/com_android_bluetooth.h +2 −0 Original line number Diff line number Diff line Loading @@ -81,6 +81,8 @@ int register_com_android_bluetooth_a2dp_sink(JNIEnv* env); int register_com_android_bluetooth_avrcp(JNIEnv* env); int register_com_android_bluetooth_avrcp_target(JNIEnv* env); int register_com_android_bluetooth_avrcp_controller(JNIEnv* env); int register_com_android_bluetooth_hid_host(JNIEnv* env); Loading
android/app/jni/com_android_bluetooth_btservice_AdapterService.cpp +5 −0 Original line number Diff line number Diff line Loading @@ -1312,6 +1312,11 @@ jint JNI_OnLoad(JavaVM* jvm, void* reserved) { return JNI_ERR; } status = android::register_com_android_bluetooth_avrcp_target(e); if (status < 0) { ALOGE("jni new avrcp target registration failure: %d", status); } status = android::register_com_android_bluetooth_avrcp_controller(e); if (status < 0) { ALOGE("jni avrcp controller registration failure: %d", status); Loading
android/app/res/values/config.xml +1 −0 Original line number Diff line number Diff line Loading @@ -26,6 +26,7 @@ <bool name="pbap_include_photos_in_vcard">true</bool> <bool name="pbap_use_profile_for_owner_vcard">true</bool> <bool name="profile_supported_map">true</bool> <bool name="profile_supported_avrcp_target">false</bool> <bool name="profile_supported_avrcp_controller">false</bool> <bool name="profile_supported_sap">false</bool> <bool name="profile_supported_pbapclient">false</bool> Loading
android/app/src/com/android/bluetooth/btservice/Config.java +3 −0 Original line number Diff line number Diff line Loading @@ -26,6 +26,7 @@ import android.util.Log; import com.android.bluetooth.R; import com.android.bluetooth.a2dp.A2dpService; import com.android.bluetooth.a2dpsink.A2dpSinkService; import com.android.bluetooth.avrcp.AvrcpTargetService; import com.android.bluetooth.avrcpcontroller.AvrcpControllerService; import com.android.bluetooth.gatt.GattService; import com.android.bluetooth.hdp.HealthService; Loading Loading @@ -81,6 +82,8 @@ public class Config { (1 << BluetoothProfile.MAP)), new ProfileConfig(HeadsetClientService.class, R.bool.profile_supported_hfpclient, (1 << BluetoothProfile.HEADSET_CLIENT)), new ProfileConfig(AvrcpTargetService.class, R.bool.profile_supported_avrcp_target, (1 << BluetoothProfile.AVRCP)), new ProfileConfig(AvrcpControllerService.class, R.bool.profile_supported_avrcp_controller, (1 << BluetoothProfile.AVRCP_CONTROLLER)), Loading