Home
last modified time | relevance | path

Searched refs:mX (Results 1 – 25 of 55) sorted by relevance

123

/frameworks/base/core/java/android/util/
DSpline.java125 private float[] mX; field in Spline.MonotoneCubicSpline
177 mX = x; in MonotoneCubicSpline()
185 final int n = mX.length; in interpolate()
189 if (x <= mX[0]) { in interpolate()
192 if (x >= mX[n - 1]) { in interpolate()
199 while (x >= mX[i + 1]) { in interpolate()
201 if (x == mX[i]) { in interpolate()
207 float h = mX[i + 1] - mX[i]; in interpolate()
208 float t = (x - mX[i]) / h; in interpolate()
217 final int n = mX.length; in toString()
[all …]
/frameworks/base/core/java/android/hardware/camera2/params/
DMeteringRectangle.java74 private final int mX; field in MeteringRectangle
92 mX = checkArgumentNonnegative(x, "x must be nonnegative"); in MeteringRectangle()
116 mX = checkArgumentNonnegative(xy.x, "x must be nonnegative"); in MeteringRectangle()
137 mX = checkArgumentNonnegative(rect.left, "rect.left must be nonnegative"); in MeteringRectangle()
150 return mX; in getX()
195 return new Point(mX, mY); in getUpperLeftPoint()
217 return new Rect(mX, mY, mX + mWidth, mY + mHeight); in getRect()
243 return (mX == other.mX 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/packages/SystemUI/src/com/android/systemui/qs/
DPathInterpolatorBuilder.java26 private float[] mX; // x coordinates in the line field in PathInterpolatorBuilder
67 mX = new float[numPoints]; in initPath()
84 mX[i] = x; in initPath()
87 float dx = mX[i] - mX[i - 1]; in initPath()
103 return new PathInterpolator(mDist, mX); in getXInterpolator()
111 private final float[] mX; // x coordinates in the line field in PathInterpolatorBuilder.PathInterpolator
115 mX = xs; in PathInterpolator()
128 int endIndex = mX.length - 1; in getInterpolation()
132 if (t < mX[midIndex]) { in getInterpolation()
139 float xRange = mX[endIndex] - mX[startIndex]; in getInterpolation()
[all …]
/frameworks/base/libs/hwui/
DRevealClip.h28 RevealClip() : mShouldClip(false), mX(0), mY(0), mRadius(0) {} in RevealClip()
32 mX = x; in set()
45 outBounds->set(mX - mRadius, mY - mRadius, mX + mRadius, mY + mRadius); in getBounds()
49 float getX() const { return mX; } in getX()
60 float mX; variable
DInterpolator.cpp106 size_t endIndex = mX.size() - 1; in interpolate()
110 if (t < mX[midIndex]) { in interpolate()
117 float xRange = mX[endIndex] - mX[startIndex]; in interpolate()
122 float tInRange = t - mX[startIndex]; in interpolate()
/frameworks/base/core/java/android/hardware/display/
DCurve.java24 private final float[] mX; field in Curve
28 mX = x; in Curve()
33 return mX; in getX()
54 out.writeFloatArray(mX); in writeToParcel()
66 final int size = mX.length; in toString()
71 sb.append("(").append(mX[i]).append(", ").append(mY[i]).append(")"); in toString()
/frameworks/base/core/java/android/gesture/
DGestureStroke.java126 float mX = 0; in makePath() local
135 mX = x; in makePath()
138 float dx = Math.abs(x - mX); in makePath()
141 path.quadTo(mX, mY, (x + mX) / 2, (y + mY) / 2); in makePath()
142 mX = x; in makePath()
171 float mX = 0; in toPath() local
184 mX = x; in toPath()
187 float dx = Math.abs(x - mX); in toPath()
190 path.quadTo(mX, mY, (x + mX) / 2, (y + mY) / 2); in toPath()
191 mX = x; in toPath()
/frameworks/base/core/java/android/hardware/face/
DFaceEnrollCell.java29 private final int mX; field in FaceEnrollCell
41 mX = x; in FaceEnrollCell()
50 return mX; in getX()
68 mX = source.readInt(); in FaceEnrollCell()
80 dest.writeInt(mX); in writeToParcel()
/frameworks/base/core/java/android/hardware/input/
DVirtualTouchEvent.java83 private final float mX; field in VirtualTouchEvent
93 mX = x; in VirtualTouchEvent()
103 mX = parcel.readFloat(); in VirtualTouchEvent()
114 dest.writeFloat(mX); in writeToParcel()
150 return mX; in getX()
182 private float mX = Float.NaN; field in VirtualTouchEvent.Builder
192 || mAction == ACTION_UNKNOWN || Float.isNaN(mX) || Float.isNaN(mY)) { in build()
201 return new VirtualTouchEvent(mPointerId, mToolType, mAction, mX, mY, mPressure, in build()
248 mX = absX; in setX()
/frameworks/base/tests/HandwritingIme/src/com/google/android/test/handwritingime/
DInkView.java39 private float mX, mY; field in InkView
81 mX = x; in stylusStart()
87 float dx = Math.abs(x - mX); in stylusMove()
93 mPath.quadTo(mX, mY, (x + mX) / 2, (y + mY) / 2); in stylusMove()
94 mX = x; in stylusMove()
100 mPath.lineTo(mX, mY); in stylusFinish()
103 mX = 0; in stylusFinish()
/frameworks/base/core/java/android/view/animation/
DPathInterpolator.java56 private float[] mX; // x coordinates in the line field in PathInterpolator
173 mX = new float[numPoints]; in initPath()
189 mX[i] = x; in initPath()
215 int endIndex = mX.length - 1; in getInterpolation()
219 if (t < mX[midIndex]) { in getInterpolation()
226 float xRange = mX[endIndex] - mX[startIndex]; in getInterpolation()
231 float tInRange = t - mX[startIndex]; in getInterpolation()
242 return NativeInterpolatorFactory.createPathInterpolator(mX, mY); in createNativeInterpolator()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/utils/
DMotionEventMatcher.java34 int mX; field in MotionEventMatcher
41 mX = x; in MotionEventMatcher()
64 && ((int) event.getX() == mX) in matchesSafely()
79 Log.e(LOG_TAG, "event.getX() = " + event.getX() + ", expected " + mX); in matchesSafely()
/frameworks/base/core/java/com/android/internal/widget/
DDrawableHolder.java38 private float mX = 0.0f; field in DrawableHolder
53 mX = x; in DrawableHolder()
132 canvas.translate(mX, mY); in draw()
159 mX = value; in setX()
179 return mX; in getX()
/frameworks/base/core/java/android/view/
DDragEvent.java133 float mX, mY; field in DragEvent
297 mX = x; in init()
343 return obtain(source.mAction, source.mX, source.mY, source.mOffsetX, source.mOffsetY, in obtain()
371 return mX; in getX()
547 + " action=" + mAction + " @ (" + mX + ", " + mY + ") desc=" + mClipDescription in toString()
570 dest.writeFloat(mX); in writeToParcel()
609 event.mX = in.readFloat();
/frameworks/base/core/java/android/text/method/
DTouch.java125 if (Math.abs(event.getX() - ds[0].mX) >= slop || in onTouchEvent()
144 dx = event.getX() - ds[0].mX; in onTouchEvent()
147 dx = ds[0].mX - event.getX(); in onTouchEvent()
150 ds[0].mX = event.getX(); in onTouchEvent()
199 public float mX; field in Touch.DragState
207 mX = x; in DragState()
/frameworks/base/core/java/android/hardware/
DGeomagneticField.java37 private float mX; field in GeomagneticField
238 mX = (float) (gcX * Math.cos(latDiffRad) in GeomagneticField()
249 return mX; in getX()
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/tests/HwAccelerationTest/src/com/android/test/hwui/
DCirclePropActivity.java65 CanvasProperty<Float> mX; field in CirclePropActivity.CircleView
74 mX = CanvasProperty.createFloat(200.0f); in CircleView()
92 recordingCanvas.drawCircle(mX, mY, mRadius, mPaint); in onDraw()
106 mX, mToggle ? 400.0f : 200.0f)); in performClick()
DRippleActivity.java57 CanvasProperty<Float> mX; field in RippleActivity.RippleView
101 mX = CanvasProperty.createFloat(200.0f); in RippleView()
122 recordingCanvas.drawRipple(mX, mY, mRadius, mPaint, mProgress, mNoisePhase, in onDraw()
137 mX, mToggle ? 400.0f : 200.0f)); in performClick()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/customize/
DQSCustomizer.java62 private int mX; field in QSCustomizer
124 mX = x - containerLocation[0]; in show()
130 mX, mY, true, new ExpandAnimatorListener(tileAdapter)); in show()
160 duration = mClipper.animateCircularClip(mX, mY, false, mCollapseAnimationListener); in hide()
186 mX = x - containerLocation[0]; in setEditLocation()
/frameworks/av/media/libaaudio/src/flowgraph/resampler/
DPolyphaseResamplerMono.cpp34 float *dest = &mX[mCursor * MONO]; in writeFrame()
49 float *xFrame = &mX[mCursor * MONO]; in readFrame()
DPolyphaseResamplerStereo.cpp34 float *dest = &mX[mCursor * STEREO]; in writeFrame()
53 float *xFrame = &mX[mCursor * STEREO]; in readFrame()
DSincResamplerStereo.cpp36 float *dest = &mX[mCursor * STEREO]; in writeFrame()
65 float *xFrame = &mX[static_cast<size_t>(mCursor) * static_cast<size_t>(getChannelCount())]; in readFrame()
/frameworks/base/core/java/android/accessibilityservice/
DGestureDescription.java157 touchPoints[numPointsFound].mX = Math.round(mTempPos[0]); in getPointsForTime()
436 public float mX; field in GestureDescription.TouchPoint
452 mX = parcel.readFloat(); in TouchPoint()
461 mX = other.mX; in copyFrom()
472 + ", mX=" + mX in toString()
489 dest.writeFloat(mX); in writeToParcel()
/frameworks/base/tests/UiBench/src/com/android/test/uibench/
DRenderingJitter.java282 private float mX; field in RenderingJitter.AnimatedBackgroundDrawable
298 mX += (mReverseX ? -mMoveStep : mMoveStep); in draw()
301 canvas.drawCircle(mX, mY, mRadius, mPaint); in draw()
307 if (mX <= mRadius) { in clampXY()
309 mX = mRadius; in clampXY()
316 if (mX >= maxX) { in clampXY()
318 mX = maxX; in clampXY()
/frameworks/native/opengl/tests/testLatency/src/com/android/testlatency/
DTestLatencyView.java49 private float mX; field in TestLatencyView
72 mDX = x - mX; in onTouchEvent()
73 mX = x; in onTouchEvent()
102 x = mX; in onDrawFrame()

123