Searched refs:aaudioBuilder (Results 1 – 4 of 4) sorted by relevance
/cts/tests/tests/nativemedia/aaudio/jni/ |
D | test_aaudio_stream_builder.cpp | 43 static void create_stream_builder(AAudioStreamBuilder** aaudioBuilder) { in create_stream_builder() argument 44 aaudio_result_t result = AAudio_createStreamBuilder(aaudioBuilder); in create_stream_builder() 46 ASSERT_NE(nullptr, *aaudioBuilder); in create_stream_builder() 53 static void try_opening_audio_stream(AAudioStreamBuilder *aaudioBuilder, Expect expect) { in try_opening_audio_stream() argument 57 aaudio_result_t result = AAudioStreamBuilder_openStream(aaudioBuilder, &aaudioStream); in try_opening_audio_stream() 75 ASSERT_EQ(AAUDIO_OK, AAudioStreamBuilder_delete(aaudioBuilder)); in try_opening_audio_stream() 87 AAudioStreamBuilder *aaudioBuilder = nullptr; in runtest_aaudio_devices() local 88 create_stream_builder(&aaudioBuilder); in runtest_aaudio_devices() 89 AAudioStreamBuilder_setDeviceId(aaudioBuilder, deviceId); in runtest_aaudio_devices() 90 try_opening_audio_stream(aaudioBuilder, expect); in runtest_aaudio_devices() [all …]
|
D | test_session_id.cpp | 37 AAudioStreamBuilder *aaudioBuilder = nullptr; in checkSessionIdNone() local 43 ASSERT_EQ(AAUDIO_OK, AAudio_createStreamBuilder(&aaudioBuilder)); in checkSessionIdNone() 46 AAudioStreamBuilder_setPerformanceMode(aaudioBuilder, perfMode); in checkSessionIdNone() 49 ASSERT_EQ(AAUDIO_OK, AAudioStreamBuilder_openStream(aaudioBuilder, &aaudioStream1)); in checkSessionIdNone() 62 AAudioStreamBuilder_delete(aaudioBuilder); in checkSessionIdNone() 85 AAudioStreamBuilder *aaudioBuilder = nullptr; in checkSessionIdAllocate() local 93 ASSERT_EQ(AAUDIO_OK, AAudio_createStreamBuilder(&aaudioBuilder)); in checkSessionIdAllocate() 96 AAudioStreamBuilder_setPerformanceMode(aaudioBuilder, perfMode); in checkSessionIdAllocate() 98 AAudioStreamBuilder_setDirection(aaudioBuilder, direction); in checkSessionIdAllocate() 101 AAudioStreamBuilder_setSessionId(aaudioBuilder, AAUDIO_SESSION_ID_ALLOCATE); in checkSessionIdAllocate() [all …]
|
D | test_aaudio_basic.cpp | 47 AAudioStreamBuilder *aaudioBuilder = nullptr; in testConfiguration() local 51 ASSERT_EQ(AAUDIO_OK, AAudio_createStreamBuilder(&aaudioBuilder)); in testConfiguration() 54 AAudioStreamBuilder_setPerformanceMode(aaudioBuilder, perfMode); in testConfiguration() 55 AAudioStreamBuilder_setDirection(aaudioBuilder, direction); in testConfiguration() 56 AAudioStreamBuilder_setChannelCount(aaudioBuilder, kChannelCount); in testConfiguration() 57 AAudioStreamBuilder_setFormat(aaudioBuilder, AAUDIO_FORMAT_PCM_FLOAT); in testConfiguration() 60 ASSERT_EQ(AAUDIO_OK, AAudioStreamBuilder_openStream(aaudioBuilder, &aaudioStream)); in testConfiguration() 61 AAudioStreamBuilder_delete(aaudioBuilder); in testConfiguration()
|
D | test_aaudio_attributes.cpp | 98 AAudioStreamBuilder *aaudioBuilder = nullptr; in checkAttributes() local 102 ASSERT_EQ(AAUDIO_OK, AAudio_createStreamBuilder(&aaudioBuilder)); in checkAttributes() 105 AAudioStreamBuilder_setPerformanceMode(aaudioBuilder, mPerfMode); in checkAttributes() 106 AAudioStreamBuilder_setDirection(aaudioBuilder, mDirection); in checkAttributes() 110 AAudioStreamBuilder_setUsage(aaudioBuilder, mUsage); in checkAttributes() 113 AAudioStreamBuilder_setContentType(aaudioBuilder, mContentType); in checkAttributes() 116 AAudioStreamBuilder_setSpatializationBehavior(aaudioBuilder, mSpatializationBehavior); in checkAttributes() 119 AAudioStreamBuilder_setIsContentSpatialized(aaudioBuilder, in checkAttributes() 123 AAudioStreamBuilder_setInputPreset(aaudioBuilder, mPreset); in checkAttributes() 126 AAudioStreamBuilder_setAllowedCapturePolicy(aaudioBuilder, mCapturePolicy); in checkAttributes() [all …]
|