Loading packages/SettingsLib/src/com/android/settingslib/bluetooth/BluetoothEventManager.java +6 −0 Original line number Diff line number Diff line Loading @@ -175,6 +175,12 @@ public class BluetoothEventManager { null, mReceiverHandler); } @VisibleForTesting void registerProfileIntentReceiverForTest() { mContext.registerReceiverAsUser(mProfileBroadcastReceiver, mUserHandle, mProfileIntentFilter, null, mReceiverHandler); } @VisibleForTesting void addProfileHandler(String action, Handler handler) { mHandlerMap.put(action, handler); Loading packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/LocalBluetoothProfileManagerTest.java +1 −0 Original line number Diff line number Diff line Loading @@ -84,6 +84,7 @@ public class LocalBluetoothProfileManagerTest { when(mCachedBluetoothDevice.getDevice()).thenReturn(mDevice); mProfileManager = new LocalBluetoothProfileManager(mContext, mLocalBluetoothAdapter, mDeviceManager, mEventManager); mEventManager.registerProfileIntentReceiverForTest(); } /** Loading Loading
packages/SettingsLib/src/com/android/settingslib/bluetooth/BluetoothEventManager.java +6 −0 Original line number Diff line number Diff line Loading @@ -175,6 +175,12 @@ public class BluetoothEventManager { null, mReceiverHandler); } @VisibleForTesting void registerProfileIntentReceiverForTest() { mContext.registerReceiverAsUser(mProfileBroadcastReceiver, mUserHandle, mProfileIntentFilter, null, mReceiverHandler); } @VisibleForTesting void addProfileHandler(String action, Handler handler) { mHandlerMap.put(action, handler); Loading
packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/LocalBluetoothProfileManagerTest.java +1 −0 Original line number Diff line number Diff line Loading @@ -84,6 +84,7 @@ public class LocalBluetoothProfileManagerTest { when(mCachedBluetoothDevice.getDevice()).thenReturn(mDevice); mProfileManager = new LocalBluetoothProfileManager(mContext, mLocalBluetoothAdapter, mDeviceManager, mEventManager); mEventManager.registerProfileIntentReceiverForTest(); } /** Loading