Searched refs:aaudioStream (Results 1 – 2 of 2) sorted by relevance
/cts/tests/tests/nativemedia/aaudio/jni/ |
D | test_aaudio_attributes.cpp | 40 AAudioStream *aaudioStream = nullptr; in checkAttributes() local 61 ASSERT_EQ(AAUDIO_OK, AAudioStreamBuilder_openStream(aaudioBuilder, &aaudioStream)); in checkAttributes() 69 EXPECT_EQ(expectedUsage, AAudioStream_getUsage(aaudioStream)); in checkAttributes() 75 EXPECT_EQ(expectedContentType, AAudioStream_getContentType(aaudioStream)); in checkAttributes() 81 EXPECT_EQ(expectedPreset, AAudioStream_getInputPreset(aaudioStream)); in checkAttributes() 83 EXPECT_EQ(AAUDIO_OK, AAudioStream_requestStart(aaudioStream)); in checkAttributes() 87 AAudioStream_read(aaudioStream, buffer, kNumFrames, kNanosPerSecond)); in checkAttributes() 90 AAudioStream_write(aaudioStream, buffer, kNumFrames, kNanosPerSecond)); in checkAttributes() 93 EXPECT_EQ(AAUDIO_OK, AAudioStream_requestStop(aaudioStream)); in checkAttributes() 95 EXPECT_EQ(AAUDIO_OK, AAudioStream_close(aaudioStream)); in checkAttributes()
|
D | test_aaudio_stream_builder.cpp | 37 AAudioStream *aaudioStream = nullptr; in try_opening_audio_stream() local 38 aaudio_result_t result = AAudioStreamBuilder_openStream(aaudioBuilder, &aaudioStream); in try_opening_audio_stream() 41 ASSERT_EQ(nullptr, aaudioStream); in try_opening_audio_stream() 44 ASSERT_NE(nullptr, aaudioStream); in try_opening_audio_stream() 46 ASSERT_TRUE(((result < 0) && (aaudioStream == nullptr)) in try_opening_audio_stream() 47 || ((result == AAUDIO_OK) && (aaudioStream != nullptr))); in try_opening_audio_stream() 52 if (aaudioStream != nullptr) { in try_opening_audio_stream() 53 ASSERT_EQ(AAUDIO_OK, AAudioStream_close(aaudioStream)); in try_opening_audio_stream() 92 AAudioStream *aaudioStream = nullptr; in TEST() local 93 ASSERT_EQ(AAUDIO_OK, AAudioStreamBuilder_openStream(aaudioBuilder, &aaudioStream)); in TEST() [all …]
|