Loading src/com/android/settings/bluetooth/BluetoothDetailsMacAddressController.java +3 −3 Original line number Diff line number Diff line Loading @@ -52,12 +52,12 @@ public class BluetoothDetailsMacAddressController extends BluetoothDetailsContro @Override protected void refresh() { if (mCachedDevice.getGroupId() != BluetoothCsipSetCoordinator.GROUP_ID_INVALID) { StringBuilder mTitle = new StringBuilder(mContext.getString( StringBuilder title = new StringBuilder(mContext.getString( R.string.bluetooth_multuple_devices_mac_address, mCachedDevice.getAddress())); for (CachedBluetoothDevice member: mCachedDevice.getMemberDevice()) { mTitle.append("\n").append(member.getAddress()); title.append("\n").append(member.getAddress()); } mFooterPreference.setTitle(mTitle); mFooterPreference.setTitle(title); } else { mFooterPreference.setTitle(mContext.getString( R.string.bluetooth_device_mac_address, mCachedDevice.getAddress())); Loading src/com/android/settings/bluetooth/BluetoothPairingController.java +1 −1 Original line number Diff line number Diff line Loading @@ -94,7 +94,7 @@ public class BluetoothPairingController implements OnCheckedChangeListener, mPasskeyFormatted = formatKey(mPasskey); final CachedBluetoothDevice cachedDevice = mBluetoothManager.getCachedDeviceManager().findDevice(mDevice); mIsCoordinatedSetMember = (cachedDevice != null) mIsCoordinatedSetMember = cachedDevice != null ? cachedDevice.isCoordinatedSetMemberDevice() : false; } Loading tests/robotests/src/com/android/settings/bluetooth/AvailableMediaBluetoothDeviceUpdaterTest.java +2 −2 Original line number Diff line number Diff line Loading @@ -235,7 +235,7 @@ public class AvailableMediaBluetoothDeviceUpdaterTest { } @Test public void onProfileConnectionStateChanged_leAudioDeviceConnected_notInCall_addPreference() { public void onProfileConnectionStateChanged_leAudioDeviceConnected_notInCall_addsPreference() { mAudioManager.setMode(AudioManager.MODE_NORMAL); when(mBluetoothDeviceUpdater .isDeviceConnected(any(CachedBluetoothDevice.class))).thenReturn(true); Loading @@ -248,7 +248,7 @@ public class AvailableMediaBluetoothDeviceUpdaterTest { } @Test public void onProfileConnectionStateChanged_leAudioDeviceConnected_inCall_addPreference() { public void onProfileConnectionStateChanged_leAudioDeviceConnected_inCall_addsPreference() { mAudioManager.setMode(AudioManager.MODE_IN_CALL); when(mBluetoothDeviceUpdater .isDeviceConnected(any(CachedBluetoothDevice.class))).thenReturn(true); Loading tests/robotests/src/com/android/settings/bluetooth/ConnectedBluetoothDeviceUpdaterTest.java +2 −2 Original line number Diff line number Diff line Loading @@ -235,7 +235,7 @@ public class ConnectedBluetoothDeviceUpdaterTest { } @Test public void onProfileConnectionStateChanged_leAudioDeviceConnected_inCall_removePreference() { public void onProfileConnectionStateChanged_leAudioDeviceConnected_inCall_removesPreference() { mAudioManager.setMode(AudioManager.MODE_IN_CALL); when(mBluetoothDeviceUpdater .isDeviceConnected(any(CachedBluetoothDevice.class))).thenReturn(true); Loading @@ -248,7 +248,7 @@ public class ConnectedBluetoothDeviceUpdaterTest { } @Test public void onProfileConnectionStateChanged_leAudioDeviceConnected_notInCall_removePreference() public void onProfileConnectionStateChanged_leAudioDeviceConnected_notInCall_removesPreference() { mAudioManager.setMode(AudioManager.MODE_NORMAL); when(mBluetoothDeviceUpdater Loading Loading
src/com/android/settings/bluetooth/BluetoothDetailsMacAddressController.java +3 −3 Original line number Diff line number Diff line Loading @@ -52,12 +52,12 @@ public class BluetoothDetailsMacAddressController extends BluetoothDetailsContro @Override protected void refresh() { if (mCachedDevice.getGroupId() != BluetoothCsipSetCoordinator.GROUP_ID_INVALID) { StringBuilder mTitle = new StringBuilder(mContext.getString( StringBuilder title = new StringBuilder(mContext.getString( R.string.bluetooth_multuple_devices_mac_address, mCachedDevice.getAddress())); for (CachedBluetoothDevice member: mCachedDevice.getMemberDevice()) { mTitle.append("\n").append(member.getAddress()); title.append("\n").append(member.getAddress()); } mFooterPreference.setTitle(mTitle); mFooterPreference.setTitle(title); } else { mFooterPreference.setTitle(mContext.getString( R.string.bluetooth_device_mac_address, mCachedDevice.getAddress())); Loading
src/com/android/settings/bluetooth/BluetoothPairingController.java +1 −1 Original line number Diff line number Diff line Loading @@ -94,7 +94,7 @@ public class BluetoothPairingController implements OnCheckedChangeListener, mPasskeyFormatted = formatKey(mPasskey); final CachedBluetoothDevice cachedDevice = mBluetoothManager.getCachedDeviceManager().findDevice(mDevice); mIsCoordinatedSetMember = (cachedDevice != null) mIsCoordinatedSetMember = cachedDevice != null ? cachedDevice.isCoordinatedSetMemberDevice() : false; } Loading
tests/robotests/src/com/android/settings/bluetooth/AvailableMediaBluetoothDeviceUpdaterTest.java +2 −2 Original line number Diff line number Diff line Loading @@ -235,7 +235,7 @@ public class AvailableMediaBluetoothDeviceUpdaterTest { } @Test public void onProfileConnectionStateChanged_leAudioDeviceConnected_notInCall_addPreference() { public void onProfileConnectionStateChanged_leAudioDeviceConnected_notInCall_addsPreference() { mAudioManager.setMode(AudioManager.MODE_NORMAL); when(mBluetoothDeviceUpdater .isDeviceConnected(any(CachedBluetoothDevice.class))).thenReturn(true); Loading @@ -248,7 +248,7 @@ public class AvailableMediaBluetoothDeviceUpdaterTest { } @Test public void onProfileConnectionStateChanged_leAudioDeviceConnected_inCall_addPreference() { public void onProfileConnectionStateChanged_leAudioDeviceConnected_inCall_addsPreference() { mAudioManager.setMode(AudioManager.MODE_IN_CALL); when(mBluetoothDeviceUpdater .isDeviceConnected(any(CachedBluetoothDevice.class))).thenReturn(true); Loading
tests/robotests/src/com/android/settings/bluetooth/ConnectedBluetoothDeviceUpdaterTest.java +2 −2 Original line number Diff line number Diff line Loading @@ -235,7 +235,7 @@ public class ConnectedBluetoothDeviceUpdaterTest { } @Test public void onProfileConnectionStateChanged_leAudioDeviceConnected_inCall_removePreference() { public void onProfileConnectionStateChanged_leAudioDeviceConnected_inCall_removesPreference() { mAudioManager.setMode(AudioManager.MODE_IN_CALL); when(mBluetoothDeviceUpdater .isDeviceConnected(any(CachedBluetoothDevice.class))).thenReturn(true); Loading @@ -248,7 +248,7 @@ public class ConnectedBluetoothDeviceUpdaterTest { } @Test public void onProfileConnectionStateChanged_leAudioDeviceConnected_notInCall_removePreference() public void onProfileConnectionStateChanged_leAudioDeviceConnected_notInCall_removesPreference() { mAudioManager.setMode(AudioManager.MODE_NORMAL); when(mBluetoothDeviceUpdater Loading