Home
last modified time | relevance | path

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

/frameworks/av/media/libaudioclient/
DAudioTrackShared.cpp381 size_t stepCount = buffer->mFrameCount; in releaseBuffer() local
382 if (stepCount == 0 || mIsShutdown) { in releaseBuffer()
389 LOG_ALWAYS_FATAL_IF(!(stepCount <= mUnreleased && mUnreleased <= mFrameCount), in releaseBuffer()
392 __func__, stepCount, mUnreleased, mFrameCount, getBufferSizeInFrames()); in releaseBuffer()
393 mUnreleased -= stepCount; in releaseBuffer()
398 android_atomic_release_store(stepCount + rear, &cblk->u.mStreaming.mRear); in releaseBuffer()
401 android_atomic_release_store(stepCount + front, &cblk->u.mStreaming.mFront); in releaseBuffer()
902 size_t stepCount = buffer->mFrameCount; in releaseBuffer() local
903 if (stepCount == 0 || mIsShutdown) { in releaseBuffer()
910 LOG_ALWAYS_FATAL_IF(!(stepCount <= mUnreleased && mUnreleased <= mFrameCount), in releaseBuffer()
[all …]
DAudioRecord.cpp1163 size_t stepCount = audioBuffer->frameCount; in releaseBuffer() local
1164 if (stepCount == 0) { in releaseBuffer()
1169 buffer.mFrameCount = stepCount; in releaseBuffer()
DAudioTrack.cpp2258 size_t stepCount = audioBuffer->mSize / mFrameSize; in releaseBuffer() local
2259 if (stepCount == 0) { in releaseBuffer()
2264 buffer.mFrameCount = stepCount; in releaseBuffer()
2276 mReleased += stepCount; in releaseBuffer()
/frameworks/base/services/core/java/com/android/server/vibrator/
DRampToStepAdapter.java81 int stepCount = (int) (ramp.getDuration() + mStepDuration - 1) / mStepDuration; in convertRampToSteps() local
82 for (int i = 0; i < stepCount - 1; i++) { in convertRampToSteps()
83 float pos = (float) i / stepCount; in convertRampToSteps()
92 int duration = (int) ramp.getDuration() - mStepDuration * (stepCount - 1); in convertRampToSteps()
DRampDownAdapter.java196 int stepCount = (int) Math.min(duration, mRampDownDuration) / mStepDuration; in createStepsDown() local
197 float amplitudeStep = amplitude / stepCount; in createStepsDown()
199 for (int i = 1; i < stepCount; i++) { in createStepsDown()
202 int remainingDuration = (int) duration - mStepDuration * (stepCount - 1); in createStepsDown()
/frameworks/base/test-runner/src/android/test/
DTouchUtils.java227 int stepCount) { in dragViewToBottom() argument
228 dragViewToBottom(test, test.getActivity(), v, stepCount); in dragViewToBottom()
240 int stepCount) { in dragViewToBottom() argument
255 drag(test, x, x, fromY, toY, stepCount); in dragViewToBottom()
466 public static void dragViewToTop(ActivityInstrumentationTestCase test, View v, int stepCount) { in dragViewToTop() argument
467 dragViewToTop((InstrumentationTestCase) test, v, stepCount); in dragViewToTop() local
487 public static void dragViewToTop(InstrumentationTestCase test, View v, int stepCount) { in dragViewToTop() argument
498 drag(test, x, x, fromY, toY, stepCount); in dragViewToTop()
761 float fromY, float toY, int stepCount) { in drag() argument
762 drag((InstrumentationTestCase) test, fromX, toX, fromY, toY, stepCount); in drag() local
[all …]
/frameworks/base/services/tests/vibrator/src/com/android/server/vibrator/
DVibrationThreadTest.java1368 int stepCount = totalDuration / stepDuration; in vibrate_withWaveform_totalVibrationTimeRespected() local
1369 long[] timings = new long[stepCount]; in vibrate_withWaveform_totalVibrationTimeRespected()
1370 int[] amplitudes = new int[stepCount]; in vibrate_withWaveform_totalVibrationTimeRespected()
/frameworks/base/core/java/android/os/
DBatteryStats.java1596 int stepCount = mNumStepDurations; in addLevelSteps() local
1610 stepCount += numStepLevels; in addLevelSteps()
1611 if (stepCount > steps.length) { in addLevelSteps()
1612 stepCount = steps.length; in addLevelSteps()
1615 mNumStepDurations = stepCount; in addLevelSteps()
8143 final int stepCount = getCpuScalingPolicies().getScalingStepCount(); in dumpProtoAppsLocked() local
8144 final long[] timesInFreqMs = new long[stepCount]; in dumpProtoAppsLocked()
8145 final long[] timesInFreqScreenOffMs = new long[stepCount]; in dumpProtoAppsLocked()
/frameworks/av/services/audioflinger/
DThreads.cpp9571 int32_t stepCount = static_cast<int32_t>(buffer->frameCount); in releaseBuffer() local
9572 if (stepCount == 0) { in releaseBuffer()
9575 ALOG_ASSERT(stepCount <= (int32_t)mRsmpInUnrel); in releaseBuffer()
9576 mRsmpInUnrel -= stepCount; in releaseBuffer()
9577 mRsmpInFront = audio_utils::safe_add_overflow(mRsmpInFront, stepCount); in releaseBuffer()