Loading android/app/src/com/android/bluetooth/tbs/BluetoothLeCallControlProxy.java +12 −0 Original line number Diff line number Diff line Loading @@ -19,6 +19,9 @@ package com.android.bluetooth.tbs; import android.bluetooth.BluetoothLeCall; import android.bluetooth.BluetoothLeCallControl; import android.bluetooth.BluetoothManager; import android.bluetooth.BluetoothProfile; import android.content.Context; import java.util.List; import java.util.UUID; Loading Loading @@ -49,6 +52,15 @@ public class BluetoothLeCallControlProxy { mBluetoothLeCallControl = tbs; } public void closeBluetoothLeCallControlProxy(Context context) { final BluetoothManager btManager = context.getSystemService(BluetoothManager.class); if (btManager != null) { btManager.getAdapter().closeProfileProxy(BluetoothProfile.LE_CALL_CONTROL, mBluetoothLeCallControl); } } public boolean registerBearer(String uci, List<String> uriSchemes, int featureFlags, String provider, int technology, Executor executor, BluetoothLeCallControl.Callback callback) { return mBluetoothLeCallControl.registerBearer(uci, uriSchemes, featureFlags, provider, technology, Loading android/app/src/com/android/bluetooth/telephony/BluetoothInCallService.java +4 −2 Original line number Diff line number Diff line Loading @@ -154,7 +154,8 @@ public class BluetoothInCallService extends InCallService { setBluetoothHeadset(new BluetoothHeadsetProxy((BluetoothHeadset) proxy)); updateHeadsetWithCallState(true /* force */); } else { setBluetoothLeCallControl(new BluetoothLeCallControlProxy((BluetoothLeCallControl) proxy)); setBluetoothLeCallControl(new BluetoothLeCallControlProxy(( BluetoothLeCallControl) proxy)); sendTbsCurrentCallsList(); } } Loading Loading @@ -687,6 +688,7 @@ public class BluetoothInCallService extends InCallService { } if (mBluetoothLeCallControl != null) { mBluetoothLeCallControl.unregisterBearer(); mBluetoothLeCallControl.closeBluetoothLeCallControlProxy(this); } mProfileListener = null; sInstance = null; Loading Loading
android/app/src/com/android/bluetooth/tbs/BluetoothLeCallControlProxy.java +12 −0 Original line number Diff line number Diff line Loading @@ -19,6 +19,9 @@ package com.android.bluetooth.tbs; import android.bluetooth.BluetoothLeCall; import android.bluetooth.BluetoothLeCallControl; import android.bluetooth.BluetoothManager; import android.bluetooth.BluetoothProfile; import android.content.Context; import java.util.List; import java.util.UUID; Loading Loading @@ -49,6 +52,15 @@ public class BluetoothLeCallControlProxy { mBluetoothLeCallControl = tbs; } public void closeBluetoothLeCallControlProxy(Context context) { final BluetoothManager btManager = context.getSystemService(BluetoothManager.class); if (btManager != null) { btManager.getAdapter().closeProfileProxy(BluetoothProfile.LE_CALL_CONTROL, mBluetoothLeCallControl); } } public boolean registerBearer(String uci, List<String> uriSchemes, int featureFlags, String provider, int technology, Executor executor, BluetoothLeCallControl.Callback callback) { return mBluetoothLeCallControl.registerBearer(uci, uriSchemes, featureFlags, provider, technology, Loading
android/app/src/com/android/bluetooth/telephony/BluetoothInCallService.java +4 −2 Original line number Diff line number Diff line Loading @@ -154,7 +154,8 @@ public class BluetoothInCallService extends InCallService { setBluetoothHeadset(new BluetoothHeadsetProxy((BluetoothHeadset) proxy)); updateHeadsetWithCallState(true /* force */); } else { setBluetoothLeCallControl(new BluetoothLeCallControlProxy((BluetoothLeCallControl) proxy)); setBluetoothLeCallControl(new BluetoothLeCallControlProxy(( BluetoothLeCallControl) proxy)); sendTbsCurrentCallsList(); } } Loading Loading @@ -687,6 +688,7 @@ public class BluetoothInCallService extends InCallService { } if (mBluetoothLeCallControl != null) { mBluetoothLeCallControl.unregisterBearer(); mBluetoothLeCallControl.closeBluetoothLeCallControlProxy(this); } mProfileListener = null; sInstance = null; Loading