From 2a91c369e08e7cab6401133522cf565efb5878b8 Mon Sep 17 00:00:00 2001 From: Sal Savage Date: Tue, 8 Feb 2022 15:54:16 -0800 Subject: [PATCH] Remove usages of HFP Client audio state APIs Bug: 216476895 Test: make -j Change-Id: Iee3df6f681ee9484858467d253ca164a2d578e20 --- .../bluetooth/LocalBluetoothProfileManager.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/SettingsLib/src/com/android/settingslib/bluetooth/LocalBluetoothProfileManager.java b/packages/SettingsLib/src/com/android/settingslib/bluetooth/LocalBluetoothProfileManager.java index 5e2f310109001..7573177565a4b 100644 --- a/packages/SettingsLib/src/com/android/settingslib/bluetooth/LocalBluetoothProfileManager.java +++ b/packages/SettingsLib/src/com/android/settingslib/bluetooth/LocalBluetoothProfileManager.java @@ -24,9 +24,9 @@ import android.bluetooth.BluetoothDevice; import android.bluetooth.BluetoothHeadset; import android.bluetooth.BluetoothHeadsetClient; import android.bluetooth.BluetoothHearingAid; -import android.bluetooth.BluetoothLeAudio; import android.bluetooth.BluetoothHidDevice; import android.bluetooth.BluetoothHidHost; +import android.bluetooth.BluetoothLeAudio; import android.bluetooth.BluetoothMap; import android.bluetooth.BluetoothMapClient; import android.bluetooth.BluetoothPan; @@ -159,10 +159,8 @@ public class LocalBluetoothProfileManager { if (mHfpClientProfile == null && supportedList.contains(BluetoothProfile.HEADSET_CLIENT)) { if (DEBUG) Log.d(TAG, "Adding local HfpClient profile"); mHfpClientProfile = new HfpClientProfile(mContext, mDeviceManager, this); - addHeadsetProfile(mHfpClientProfile, HfpClientProfile.NAME, - BluetoothHeadsetClient.ACTION_CONNECTION_STATE_CHANGED, - BluetoothHeadsetClient.ACTION_AUDIO_STATE_CHANGED, - BluetoothHeadsetClient.STATE_AUDIO_DISCONNECTED); + addProfile(mHfpClientProfile, HfpClientProfile.NAME, + BluetoothHeadsetClient.ACTION_CONNECTION_STATE_CHANGED); } if (mMapClientProfile == null && supportedList.contains(BluetoothProfile.MAP_CLIENT)) { if (DEBUG) Log.d(TAG, "Adding local MAP CLIENT profile");