Loading android/app/src/com/android/bluetooth/avrcp/AvrcpTargetService.java +2 −2 Original line number Diff line number Diff line Loading @@ -131,7 +131,7 @@ public class AvrcpTargetService extends ProfileService { Log.d(TAG, "request to disconnect device " + device); } } } else if (action.equals(AudioManager.VOLUME_CHANGED_ACTION)) { } else if (action.equals(AudioManager.ACTION_VOLUME_CHANGED)) { int streamType = intent.getIntExtra(AudioManager.EXTRA_VOLUME_STREAM_TYPE, -1); if (streamType == AudioManager.STREAM_MUSIC) { int volume = intent.getIntExtra(AudioManager.EXTRA_VOLUME_STREAM_VALUE, 0); Loading Loading @@ -240,7 +240,7 @@ public class AvrcpTargetService extends ProfileService { IntentFilter filter = new IntentFilter(); filter.addAction(BluetoothA2dp.ACTION_ACTIVE_DEVICE_CHANGED); filter.addAction(BluetoothA2dp.ACTION_CONNECTION_STATE_CHANGED); filter.addAction(AudioManager.VOLUME_CHANGED_ACTION); filter.addAction(AudioManager.ACTION_VOLUME_CHANGED); registerReceiver(mReceiver, filter); // Only allow the service to be used once it is initialized Loading android/app/src/com/android/bluetooth/hfp/HeadsetService.java +2 −2 Original line number Diff line number Diff line Loading @@ -170,7 +170,7 @@ public class HeadsetService extends ProfileService { // Step 6: Setup broadcast receivers IntentFilter filter = new IntentFilter(); filter.addAction(Intent.ACTION_BATTERY_CHANGED); filter.addAction(AudioManager.VOLUME_CHANGED_ACTION); filter.addAction(AudioManager.ACTION_VOLUME_CHANGED); filter.addAction(BluetoothDevice.ACTION_CONNECTION_ACCESS_REPLY); filter.addAction(BluetoothDevice.ACTION_BOND_STATE_CHANGED); registerReceiver(mHeadsetReceiver, filter); Loading Loading @@ -361,7 +361,7 @@ public class HeadsetService extends ProfileService { mSystemInterface.getHeadsetPhoneState().setCindBatteryCharge(cindBatteryLevel); break; } case AudioManager.VOLUME_CHANGED_ACTION: { case AudioManager.ACTION_VOLUME_CHANGED: { int streamType = intent.getIntExtra(AudioManager.EXTRA_VOLUME_STREAM_TYPE, -1); if (streamType == AudioManager.STREAM_BLUETOOTH_SCO) { doForEachConnectedStateMachine(stateMachine -> stateMachine.sendMessage( Loading android/app/src/com/android/bluetooth/hfp/HeadsetStateMachine.java +1 −1 Original line number Diff line number Diff line Loading @@ -88,7 +88,7 @@ public class HeadsetStateMachine extends StateMachine { static final int VOICE_RECOGNITION_START = 5; static final int VOICE_RECOGNITION_STOP = 6; // message.obj is an intent AudioManager.VOLUME_CHANGED_ACTION // message.obj is an intent AudioManager.ACTION_VOLUME_CHANGED // EXTRA_VOLUME_STREAM_TYPE is STREAM_BLUETOOTH_SCO static final int INTENT_SCO_VOLUME_CHANGED = 7; static final int INTENT_CONNECTION_ACCESS_REPLY = 8; Loading android/app/src/com/android/bluetooth/hfpclient/HeadsetClientService.java +2 −2 Original line number Diff line number Diff line Loading @@ -120,7 +120,7 @@ public class HeadsetClientService extends ProfileService { mStateMachineMap.clear(); } IntentFilter filter = new IntentFilter(AudioManager.VOLUME_CHANGED_ACTION); IntentFilter filter = new IntentFilter(AudioManager.ACTION_VOLUME_CHANGED); filter.addAction(Intent.ACTION_BATTERY_CHANGED); registerReceiver(mBroadcastReceiver, filter); Loading Loading @@ -192,7 +192,7 @@ public class HeadsetClientService extends ProfileService { // not go through audio manager (audio mixer). see // ({@link HeadsetClientStateMachine#SET_SPEAKER_VOLUME} in // {@link HeadsetClientStateMachine} for details. if (action.equals(AudioManager.VOLUME_CHANGED_ACTION)) { if (action.equals(AudioManager.ACTION_VOLUME_CHANGED)) { if (DBG) { Log.d(TAG, "Volume changed for stream: " + intent.getIntExtra( AudioManager.EXTRA_VOLUME_STREAM_TYPE, -1)); Loading le_audio/packages/apps/Bluetooth/src/com/android/bluetooth/apm/VolumeManager.java +2 −2 Original line number Diff line number Diff line Loading @@ -78,7 +78,7 @@ public class VolumeManager { mVolumeManagerReceiver = new VolumeManagerReceiver(); IntentFilter filter = new IntentFilter(); filter.addAction(AudioManager.VOLUME_CHANGED_ACTION); filter.addAction(AudioManager.ACTION_VOLUME_CHANGED); filter.addAction(BluetoothDevice.ACTION_BOND_STATE_CHANGED); filter.addAction(ACTION_SHUTDOWN); filter.addAction(ACTION_POWER_OFF); Loading Loading @@ -731,7 +731,7 @@ public class VolumeManager { return; switch(action) { case AudioManager.VOLUME_CHANGED_ACTION: case AudioManager.ACTION_VOLUME_CHANGED: int streamType = intent.getIntExtra(AudioManager.EXTRA_VOLUME_STREAM_TYPE, -1); int volumeValue = intent.getIntExtra(AudioManager.EXTRA_VOLUME_STREAM_VALUE, 0); if(streamType == AudioManager.STREAM_BLUETOOTH_SCO) { Loading Loading
android/app/src/com/android/bluetooth/avrcp/AvrcpTargetService.java +2 −2 Original line number Diff line number Diff line Loading @@ -131,7 +131,7 @@ public class AvrcpTargetService extends ProfileService { Log.d(TAG, "request to disconnect device " + device); } } } else if (action.equals(AudioManager.VOLUME_CHANGED_ACTION)) { } else if (action.equals(AudioManager.ACTION_VOLUME_CHANGED)) { int streamType = intent.getIntExtra(AudioManager.EXTRA_VOLUME_STREAM_TYPE, -1); if (streamType == AudioManager.STREAM_MUSIC) { int volume = intent.getIntExtra(AudioManager.EXTRA_VOLUME_STREAM_VALUE, 0); Loading Loading @@ -240,7 +240,7 @@ public class AvrcpTargetService extends ProfileService { IntentFilter filter = new IntentFilter(); filter.addAction(BluetoothA2dp.ACTION_ACTIVE_DEVICE_CHANGED); filter.addAction(BluetoothA2dp.ACTION_CONNECTION_STATE_CHANGED); filter.addAction(AudioManager.VOLUME_CHANGED_ACTION); filter.addAction(AudioManager.ACTION_VOLUME_CHANGED); registerReceiver(mReceiver, filter); // Only allow the service to be used once it is initialized Loading
android/app/src/com/android/bluetooth/hfp/HeadsetService.java +2 −2 Original line number Diff line number Diff line Loading @@ -170,7 +170,7 @@ public class HeadsetService extends ProfileService { // Step 6: Setup broadcast receivers IntentFilter filter = new IntentFilter(); filter.addAction(Intent.ACTION_BATTERY_CHANGED); filter.addAction(AudioManager.VOLUME_CHANGED_ACTION); filter.addAction(AudioManager.ACTION_VOLUME_CHANGED); filter.addAction(BluetoothDevice.ACTION_CONNECTION_ACCESS_REPLY); filter.addAction(BluetoothDevice.ACTION_BOND_STATE_CHANGED); registerReceiver(mHeadsetReceiver, filter); Loading Loading @@ -361,7 +361,7 @@ public class HeadsetService extends ProfileService { mSystemInterface.getHeadsetPhoneState().setCindBatteryCharge(cindBatteryLevel); break; } case AudioManager.VOLUME_CHANGED_ACTION: { case AudioManager.ACTION_VOLUME_CHANGED: { int streamType = intent.getIntExtra(AudioManager.EXTRA_VOLUME_STREAM_TYPE, -1); if (streamType == AudioManager.STREAM_BLUETOOTH_SCO) { doForEachConnectedStateMachine(stateMachine -> stateMachine.sendMessage( Loading
android/app/src/com/android/bluetooth/hfp/HeadsetStateMachine.java +1 −1 Original line number Diff line number Diff line Loading @@ -88,7 +88,7 @@ public class HeadsetStateMachine extends StateMachine { static final int VOICE_RECOGNITION_START = 5; static final int VOICE_RECOGNITION_STOP = 6; // message.obj is an intent AudioManager.VOLUME_CHANGED_ACTION // message.obj is an intent AudioManager.ACTION_VOLUME_CHANGED // EXTRA_VOLUME_STREAM_TYPE is STREAM_BLUETOOTH_SCO static final int INTENT_SCO_VOLUME_CHANGED = 7; static final int INTENT_CONNECTION_ACCESS_REPLY = 8; Loading
android/app/src/com/android/bluetooth/hfpclient/HeadsetClientService.java +2 −2 Original line number Diff line number Diff line Loading @@ -120,7 +120,7 @@ public class HeadsetClientService extends ProfileService { mStateMachineMap.clear(); } IntentFilter filter = new IntentFilter(AudioManager.VOLUME_CHANGED_ACTION); IntentFilter filter = new IntentFilter(AudioManager.ACTION_VOLUME_CHANGED); filter.addAction(Intent.ACTION_BATTERY_CHANGED); registerReceiver(mBroadcastReceiver, filter); Loading Loading @@ -192,7 +192,7 @@ public class HeadsetClientService extends ProfileService { // not go through audio manager (audio mixer). see // ({@link HeadsetClientStateMachine#SET_SPEAKER_VOLUME} in // {@link HeadsetClientStateMachine} for details. if (action.equals(AudioManager.VOLUME_CHANGED_ACTION)) { if (action.equals(AudioManager.ACTION_VOLUME_CHANGED)) { if (DBG) { Log.d(TAG, "Volume changed for stream: " + intent.getIntExtra( AudioManager.EXTRA_VOLUME_STREAM_TYPE, -1)); Loading
le_audio/packages/apps/Bluetooth/src/com/android/bluetooth/apm/VolumeManager.java +2 −2 Original line number Diff line number Diff line Loading @@ -78,7 +78,7 @@ public class VolumeManager { mVolumeManagerReceiver = new VolumeManagerReceiver(); IntentFilter filter = new IntentFilter(); filter.addAction(AudioManager.VOLUME_CHANGED_ACTION); filter.addAction(AudioManager.ACTION_VOLUME_CHANGED); filter.addAction(BluetoothDevice.ACTION_BOND_STATE_CHANGED); filter.addAction(ACTION_SHUTDOWN); filter.addAction(ACTION_POWER_OFF); Loading Loading @@ -731,7 +731,7 @@ public class VolumeManager { return; switch(action) { case AudioManager.VOLUME_CHANGED_ACTION: case AudioManager.ACTION_VOLUME_CHANGED: int streamType = intent.getIntExtra(AudioManager.EXTRA_VOLUME_STREAM_TYPE, -1); int volumeValue = intent.getIntExtra(AudioManager.EXTRA_VOLUME_STREAM_VALUE, 0); if(streamType == AudioManager.STREAM_BLUETOOTH_SCO) { Loading