/frameworks/base/core/java/android/util/ |
D | Spline.java | 125 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/ |
D | MeteringRectangle.java | 74 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/ |
D | PathInterpolatorBuilder.java | 26 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/libs/gsma_services/satellite_client/src/android/telephony/satellite/wrapper/ |
D | AntennaDirectionWrapper.java | 36 private float mX; field in AntennaDirectionWrapper 45 mX = x; in AntennaDirectionWrapper() 55 sb.append(mX); in toString() 72 return mX == that.mX && mY == that.mY && mZ == that.mZ; in equals() 77 return Objects.hash(mX, mY, mZ); in hashCode() 81 return mX; in getX()
|
/frameworks/base/apct-tests/perftests/core/src/android/libcore/regression/ |
D | PropertyAccessPerfTest.java | 42 private Field mX; field in PropertyAccessPerfTest 48 mX = View.class.getDeclaredField("mX"); in setUp() 63 mView.mX = 0.1f; in timeDirectFieldSet() 81 mView.mX = value; in timeDirectFieldSetAndBomXing() 106 mX.setFloat(mView, 0.1f); in timeReflectionFieldSet() 127 float mX; field in PropertyAccessPerfTest.View 129 public void mSetX(float mX) { in mSetX() argument 130 this.mX = mX; in mSetX() 146 v.mX = f; in setFloat()
|
/frameworks/base/telephony/java/android/telephony/satellite/ |
D | AntennaDirection.java | 47 private float mX; field in AntennaDirection 59 mX = x; in AntennaDirection() 77 out.writeFloat(mX); in writeToParcel() 101 sb.append(mX); in toString() 118 return mX == that.mX in equals() 125 return Objects.hash(mX, mY, mZ); in hashCode() 130 return mX; in getX() 144 mX = in.readFloat(); in readFromParcel()
|
/frameworks/base/libs/hwui/ |
D | RevealClip.h | 28 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
|
D | Interpolator.cpp | 106 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/ |
D | Curve.java | 24 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/ |
D | GestureStroke.java | 126 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/ |
D | FaceEnrollCell.java | 29 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/com/android/internal/widget/remotecompose/core/operations/ |
D | DrawTextAnchored.java | 35 float mX; field in DrawTextAnchored 55 mX = x; in DrawTextAnchored() 57 mOutX = mX; in DrawTextAnchored() 66 mOutX = (Float.isNaN(mX)) in updateVariables() 67 ? context.getFloat(Utils.idFromNan(mX)) : mX; in updateVariables() 78 if (Float.isNaN(mX)) { in registerListening() 79 context.listensTo(Utils.idFromNan(mX), this); in registerListening() 94 COMPANION.apply(buffer, mTextID, mX, in write() 103 return "DrawTextAnchored [" + mTextID + "] " + floatToStr(mX) + ", " in toString()
|
D | DrawText.java | 37 float mX = 0f; field in DrawText 54 mX = x; 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()
|
D | DrawTextRun.java | 34 float mX = 0f; field in DrawTextRun 51 mX = x; 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/input/ |
D | VirtualTouchEvent.java | 95 private final float mX; field in VirtualTouchEvent 106 mX = x; in VirtualTouchEvent() 117 mX = parcel.readFloat(); in VirtualTouchEvent() 129 dest.writeFloat(mX); in writeToParcel() 147 + " x=" + mX in toString() 179 return mX; in getX() 221 private float mX = 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() 301 mX = absX; in setX()
|
D | VirtualStylusMotionEvent.java | 90 private final int mX; field in VirtualStylusMotionEvent 101 mX = x; in VirtualStylusMotionEvent() 112 mX = parcel.readInt(); in VirtualStylusMotionEvent() 124 dest.writeInt(mX); in writeToParcel() 157 return mX; in getX() 219 private int mX = 0; field in VirtualStylusMotionEvent.Builder 253 return new VirtualStylusMotionEvent(mToolType, mAction, mX, mY, mPressure, mTiltX, in build() 292 mX = absX; in setX()
|
/frameworks/base/tests/HandwritingIme/src/com/google/android/test/handwritingime/ |
D | InkView.java | 37 private float mX, mY; field in InkView 78 mX = x; in stylusStart() 83 float dx = Math.abs(x - mX); in stylusMove() 89 mPath.quadTo(mX, mY, (x + mX) / 2, (y + mY) / 2); in stylusMove() 90 mX = x; in stylusMove() 96 mPath.lineTo(mX, mY); in stylusFinish() 99 mX = 0; in stylusFinish()
|
/frameworks/base/core/java/android/view/animation/ |
D | PathInterpolator.java | 56 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/native/services/inputflinger/tests/ |
D | FakePointerController.cpp | 42 mX = x; in setPosition() 51 return {mX, mY}; in getPosition() 160 mX += deltaX; in move() 161 if (mX < mMinX) mX = mMinX; in move() 162 if (mX > mMaxX) mX = mMaxX; in move()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/utils/ |
D | MotionEventMatcher.java | 34 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/ |
D | DrawableHolder.java | 38 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/text/method/ |
D | Touch.java | 125 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/view/ |
D | DragEvent.java | 133 float mX, mY; field in DragEvent 304 mX = x; in init() 351 return obtain(source.mAction, source.mX, source.mY, source.mOffsetX, source.mOffsetY, in obtain() 379 return mX; in getX() 560 + " action=" + mAction + " @ (" + mX + ", " + mY + ") desc=" + mClipDescription in toString() 583 dest.writeFloat(mX); in writeToParcel() 623 event.mX = in.readFloat();
|
/frameworks/base/core/java/android/hardware/ |
D | GeomagneticField.java | 37 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/graphics/HwAccelerationTest/src/com/android/test/hwui/ |
D | CirclePropActivity.java | 65 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()
|