Home
last modified time | relevance | path

Searched refs:mPosition (Results 1 – 6 of 6) sorted by relevance

/cts/tests/openglperf2/jni/reference/scene/flocking/
DBoid.cpp17 mPosition(x, y) { in Boid()
33 float dist = mPosition.distance(b->mPosition); in flock()
37 Vector2D tmp = mPosition.copy(); in flock()
38 tmp.sub(b->mPosition); in flock()
49 cohesion.add(b->mPosition); in flock()
71 desired.sub(mPosition); in flock()
84 mPosition.add(mVelocity); in flock()
86 if (mPosition.mX < -limitX) { in flock()
87 mPosition.mX = limitX; in flock()
88 } else if (mPosition.mX > limitX) { in flock()
[all …]
DBoid.h35 Vector2D mPosition; variable
DFlockingScene.cpp156 Vector2D* pos = &(b->mPosition); in updateSceneGraphs()
/cts/tests/tests/media/src/android/media/cts/
DAudioHelper.java451 mPosition = 0; in AudioRecordAudit()
464 mPosition += samples / mTrack.getChannelCount(); in read()
478 mPosition += samples / mTrack.getChannelCount(); in read()
491 mPosition += samples / mTrack.getChannelCount(); in read()
505 mPosition += samples / mTrack.getChannelCount(); in read()
519 mPosition += samples / mTrack.getChannelCount(); in read()
534 mPosition += bytes / in read()
551 mPosition += bytes / in read()
570 if (mPosition > 0) { // stop may be called multiple times. in stop()
571 final int remainingFrames = mPosition - mTrack.getPlaybackHeadPosition(); in stop()
[all …]
/cts/tests/tests/widget/src/android/widget/cts/
DMediaControllerTest.java244 private int mPosition = 0; field in MediaControllerTest.MockMediaPlayerControl
259 return mPosition; in getCurrentPosition()
263 mPosition = pos; in seekTo()
/cts/tests/tests/graphics/src/android/graphics/cts/
DImageDecoderTest.java897 int mPosition; field in ExceptionStream
902 mPosition = 0; in ExceptionStream()
907 if (mPosition >= mExceptionPosition) { in read()
912 mPosition++; in read()
918 if (mPosition + len <= mExceptionPosition) { in read()
920 mPosition += bytesRead; in read()
924 len = mExceptionPosition - mPosition; in read()
925 mPosition += mInputStream.read(b, off, len); in read()