Loading android/app/src/com/android/bluetooth/hfpclient/HeadsetClientService.java +9 −0 Original line number Diff line number Diff line Loading @@ -33,6 +33,7 @@ import android.os.BatteryManager; import android.os.Bundle; import android.os.HandlerThread; import android.os.Message; import android.os.SystemProperties; import android.sysprop.BluetoothProperties; import android.util.Log; Loading Loading @@ -1128,6 +1129,14 @@ public class HeadsetClientService extends ProfileService { return null; } // Some platform does not support three way calling (ex: watch) final boolean support_three_way_calling = SystemProperties .getBoolean("bluetooth.headset_client.three_way_calling.enabled", true); if (!support_three_way_calling && !getCurrentCalls(device).isEmpty()) { Log.e(TAG, String.format("dial(%s): Line is busy, reject dialing", device)); return null; } HfpClientCall call = new HfpClientCall(device, HeadsetClientStateMachine.HF_ORIGINATED_CALL_ID, HfpClientCall.CALL_STATE_DIALING, number, false /* multiparty */, Loading Loading
android/app/src/com/android/bluetooth/hfpclient/HeadsetClientService.java +9 −0 Original line number Diff line number Diff line Loading @@ -33,6 +33,7 @@ import android.os.BatteryManager; import android.os.Bundle; import android.os.HandlerThread; import android.os.Message; import android.os.SystemProperties; import android.sysprop.BluetoothProperties; import android.util.Log; Loading Loading @@ -1128,6 +1129,14 @@ public class HeadsetClientService extends ProfileService { return null; } // Some platform does not support three way calling (ex: watch) final boolean support_three_way_calling = SystemProperties .getBoolean("bluetooth.headset_client.three_way_calling.enabled", true); if (!support_three_way_calling && !getCurrentCalls(device).isEmpty()) { Log.e(TAG, String.format("dial(%s): Line is busy, reject dialing", device)); return null; } HfpClientCall call = new HfpClientCall(device, HeadsetClientStateMachine.HF_ORIGINATED_CALL_ID, HfpClientCall.CALL_STATE_DIALING, number, false /* multiparty */, Loading