Home
last modified time | relevance | path

Searched refs:aaudioStream (Results 1 – 4 of 4) sorted by relevance

/cts/tests/tests/nativemedia/aaudio/jni/
Dtest_aaudio_stream_builder.cpp55 AAudioStream *aaudioStream = nullptr; in try_opening_audio_stream() local
57 aaudio_result_t result = AAudioStreamBuilder_openStream(aaudioBuilder, &aaudioStream); in try_opening_audio_stream()
60 ASSERT_EQ(nullptr, aaudioStream); in try_opening_audio_stream()
63 ASSERT_NE(nullptr, aaudioStream); in try_opening_audio_stream()
65 ASSERT_TRUE(((result < 0) && (aaudioStream == nullptr)) in try_opening_audio_stream()
66 || ((result == AAUDIO_OK) && (aaudioStream != nullptr))); in try_opening_audio_stream()
76 if (aaudioStream != nullptr) { in try_opening_audio_stream()
78 ASSERT_EQ(AAUDIO_OK, AAudioStream_close(aaudioStream)); in try_opening_audio_stream()
123 AAudioStream *aaudioStream = nullptr; in TEST_F() local
124 ASSERT_EQ(AAUDIO_OK, AAudioStreamBuilder_openStream(aaudioBuilder, &aaudioStream)); in TEST_F()
[all …]
Dtest_aaudio_basic.cpp48 AAudioStream *aaudioStream = nullptr; in testConfiguration() local
60 ASSERT_EQ(AAUDIO_OK, AAudioStreamBuilder_openStream(aaudioBuilder, &aaudioStream)); in testConfiguration()
63 EXPECT_EQ(AAUDIO_OK, AAudioStream_requestStart(aaudioStream)); in testConfiguration()
67 AAudioStream_read(aaudioStream, &buffer, kNumFrames, kNanosPerSecond)); in testConfiguration()
70 AAudioStream_write(aaudioStream, &buffer, kNumFrames, kNanosPerSecond)); in testConfiguration()
73 EXPECT_EQ(AAUDIO_OK, AAudioStream_requestStop(aaudioStream)); in testConfiguration()
75 EXPECT_EQ(AAUDIO_OK, AAudioStream_close(aaudioStream)); in testConfiguration()
Dtest_aaudio_attributes.cpp99 AAudioStream *aaudioStream = nullptr; in checkAttributes() local
140 ASSERT_EQ(AAUDIO_OK, AAudioStreamBuilder_openStream(aaudioBuilder, &aaudioStream)); in checkAttributes()
148 EXPECT_EQ(expectedUsage, AAudioStream_getUsage(aaudioStream)); in checkAttributes()
154 EXPECT_EQ(expectedContentType, AAudioStream_getContentType(aaudioStream)); in checkAttributes()
162 EXPECT_EQ(expectedBehavior, AAudioStream_getSpatializationBehavior(aaudioStream)); in checkAttributes()
168 EXPECT_EQ(expectedIsContentSpatialized, AAudioStream_isContentSpatialized(aaudioStream)); in checkAttributes()
175 EXPECT_EQ(expectedPreset, AAudioStream_getInputPreset(aaudioStream)); in checkAttributes()
181 EXPECT_EQ(expectedCapturePolicy, AAudioStream_getAllowedCapturePolicy(aaudioStream)); in checkAttributes()
188 EXPECT_EQ(expectedPrivacyMode, AAudioStream_isPrivacySensitive(aaudioStream)); in checkAttributes()
190 EXPECT_EQ(AAUDIO_OK, AAudioStream_requestStart(aaudioStream)); in checkAttributes()
[all …]
Dutils.h184 bool isMMapUsed(AAudioStream *aaudioStream) { in isMMapUsed() argument
186 return mAAudioStream_isMMap(aaudioStream); in isMMapUsed()