Lines Matching defs:volume
27 * Feature action that transmits volume change to Audio Receiver.
29 * This action is created when a user pressed volume up/down. However, Android only provides a
30 * listener for delta of some volume change instead of individual key event. Also it's hard to know
31 * Audio Receiver's number of volume steps for a single volume control key. Because of this, it
33 * volume change happens; otherwise, it will send again key-down as press and hold feature does.
38 // State that wait for next volume press.
52 * Scale a custom volume value to cec volume scale.
54 * @param volume volume value in custom scale
55 * @param scale scale of volume (max volume)
56 * @return a volume scaled to cec volume range
58 public static int scaleToCecVolume(int volume, int scale) {
59 return (volume * MAX_VOLUME) / scale;
63 * Scale a cec volume which is in range of 0 to 100 to custom volume level.
65 * @param cecVolume volume value in cec volume scale. It should be in a range of [0-100]
66 * @param scale scale of custom volume (max volume)
67 * @return a volume scaled to custom volume range
143 int volume = params[0] & 0x7F;
144 mLastAvrVolume = volume;
147 HdmiLogger.debug("Force volume change[mute:%b, volume=%d]", mute, volume);
148 tv().setAudioStatus(mute, volume);
161 // Update audio status if current volume position is edge of volume bar,
162 // i.e max or min volume.