Home
last modified time | relevance | path

Searched refs:popCount (Results 1 – 7 of 7) sorted by relevance

/hardware/libhardware_legacy/audio/
DAudioHardwareStub.cpp131 usleep(bytes * 1000000 / sizeof(int16_t) / AudioSystem::popCount(channels()) / sampleRate()); in write()
177 usleep(bytes * 1000000 / sizeof(int16_t) / AudioSystem::popCount(channels()) / sampleRate()); in read()
DAudioPolicyManagerBase.cpp39 if (AudioSystem::popCount(device) != 1) return BAD_VALUE; in setDeviceConnectionState()
515 if (AudioSystem::popCount((AudioSystem::audio_devices)device) == 2) { in getOutput()
1461 …bool dupUsed = a2dpUsedForSonification() && a2dpWasUsed && (AudioSystem::popCount(prevDevice) == 2… in checkOutputForStrategy()
1472 … bool dupUsed = a2dpUsedForSonification() && a2dpIsUsed && (AudioSystem::popCount(curDevice) == 2); in checkOutputForStrategy()
1827 if (output == mHardwareOutput && AudioSystem::popCount(device) == 2) { in setOutputDevice()
1843 if (output == mHardwareOutput && AudioSystem::popCount(prevDevice) == 2) { in setOutputDevice()
1906 if (AudioSystem::popCount(device) > 1) { in getDeviceCategory()
1918 LOGW_IF(AudioSystem::popCount(device) != 1, in getDeviceCategory()
/hardware/libhardware_legacy/include/hardware_legacy/
DAudioHardwareInterface.h141 …uint32_t frameSize() const { return AudioSystem::popCount(channels())*((format()==AudioSystem::… in frameSize()
DAudioSystemLegacy.h314 static uint32_t popCount(uint32_t u) { in popCount() function
/hardware/msm7k/libaudio-qdsp5v2/
DAudioHardware.cpp241 config.channel_count = AudioSystem::popCount(channels()); in write()
/hardware/msm7k/libaudio-qsd8k/
DAudioHardware.cpp1573 mBufferSize = hw->getBufferSize(lRate, AudioSystem::popCount(lChannels)); in set()
1618 config.channel_count = AudioSystem::popCount(channels()); in write()
1807 mBufferSize = hw->getBufferSize(*pRate, AudioSystem::popCount(*pChannels)); in set()
1858 config.channel_count = AudioSystem::popCount(mChannels); in read()
/hardware/msm7k/libaudio/
DAudioHardware.cpp731 config.channel_count = AudioSystem::popCount(channels()); in write()
929 config.channel_count = AudioSystem::popCount(*pChannels); in set()