Lines Matching refs:param
29 bool AudioProtocol::sendCommand(AudioParam& param) in sendCommand() argument
36 bool AudioProtocol::handleReply(const uint32_t* data, AudioParam* param) in handleReply() argument
91 bool CmdDownload::sendCommand(AudioParam& param) in sendCommand() argument
94 mBuffer[1] = htonl(4 + param.mBuffer->getSize()); in sendCommand()
95 mBuffer[2] = htonl(param.mId); in sendCommand()
99 return sendData(param.mBuffer->getData(), param.mBuffer->getSize()); in sendCommand()
109 bool CmdStartPlayback::sendCommand(AudioParam& param) in sendCommand() argument
113 mBuffer[2] = htonl(param.mId); in sendCommand()
114 mBuffer[3] = htonl(param.mSamplingF); in sendCommand()
115 uint32_t mode = param.mStereo ? 0x80000000 : 0; in sendCommand()
116 mode |= param.mMode; in sendCommand()
118 mBuffer[5] = htonl(param.mVolume); in sendCommand()
119 mBuffer[6] = htonl(param.mNumberRepetition); in sendCommand()
131 bool CmdStartRecording::sendCommand(AudioParam& param) in sendCommand() argument
135 mBuffer[2] = htonl(param.mSamplingF); in sendCommand()
136 uint32_t mode = param.mStereo ? 0x80000000 : 0; in sendCommand()
137 mode |= param.mMode; in sendCommand()
139 mBuffer[4] = htonl(param.mVolume); in sendCommand()
140 uint32_t samples = param.mBuffer->getSize() / (param.mStereo ? 4 : 2); in sendCommand()
149 bool CmdStartRecording::handleReply(const uint32_t* data, AudioParam* param) in handleReply() argument
159 if (len > (int)param->mBuffer->getCapacity()) { in handleReply()
160 LOGE("received data %d exceeding buffer capacity %d", len, param->mBuffer->getCapacity()); in handleReply()
166 if (!readData(param->mBuffer->getData(), len)) { in handleReply()
170 param->mBuffer->setHandled(len); in handleReply()
171 param->mBuffer->setSize(len); in handleReply()
175 bool CmdGetDeviceInfo::handleReply(const uint32_t* data, AudioParam* param) in handleReply() argument
192 android::String8* string = reinterpret_cast<android::String8*>(param->mExtra); in handleReply()