/frameworks/base/tests/SurfaceViewBufferTests/src/com/android/test/ |
D | BufferPresentationTests.kt | 30 val numFrames = 100L in <lambda>() constant 32 for (i in 1..numFrames) { in <lambda>() 36 assertEquals(0, activity.mSurfaceProxy.waitUntilBufferDisplayed(numFrames, in <lambda>() 40 assertThat(trace).hasFrameSequence("SurfaceView", 1..numFrames) in <lambda>() 59 val numFrames = 20L in <lambda>() constant 61 for (count in 1..(numFrames / 2)) { in <lambda>() 68 assertEquals(0, activity.mSurfaceProxy.waitUntilBufferDisplayed(numFrames, in <lambda>() 72 assertThat(trace).hasFrameSequence("SurfaceView", 1..numFrames) in <lambda>() 78 val numFrames = numBufferCount * 5L in <lambda>() constant 81 for (i in 1..numFrames / numBufferCount) { in <lambda>() [all …]
|
D | SharedBufferModeTests.kt | 32 val numFrames = 15L in <lambda>() constant 35 for (i in 1..numFrames) { in <lambda>() 42 assertThat(trace).hasFrameSequence("SurfaceView", 1..numFrames) in <lambda>() 49 val numFrames = 15L in <lambda>() constant 52 for (i in 1..numFrames) { in <lambda>() 56 assertEquals(0, activity.mSurfaceProxy.waitUntilBufferDisplayed(numFrames, in <lambda>() 60 assertThat(trace).hasFrameSequence("SurfaceView", numFrames..numFrames) in <lambda>()
|
/frameworks/av/media/libaaudio/src/flowgraph/ |
D | FlowGraphNode.cpp | 25 int32_t FlowGraphNode::pullData(int32_t numFrames, int64_t callCount) { in pullData() argument 26 int32_t frameCount = numFrames; in pullData() 76 int32_t FlowGraphPortFloatOutput::pullData(int64_t callCount, int32_t numFrames) { in pullData() argument 77 numFrames = std::min(getFramesPerBuffer(), numFrames); in pullData() 78 return mContainingNode.pullData(numFrames, callCount); in pullData() 95 int32_t FlowGraphPortFloatInput::pullData(int64_t callCount, int32_t numFrames) { in pullData() argument 97 ? std::min(getFramesPerBuffer(), numFrames) in pullData() 98 : mConnected->pullData(callCount, numFrames); in pullData() 112 int32_t FlowGraphSink::pullData(int32_t numFrames) { in pullData() argument 113 return FlowGraphNode::pullData(numFrames, getLastCallCount() + 1); in pullData()
|
D | FlowGraphNode.h | 86 virtual int32_t onProcess(int32_t numFrames) = 0; 99 int32_t pullData(int32_t numFrames, int64_t callCount); 181 virtual int32_t pullData(int64_t framePosition, int32_t numFrames) = 0; 264 int32_t pullData(int64_t framePosition, int32_t numFrames) override; 333 int32_t pullData(int64_t framePosition, int32_t numFrames) override; 379 void setData(const void *data, int32_t numFrames) { in setData() argument 381 mSizeInFrames = numFrames; in setData() 414 int32_t onProcess(int32_t numFrames) override { in onProcess() argument 415 return numFrames; in onProcess() 418 virtual int32_t read(void *data, int32_t numFrames) = 0; [all …]
|
D | MultiToMonoConverter.cpp | 30 int32_t MultiToMonoConverter::onProcess(int32_t numFrames) { in onProcess() argument 34 for (int i = 0; i < numFrames; i++) { in onProcess() 39 return numFrames; in onProcess()
|
D | MonoToMultiConverter.cpp | 28 int32_t MonoToMultiConverter::onProcess(int32_t numFrames) { in onProcess() argument 32 for (int i = 0; i < numFrames; i++) { in onProcess() 39 return numFrames; in onProcess()
|
D | ClipToRange.cpp | 28 int32_t ClipToRange::onProcess(int32_t numFrames) { in onProcess() argument 32 int32_t numSamples = numFrames * output.getSamplesPerFrame(); in onProcess() 37 return numFrames; in onProcess()
|
D | SinkFloat.cpp | 28 int32_t SinkFloat::read(void *data, int32_t numFrames) { in read() argument 32 int32_t framesLeft = numFrames; in read() 45 return numFrames - framesLeft; in read()
|
D | MonoBlend.cpp | 29 int32_t MonoBlend::onProcess(int32_t numFrames) { in onProcess() argument 34 for (size_t i = 0; i < numFrames; ++i) { in onProcess() 45 return numFrames; in onProcess()
|
/frameworks/av/media/libaaudio/tests/ |
D | test_atomic_fifo.cpp | 165 fifo_frames_t bothAvailable = wrappingBuffer.numFrames[0] + wrappingBuffer.numFrames[1]; in verifyWrappingBuffer() 172 bothAvailable = wrappingBuffer.numFrames[0] + wrappingBuffer.numFrames[1]; in verifyWrappingBuffer() 177 EXPECT_GE(wrappingBuffer.numFrames[0], 0); in verifyWrappingBuffer() 178 EXPECT_LE(wrappingBuffer.numFrames[0], capacity); in verifyWrappingBuffer() 179 EXPECT_GE(wrappingBuffer.numFrames[1], 0); in verifyWrappingBuffer() 180 EXPECT_LE(wrappingBuffer.numFrames[1], capacity); in verifyWrappingBuffer() 184 if (wrappingBuffer.numFrames[0]) { in verifyWrappingBuffer() 187 + mFifoBuffer.convertFramesToBytes(wrappingBuffer.numFrames[0]) - 1; in verifyWrappingBuffer() 190 if (wrappingBuffer.numFrames[1]) { in verifyWrappingBuffer() 193 + mFifoBuffer.convertFramesToBytes(wrappingBuffer.numFrames[1]) - 1; in verifyWrappingBuffer() [all …]
|
D | test_aaudio_monkey.cpp | 46 int32_t numFrames); 189 int32_t numFrames) { in renderAudio() argument 198 mSine1.render(&audioBuffer[0], samplesPerFrame, numFrames); in renderAudio() 201 mSine2.render(&audioBuffer[1], samplesPerFrame, numFrames); in renderAudio() 208 mSine1.render(&audioBuffer[0], samplesPerFrame, numFrames); in renderAudio() 211 mSine2.render(&audioBuffer[1], samplesPerFrame, numFrames); in renderAudio() 237 int32_t numFrames in AAudioMonkeyDataCallback() argument 245 return monkey->renderAudio(stream, audioData, numFrames); in AAudioMonkeyDataCallback()
|
/frameworks/av/media/libaaudio/examples/utils/ |
D | SineGenerator.h | 38 double numFrames = seconds * mFrameRate; in setSweep() local 39 mUpScaler = pow((frequencyHigh / frequencyLow), (1.0 / numFrames)); in setSweep() 50 void render(int16_t *buffer, int32_t channelStride, int32_t numFrames) { in render() argument 52 for (int i = 0; i < numFrames; i++) { in render() 58 void render(float *buffer, int32_t channelStride, int32_t numFrames) { in render() argument 60 for (int i = 0; i < numFrames; i++) { in render() 66 void render(int32_t *buffer, int32_t channelStride, int32_t numFrames) { in render() argument 68 for (int i = 0; i < numFrames; i++) { in render() 74 void render24(uint8_t *buffer, int32_t channelStride, int32_t numFrames) { in render24() argument 79 for (int i = 0; i < numFrames; i++) { in render24()
|
D | AAudioSimplePlayer.h | 204 const int numFrames = 32; in prime() local 205 float zeros[numFrames * samplesPerFrame]; in prime() 207 aaudio_result_t result = numFrames; in prime() 208 while (result == numFrames) { in prime() 209 result = AAudioStream_write(mStream, zeros, numFrames, 0); in prime() 347 int32_t numFrames in SimplePlayerDataCallbackProc() argument 392 if (numFrames > sineData->maxNumFrames) { in SimplePlayerDataCallbackProc() 393 sineData->maxNumFrames = numFrames; in SimplePlayerDataCallbackProc() 395 if (numFrames < sineData->minNumFrames) { in SimplePlayerDataCallbackProc() 396 sineData->minNumFrames = numFrames; in SimplePlayerDataCallbackProc() [all …]
|
D | AAudioSimpleRecorder.h | 190 const int numFrames = 32; // arbitrary in prime() local 191 float zeros[numFrames * samplesPerFrame]; in prime() 193 aaudio_result_t result = numFrames; in prime() 194 while (result == numFrames) { in prime() 195 result = AAudioStream_write(mStream, zeros, numFrames, 0); in prime() 255 int32_t numFrames in SimpleRecorderDataCallbackProc() argument 272 for (int frameIndex = 0; frameIndex < numFrames; frameIndex++) { in SimpleRecorderDataCallbackProc() 284 for (int frameIndex = 0; frameIndex < numFrames; frameIndex++) { in SimpleRecorderDataCallbackProc()
|
/frameworks/av/media/libeffects/preprocessing/tests/ |
D | correlation.cpp | 109 size_t numFrames = fileSize1 / sizeof(int16_t); in main() local 110 std::unique_ptr<int16_t[]> inBuffer1(new int16_t[numFrames]()); in main() 111 std::unique_ptr<int16_t[]> inBuffer2(new int16_t[numFrames]()); in main() 113 if (numFrames != fread(inBuffer1.get(), sizeof(int16_t), numFrames, fInput1.get())) { in main() 114 printf("\nError: Unable to read %zu samples from file %s\n", numFrames, argv[1]); in main() 118 if (numFrames != fread(inBuffer2.get(), sizeof(int16_t), numFrames, fInput2.get())) { in main() 119 printf("\nError: Unable to read %zu samples from file %s\n", numFrames, argv[2]); in main() 123 auto pairAutoCorr1 = correlation(inBuffer1.get(), inBuffer1.get(), numFrames, enableCrossCorr); in main() 124 auto pairAutoCorr2 = correlation(inBuffer2.get(), inBuffer2.get(), numFrames, enableCrossCorr); in main() 146 correlation(inBuffer1.get(), inBuffer2.get(), numFrames, enableCrossCorr); in main()
|
/frameworks/av/media/libaaudio/src/fifo/ |
D | FifoBuffer.cpp | 75 wrappingBuffer->numFrames[1] = 0; in fillWrappingBuffer() 84 wrappingBuffer->numFrames[0] = firstFrames; in fillWrappingBuffer() 86 wrappingBuffer->numFrames[1] = framesAvailable - firstFrames; in fillWrappingBuffer() 89 wrappingBuffer->numFrames[0] = framesAvailable; in fillWrappingBuffer() 93 wrappingBuffer->numFrames[0] = 0; in fillWrappingBuffer() 115 fifo_frames_t FifoBuffer::read(void *buffer, fifo_frames_t numFrames) { in read() argument 118 fifo_frames_t framesLeft = numFrames; in read() 126 fifo_frames_t framesAvailable = wrappingBuffer.numFrames[partIndex]; in read() 141 fifo_frames_t framesRead = numFrames - framesLeft; in read() 146 fifo_frames_t FifoBuffer::write(const void *buffer, fifo_frames_t numFrames) { in write() argument [all …]
|
D | FifoControllerBase.cpp | 43 void FifoControllerBase::advanceReadIndex(fifo_frames_t numFrames) { in advanceReadIndex() argument 45 __builtin_add_overflow(getReadCounter(), numFrames, &temp); in advanceReadIndex() 58 void FifoControllerBase::advanceWriteIndex(fifo_frames_t numFrames) { in advanceWriteIndex() argument 60 __builtin_add_overflow(getWriteCounter(), numFrames, &temp); in advanceWriteIndex()
|
D | FifoBuffer.h | 36 int32_t numFrames[SIZE]; member 97 void advanceReadIndex(fifo_frames_t numFrames) { in advanceReadIndex() argument 98 mFifo->advanceReadIndex(numFrames); in advanceReadIndex() 101 void advanceWriteIndex(fifo_frames_t numFrames) { in advanceWriteIndex() argument 102 mFifo->advanceWriteIndex(numFrames); in advanceWriteIndex()
|
/frameworks/native/libs/gui/include/gui/ |
D | OccupancyTracker.h | 44 numFrames(0), in Segment() 51 numFrames(_numFrames), in Segment() 60 size_t numFrames; member 83 numFrames = 0; in clear() 88 size_t numFrames; member
|
/frameworks/av/media/libaaudio/examples/loopback/src/ |
D | loopback.cpp | 118 void hangIfRequested(int32_t numFrames) { in hangIfRequested() 120 hangCountdownFrames -= numFrames; in hangIfRequested() 153 static int32_t readFormattedData(LoopbackData *myData, int32_t numFrames) { in readFormattedData() argument 157 numFrames, in readFormattedData() 161 numFrames, in readFormattedData() 186 int32_t numFrames in MyDataCallbackProc() argument 196 if (numFrames > myData->inputFramesMaximum) { in MyDataCallbackProc() 201 if (numFrames > myData->maxNumFrames) { in MyDataCallbackProc() 202 myData->maxNumFrames = numFrames; in MyDataCallbackProc() 204 if (numFrames < myData->minNumFrames) { in MyDataCallbackProc() [all …]
|
/frameworks/av/media/libaaudio/src/client/ |
D | AudioStreamInternalPlay.cpp | 64 int32_t numFrames = kRampMSec * getSampleRate() / AAUDIO_MILLIS_PER_SECOND; in open() local 65 mFlowGraph.setRampLengthInFrames(numFrames); in open() 123 aaudio_result_t AudioStreamInternalPlay::write(const void *buffer, int32_t numFrames, in write() argument 125 return processData((void *)buffer, numFrames, timeoutNanoseconds); in write() 129 aaudio_result_t AudioStreamInternalPlay::processDataNow(void *buffer, int32_t numFrames, in processDataNow() argument 179 int32_t framesWritten = writeNowWithConversion(buffer, numFrames); in processDataNow() 232 int32_t numFrames) { in writeNowWithConversion() argument 235 int32_t framesLeft = numFrames; in writeNowWithConversion() 243 int32_t framesAvailable = wrappingBuffer.numFrames[partIndex]; in writeNowWithConversion() 262 int32_t framesWritten = numFrames - framesLeft; in writeNowWithConversion()
|
D | AudioStreamInternalCapture.cpp | 65 aaudio_result_t AudioStreamInternalCapture::read(void *buffer, int32_t numFrames, in read() argument 68 return processData(buffer, numFrames, timeoutNanoseconds); in read() 72 aaudio_result_t AudioStreamInternalCapture::processDataNow(void *buffer, int32_t numFrames, in processDataNow() argument 126 int32_t framesProcessed = readNowWithConversion(buffer, numFrames); in processDataNow() 167 int32_t numFrames) { in readNowWithConversion() argument 172 int32_t framesLeft = numFrames; in readNowWithConversion() 179 const int32_t framesAvailable = wrappingBuffer.numFrames[partIndex]; in readNowWithConversion() 199 int32_t framesProcessed = numFrames - framesLeft; in readNowWithConversion()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/animation/ |
D | AnimationUtil.kt | 34 fun getMsForFrames(numFrames: Int): Long { in getMsForFrames() 35 if (numFrames < 0) { in getMsForFrames() 38 return (numFrames * 1000f / 60f).roundToLong() in getMsForFrames()
|
/frameworks/native/libs/gui/ |
D | OccupancyTracker.cpp | 34 result = parcel->writeUint64(static_cast<uint64_t>(numFrames)); in writeToParcel() 55 numFrames = static_cast<size_t>(uintNumFrames); in readFromParcel() 78 ++mPendingSegment.numFrames; in registerOccupancyChange() 98 if (mPendingSegment.numFrames > LONG_SEGMENT_THRESHOLD) { in recordPendingSegment() 109 mPendingSegment.numFrames, occupancyAverage, usedThirdBuffer}); in recordPendingSegment()
|
/frameworks/av/media/libaaudio/src/legacy/ |
D | AudioStreamLegacy.cpp | 42 int32_t numFrames) { in callDataCallbackFrames() argument 46 incrementFramesRead(numFrames); in callDataCallbackFrames() 47 finalAudioData = (void *) maybeConvertDeviceData(buffer, numFrames); in callDataCallbackFrames() 51 aaudio_data_callback_result_t callbackResult = maybeCallDataCallback(finalAudioData, numFrames); in callDataCallbackFrames() 56 incrementFramesWritten(numFrames); in callDataCallbackFrames() 63 int32_t numFrames = numBytes / mBlockAdapterBytesPerFrame; in onProcessFixedBlock() local 64 return (int32_t) callDataCallbackFrames(buffer, numFrames); in onProcessFixedBlock()
|