Loading service/java/com/android/server/bluetooth/BluetoothManagerService.java +7 −2 Original line number Diff line number Diff line Loading @@ -65,6 +65,7 @@ import android.database.ContentObserver; import android.os.Binder; import android.os.Bundle; import android.os.Handler; import android.os.HandlerThread; import android.os.IBinder; import android.os.Looper; import android.os.Message; Loading Loading @@ -247,6 +248,7 @@ class BluetoothManagerService extends IBluetoothManager.Stub { new ConcurrentHashMap<IBinder, ClientDeathRecipient>(); private int mState; private final HandlerThread mBluetoothHandlerThread; private final BluetoothHandler mHandler; private int mErrorRecoveryRetryCounter; private final int mSystemUiUid; Loading Loading @@ -464,7 +466,10 @@ class BluetoothManagerService extends IBluetoothManager.Stub { }; BluetoothManagerService(Context context) { mHandler = new BluetoothHandler(IoThread.get().getLooper()); mBluetoothHandlerThread = new HandlerThread("BluetoothManagerService"); mBluetoothHandlerThread.start(); mHandler = new BluetoothHandler(mBluetoothHandlerThread.getLooper()); mContext = context; Loading Loading @@ -541,7 +546,7 @@ class BluetoothManagerService extends IBluetoothManager.Stub { if (airplaneModeRadios == null || airplaneModeRadios.contains( Settings.Global.RADIO_BLUETOOTH)) { mBluetoothAirplaneModeListener = new BluetoothAirplaneModeListener( this, IoThread.get().getLooper(), context); this, mBluetoothHandlerThread.getLooper(), context); } int systemUiUid = -1; Loading Loading
service/java/com/android/server/bluetooth/BluetoothManagerService.java +7 −2 Original line number Diff line number Diff line Loading @@ -65,6 +65,7 @@ import android.database.ContentObserver; import android.os.Binder; import android.os.Bundle; import android.os.Handler; import android.os.HandlerThread; import android.os.IBinder; import android.os.Looper; import android.os.Message; Loading Loading @@ -247,6 +248,7 @@ class BluetoothManagerService extends IBluetoothManager.Stub { new ConcurrentHashMap<IBinder, ClientDeathRecipient>(); private int mState; private final HandlerThread mBluetoothHandlerThread; private final BluetoothHandler mHandler; private int mErrorRecoveryRetryCounter; private final int mSystemUiUid; Loading Loading @@ -464,7 +466,10 @@ class BluetoothManagerService extends IBluetoothManager.Stub { }; BluetoothManagerService(Context context) { mHandler = new BluetoothHandler(IoThread.get().getLooper()); mBluetoothHandlerThread = new HandlerThread("BluetoothManagerService"); mBluetoothHandlerThread.start(); mHandler = new BluetoothHandler(mBluetoothHandlerThread.getLooper()); mContext = context; Loading Loading @@ -541,7 +546,7 @@ class BluetoothManagerService extends IBluetoothManager.Stub { if (airplaneModeRadios == null || airplaneModeRadios.contains( Settings.Global.RADIO_BLUETOOTH)) { mBluetoothAirplaneModeListener = new BluetoothAirplaneModeListener( this, IoThread.get().getLooper(), context); this, mBluetoothHandlerThread.getLooper(), context); } int systemUiUid = -1; Loading