Lines Matching refs:status

58     status_t status = AudioEffect::set(  in set()  local
60 if (status == NO_ERROR || status == ALREADY_EXISTS) { in set()
61 status = initCaptureSize(); in set()
62 if (status == NO_ERROR) initSampleRate(); in set()
64 return status; in set()
101 status_t status = AudioEffect::setEnabled(enabled); in setEnabled() local
104 if (enabled && status == NO_ERROR) { in setEnabled()
115 return status; in setEnabled()
171 status_t status = setParameter(p); in setCaptureSize() local
173 ALOGV("setCaptureSize size %u status %d p->status %d", size, status, p->status); in setCaptureSize()
175 if (status == NO_ERROR) { in setCaptureSize()
176 status = p->status; in setCaptureSize()
177 if (status == NO_ERROR) { in setCaptureSize()
182 return status; in setCaptureSize()
200 status_t status = setParameter(p); in setScalingMode() local
202 ALOGV("setScalingMode mode %d status %d p->status %d", mode, status, p->status); in setScalingMode()
204 if (status == NO_ERROR) { in setScalingMode()
205 status = p->status; in setScalingMode()
206 if (status == NO_ERROR) { in setScalingMode()
211 return status; in setScalingMode()
230 status_t status = setParameter(p); in setMeasurementMode() local
232 ALOGV("setMeasurementMode mode %d status %d p->status %d", mode, status, p->status); in setMeasurementMode()
234 if (status == NO_ERROR) { in setMeasurementMode()
235 status = p->status; in setMeasurementMode()
236 if (status == NO_ERROR) { in setMeasurementMode()
240 return status; in setMeasurementMode()
263 status_t status = NO_ERROR; in getIntMeasurements() local
266 status = command(VISUALIZER_CMD_MEASURE, in getIntMeasurements()
270 ALOGV("getMeasurements() command returned %d", status); in getIntMeasurements()
271 if ((status == NO_ERROR) && (replySize == 0)) { in getIntMeasurements()
272 status = NOT_ENOUGH_DATA; in getIntMeasurements()
278 return status; in getIntMeasurements()
290 status_t status = NO_ERROR; in getWaveForm() local
293 status = command(VISUALIZER_CMD_CAPTURE, 0, NULL, &replySize, waveform); in getWaveForm()
294 ALOGV("getWaveForm() command returned %d", status); in getWaveForm()
295 if ((status == NO_ERROR) && (replySize == 0)) { in getWaveForm()
296 status = NOT_ENOUGH_DATA; in getWaveForm()
302 return status; in getWaveForm()
314 status_t status = NO_ERROR; in getFft() local
317 status = getWaveForm(buf); in getFft()
318 if (status == NO_ERROR) { in getFft()
319 status = doFft(fft, buf); in getFft()
324 return status; in getFft()
364 status_t status = getWaveForm(waveform); in periodicCapture() local
365 if (status != NO_ERROR) { in periodicCapture()
370 status = doFft(fft, waveform); in periodicCapture()
372 if (status != NO_ERROR) { in periodicCapture()
399 status_t status = getParameter(p); in initCaptureSize() local
401 if (status == NO_ERROR) { in initCaptureSize()
402 status = p->status; in initCaptureSize()
406 if (status != NO_ERROR) { in initCaptureSize()
407 ALOGE("%s getParameter failed status %d", __func__, status); in initCaptureSize()
408 return status; in initCaptureSize()
418 ALOGV("%s size %u status %d", __func__, mCaptureSize, status); in initCaptureSize()
425 status_t status = getConfigs(&inputConfig, &outputConfig); in initSampleRate() local
426 if (status == NO_ERROR) { in initSampleRate()
429 ALOGV("%s sample rate %d status %d", __func__, mSampleRate, status); in initSampleRate()