/frameworks/av/media/libaaudio/tests/ |
D | test_session_id.cpp | 34 AAudioStreamBuilder *aaudioBuilder = nullptr; in checkSessionIdNone() local 40 ASSERT_EQ(AAUDIO_OK, AAudio_createStreamBuilder(&aaudioBuilder)); in checkSessionIdNone() 43 AAudioStreamBuilder_setPerformanceMode(aaudioBuilder, perfMode); in checkSessionIdNone() 46 ASSERT_EQ(AAUDIO_OK, AAudioStreamBuilder_openStream(aaudioBuilder, &aaudioStream1)); in checkSessionIdNone() 60 AAudioStreamBuilder_delete(aaudioBuilder); in checkSessionIdNone() 77 AAudioStreamBuilder *aaudioBuilder = nullptr; in checkSessionIdAllocate() local 85 ASSERT_EQ(AAUDIO_OK, AAudio_createStreamBuilder(&aaudioBuilder)); in checkSessionIdAllocate() 88 AAudioStreamBuilder_setPerformanceMode(aaudioBuilder, perfMode); in checkSessionIdAllocate() 90 AAudioStreamBuilder_setDirection(aaudioBuilder, direction); in checkSessionIdAllocate() 93 AAudioStreamBuilder_setSessionId(aaudioBuilder, AAUDIO_SESSION_ID_ALLOCATE); in checkSessionIdAllocate() [all …]
|
D | test_interference.cpp | 51 AAudioStreamBuilder *aaudioBuilder = nullptr; in TEST() local 56 ASSERT_EQ(AAUDIO_OK, AAudio_createStreamBuilder(&aaudioBuilder)); in TEST() 59 AAudioStreamBuilder_setSampleRate(aaudioBuilder, 48000); in TEST() 60 AAudioStreamBuilder_setDataCallback(aaudioBuilder, MyDataCallbackProc, nullptr); in TEST() 61 AAudioStreamBuilder_setPerformanceMode(aaudioBuilder, AAUDIO_PERFORMANCE_MODE_LOW_LATENCY); in TEST() 64 ASSERT_EQ(AAUDIO_OK, AAudioStreamBuilder_openStream(aaudioBuilder, &aaudioStream1)); in TEST() 74 AAudioStreamBuilder_setSampleRate(aaudioBuilder, 44100); in TEST() 75 ASSERT_EQ(AAUDIO_OK, AAudioStreamBuilder_openStream(aaudioBuilder, &aaudioStream2)); in TEST() 96 AAudioStreamBuilder_delete(aaudioBuilder); in TEST()
|
D | test_open_params.cpp | 57 AAudioStreamBuilder *aaudioBuilder = nullptr; in testOpenOptions() local 64 ASSERT_EQ(AAUDIO_OK, AAudio_createStreamBuilder(&aaudioBuilder)); in testOpenOptions() 67 AAudioStreamBuilder_setDirection(aaudioBuilder, direction); in testOpenOptions() 68 AAudioStreamBuilder_setSampleRate(aaudioBuilder, sampleRate); in testOpenOptions() 69 AAudioStreamBuilder_setChannelCount(aaudioBuilder, channelCount); in testOpenOptions() 70 AAudioStreamBuilder_setFormat(aaudioBuilder, format); in testOpenOptions() 71 AAudioStreamBuilder_setDataCallback(aaudioBuilder, MyDataCallbackProc, nullptr); in testOpenOptions() 74 AAudioStreamBuilder_setPerformanceMode(aaudioBuilder, AAUDIO_PERFORMANCE_MODE_LOW_LATENCY); in testOpenOptions() 78 result = AAudioStreamBuilder_openStream(aaudioBuilder, &aaudioStream); in testOpenOptions() 114 AAudioStreamBuilder_delete(aaudioBuilder); in testOpenOptions()
|
D | test_various.cpp | 52 AAudioStreamBuilder* aaudioBuilder = nullptr; in checkReleaseThenClose() local 56 ASSERT_EQ(AAUDIO_OK, AAudio_createStreamBuilder(&aaudioBuilder)); in checkReleaseThenClose() 59 AAudioStreamBuilder_setDataCallback(aaudioBuilder, in checkReleaseThenClose() 62 AAudioStreamBuilder_setPerformanceMode(aaudioBuilder, perfMode); in checkReleaseThenClose() 63 AAudioStreamBuilder_setSharingMode(aaudioBuilder, sharingMode); in checkReleaseThenClose() 64 AAudioStreamBuilder_setFormat(aaudioBuilder, AAUDIO_FORMAT_PCM_FLOAT); in checkReleaseThenClose() 68 AAudioStreamBuilder_openStream(aaudioBuilder, &aaudioStream)); in checkReleaseThenClose() 69 AAudioStreamBuilder_delete(aaudioBuilder); in checkReleaseThenClose() 135 AAudioStreamBuilder *aaudioBuilder = nullptr; in checkStateTransition() local 139 ASSERT_EQ(AAUDIO_OK, AAudio_createStreamBuilder(&aaudioBuilder)); in checkStateTransition() [all …]
|
D | test_attributes.cpp | 41 AAudioStreamBuilder *aaudioBuilder = nullptr; in checkAttributes() local 45 ASSERT_EQ(AAUDIO_OK, AAudio_createStreamBuilder(&aaudioBuilder)); in checkAttributes() 48 AAudioStreamBuilder_setPerformanceMode(aaudioBuilder, perfMode); in checkAttributes() 49 AAudioStreamBuilder_setDirection(aaudioBuilder, direction); in checkAttributes() 53 AAudioStreamBuilder_setUsage(aaudioBuilder, usage); in checkAttributes() 56 AAudioStreamBuilder_setContentType(aaudioBuilder, contentType); in checkAttributes() 59 AAudioStreamBuilder_setInputPreset(aaudioBuilder, preset); in checkAttributes() 62 AAudioStreamBuilder_setAllowedCapturePolicy(aaudioBuilder, capturePolicy); in checkAttributes() 65 AAudioStreamBuilder_setPrivacySensitive(aaudioBuilder, (bool)privacyMode); in checkAttributes() 69 ASSERT_EQ(AAUDIO_OK, AAudioStreamBuilder_openStream(aaudioBuilder, &aaudioStream)); in checkAttributes() [all …]
|
D | test_full_queue.cpp | 36 AAudioStreamBuilder *aaudioBuilder = nullptr; in checkFullQueue() local 39 ASSERT_EQ(AAUDIO_OK, AAudio_createStreamBuilder(&aaudioBuilder)); in checkFullQueue() 41 AAudioStreamBuilder_setChannelCount(aaudioBuilder, kChannelCount); in checkFullQueue() 44 AAudioStreamBuilder_setPerformanceMode(aaudioBuilder, perfMode); in checkFullQueue() 48 ASSERT_EQ(AAUDIO_OK, AAudioStreamBuilder_openStream(aaudioBuilder, in checkFullQueue() 50 AAudioStreamBuilder_delete(aaudioBuilder); in checkFullQueue()
|
D | test_n_streams.cpp | 33 AAudioStreamBuilder *aaudioBuilder = nullptr; in testMaxStreams() local 37 result = AAudio_createStreamBuilder(&aaudioBuilder); in testMaxStreams() 42 AAudioStreamBuilder_setDirection(aaudioBuilder, direction); in testMaxStreams() 46 result = AAudioStreamBuilder_openStream(aaudioBuilder, &aaudioStreams[i]); in testMaxStreams() 72 AAudioStreamBuilder_delete(aaudioBuilder); in testMaxStreams()
|
D | test_recovery.cpp | 41 AAudioStreamBuilder *aaudioBuilder = nullptr; in main() local 51 result = AAudio_createStreamBuilder(&aaudioBuilder); in main() 59 AAudioStreamBuilder_setFormat(aaudioBuilder, AAUDIO_FORMAT_PCM_FLOAT); in main() 63 result = AAudioStreamBuilder_openStream(aaudioBuilder, &aaudioStream); in main() 136 AAudioStreamBuilder_delete(aaudioBuilder); in main()
|
D | test_no_close.cpp | 30 AAudioStreamBuilder *aaudioBuilder = nullptr; in main() local 33 result = AAudio_createStreamBuilder(&aaudioBuilder); in main() 39 result = AAudioStreamBuilder_openStream(aaudioBuilder, &aaudioStream); in main()
|
D | test_timestamps.cpp | 167 AAudioStreamBuilder *aaudioBuilder = nullptr; in testTimeStamps() local 182 result = AAudio_createStreamBuilder(&aaudioBuilder); in testTimeStamps() 190 AAudioStreamBuilder_setFormat(aaudioBuilder, AAUDIO_FORMAT_PCM_I16); in testTimeStamps() 191 AAudioStreamBuilder_setSharingMode(aaudioBuilder, sharingMode); in testTimeStamps() 192 AAudioStreamBuilder_setPerformanceMode(aaudioBuilder, performanceMode); in testTimeStamps() 193 AAudioStreamBuilder_setDirection(aaudioBuilder, direction); in testTimeStamps() 194 AAudioStreamBuilder_setDataCallback(aaudioBuilder, timestampDataCallbackProc, &sTimestampData); in testTimeStamps() 197 result = AAudioStreamBuilder_openStream(aaudioBuilder, &aaudioStream); in testTimeStamps() 357 AAudioStreamBuilder_delete(aaudioBuilder); in testTimeStamps()
|