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.java55 static int avrcpToSystemVolume(int avrcpVolume) { in avrcpToSystemVolume() argument
56 return (int) Math.floor((double) avrcpVolume * sDeviceMaxVolume / AVRCP_MAX_VOL); in avrcpToSystemVolume()
60 int avrcpVolume = (int) Math.floor((double) deviceVolume in systemToAvrcpVolume() local
62 if (avrcpVolume > 127) avrcpVolume = 127; in systemToAvrcpVolume()
63 return avrcpVolume; in systemToAvrcpVolume()
82 int avrcpVolume = systemToAvrcpVolume(savedVolume); in switchVolumeDevice() local
83 Log.i(TAG, "switchVolumeDevice: Updating device volume: avrcpVolume=" + avrcpVolume); in switchVolumeDevice()
84 mNativeInterface.sendVolumeChanged(avrcpVolume); in switchVolumeDevice()
DAvrcpTargetService.java264 void setVolume(int avrcpVolume) { in setVolume() argument
266 (int) Math.floor((double) avrcpVolume * sDeviceMaxVolume / AVRCP_MAX_VOL); in setVolume()
268 Log.d(TAG, "SendVolumeChanged: avrcpVolume=" + avrcpVolume in setVolume()
281 int avrcpVolume = in sendVolumeChanged() local
283 if (avrcpVolume > 127) avrcpVolume = 127; in sendVolumeChanged()
285 Log.d(TAG, "SendVolumeChanged: avrcpVolume=" + avrcpVolume in sendVolumeChanged()
289 mNativeInterface.sendVolumeChanged(avrcpVolume); in sendVolumeChanged()