Home
last modified time | relevance | path

Searched refs:aaudioBuilder (Results 1 – 10 of 10) sorted by relevance

/frameworks/av/media/libaaudio/tests/
Dtest_session_id.cpp34 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 …]
Dtest_interference.cpp51 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()
Dtest_open_params.cpp57 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()
Dtest_various.cpp56 AAudioStreamBuilder *aaudioBuilder = nullptr; in checkStateTransition() local
60 ASSERT_EQ(AAUDIO_OK, AAudio_createStreamBuilder(&aaudioBuilder)); in checkStateTransition()
63 AAudioStreamBuilder_setDataCallback(aaudioBuilder, NoopDataCallbackProc, nullptr); in checkStateTransition()
64 AAudioStreamBuilder_setPerformanceMode(aaudioBuilder, perfMode); in checkStateTransition()
67 ASSERT_EQ(AAUDIO_OK, AAudioStreamBuilder_openStream(aaudioBuilder, &aaudioStream)); in checkStateTransition()
150 AAudioStreamBuilder_delete(aaudioBuilder); in checkStateTransition()
423 AAudioStreamBuilder *aaudioBuilder = nullptr; in TEST() local
427 ASSERT_EQ(AAUDIO_OK, AAudio_createStreamBuilder(&aaudioBuilder)); in TEST()
430 AAudioStreamBuilder_setDataCallback(aaudioBuilder, NoopDataCallbackProc, nullptr); in TEST()
431 AAudioStreamBuilder_setPerformanceMode(aaudioBuilder, AAUDIO_PERFORMANCE_MODE_LOW_LATENCY); in TEST()
[all …]
Dtest_attributes.cpp40 AAudioStreamBuilder *aaudioBuilder = nullptr; in checkAttributes() local
44 ASSERT_EQ(AAUDIO_OK, AAudio_createStreamBuilder(&aaudioBuilder)); in checkAttributes()
47 AAudioStreamBuilder_setPerformanceMode(aaudioBuilder, perfMode); in checkAttributes()
48 AAudioStreamBuilder_setDirection(aaudioBuilder, direction); in checkAttributes()
52 AAudioStreamBuilder_setUsage(aaudioBuilder, usage); in checkAttributes()
55 AAudioStreamBuilder_setContentType(aaudioBuilder, contentType); in checkAttributes()
58 AAudioStreamBuilder_setInputPreset(aaudioBuilder, preset); in checkAttributes()
61 AAudioStreamBuilder_setAllowedCapturePolicy(aaudioBuilder, capturePolicy); in checkAttributes()
65 ASSERT_EQ(AAUDIO_OK, AAudioStreamBuilder_openStream(aaudioBuilder, &aaudioStream)); in checkAttributes()
66 AAudioStreamBuilder_delete(aaudioBuilder); in checkAttributes()
Dtest_full_queue.cpp36 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()
Dtest_n_streams.cpp33 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()
Dtest_recovery.cpp41 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()
Dtest_no_close.cpp30 AAudioStreamBuilder *aaudioBuilder = nullptr; in main() local
33 result = AAudio_createStreamBuilder(&aaudioBuilder); in main()
39 result = AAudioStreamBuilder_openStream(aaudioBuilder, &aaudioStream); in main()
Dtest_timestamps.cpp167 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()