Home
last modified time | relevance | path

Searched refs:stepCount (Results 1 – 8 of 8) sorted by relevance

/frameworks/av/media/libmedia/
DAudioTrackShared.cpp299 size_t stepCount = buffer->mFrameCount; in releaseBuffer() local
300 if (stepCount == 0 || mIsShutdown) { in releaseBuffer()
307 LOG_ALWAYS_FATAL_IF(!(stepCount <= mUnreleased && mUnreleased <= mFrameCount)); in releaseBuffer()
308 mUnreleased -= stepCount; in releaseBuffer()
313 android_atomic_release_store(stepCount + rear, &cblk->u.mStreaming.mRear); in releaseBuffer()
316 android_atomic_release_store(stepCount + front, &cblk->u.mStreaming.mFront); in releaseBuffer()
712 size_t stepCount = buffer->mFrameCount; in releaseBuffer() local
713 if (stepCount == 0 || mIsShutdown) { in releaseBuffer()
720 LOG_ALWAYS_FATAL_IF(!(stepCount <= mUnreleased && mUnreleased <= mFrameCount)); in releaseBuffer()
721 mUnreleased -= stepCount; in releaseBuffer()
[all …]
DAudioRecord.cpp775 size_t stepCount = audioBuffer->size / mFrameSize; in releaseBuffer() local
776 if (stepCount == 0) { in releaseBuffer()
781 buffer.mFrameCount = stepCount; in releaseBuffer()
DAudioTrack.cpp1552 size_t stepCount = audioBuffer->size / mFrameSize; in releaseBuffer() local
1553 if (stepCount == 0) { in releaseBuffer()
1558 buffer.mFrameCount = stepCount; in releaseBuffer()
1562 mReleased += stepCount; in releaseBuffer()
/frameworks/base/test-runner/src/android/test/
DTouchUtils.java205 int stepCount) { in dragViewToBottom() argument
206 dragViewToBottom(test, test.getActivity(), v, stepCount); in dragViewToBottom()
218 int stepCount) { in dragViewToBottom() argument
231 drag(test, x, x, fromY, toY, stepCount); in dragViewToBottom()
442 public static void dragViewToTop(ActivityInstrumentationTestCase test, View v, int stepCount) { in dragViewToTop() argument
443 dragViewToTop((InstrumentationTestCase) test, v, stepCount); in dragViewToTop() local
463 public static void dragViewToTop(InstrumentationTestCase test, View v, int stepCount) { in dragViewToTop() argument
474 drag(test, x, x, fromY, toY, stepCount); in dragViewToTop()
737 float fromY, float toY, int stepCount) { in drag() argument
738 drag((InstrumentationTestCase) test, fromX, toX, fromY, toY, stepCount); in drag() local
[all …]
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/helper/
DItemTouchHelperTest.java434 public static void dragViewToTop(InstrumentationTestCase test, View v, int stepCount) { in dragViewToTop() argument
445 drag(test, x, x, fromY, toY, stepCount); in dragViewToTop()
586 float toY, int stepCount) { in drag() argument
595 float yStep = (toY - fromY) / stepCount; in drag()
596 float xStep = (toX - fromX) / stepCount; in drag()
601 for (int i = 0; i < stepCount; ++i) { in drag()
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
DRecyclerViewLayoutTest.java1166 int stepCount) throws Throwable { in drag() argument
1173 float yStep = (toY - fromY) / stepCount; in drag()
1174 float xStep = (toX - fromX) / stepCount; in drag()
1179 for (int i = 0; i < stepCount; ++i) { in drag()
/frameworks/base/core/java/android/os/
DBatteryStats.java855 int stepCount = mNumStepDurations; in addLevelSteps() local
869 stepCount += numStepLevels; in addLevelSteps()
870 if (stepCount > steps.length) { in addLevelSteps()
871 stepCount = steps.length; in addLevelSteps()
874 mNumStepDurations = stepCount; in addLevelSteps()
/frameworks/av/services/audioflinger/
DThreads.cpp6490 size_t stepCount = buffer->frameCount; in releaseBuffer() local
6491 if (stepCount == 0) { in releaseBuffer()
6494 ALOG_ASSERT(stepCount <= mRsmpInUnrel); in releaseBuffer()
6495 mRsmpInUnrel -= stepCount; in releaseBuffer()
6496 mRsmpInFront += stepCount; in releaseBuffer()