Home
last modified time | relevance | path

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

/cts/libs/view/src/com/android/view/
DPosition.java24 private final float mY; field in Position
28 mY = y; in Position()
36 return mY; in getY()
43 return (mX * other.mX) + (mY * other.mY); in dotProduct()
50 return Math.sqrt(Math.pow((mX - other.mX), 2) + Math.pow((mY - other.mY), 2)); in distanceTo()
64 double originToThisAngle = Math.atan2(origin.mY - mY, mX - origin.mX); in arcAngleTo()
65 double originToOtherAngle = Math.atan2(origin.mY - other.mY, other.mX - origin.mX); in arcAngleTo()
84 return Math.atan2(other.mY - mY, other.mX - mX); in angleTo()
98 return (Float.compare(other.mX, mX) == 0) && (Float.compare(other.mY, mY) == 0); in equals()
105 result = 31 * result + Float.floatToIntBits(mY); in hashCode()
/cts/tests/openglperf2/jni/graphics/
DVector2D.cpp19 mX(0), mY(0) { in Vector2D()
23 mX(x), mY(y) { in Vector2D()
27 Vector2D v(mX, mY); in copy()
33 mY += v.mY; in add()
38 mY -= v.mY; in sub()
43 mY *= s; in scale()
48 float dy = mY - v.mY; in distance()
67 return (float) sqrt(mX * mX + mY * mY); in magnitude()
DVector2D.h31 float mY; variable
/cts/apps/CtsVerifier/include/colorchecker/
Dvec2.h28 mY = inputY; in Vec2()
34 Vec2<T> temp(mX + param.x(), mY + param.y());
39 Vec2<T> temp(mX - param.x(), mY - param.y());
46 static_cast<float>(mY) / static_cast<float>(param));
54 (static_cast<float>(mY) - static_cast<float>(param.y())) * in squareDistance()
55 (static_cast<float>(mY) - static_cast<float>(param.y())); in squareDistance()
60 inline T y() const { return mY; } in y()
64 mY = inputY; in set()
69 T mY; variable
/cts/tests/openglperf2/jni/reference/scene/flocking/
DBoid.cpp23 mAcceleration.mY = 0; in flock()
91 if (mPosition.mY < -limitY) { in flock()
92 mPosition.mY = limitY; in flock()
93 } else if (mPosition.mY > limitY) { in flock()
94 mPosition.mY = -limitY; in flock()
DFlockingScene.cpp161 float y = pos->mY / (LIMIT_Y * BOID_SCALE); in updateSceneGraphs()
166 transformMatrix->rotate(atan2(vel->mY, vel->mX) + M_PI, 0, 0, 1); in updateSceneGraphs()
/cts/tests/tests/animation/src/android/animation/cts/
DShapeHolder.java29 private float mX = 0, mY = 0; field in ShapeHolder
53 mY = value; in setY()
57 return mY; in getY()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DCtsMouseUtil.java86 private final int mY; field in CtsMouseUtil.PositionMatcher
91 mY = y; in PositionMatcher()
98 && ((int) actual.getY()) == mY; in matches()
103 return super.toString() + "@(" + mX + "," + mY + ")"; in toString()
/cts/tests/video/src/android/video/cts/
DVideoEncoderDecoderTest.java1193 + expected.mY + "," + expected.mU + "," + expected.mV in runDecoder()
1195 + decoded.mY + "," + decoded.mU + "," + decoded.mV); in runDecoder()
1211 + expected.mY + "," + expected.mU + "," + expected.mV in runDecoder()
1213 + decoded.mY + "," + decoded.mU + "," + decoded.mV); in runDecoder()
1345 public byte mY; field in VideoEncoderDecoderTest.YUVValue
1352 return (mY == other.mY) && (mU == other.mU) && (mV == other.mV); in equalTo()
1357 double yDelta = (mY & 0xFF) - (other.mY & 0xFF); in calcErrorSquared()
1372 result.mY = mYBuffer.get((originY + y) * mBufferWidth + (originX + x)); in getPixelValuesFromYUVBuffers()
1393 result.mY = buffer.get(y * mVideoStride + x); in getPixelValuesFromOutputBuffer()
1413 result.mY = getPixelFromPlane(planes[0], x, y); in getPixelValuesFromImage()