Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cb903dc6 authored by Gaurav Asati's avatar Gaurav Asati Committed by Steve Kondik
Browse files

Bluetooth: Support HFP Client role on Bluedroid.

Implementation changes to support HFP Client role
on Bluedroid stack

Change-Id: Ie37e95d3b0e3f785af818fb495c835e420792f4d
(cherry picked from commit 072fad9a9a17c2a31660e7ac6cd6eba82d63fe50)
(cherry picked from commit 559508238c2fe1f8f10049549b8a29053399407c)
parent 66971043
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -98,6 +98,7 @@ LOCAL_SRC_FILES += \
	core/java/android/bluetooth/IBluetoothPbap.aidl \
	core/java/android/bluetooth/IBluetoothMap.aidl \
	core/java/android/bluetooth/IBluetoothStateChangeCallback.aidl \
	core/java/android/bluetooth/IBluetoothHandsfreeClient.aidl \
	core/java/android/bluetooth/IBluetoothGatt.aidl \
	core/java/android/bluetooth/IBluetoothGattCallback.aidl \
	core/java/android/bluetooth/IBluetoothGattServerCallback.aidl \
+9 −0
Original line number Diff line number Diff line
/*
 * Copyright (C) 2013 The Linux Foundation. All rights reserved
 * Not a Contribution.
 * Copyright (C) 2009 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
@@ -1206,6 +1208,9 @@ public final class BluetoothAdapter {
        } else if (profile == BluetoothProfile.MAP) {
            BluetoothMap map = new BluetoothMap(context, listener);
            return true;
        } else if (profile == BluetoothProfile.HANDSFREE_CLIENT) {
            BluetoothHandsfreeClient hfpclient = new BluetoothHandsfreeClient(context, listener);
            return true;
        } else {
            return false;
        }
@@ -1262,6 +1267,10 @@ public final class BluetoothAdapter {
                BluetoothMap map = (BluetoothMap)proxy;
                map.close();
                break;
            case BluetoothProfile.HANDSFREE_CLIENT:
                BluetoothHandsfreeClient hfpclient = (BluetoothHandsfreeClient)proxy;
                hfpclient.close();
                break;
        }
    }

Loading