From 1d4f64ac7c2be244ca8ad5a639dbbbc0ec5c5439 Mon Sep 17 00:00:00 2001 From: Benson Li Date: Tue, 17 Jul 2018 18:19:59 +0800 Subject: [PATCH] HFP: Send caller ID in +CLIP command (1/4) * Modify BluetoothHeadset so that phoneStateChanged method can provide caller display name Bug: 111378831 Test: runtest bluetooth, runtest -x BluetoothPhoneServiceTest.java Change-Id: Ibc3611a50ec9f103fd235dde606ecbd10657e014 --- core/java/android/bluetooth/BluetoothHeadset.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/java/android/bluetooth/BluetoothHeadset.java b/core/java/android/bluetooth/BluetoothHeadset.java index 636b1b9b13ca5..8d9d340ee68b4 100644 --- a/core/java/android/bluetooth/BluetoothHeadset.java +++ b/core/java/android/bluetooth/BluetoothHeadset.java @@ -973,11 +973,11 @@ public final class BluetoothHeadset implements BluetoothProfile { */ @UnsupportedAppUsage public void phoneStateChanged(int numActive, int numHeld, int callState, String number, - int type) { + int type, String name) { final IBluetoothHeadset service = mService; if (service != null && isEnabled()) { try { - service.phoneStateChanged(numActive, numHeld, callState, number, type); + service.phoneStateChanged(numActive, numHeld, callState, number, type, name); } catch (RemoteException e) { Log.e(TAG, e.toString()); }