Searched refs:percents (Results 1 – 2 of 2) sorted by relevance
/hardware/interfaces/audio/aidl/default/alsa/ |
D | Mixer.cpp | 130 std::vector<int> percents; in getVolumes() local 132 if (int err = getMixerControlPercent(mctl, &percents); err != 0) { in getVolumes() 136 std::transform(percents.begin(), percents.end(), std::back_inserter(*volumes), in getVolumes() 160 std::vector<int> percents; in setVolumes() local 162 volumes.begin(), volumes.end(), std::back_inserter(percents), in setVolumes() 165 if (int err = setMixerControlPercent(mctl, percents); err != 0) { in setVolumes() 204 std::vector<int> percents; in getMixerControlVolume() local 205 if (int err = getMixerControlPercent(mctl, &percents); err != 0) { in getMixerControlVolume() 209 if (percents.empty()) { in getMixerControlVolume() 213 *volume = std::clamp(percents[0] / 100.0f, 0.0f, 1.0f); in getMixerControlVolume() [all …]
|
D | Mixer.h | 74 int getMixerControlPercent(struct mixer_ctl* ctl, std::vector<int>* percents) 79 int setMixerControlPercent(struct mixer_ctl* ctl, const std::vector<int>& percents)
|