Lines Matching refs:result
81 SLresult result; in recorderCallback() local
115 result = (*(pSles->recorderBufferQueue))->Enqueue(pSles->recorderBufferQueue, buffer, in recorderCallback()
117 ASSERT_EQ(SL_RESULT_SUCCESS, result); in recorderCallback()
142 SLresult result; in playerCallback() local
180 result = (*(pSles->playerBufferQueue))->Enqueue(pSles->playerBufferQueue, buffer, in playerCallback()
182 ASSERT_EQ(SL_RESULT_SUCCESS, result); in playerCallback()
325 SLresult result; in slesCreateServer() local
329 result = slCreateEngine(&(pSles->engineObject), 0, NULL, 0, NULL, NULL); in slesCreateServer()
330 ASSERT_EQ(SL_RESULT_SUCCESS, result); in slesCreateServer()
331 result = (*(pSles->engineObject))->Realize(pSles->engineObject, SL_BOOLEAN_FALSE); in slesCreateServer()
332 ASSERT_EQ(SL_RESULT_SUCCESS, result); in slesCreateServer()
334 result = (*(pSles->engineObject))->GetInterface(pSles->engineObject, SL_IID_ENGINE, in slesCreateServer()
336 ASSERT_EQ(SL_RESULT_SUCCESS, result); in slesCreateServer()
340 result = (*engineEngine)->CreateOutputMix(engineEngine, &(pSles->outputmixObject), 0, NULL, in slesCreateServer()
342 ASSERT_EQ(SL_RESULT_SUCCESS, result); in slesCreateServer()
343 result = (*(pSles->outputmixObject))->Realize(pSles->outputmixObject, SL_BOOLEAN_FALSE); in slesCreateServer()
344 ASSERT_EQ(SL_RESULT_SUCCESS, result); in slesCreateServer()
372 result = (*engineEngine)->CreateAudioPlayer(engineEngine, &(pSles->playerObject), in slesCreateServer()
374 if (SL_RESULT_CONTENT_UNSUPPORTED == result) { in slesCreateServer()
376 result); in slesCreateServer()
378 result); in slesCreateServer()
381 ASSERT_EQ(SL_RESULT_SUCCESS, result); in slesCreateServer()
382 result = (*(pSles->playerObject))->Realize(pSles->playerObject, SL_BOOLEAN_FALSE); in slesCreateServer()
383 ASSERT_EQ(SL_RESULT_SUCCESS, result); in slesCreateServer()
385 result = (*(pSles->playerObject))->GetInterface(pSles->playerObject, SL_IID_PLAY, in slesCreateServer()
387 ASSERT_EQ(SL_RESULT_SUCCESS, result); in slesCreateServer()
388 result = (*(pSles->playerObject))->GetInterface(pSles->playerObject, SL_IID_BUFFERQUEUE, in slesCreateServer()
390 ASSERT_EQ(SL_RESULT_SUCCESS, result); in slesCreateServer()
391 result = (*(pSles->playerBufferQueue))->RegisterCallback(pSles->playerBufferQueue, in slesCreateServer()
393 ASSERT_EQ(SL_RESULT_SUCCESS, result); in slesCreateServer()
413 result = (*(pSles->playerBufferQueue))->Enqueue(pSles->playerBufferQueue, in slesCreateServer()
415 ASSERT_EQ(SL_RESULT_SUCCESS, result); in slesCreateServer()
418 result = (*playerPlay)->SetPlayState(playerPlay, SL_PLAYSTATE_PLAYING); in slesCreateServer()
419 ASSERT_EQ(SL_RESULT_SUCCESS, result); in slesCreateServer()
440 result = (*engineEngine)->CreateAudioRecorder(engineEngine, &(pSles->recorderObject), in slesCreateServer()
442 if (SL_RESULT_SUCCESS != result) { in slesCreateServer()
444 "check sample rate and channel count\n", result); in slesCreateServer()
448 "check sample rate and channel count\n", result); in slesCreateServer()
452 ASSERT_EQ(SL_RESULT_SUCCESS, result); in slesCreateServer()
457 result = (*(pSles->recorderObject))->GetInterface(pSles->recorderObject, in slesCreateServer()
459 ASSERT_EQ(SL_RESULT_SUCCESS, result); in slesCreateServer()
463 result = (*configItf)->SetConfiguration(configItf, SL_ANDROID_KEY_RECORDING_PRESET, in slesCreateServer()
465 ASSERT_EQ(SL_RESULT_SUCCESS, result); in slesCreateServer()
470 result = (*(pSles->recorderObject))->Realize(pSles->recorderObject, SL_BOOLEAN_FALSE); in slesCreateServer()
471 ASSERT_EQ(SL_RESULT_SUCCESS, result); in slesCreateServer()
473 result = (*(pSles->recorderObject))->GetInterface(pSles->recorderObject, SL_IID_RECORD, in slesCreateServer()
475 ASSERT_EQ(SL_RESULT_SUCCESS, result); in slesCreateServer()
476 result = (*(pSles->recorderObject))->GetInterface(pSles->recorderObject, in slesCreateServer()
478 ASSERT_EQ(SL_RESULT_SUCCESS, result); in slesCreateServer()
479 result = (*(pSles->recorderBufferQueue))->RegisterCallback(pSles->recorderBufferQueue, in slesCreateServer()
481 ASSERT_EQ(SL_RESULT_SUCCESS, result); in slesCreateServer()
501 result = (*(pSles->recorderBufferQueue))->Enqueue(pSles->recorderBufferQueue, in slesCreateServer()
503 ASSERT_EQ(SL_RESULT_SUCCESS, result); in slesCreateServer()
507 result = (*recorderRecord)->SetRecordState(recorderRecord, SL_RECORDSTATE_RECORDING); in slesCreateServer()
508 ASSERT_EQ(SL_RESULT_SUCCESS, result); in slesCreateServer()
534 SLresult result; in slesProcessNext() local
568 result = (*(pSles->playerBufferQueue))->GetState(pSles->playerBufferQueue, in slesProcessNext()
570 ASSERT_EQ(SL_RESULT_SUCCESS, result); in slesProcessNext()
572 result = (*(pSles->recorderBufferQueue))->GetState(pSles->recorderBufferQueue, in slesProcessNext()
574 ASSERT_EQ(SL_RESULT_SUCCESS, result); in slesProcessNext()
594 SLresult result = (*(pSles->playerObject))->GetInterface(pSles->playerObject, in slesDestroyServer() local
597 ASSERT_EQ(SL_RESULT_SUCCESS, result); in slesDestroyServer()
600 result = (*playerPlay)->SetPlayState(playerPlay, SL_PLAYSTATE_STOPPED); in slesDestroyServer()
601 ASSERT_EQ(SL_RESULT_SUCCESS, result); in slesDestroyServer()
607 SLresult result = (*(pSles->recorderObject))->GetInterface(pSles->recorderObject, in slesDestroyServer() local
609 ASSERT_EQ(SL_RESULT_SUCCESS, result); in slesDestroyServer()
611 result = (*recorderRecord)->SetRecordState(recorderRecord, SL_RECORDSTATE_STOPPED); in slesDestroyServer()
612 ASSERT_EQ(SL_RESULT_SUCCESS, result); in slesDestroyServer()