Searched refs:avrcpVolume (Results 1 – 2 of 2) sorted by relevance
55 static int avrcpToSystemVolume(int avrcpVolume) { in avrcpToSystemVolume() argument56 return (int) Math.floor((double) avrcpVolume * sDeviceMaxVolume / AVRCP_MAX_VOL); in avrcpToSystemVolume()60 int avrcpVolume = (int) Math.floor((double) deviceVolume in systemToAvrcpVolume() local62 if (avrcpVolume > 127) avrcpVolume = 127; in systemToAvrcpVolume()63 return avrcpVolume; in systemToAvrcpVolume()82 int avrcpVolume = systemToAvrcpVolume(savedVolume); in switchVolumeDevice() local83 Log.i(TAG, "switchVolumeDevice: Updating device volume: avrcpVolume=" + avrcpVolume); in switchVolumeDevice()84 mNativeInterface.sendVolumeChanged(avrcpVolume); in switchVolumeDevice()
264 void setVolume(int avrcpVolume) { in setVolume() argument266 (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() local283 if (avrcpVolume > 127) avrcpVolume = 127; in sendVolumeChanged()285 Log.d(TAG, "SendVolumeChanged: avrcpVolume=" + avrcpVolume in sendVolumeChanged()289 mNativeInterface.sendVolumeChanged(avrcpVolume); in sendVolumeChanged()