Home
last modified time | relevance | path

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

123

/frameworks/base/core/java/android/hardware/camera2/params/
DMeteringRectangle.java75 private final int mY; field in MeteringRectangle
93 mY = checkArgumentNonnegative(y, "y must be nonnegative"); in MeteringRectangle()
117 mY = checkArgumentNonnegative(xy.y, "y must be nonnegative"); in MeteringRectangle()
138 mY = checkArgumentNonnegative(rect.top, "rect.top must be nonnegative"); in MeteringRectangle()
159 return mY; in getY()
195 return new Point(mX, mY); in getUpperLeftPoint()
217 return new Rect(mX, mY, mX + mWidth, mY + mHeight); in getRect()
244 && mY == other.mY in equals()
255 return HashCodeHelpers.hashCode(mX, mY, mWidth, mHeight, mWeight); in hashCode()
267 return String.format("(x:%d, y:%d, w:%d, h:%d, wt:%d)", mX, mY, mWidth, mHeight, mWeight); in toString()
/frameworks/base/core/java/com/android/internal/widget/remotecompose/core/operations/utilities/easing/
DMonotonicCurveFit.java28 private double[][] mY; field in MonotonicCurveFit
75 mY = y; in MonotonicCurveFit()
86 final int dim = mY[0].length; in getPos()
91 v[j] = mY[0][j] + (t - mT[0]) * mSlopeTemp[j]; in getPos()
98 v[j] = mY[n - 1][j] + (t - mT[n - 1]) * mSlopeTemp[j]; in getPos()
105 v[j] = mY[0][j]; in getPos()
111 v[j] = mY[n - 1][j]; in getPos()
120 v[j] = mY[i][j]; in getPos()
127 double y1 = mY[i][j]; in getPos()
128 double y2 = mY[i + 1][j]; in getPos()
[all …]
/frameworks/base/core/java/android/util/
DSpline.java126 private float[] mY; field in Spline.MonotoneCubicSpline
178 mY = y; in MonotoneCubicSpline()
190 return mY[0]; in interpolate()
193 return mY[n - 1]; in interpolate()
202 return mY[i]; in interpolate()
209 return (mY[i] * (1 + 2 * t) + h * mM[i] * t) * (1 - t) * (1 - t) in interpolate()
210 + (mY[i + 1] * (3 - 2 * t) + h * mM[i + 1] * (t - 1)) * t * t; in interpolate()
224 str.append(", ").append(mY[i]); in toString()
234 private final float[] mY; field in Spline.LinearSpline
248 mY = y; in LinearSpline()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DPathInterpolatorBuilder.java27 private float[] mY; // y coordinates in the line field in PathInterpolatorBuilder
68 mY = new float[numPoints]; in initPath()
85 mY[i] = y; in initPath()
88 float dy = mY[i] - mY[i - 1]; in initPath()
107 return new PathInterpolator(mDist, mY); in getYInterpolator()
112 private final float[] mY; // y coordinates in the line field in PathInterpolatorBuilder.PathInterpolator
116 mY = ys; in PathInterpolator()
141 return mY[startIndex]; in getInterpolation()
147 float startY = mY[startIndex]; in getInterpolation()
148 float endY = mY[endIndex]; in getInterpolation()
/frameworks/libs/gsma_services/satellite_client/src/android/telephony/satellite/wrapper/
DAntennaDirectionWrapper.java39 private float mY; field in AntennaDirectionWrapper
46 mY = y; in AntennaDirectionWrapper()
59 sb.append(mY); in toString()
72 return mX == that.mX && mY == that.mY && mZ == that.mZ; in equals()
77 return Objects.hash(mX, mY, mZ); in hashCode()
85 return mY; in getY()
/frameworks/base/telephony/java/android/telephony/satellite/
DAntennaDirection.java50 private float mY; field in AntennaDirection
60 mY = y; in AntennaDirection()
78 out.writeFloat(mY); in writeToParcel()
105 sb.append(mY); in toString()
119 && mY == that.mY in equals()
125 return Objects.hash(mX, mY, mZ); in hashCode()
135 return mY; in getY()
145 mY = in.readFloat(); in readFromParcel()
/frameworks/base/libs/hwui/
DRevealClip.h28 RevealClip() : mShouldClip(false), mX(0), mY(0), mRadius(0) {} in RevealClip()
33 mY = y; in set()
45 outBounds->set(mX - mRadius, mY - mRadius, mX + mRadius, mY + mRadius); in getBounds()
50 float getY() const { return mY; } in getY()
61 float mY; variable
/frameworks/base/core/java/android/gesture/
DGestureStroke.java127 float mY = 0; in makePath() local
136 mY = y; in makePath()
139 float dy = Math.abs(y - mY); in makePath()
141 path.quadTo(mX, mY, (x + mX) / 2, (y + mY) / 2); in makePath()
143 mY = y; in makePath()
172 float mY = 0; in toPath() local
185 mY = y; in toPath()
188 float dy = Math.abs(y - mY); in toPath()
190 path.quadTo(mX, mY, (x + mX) / 2, (y + mY) / 2); in toPath()
192 mY = y; in toPath()
/frameworks/base/core/java/android/hardware/face/
DFaceEnrollCell.java30 private final int mY; field in FaceEnrollCell
42 mY = y; in FaceEnrollCell()
57 return mY; in getY()
69 mY = source.readInt(); in FaceEnrollCell()
81 dest.writeInt(mY); in writeToParcel()
/frameworks/base/core/java/com/android/internal/widget/remotecompose/core/operations/
DDrawTextAnchored.java36 float mY; field in DrawTextAnchored
56 mY = y; in DrawTextAnchored()
58 mOutY = mY; in DrawTextAnchored()
68 mOutY = (Float.isNaN(mY)) in updateVariables()
69 ? context.getFloat(Utils.idFromNan(mY)) : mY; in updateVariables()
81 if (Float.isNaN(mY)) { in registerListening()
82 context.listensTo(Utils.idFromNan(mY), this); in registerListening()
95 mY, in write()
104 + floatToStr(mY) + ", " in toString()
DDrawText.java38 float mY = 0f; field in DrawText
55 mY = y; in DrawText()
61 COMPANION.apply(buffer, mTextID, mStart, mEnd, mContextStart, mContextEnd, mX, mY, mRtl); in write()
67 return "DrawTextRun [" + mTextID + "] " + mStart + ", " + mEnd + ", " + mX + ", " + mY; in toString()
134 context.drawTextRun(mTextID, mStart, mEnd, mContextStart, mContextEnd, mX, mY, mRtl); in paint()
DDrawTextRun.java35 float mY = 0f; field in DrawTextRun
52 mY = y; in DrawTextRun()
58 COMPANION.apply(buffer, mTextID, mStart, mEnd, mContextStart, mContextEnd, mX, mY, mRtl); in write()
119 context.drawTextRun(mTextID, mStart, mEnd, mContextStart, mContextEnd, mX, mY, mRtl); in paint()
/frameworks/base/core/java/android/hardware/display/
DCurve.java25 private final float[] mY; field in Curve
29 mY = y; in Curve()
37 return mY; in getY()
55 out.writeFloatArray(mY); in writeToParcel()
71 sb.append("(").append(mX[i]).append(", ").append(mY[i]).append(")"); in toString()
/frameworks/base/core/java/android/hardware/input/
DVirtualTouchEvent.java96 private final float mY; field in VirtualTouchEvent
107 mY = y; in VirtualTouchEvent()
118 mY = parcel.readFloat(); in VirtualTouchEvent()
130 dest.writeFloat(mY); in writeToParcel()
148 + " y=" + mY in toString()
186 return mY; in getY()
222 private float mY = Float.NaN; field in VirtualTouchEvent.Builder
236 || mAction == ACTION_UNKNOWN || Float.isNaN(mX) || Float.isNaN(mY)) { in build()
245 return new VirtualTouchEvent(mPointerId, mToolType, mAction, mX, mY, mPressure, in build()
311 mY = absY; in setY()
DVirtualStylusMotionEvent.java91 private final int mY; field in VirtualStylusMotionEvent
102 mY = y; in VirtualStylusMotionEvent()
113 mY = parcel.readInt(); in VirtualStylusMotionEvent()
125 dest.writeInt(mY); in writeToParcel()
164 return mY; in getY()
220 private int mY = 0; field in VirtualStylusMotionEvent.Builder
253 return new VirtualStylusMotionEvent(mToolType, mAction, mX, mY, mPressure, mTiltX, in build()
304 mY = absY; in setY()
/frameworks/base/tests/HandwritingIme/src/com/google/android/test/handwritingime/
DInkView.java37 private float mX, mY; field in InkView
79 mY = y; in stylusStart()
84 float dy = Math.abs(y - mY); in stylusMove()
89 mPath.quadTo(mX, mY, (x + mX) / 2, (y + mY) / 2); in stylusMove()
91 mY = y; in stylusMove()
96 mPath.lineTo(mX, mY); in stylusFinish()
100 mY = 0; in stylusFinish()
/frameworks/native/services/inputflinger/tests/
DFakePointerController.cpp43 mY = y; in setPosition()
51 return {mX, mY}; in getPosition()
163 mY += deltaY; in move()
164 if (mY < mMinY) mY = mMinY; in move()
165 if (mY > mMaxY) mY = mMaxY; in move()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/utils/
DMotionEventMatcher.java35 int mY; field in MotionEventMatcher
42 mY = y; in MotionEventMatcher()
65 && ((int) event.getY() == mY)) { in matchesSafely()
80 Log.e(LOG_TAG, "event.getY() = " + event.getY() + ", expected " + mY); in matchesSafely()
/frameworks/base/core/java/android/view/animation/
DPathInterpolator.java58 private float[] mY; // y coordinates in the line field in PathInterpolator
174 mY = new float[numPoints]; in initPath()
190 mY[i] = y; in initPath()
228 return mY[startIndex]; in getInterpolation()
234 float startY = mY[startIndex]; in getInterpolation()
235 float endY = mY[endIndex]; in getInterpolation()
242 return NativeInterpolatorFactory.createPathInterpolator(mX, mY); in createNativeInterpolator()
/frameworks/base/core/java/com/android/internal/widget/
DDrawableHolder.java39 private float mY = 0.0f; field in DrawableHolder
54 mY = y; in DrawableHolder()
132 canvas.translate(mX, mY); in draw()
163 mY = value; in setY()
183 return mY; in getY()
/frameworks/base/core/java/android/text/method/
DTouch.java126 Math.abs(event.getY() - ds[0].mY) >= slop) { in onTouchEvent()
145 dy = event.getY() - ds[0].mY; in onTouchEvent()
148 dy = ds[0].mY - event.getY(); in onTouchEvent()
151 ds[0].mY = event.getY(); in onTouchEvent()
200 public float mY; field in Touch.DragState
208 mY = y; in DragState()
/frameworks/base/core/java/android/hardware/
DGeomagneticField.java38 private float mY; field in GeomagneticField
240 mY = gcY; in GeomagneticField()
256 return mY; in getY()
272 return (float) Math.toDegrees(Math.atan2(mY, mX)); in getDeclination()
288 return (float) Math.hypot(mX, mY); in getHorizontalStrength()
295 return (float) Math.sqrt(mX * mX + mY * mY + mZ * mZ); in getFieldStrength()
/frameworks/base/core/java/android/view/
DDragEvent.java133 float mX, mY; field in DragEvent
305 mY = y; in init()
351 return obtain(source.mAction, source.mX, source.mY, source.mOffsetX, source.mOffsetY, in obtain()
388 return mY; in getY()
560 + " action=" + mAction + " @ (" + mX + ", " + mY + ") desc=" + mClipDescription in toString()
584 dest.writeFloat(mY); in writeToParcel()
624 event.mY = in.readFloat();
/frameworks/base/tests/graphics/HwAccelerationTest/src/com/android/test/hwui/
DCirclePropActivity.java66 CanvasProperty<Float> mY; field in CirclePropActivity.CircleView
75 mY = CanvasProperty.createFloat(200.0f); in CircleView()
92 recordingCanvas.drawCircle(mX, mY, mRadius, mPaint); in onDraw()
109 mY, mToggle ? 600.0f : 200.0f)); in performClick()
DRippleActivity.java58 CanvasProperty<Float> mY; field in RippleActivity.RippleView
102 mY = CanvasProperty.createFloat(200.0f); in RippleView()
122 recordingCanvas.drawRipple(mX, mY, mRadius, mPaint, mProgress, mNoisePhase, in onDraw()
140 mY, mToggle ? 600.0f : 200.0f)); in performClick()

123