Home
last modified time | relevance | path

Searched refs:avrcpVolume (Results 1 – 2 of 2) sorted by relevance

/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/
DAvrcpVolumeManager.java59 static int avrcpToSystemVolume(int avrcpVolume) { in avrcpToSystemVolume() argument
60 return (int) Math.floor((double) avrcpVolume * sDeviceMaxVolume / AVRCP_MAX_VOL); in avrcpToSystemVolume()
64 int avrcpVolume = (int) Math.floor((double) deviceVolume in systemToAvrcpVolume() local
66 if (avrcpVolume > 127) avrcpVolume = 127; in systemToAvrcpVolume()
67 return avrcpVolume; in systemToAvrcpVolume()
86 int avrcpVolume = systemToAvrcpVolume(savedVolume); in switchVolumeDevice() local
88 "switchVolumeDevice: Updating device volume: avrcpVolume=" + avrcpVolume); in switchVolumeDevice()
89 mNativeInterface.sendVolumeChanged(device.getAddress(), avrcpVolume); in switchVolumeDevice() local
170 void setVolume(@NonNull BluetoothDevice device, int avrcpVolume) { in setVolume() argument
172 (int) Math.floor((double) avrcpVolume * sDeviceMaxVolume / AVRCP_MAX_VOL); in setVolume()
[all …]
DAvrcpTargetService.java298 void setVolume(int avrcpVolume) { in setVolume() argument
305 mVolumeManager.setVolume(activeDevice, avrcpVolume); in setVolume()