Loading android/app/src/com/android/bluetooth/avrcpcontroller/AvrcpControllerService.java +4 −3 Original line number Diff line number Diff line Loading @@ -508,7 +508,8 @@ public class AvrcpControllerService extends ProfileService { AvrcpControllerStateMachine stateMachine = getStateMachine(device); if (stateMachine != null) { stateMachine.sendMessage( AvrcpControllerStateMachine.MESSAGE_PROCESS_REGISTER_ABS_VOL_NOTIFICATION); AvrcpControllerStateMachine.MESSAGE_PROCESS_REGISTER_ABS_VOL_NOTIFICATION, label); } } Loading @@ -517,8 +518,8 @@ public class AvrcpControllerService extends ProfileService { synchronized void handleSetAbsVolume(BluetoothDevice device, byte absVol, byte label) { AvrcpControllerStateMachine stateMachine = getStateMachine(device); if (stateMachine != null) { stateMachine.sendMessage(AvrcpControllerStateMachine.MESSAGE_PROCESS_SET_ABS_VOL_CMD, absVol); stateMachine.sendMessage( AvrcpControllerStateMachine.MESSAGE_PROCESS_SET_ABS_VOL_CMD, absVol, label); } } Loading android/app/tests/unit/src/com/android/bluetooth/avrcpcontroller/AvrcpControllerServiceTest.java +6 −3 Original line number Diff line number Diff line Loading @@ -361,8 +361,10 @@ public class AvrcpControllerServiceTest { mService.handleRegisterNotificationAbsVol(mRemoteDevice, label); verify(mStateMachine).sendMessage( AvrcpControllerStateMachine.MESSAGE_PROCESS_REGISTER_ABS_VOL_NOTIFICATION); verify(mStateMachine) .sendMessage( AvrcpControllerStateMachine.MESSAGE_PROCESS_REGISTER_ABS_VOL_NOTIFICATION, label); } @Test Loading @@ -373,7 +375,8 @@ public class AvrcpControllerServiceTest { mService.handleSetAbsVolume(mRemoteDevice, absVol, label); verify(mStateMachine) .sendMessage(AvrcpControllerStateMachine.MESSAGE_PROCESS_SET_ABS_VOL_CMD, absVol); .sendMessage( AvrcpControllerStateMachine.MESSAGE_PROCESS_SET_ABS_VOL_CMD, absVol, label); } @Test Loading Loading
android/app/src/com/android/bluetooth/avrcpcontroller/AvrcpControllerService.java +4 −3 Original line number Diff line number Diff line Loading @@ -508,7 +508,8 @@ public class AvrcpControllerService extends ProfileService { AvrcpControllerStateMachine stateMachine = getStateMachine(device); if (stateMachine != null) { stateMachine.sendMessage( AvrcpControllerStateMachine.MESSAGE_PROCESS_REGISTER_ABS_VOL_NOTIFICATION); AvrcpControllerStateMachine.MESSAGE_PROCESS_REGISTER_ABS_VOL_NOTIFICATION, label); } } Loading @@ -517,8 +518,8 @@ public class AvrcpControllerService extends ProfileService { synchronized void handleSetAbsVolume(BluetoothDevice device, byte absVol, byte label) { AvrcpControllerStateMachine stateMachine = getStateMachine(device); if (stateMachine != null) { stateMachine.sendMessage(AvrcpControllerStateMachine.MESSAGE_PROCESS_SET_ABS_VOL_CMD, absVol); stateMachine.sendMessage( AvrcpControllerStateMachine.MESSAGE_PROCESS_SET_ABS_VOL_CMD, absVol, label); } } Loading
android/app/tests/unit/src/com/android/bluetooth/avrcpcontroller/AvrcpControllerServiceTest.java +6 −3 Original line number Diff line number Diff line Loading @@ -361,8 +361,10 @@ public class AvrcpControllerServiceTest { mService.handleRegisterNotificationAbsVol(mRemoteDevice, label); verify(mStateMachine).sendMessage( AvrcpControllerStateMachine.MESSAGE_PROCESS_REGISTER_ABS_VOL_NOTIFICATION); verify(mStateMachine) .sendMessage( AvrcpControllerStateMachine.MESSAGE_PROCESS_REGISTER_ABS_VOL_NOTIFICATION, label); } @Test Loading @@ -373,7 +375,8 @@ public class AvrcpControllerServiceTest { mService.handleSetAbsVolume(mRemoteDevice, absVol, label); verify(mStateMachine) .sendMessage(AvrcpControllerStateMachine.MESSAGE_PROCESS_SET_ABS_VOL_CMD, absVol); .sendMessage( AvrcpControllerStateMachine.MESSAGE_PROCESS_SET_ABS_VOL_CMD, absVol, label); } @Test Loading