/external/oboe/tests/ |
D | testStreamClosedMethods.cpp | 34 Result r = mBuilder.openStream(&mStream); in openStream() 40 Result r = mStream->close(); in closeStream() 48 StreamState s = mStream->getState(); in openAndCloseStream() 49 EXPECT_EQ(s, StreamState::Closed) << "Stream state " << convertToText(mStream->getState()); in openAndCloseStream() 66 mStream->setDelayBeforeCloseMillis(delayMillis); in measureCloseTime() 67 ASSERT_EQ(delayMillis, mStream->getDelayBeforeCloseMillis()); in measureCloseTime() 91 AudioStream *mStream = nullptr; member in StreamClosedReturnValues 99 ASSERT_EQ(mStream->getChannelCount(), 2); in TEST_F() 108 ASSERT_EQ(mStream->getDirection(), Direction::Input); in TEST_F() 115 ASSERT_EQ(mStream->getSampleRate(), 8000); in TEST_F() [all …]
|
D | testStreamStates.cpp | 38 Result r = mBuilder.openStream(&mStream); in openStream() 43 Direction d = mStream->getDirection(); in openStream() 44 EXPECT_EQ(d, direction) << convertToText(mStream->getDirection()); in openStream() 57 Result r = mStream->close(); in closeStream() 66 auto r = mStream->requestStart(); in checkStreamStateIsStartedAfterStartingTwice() 68 r = mStream->waitForStateChange(StreamState::Starting, &next, kTimeoutInNanos); in checkStreamStateIsStartedAfterStartingTwice() 73 r = mStream->requestStart(); in checkStreamStateIsStartedAfterStartingTwice() 76 r = mStream->waitForStateChange(StreamState::Starting, &next, kTimeoutInNanos); in checkStreamStateIsStartedAfterStartingTwice() 87 auto r = mStream->requestStart(); in checkStreamStateIsStoppedAfterStoppingTwice() 90 r = mStream->requestStop(); in checkStreamStateIsStoppedAfterStoppingTwice() [all …]
|
D | testStreamOpen.cpp | 45 EXPECT_EQ(mStream, nullptr); in openStream() 46 Result r = mBuilder.openStream(&mStream); in openStream() 54 if (mStream != nullptr){ in closeStream() 55 Result r = mStream->close(); in closeStream() 58 mStream = nullptr; in closeStream() 79 ASSERT_EQ(mStream->requestStart(), Result::OK); in checkSampleRateConversionAdvancing() 87 mStream->getTimestamp(CLOCK_MONOTONIC); // should not crash in checkSampleRateConversionAdvancing() 88 mStream->getTimestamp(CLOCK_MONOTONIC, nullptr, nullptr); // should not crash in checkSampleRateConversionAdvancing() 92 ASSERT_EQ(mStream->requestStop(), Result::OK); in checkSampleRateConversionAdvancing() 98 AudioStream *mStream = nullptr; member in StreamOpen [all …]
|
D | testXRunBehaviour.cpp | 36 Result r = mBuilder.openStream(&mStream); in openStream() 42 Result r = mStream->close(); in closeStream() 48 AudioStream *mStream = nullptr; member in XRunBehaviour 57 if (mStream->getAudioApi() == AudioApi::AAudio){ in TEST_F() 58 ASSERT_TRUE(mStream->isXRunCountSupported()); in TEST_F() 68 if (mStream->getAudioApi() == AudioApi::OpenSLES){ in TEST_F() 69 ASSERT_FALSE(mStream->isXRunCountSupported()); in TEST_F() 77 if (mStream->getAudioApi() == AudioApi::OpenSLES){ in TEST_F() 78 ASSERT_TRUE(mStream->isXRunCountSupported()); in TEST_F()
|
D | testStreamFramesProcessed.cpp | 42 AudioStream *mStream = nullptr; member in StreamFramesProcessed 46 if (mStream != nullptr) { in TearDown() 47 mStream->close(); in TearDown() 48 mStream = nullptr; in TearDown() 64 mStream = nullptr; in TEST_P() 65 Result r = mBuilder.openStream(&mStream); in TEST_P() 68 r = mStream->start(); in TEST_P() 74 const int64_t framesWritten = mStream->getFramesWritten(); in TEST_P() 75 const int64_t framesRead = mStream->getFramesRead(); in TEST_P()
|
D | testStreamWaitState.cpp | 37 Result r = mBuilder.openStream(&mStream); in openStream() 42 Direction d = mStream->getDirection(); in openStream() 43 EXPECT_EQ(d, direction) << convertToText(mStream->getDirection()); in openStream() 48 Result r = builder.openStream(&mStream); in openStream() 54 Result r = mStream->close(); in closeStream() 63 Result result = mStream->waitForStateChange(mStream->getState(), &next, timeout); in checkWaitForStateChangeTimeout() 69 auto r = mStream->requestStart(); in checkStopWhileWaiting() 71 r = mStream->waitForStateChange(StreamState::Starting, &next, kTimeoutInNanos); in checkStopWhileWaiting() 75 AudioStream *str = mStream; in checkStopWhileWaiting() 81 r = mStream->waitForStateChange(StreamState::Started, &next, 1000 * kNanosPerMillisecond); in checkStopWhileWaiting() [all …]
|
D | testReturnStop.cpp | 57 AudioStream *mStream = nullptr; member in StreamReturnStop 61 if (mStream != nullptr) { in TearDown() 62 mStream->close(); in TearDown() 63 mStream = nullptr; in TearDown() 81 mStream = nullptr; in TEST_P() 82 Result r = mBuilder.openStream(&mStream); in TEST_P() 90 r = mStream->requestStart(); in TEST_P() 92 r = mStream->start(); in TEST_P() 106 r = mStream->waitForStateChange(StreamState::Started, &next, kTimeoutInNanos); in TEST_P() 108 r = mStream->waitForStateChange(StreamState::Stopping, &next, kTimeoutInNanos); in TEST_P() [all …]
|
D | testStreamStop.cpp | 45 Result r = mBuilder.openStream(&mStream); in openStream() 50 Direction d = mStream->getDirection(); in openStream() 51 EXPECT_EQ(d, direction) << convertToText(mStream->getDirection()); in openStream() 56 Result r = builder.openStream(&mStream); in openStream() 63 auto r = mStream->requestStart(); in stopWhileUsingLargeBuffer() 65 r = mStream->waitForStateChange(StreamState::Starting, &next, kTimeoutInNanos); in stopWhileUsingLargeBuffer() 69 AudioStream *str = mStream; in stopWhileUsingLargeBuffer() 80 r = mStream->write(&buffer, kFramesToWrite, kTimeoutInNanos); in stopWhileUsingLargeBuffer() 82 r = mStream->read(&buffer, kFramesToWrite, kTimeoutInNanos); in stopWhileUsingLargeBuffer() 89 r = mStream->waitForStateChange(StreamState::Started, &next, in stopWhileUsingLargeBuffer() [all …]
|
/external/oboe/samples/hello-oboe/src/main/cpp/ |
D | HelloOboeEngine.cpp | 46 if (!mStream) return -1.0; in getCurrentOutputLatencyMillis() 48 oboe::ResultWithValue<double> latencyResult = mStream->calculateLatencyMillis(); in getCurrentOutputLatencyMillis() 59 if (!mStream) return; in setBufferSizeInBursts() 62 auto result = mStream->setBufferSizeInFrames( in setBufferSizeInBursts() 63 numBursts * mStream->getFramesPerBurst()); in setBufferSizeInBursts() 96 ->openStream(mStream); in openPlaybackStream() 98 mChannelCount = mStream->getChannelCount(); in openPlaybackStream() 130 mAudioSource = std::make_shared<SoundGenerator>(mStream->getSampleRate(), in start() 131 mStream->getChannelCount()); in start() 136 mStream->getAudioApi(), in start() [all …]
|
/external/angle/src/libANGLE/ |
D | InfoLog.h | 31 StreamHelper(StreamHelper &&rhs) : mStream(rhs.mStream) { rhs.mStream = nullptr; } in StreamHelper() 35 std::swap(mStream, rhs.mStream); 42 if (mStream && !mStream->str().empty()) in ~StreamHelper() 44 (*mStream) << std::endl; in ~StreamHelper() 51 (*mStream) << value; 58 StreamHelper(std::stringstream *stream) : mStream(stream) { ASSERT(stream); } in StreamHelper() 60 std::stringstream *mStream; variable
|
/external/oboe/samples/MegaDrone/src/main/cpp/ |
D | MegaDroneEngine.cpp | 38 if (mStream) { in ~MegaDroneEngine() 61 ->openStream(mStream); in createPlaybackStream() 102 … mAudioSource = std::make_shared<Synth>(mStream->getSampleRate(), mStream->getChannelCount()); in attemptStart() 105 result = mStream->start(); in attemptStart() 119 if(mStream && mStream->getState() != oboe::StreamState::Closed) { in stop() 120 mStream->stop(); in stop() 121 mStream->close(); in stop() 123 mStream.reset(); in stop()
|
/external/oboe/samples/SoundBoard/src/main/cpp/ |
D | SoundBoardEngine.cpp | 37 if (mStream) { in ~SoundBoardEngine() 68 ->openStream(mStream); in createPlaybackStream() 106 mSynth = Synth::create(mStream->getSampleRate(), mStream->getChannelCount(), mNumSignals); in attemptStart() 109 result = mStream->start(); in attemptStart() 123 if(mStream && mStream->getState() != oboe::StreamState::Closed) { in stop() 124 mStream->stop(); in stop() 125 mStream->close(); in stop() 127 mStream.reset(); in stop()
|
/external/oboe/samples/parselib/src/main/cpp/wav/ |
D | WavStreamReader.cpp | 36 mStream = stream; in WavStreamReader() 72 int numRead = mStream->peek(&tag, sizeof(tag)); in parse() 84 mWavChunk->read(mStream); in parse() 87 mFmtChunk->read(mStream); in parse() 90 mDataChunk->read(mStream); in parse() 92 mAudioDataStartPos = mStream->getPos(); in parse() 93 mStream->advance(mDataChunk->mChunkSize); in parse() 96 chunk->read(mStream); in parse() 97 mStream->advance(chunk->mChunkSize); // skip the body in parse() 104 mStream->setPos(mAudioDataStartPos); in parse() [all …]
|
/external/oboe/apps/OboeTester/app/src/main/java/com/mobileer/oboetester/ |
D | BufferSizeView.java | 31 private OboeAudioStream mStream; field in BufferSizeView 143 mStream = stream; in onStreamOpened() 144 if (mStream != null) { in onStreamOpened() 145 int capacity = mStream.getBufferCapacityInFrames(); in onStreamOpened() 147 int framesPerBurst = mStream.getFramesPerBurst(); in onStreamOpened() 155 if (mStream != null) { in setBufferSizeByNumBursts() 156 int framesPerBurst = mStream.getFramesPerBurst(); in setBufferSizeByNumBursts() 187 if (mStream != null) { in setBufferSize() 189 if (mStream != null && sizeFrames >= 0) { in setBufferSize() 190 mStream.setBufferSizeInFrames(sizeFrames); in setBufferSize() [all …]
|
/external/oboe/src/common/ |
D | AudioSourceCaller.cpp | 23 AudioStreamDataCallback *callback = mStream->getDataCallback(); in onProcessFixedBlock() 25 int32_t numFrames = numBytes / mStream->getBytesPerFrame(); in onProcessFixedBlock() 27 DataCallbackResult callbackResult = callback->onAudioReady(mStream, buffer, numFrames); in onProcessFixedBlock() 33 auto readResult = mStream->read(buffer, numFrames, mTimeoutNanos); in onProcessFixedBlock() 35 result = readResult.value() * mStream->getBytesPerFrame(); in onProcessFixedBlock()
|
D | LatencyTuner.cpp | 26 : mStream(stream) in LatencyTuner() 56 auto xRunCountResult = mStream.getXRunCount(); in tune() 60 int32_t oldBufferSize = mStream.getBufferSizeInFrames(); in tune() 70 auto setBufferResult = mStream.setBufferSizeInFrames(requestedBufferSize); in tune() 103 mStream.setBufferSizeInFrames(getMinimumBufferSize()); in reset()
|
D | AudioSourceCaller.h | 48 mStream = stream; in setStream() 52 return mStream; in getStream() 76 oboe::AudioStream *mStream = nullptr;
|
D | SourceFloatCaller.cpp | 26 int32_t numBytes = mStream->getBytesPerFrame() * numFrames; in onProcess() 28 int32_t framesRead = bytesRead / mStream->getBytesPerFrame(); in onProcess()
|
/external/conscrypt/common/src/jni/main/include/conscrypt/ |
D | bio_stream.h | 34 mStream = env->NewGlobalRef(stream); in BioStream() 40 env->DeleteGlobalRef(mStream); in ~BioStream() 59 env->CallVoidMethod(mStream, jniutil::outputStream_flushMethod); in flush() 69 return mStream; in getStream() 77 jobject mStream;
|
/external/angle/src/tests/egl_tests/ |
D | EGLStreamTest.cpp | 413 mStream = eglCreateStreamKHR(mDisplay, nullptr); in testSetUp() 423 EGLBoolean result = eglDestroyStreamKHR(mDisplay, mStream); in testTearDown() 432 EGLStreamKHR mStream = 0; member in __anon902634930111::D3D11TextureStreamSamplingTest 475 EGLBoolean result = eglStreamConsumerGLTextureExternalAttribsNV(mDisplay, mStream, nullptr); in TEST_P() 481 result = eglCreateStreamProducerD3DTextureANGLE(mDisplay, mStream, nullptr); in TEST_P() 506 result = eglStreamPostD3DTextureANGLE(mDisplay, mStream, (void *)texture, nullptr); in TEST_P() 512 result = eglStreamConsumerAcquireKHR(mDisplay, mStream); in TEST_P() 523 result = eglStreamConsumerReleaseKHR(mDisplay, mStream); in TEST_P() 590 mDisplay, mStream, const_cast<EGLAttrib *>(consumerAttributes)); in TEST_P() 594 result = eglCreateStreamProducerD3DTextureANGLE(mDisplay, mStream, nullptr); in TEST_P() [all …]
|
/external/oboe/apps/OboeTester/app/src/main/cpp/ |
D | TestErrorCallback.cpp | 40 ->openStream(mStream); in open() 45 return mStream->requestStart(); in start() 49 return mStream->requestStop(); in stop() 53 return mStream->close(); in close()
|
/external/oboe/samples/minimaloboe/src/main/cpp/ |
D | SimpleNoiseMaker.cpp | 40 ->openStream(mStream); in open() 45 return mStream->requestStart(); in start() 49 return mStream->requestStop(); in stop() 53 return mStream->close(); in close()
|
/external/conscrypt/common/src/test/java/org/conscrypt/java/security/cert/ |
D | CertificateFactoryTest.java | 552 private InputStream mStream; field in CertificateFactoryTest.MeasuredInputStream 555 mStream = is; in MeasuredInputStream() 564 int nextByte = mStream.read(); in read() 571 int count = mStream.read(buffer); in read() 578 int count = mStream.read(buffer, offset, length); in read() 585 long count = mStream.skip(byteCount); in skip() 592 return mStream.available(); in available() 597 mStream.close(); in close() 603 mStream.mark(readlimit); in mark() 608 return mStream.markSupported(); in markSupported() [all …]
|
/external/conscrypt/repackaged/common/src/test/java/com/android/org/conscrypt/java/security/cert/ |
D | CertificateFactoryTest.java | 558 private InputStream mStream; field in CertificateFactoryTest.MeasuredInputStream 561 mStream = is; in MeasuredInputStream() 570 int nextByte = mStream.read(); in read() 577 int count = mStream.read(buffer); in read() 584 int count = mStream.read(buffer, offset, length); in read() 591 long count = mStream.skip(byteCount); in skip() 598 return mStream.available(); in available() 603 mStream.close(); in close() 609 mStream.mark(readlimit); in mark() 614 return mStream.markSupported(); in markSupported() [all …]
|
/external/oboe/docs/ |
D | GettingStarted.md | 190 std::shared_ptr<oboe::AudioStream> mStream; 194 oboe::Result result = builder.openStream(mStream); 208 oboe::AudioFormat format = mStream->getFormat(); 213 mStream->requestStart(); 219 mStream->requestStop(); 226 mStream->close(); 235 populates the `mStream` variable. 241 builder.openStream(mStream); 270 ->openStream(mStream); 282 if (mStream) { [all …]
|