Loading audio/core/all-versions/vts/functional/AudioPrimaryHidlHalTest.h +0 −20 Original line number Diff line number Diff line Loading @@ -1698,26 +1698,6 @@ TEST_P(InputStreamTest, GetInputFramesLost) { ASSERT_EQ(0U, framesLost); } TEST_P(InputStreamTest, getCapturePosition) { doc::test( "The capture position of a non prepared stream should not be " "retrievable or 0"); uint64_t frames; uint64_t time; ASSERT_OK(stream->getCapturePosition(returnIn(res, frames, time))); // Although 'getCapturePosition' is mandatory in V7, legacy implementations // may return -ENOSYS (which is translated to NOT_SUPPORTED) in cases when // the capture position can't be retrieved, e.g. when the stream isn't // running. Because of this, we don't fail when getting NOT_SUPPORTED // in this test. Behavior of 'getCapturePosition' for running streams is // tested in 'PcmOnlyConfigInputStreamTest' for V7. ASSERT_RESULT(okOrInvalidStateOrNotSupported, res); if (res == Result::OK) { ASSERT_EQ(0U, frames); ASSERT_LE(0U, time); } } ////////////////////////////////////////////////////////////////////////////// ///////////////////////////////// StreamOut ////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// Loading Loading
audio/core/all-versions/vts/functional/AudioPrimaryHidlHalTest.h +0 −20 Original line number Diff line number Diff line Loading @@ -1698,26 +1698,6 @@ TEST_P(InputStreamTest, GetInputFramesLost) { ASSERT_EQ(0U, framesLost); } TEST_P(InputStreamTest, getCapturePosition) { doc::test( "The capture position of a non prepared stream should not be " "retrievable or 0"); uint64_t frames; uint64_t time; ASSERT_OK(stream->getCapturePosition(returnIn(res, frames, time))); // Although 'getCapturePosition' is mandatory in V7, legacy implementations // may return -ENOSYS (which is translated to NOT_SUPPORTED) in cases when // the capture position can't be retrieved, e.g. when the stream isn't // running. Because of this, we don't fail when getting NOT_SUPPORTED // in this test. Behavior of 'getCapturePosition' for running streams is // tested in 'PcmOnlyConfigInputStreamTest' for V7. ASSERT_RESULT(okOrInvalidStateOrNotSupported, res); if (res == Result::OK) { ASSERT_EQ(0U, frames); ASSERT_LE(0U, time); } } ////////////////////////////////////////////////////////////////////////////// ///////////////////////////////// StreamOut ////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// Loading