Home
last modified time | relevance | path

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

/frameworks/av/media/libaudioclient/tests/
Daudio_test_utils.cpp157 const int maxTries = MAX_WAIT_TIME_MS / WAIT_PERIOD_MS; in fillBuffer() local
177 if (counter == maxTries) return TIMED_OUT; in fillBuffer()
187 const int maxTries = MAX_WAIT_TIME_MS / WAIT_PERIOD_MS; in waitForConsumption() local
190 while (!mStopPlaying && counter < maxTries) { in waitForConsumption()
217 if (!mStopPlaying && counter == maxTries) return TIMED_OUT; in waitForConsumption()
503 const int maxTries = MAX_WAIT_TIME_MS / WAIT_PERIOD_MS; in obtainBuffer() local
522 if (counter == maxTries) return TIMED_OUT; in obtainBuffer()
531 const int maxTries = MAX_WAIT_TIME_MS / WAIT_PERIOD_MS; in obtainBufferCb() local
534 while (mBuffersReceived.empty() && !mStopRecording && counter < maxTries) { in obtainBufferCb()
543 if (!mStopRecording && counter == maxTries) return TIMED_OUT; in obtainBufferCb()
/frameworks/base/libs/hwui/pipeline/skia/
DShaderCache.cpp121 int maxTries = 3; in load() local
122 while (valueSize > mObservedBlobValueSize && maxTries > 0) { in load()
131 maxTries--; in load()