summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCNSS_WLAN Service <cnssbldsw@qualcomm.com>2022-02-14 22:47:48 -0800
committerGerrit - the friendly Code Review server <code-review@localhost>2022-02-14 22:47:48 -0800
commitc1ffb5ae4ef93f459460a0b60e79e909e0b24c89 (patch)
tree20bd8d93e33567cd588206744a50f420d3b7aa65
parent473b15dd1514ed52966ba2f66ceda1c8f594d6ef (diff)
parentd3b6ecc2920eaf4f4b9efd9e95fd87dad7a62f65 (diff)
Merge "Added new API's for call events" into bt-sys.lnx.12.0
-rw-r--r--src/com/android/bluetooth/hfp/HeadsetService.java43
1 files changed, 17 insertions, 26 deletions
diff --git a/src/com/android/bluetooth/hfp/HeadsetService.java b/src/com/android/bluetooth/hfp/HeadsetService.java
index 177a0c955..a7bc8923a 100644
--- a/src/com/android/bluetooth/hfp/HeadsetService.java
+++ b/src/com/android/bluetooth/hfp/HeadsetService.java
@@ -998,11 +998,6 @@ public class HeadsetService extends ProfileService {
@Override
public void phoneStateChanged(int numActive, int numHeld, int callState, String number,
int type, String name, AttributionSource source) {
- HeadsetService service = getService(source);
- if (service == null) {
- return;
- }
- service.phoneStateChanged(numActive, numHeld, callState, number, type, name, false);
if (ApmConstIntf.getLeAudioEnabled()) {
Log.d(TAG, "Adv Audio enabled: phoneStateChanged");
CallControlIntf mCallControl = CallControlIntf.get();
@@ -1019,11 +1014,6 @@ public class HeadsetService extends ProfileService {
CallControlIntf mCallControl = CallControlIntf.get();
mCallControl.clccResponse(index, direction, status, mode, mpty, number, type);
}
- HeadsetService service = getService(source);
- if (service == null) {
- return;
- }
- service.clccResponse(index, direction, status, mode, mpty, number, type);
}
@Override
@@ -1071,24 +1061,25 @@ public class HeadsetService extends ProfileService {
return service.isInbandRingingEnabled();
}
+ @Override
public void phoneStateChangedDsDa(int numActive, int numHeld, int callState, String number,
int type, String name, AttributionSource source) {
- HeadsetService service = getService(source);
- if (service == null) {
- return;
- }
- service.phoneStateChanged(numActive, numHeld, callState, number, type, name, false);
- }
-
- public void clccResponseDsDa(int index, int direction, int status, int mode, boolean mpty,
- String number, int type, AttributionSource source) {
-
- HeadsetService service = getService(source);
- if (service == null) {
- return;
- }
- service.clccResponse(index, direction, status, mode, mpty, number, type);
- }
+ HeadsetService service = getService(source);
+ if (service == null) {
+ return;
+ }
+ service.phoneStateChanged(numActive, numHeld, callState, number, type, name, false);
+ }
+
+ @Override
+ public void clccResponseDsDa(int index, int direction, int status, int mode, boolean mpty,
+ String number, int type, AttributionSource source) {
+ HeadsetService service = getService(source);
+ if (service == null) {
+ return;
+ }
+ service.clccResponse(index, direction, status, mode, mpty, number, type);
+ }
}
// API methods