Home
last modified time | relevance | path

Searched refs:aaudioStream2 (Results 1 – 2 of 2) sorted by relevance

/frameworks/av/media/libaaudio/tests/
Dtest_interference.cpp53 AAudioStream *aaudioStream2 = nullptr; in TEST() local
75 ASSERT_EQ(AAUDIO_OK, AAudioStreamBuilder_openStream(aaudioBuilder, &aaudioStream2)); in TEST()
76 ASSERT_EQ(AAUDIO_OK, AAudioStream_requestStart(aaudioStream2)); in TEST()
80 EXPECT_LT(0, AAudioStream_getFramesRead(aaudioStream2)); in TEST()
82 EXPECT_EQ(AAUDIO_STREAM_STATE_STARTED, AAudioStream_getState(aaudioStream2)); in TEST()
94 AAudioStream_close(aaudioStream2); in TEST()
Dtest_session_id.cpp81 AAudioStream *aaudioStream2 = nullptr; in checkSessionIdAllocate() local
127 ASSERT_EQ(AAUDIO_OK, AAudioStreamBuilder_openStream(aaudioBuilder, &aaudioStream2)); in checkSessionIdAllocate()
131 sessionId2 = AAudioStream_getSessionId(aaudioStream2); in checkSessionIdAllocate()
134 ASSERT_EQ(AAUDIO_OK, AAudioStream_requestStart(aaudioStream2)); in checkSessionIdAllocate()
137 ASSERT_EQ(kNumFrames, AAudioStream_read(aaudioStream2, in checkSessionIdAllocate()
140 ASSERT_EQ(kNumFrames, AAudioStream_write(aaudioStream2, in checkSessionIdAllocate()
144 EXPECT_EQ(AAUDIO_OK, AAudioStream_requestStop(aaudioStream2)); in checkSessionIdAllocate()
146 EXPECT_EQ(AAUDIO_OK, AAudioStream_close(aaudioStream2)); in checkSessionIdAllocate()