Loading src/com/android/bluetooth/btservice/SilenceDeviceManager.java +0 −1 Original line number Diff line number Diff line Loading @@ -286,7 +286,6 @@ public class SilenceDeviceManager { void broadcastSilenceStateChange(BluetoothDevice device, boolean state) { Intent intent = new Intent(BluetoothDevice.ACTION_SILENCE_MODE_CHANGED); intent.putExtra(BluetoothDevice.EXTRA_DEVICE, device); intent.putExtra(BluetoothDevice.EXTRA_SILENCE_ENABLED, state); mAdapterService.sendBroadcastAsUser(intent, UserHandle.ALL, AdapterService.BLUETOOTH_PERM); } Loading tests/unit/src/com/android/bluetooth/btservice/SilenceDeviceManagerTest.java +2 −4 Original line number Diff line number Diff line Loading @@ -131,7 +131,7 @@ public class SilenceDeviceManagerTest { verify(mAdapterService, times(++mVerifyCount)).sendBroadcastAsUser( intentArgument.capture(), eq(UserHandle.ALL), eq(AdapterService.BLUETOOTH_PERM)); verifySilenceStateIntent(enableSilence, intentArgument.getValue()); verifySilenceStateIntent(intentArgument.getValue()); } // Remove test devices Loading Loading @@ -161,11 +161,9 @@ public class SilenceDeviceManagerTest { eq(AdapterService.BLUETOOTH_PERM)); } void verifySilenceStateIntent(boolean expectedState, Intent intent) { void verifySilenceStateIntent(Intent intent) { Assert.assertEquals(BluetoothDevice.ACTION_SILENCE_MODE_CHANGED, intent.getAction()); Assert.assertEquals(mTestDevice, intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE)); Assert.assertEquals(expectedState, intent.getBooleanExtra(BluetoothDevice.EXTRA_SILENCE_ENABLED, false)); } /** Loading Loading
src/com/android/bluetooth/btservice/SilenceDeviceManager.java +0 −1 Original line number Diff line number Diff line Loading @@ -286,7 +286,6 @@ public class SilenceDeviceManager { void broadcastSilenceStateChange(BluetoothDevice device, boolean state) { Intent intent = new Intent(BluetoothDevice.ACTION_SILENCE_MODE_CHANGED); intent.putExtra(BluetoothDevice.EXTRA_DEVICE, device); intent.putExtra(BluetoothDevice.EXTRA_SILENCE_ENABLED, state); mAdapterService.sendBroadcastAsUser(intent, UserHandle.ALL, AdapterService.BLUETOOTH_PERM); } Loading
tests/unit/src/com/android/bluetooth/btservice/SilenceDeviceManagerTest.java +2 −4 Original line number Diff line number Diff line Loading @@ -131,7 +131,7 @@ public class SilenceDeviceManagerTest { verify(mAdapterService, times(++mVerifyCount)).sendBroadcastAsUser( intentArgument.capture(), eq(UserHandle.ALL), eq(AdapterService.BLUETOOTH_PERM)); verifySilenceStateIntent(enableSilence, intentArgument.getValue()); verifySilenceStateIntent(intentArgument.getValue()); } // Remove test devices Loading Loading @@ -161,11 +161,9 @@ public class SilenceDeviceManagerTest { eq(AdapterService.BLUETOOTH_PERM)); } void verifySilenceStateIntent(boolean expectedState, Intent intent) { void verifySilenceStateIntent(Intent intent) { Assert.assertEquals(BluetoothDevice.ACTION_SILENCE_MODE_CHANGED, intent.getAction()); Assert.assertEquals(mTestDevice, intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE)); Assert.assertEquals(expectedState, intent.getBooleanExtra(BluetoothDevice.EXTRA_SILENCE_ENABLED, false)); } /** Loading