Home
last modified time | relevance | path

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

/cts/tests/tests/nativemedia/aaudio/jni/
Dtest_aaudio_stream_builder.cpp25 static void create_stream_builder(AAudioStreamBuilder** aaudioBuilder) { in create_stream_builder() argument
26 aaudio_result_t result = AAudio_createStreamBuilder(aaudioBuilder); in create_stream_builder()
28 ASSERT_NE(nullptr, *aaudioBuilder); in create_stream_builder()
35 static void try_opening_audio_stream(AAudioStreamBuilder *aaudioBuilder, Expect expect) { in try_opening_audio_stream() argument
38 aaudio_result_t result = AAudioStreamBuilder_openStream(aaudioBuilder, &aaudioStream); in try_opening_audio_stream()
51 ASSERT_EQ(AAUDIO_OK, AAudioStreamBuilder_delete(aaudioBuilder)); in try_opening_audio_stream()
59 AAudioStreamBuilder *aaudioBuilder = nullptr; in runtest_aaudio_devices() local
60 create_stream_builder(&aaudioBuilder); in runtest_aaudio_devices()
61 AAudioStreamBuilder_setDeviceId(aaudioBuilder, deviceId); in runtest_aaudio_devices()
62 try_opening_audio_stream(aaudioBuilder, expect); in runtest_aaudio_devices()
[all …]
Dtest_session_id.cpp35 AAudioStreamBuilder *aaudioBuilder = nullptr; in checkSessionIdNone() local
41 ASSERT_EQ(AAUDIO_OK, AAudio_createStreamBuilder(&aaudioBuilder)); in checkSessionIdNone()
44 AAudioStreamBuilder_setPerformanceMode(aaudioBuilder, perfMode); in checkSessionIdNone()
47 ASSERT_EQ(AAUDIO_OK, AAudioStreamBuilder_openStream(aaudioBuilder, &aaudioStream1)); in checkSessionIdNone()
61 AAudioStreamBuilder_delete(aaudioBuilder); in checkSessionIdNone()
78 AAudioStreamBuilder *aaudioBuilder = nullptr; in checkSessionIdAllocate() local
86 ASSERT_EQ(AAUDIO_OK, AAudio_createStreamBuilder(&aaudioBuilder)); in checkSessionIdAllocate()
89 AAudioStreamBuilder_setPerformanceMode(aaudioBuilder, perfMode); in checkSessionIdAllocate()
91 AAudioStreamBuilder_setDirection(aaudioBuilder, direction); in checkSessionIdAllocate()
94 AAudioStreamBuilder_setSessionId(aaudioBuilder, AAUDIO_SESSION_ID_ALLOCATE); in checkSessionIdAllocate()
[all …]
Dtest_aaudio_attributes.cpp39 AAudioStreamBuilder *aaudioBuilder = nullptr; in checkAttributes() local
43 ASSERT_EQ(AAUDIO_OK, AAudio_createStreamBuilder(&aaudioBuilder)); in checkAttributes()
46 AAudioStreamBuilder_setPerformanceMode(aaudioBuilder, perfMode); in checkAttributes()
47 AAudioStreamBuilder_setDirection(aaudioBuilder, direction); in checkAttributes()
51 AAudioStreamBuilder_setUsage(aaudioBuilder, usage); in checkAttributes()
54 AAudioStreamBuilder_setContentType(aaudioBuilder, contentType); in checkAttributes()
57 AAudioStreamBuilder_setInputPreset(aaudioBuilder, preset); in checkAttributes()
61 ASSERT_EQ(AAUDIO_OK, AAudioStreamBuilder_openStream(aaudioBuilder, &aaudioStream)); in checkAttributes()
62 AAudioStreamBuilder_delete(aaudioBuilder); in checkAttributes()