Loading packages/SystemUI/src/com/android/systemui/statusbar/policy/BluetoothControllerImpl.java +4 −3 Original line number Diff line number Diff line Loading @@ -18,6 +18,7 @@ package com.android.systemui.statusbar.policy; import static com.android.systemui.Dependency.BG_LOOPER_NAME; import android.annotation.Nullable; import android.app.ActivityManager; import android.bluetooth.BluetoothAdapter; import android.bluetooth.BluetoothDevice; Loading @@ -34,7 +35,6 @@ import com.android.settingslib.bluetooth.BluetoothCallback; import com.android.settingslib.bluetooth.CachedBluetoothDevice; import com.android.settingslib.bluetooth.LocalBluetoothManager; import com.android.settingslib.bluetooth.LocalBluetoothProfileManager; import com.android.systemui.Dependency; import java.io.FileDescriptor; import java.io.PrintWriter; Loading Loading @@ -73,8 +73,9 @@ public class BluetoothControllerImpl implements BluetoothController, BluetoothCa /** */ @Inject public BluetoothControllerImpl(Context context, @Named(BG_LOOPER_NAME) Looper bgLooper) { mLocalBluetoothManager = Dependency.get(LocalBluetoothManager.class); public BluetoothControllerImpl(Context context, @Named(BG_LOOPER_NAME) Looper bgLooper, @Nullable LocalBluetoothManager localBluetoothManager) { mLocalBluetoothManager = localBluetoothManager; mBgHandler = new Handler(bgLooper); if (mLocalBluetoothManager != null) { mLocalBluetoothManager.getEventManager().registerCallback(this); Loading packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/BluetoothControllerImplTest.java +2 −1 Original line number Diff line number Diff line Loading @@ -74,7 +74,8 @@ public class BluetoothControllerImplTest extends SysuiTestCase { .thenReturn(mock(LocalBluetoothProfileManager.class)); mBluetoothControllerImpl = new BluetoothControllerImpl(mContext, mTestableLooper.getLooper()); mTestableLooper.getLooper(), mMockBluetoothManager); } @Test Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/policy/BluetoothControllerImpl.java +4 −3 Original line number Diff line number Diff line Loading @@ -18,6 +18,7 @@ package com.android.systemui.statusbar.policy; import static com.android.systemui.Dependency.BG_LOOPER_NAME; import android.annotation.Nullable; import android.app.ActivityManager; import android.bluetooth.BluetoothAdapter; import android.bluetooth.BluetoothDevice; Loading @@ -34,7 +35,6 @@ import com.android.settingslib.bluetooth.BluetoothCallback; import com.android.settingslib.bluetooth.CachedBluetoothDevice; import com.android.settingslib.bluetooth.LocalBluetoothManager; import com.android.settingslib.bluetooth.LocalBluetoothProfileManager; import com.android.systemui.Dependency; import java.io.FileDescriptor; import java.io.PrintWriter; Loading Loading @@ -73,8 +73,9 @@ public class BluetoothControllerImpl implements BluetoothController, BluetoothCa /** */ @Inject public BluetoothControllerImpl(Context context, @Named(BG_LOOPER_NAME) Looper bgLooper) { mLocalBluetoothManager = Dependency.get(LocalBluetoothManager.class); public BluetoothControllerImpl(Context context, @Named(BG_LOOPER_NAME) Looper bgLooper, @Nullable LocalBluetoothManager localBluetoothManager) { mLocalBluetoothManager = localBluetoothManager; mBgHandler = new Handler(bgLooper); if (mLocalBluetoothManager != null) { mLocalBluetoothManager.getEventManager().registerCallback(this); Loading
packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/BluetoothControllerImplTest.java +2 −1 Original line number Diff line number Diff line Loading @@ -74,7 +74,8 @@ public class BluetoothControllerImplTest extends SysuiTestCase { .thenReturn(mock(LocalBluetoothProfileManager.class)); mBluetoothControllerImpl = new BluetoothControllerImpl(mContext, mTestableLooper.getLooper()); mTestableLooper.getLooper(), mMockBluetoothManager); } @Test Loading