Home
last modified time | relevance | path

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

/cts/tests/tests/nativemedia/aaudio/jni/
Dtest_session_id.cpp28 constexpr int kNumFrames = 256; variable
35 std::unique_ptr<float[]> buffer(new float[kNumFrames * kChannelCount]); in checkSessionIdNone()
57 …ASSERT_EQ(kNumFrames, AAudioStream_write(aaudioStream1, buffer.get(), kNumFrames, NANOS_PER_SECOND… in checkSessionIdNone()
83 std::unique_ptr<float[]> buffer(new float[kNumFrames * kChannelCount]); in checkSessionIdAllocate()
116 ASSERT_EQ(kNumFrames, AAudioStream_read(aaudioStream1, in checkSessionIdAllocate()
117 buffer.get(), kNumFrames, NANOS_PER_SECOND)); in checkSessionIdAllocate()
119 ASSERT_EQ(kNumFrames, AAudioStream_write(aaudioStream1, in checkSessionIdAllocate()
120 buffer.get(), kNumFrames, NANOS_PER_SECOND)); in checkSessionIdAllocate()
145 ASSERT_EQ(kNumFrames, AAudioStream_read(aaudioStream2, in checkSessionIdAllocate()
146 buffer.get(), kNumFrames, NANOS_PER_SECOND)); in checkSessionIdAllocate()
[all …]
Dtest_aaudio_basic.cpp45 float buffer[kNumFrames * kChannelCount] = {}; in testConfiguration()
66 EXPECT_EQ(kNumFrames, in testConfiguration()
67 AAudioStream_read(aaudioStream, &buffer, kNumFrames, kNanosPerSecond)); in testConfiguration()
69 EXPECT_EQ(kNumFrames, in testConfiguration()
70 AAudioStream_write(aaudioStream, &buffer, kNumFrames, kNanosPerSecond)); in testConfiguration()
78 static constexpr int kNumFrames = 256; member in TestAAudioBasic
Dtest_aaudio_attributes.cpp32 constexpr int kNumFrames = 256; variable
96 std::unique_ptr<float[]> buffer(new float[kNumFrames * kChannelCount]); in checkAttributes()
193 EXPECT_EQ(kNumFrames, in checkAttributes()
194 AAudioStream_read(aaudioStream, buffer.get(), kNumFrames, kNanosPerSecond)); in checkAttributes()
196 EXPECT_EQ(kNumFrames, in checkAttributes()
197 AAudioStream_write(aaudioStream, buffer.get(), kNumFrames, kNanosPerSecond)); in checkAttributes()
848 std::unique_ptr<float[]> buffer(new float[kNumFrames * kChannelCount]); in TEST_P()
/cts/hostsidetests/media/app/MediaMetricsTest/jni/
Daaudio_stream.cpp26 constexpr int kNumFrames = 256; variable
47 std::unique_ptr<float[]> buffer(new float[kNumFrames * channelCount]); in tryOpeningStream()
50 ASSERT_EQ(kNumFrames, in tryOpeningStream()
51 AAudioStream_read(stream, buffer.get(), kNumFrames, 500 * kMillisPerNanos)); in tryOpeningStream()
53 ASSERT_EQ(kNumFrames, in tryOpeningStream()
54 AAudioStream_write(stream, buffer.get(), kNumFrames, 500 * kMillisPerNanos)); in tryOpeningStream()
62 while (numRetries < kMaxRetries && framesRead < kNumFrames) { in tryOpeningStream()