Merge "Remove usages of HFP Client audio state APIs" into tm-dev am: 28cb4aaf7c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17035305 Change-Id: I77c15fa2058b6dd1d6b65d40d42a6a0a9dee6b78
This commit is contained in:
@@ -24,9 +24,9 @@ import android.bluetooth.BluetoothDevice;
|
|||||||
import android.bluetooth.BluetoothHeadset;
|
import android.bluetooth.BluetoothHeadset;
|
||||||
import android.bluetooth.BluetoothHeadsetClient;
|
import android.bluetooth.BluetoothHeadsetClient;
|
||||||
import android.bluetooth.BluetoothHearingAid;
|
import android.bluetooth.BluetoothHearingAid;
|
||||||
import android.bluetooth.BluetoothLeAudio;
|
|
||||||
import android.bluetooth.BluetoothHidDevice;
|
import android.bluetooth.BluetoothHidDevice;
|
||||||
import android.bluetooth.BluetoothHidHost;
|
import android.bluetooth.BluetoothHidHost;
|
||||||
|
import android.bluetooth.BluetoothLeAudio;
|
||||||
import android.bluetooth.BluetoothMap;
|
import android.bluetooth.BluetoothMap;
|
||||||
import android.bluetooth.BluetoothMapClient;
|
import android.bluetooth.BluetoothMapClient;
|
||||||
import android.bluetooth.BluetoothPan;
|
import android.bluetooth.BluetoothPan;
|
||||||
@@ -159,10 +159,8 @@ public class LocalBluetoothProfileManager {
|
|||||||
if (mHfpClientProfile == null && supportedList.contains(BluetoothProfile.HEADSET_CLIENT)) {
|
if (mHfpClientProfile == null && supportedList.contains(BluetoothProfile.HEADSET_CLIENT)) {
|
||||||
if (DEBUG) Log.d(TAG, "Adding local HfpClient profile");
|
if (DEBUG) Log.d(TAG, "Adding local HfpClient profile");
|
||||||
mHfpClientProfile = new HfpClientProfile(mContext, mDeviceManager, this);
|
mHfpClientProfile = new HfpClientProfile(mContext, mDeviceManager, this);
|
||||||
addHeadsetProfile(mHfpClientProfile, HfpClientProfile.NAME,
|
addProfile(mHfpClientProfile, HfpClientProfile.NAME,
|
||||||
BluetoothHeadsetClient.ACTION_CONNECTION_STATE_CHANGED,
|
BluetoothHeadsetClient.ACTION_CONNECTION_STATE_CHANGED);
|
||||||
BluetoothHeadsetClient.ACTION_AUDIO_STATE_CHANGED,
|
|
||||||
BluetoothHeadsetClient.STATE_AUDIO_DISCONNECTED);
|
|
||||||
}
|
}
|
||||||
if (mMapClientProfile == null && supportedList.contains(BluetoothProfile.MAP_CLIENT)) {
|
if (mMapClientProfile == null && supportedList.contains(BluetoothProfile.MAP_CLIENT)) {
|
||||||
if (DEBUG) Log.d(TAG, "Adding local MAP CLIENT profile");
|
if (DEBUG) Log.d(TAG, "Adding local MAP CLIENT profile");
|
||||||
|
|||||||
Reference in New Issue
Block a user