Home
last modified time | relevance | path

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

12

/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/packages/SystemUI/src/com/android/systemui/recents/misc/
DFreePathInterpolator.java43 private float[] mX; field in FreePathInterpolator
61 mX = new float[numPoints]; in initPath()
79 mX[i] = x; in initPath()
100 int endIndex = mX.length - 1; in getInterpolation()
112 if (t < mX[midIndex]) { in getInterpolation()
119 float xRange = mX[endIndex] - mX[startIndex]; in getInterpolation()
124 float tInRange = t - mX[startIndex]; in getInterpolation()
143 return mX[endIndex]; in getX()
145 return mX[startIndex]; in getX()
160 return mX[startIndex]; in getX()
[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/support/graphics/drawable/animated/src/android/support/graphics/drawable/
DPathInterpolatorCompat.java62 private float[] mX; // x coordinates in the line field in PathInterpolatorCompat
145 mX = new float[numPoints]; in initPath()
153 mX[i] = position[0]; in initPath()
157 if (abs(mX[0]) > EPSILON || abs(mY[0]) > EPSILON || abs(mX[numPoints - 1] - 1) > EPSILON in initPath()
160 + " start: " + mX[0] + "," + mY[0] + " end:" + mX[numPoints - 1] + "," in initPath()
168 float x = mX[componentIndex++]; in initPath()
172 mX[i] = x; in initPath()
201 int endIndex = mX.length - 1; in getInterpolation()
205 if (t < mX[midIndex]) { in getInterpolation()
212 float xRange = mX[endIndex] - mX[startIndex]; in getInterpolation()
[all …]
/frameworks/support/compat/java/android/support/v4/view/animation/
DPathInterpolatorApi14.java33 private final float[] mX; field in PathInterpolatorApi14
42 mX = new float[numPoints]; in PathInterpolatorApi14()
50 mX[i] = position[0]; in PathInterpolatorApi14()
74 int endIndex = mX.length - 1; in getInterpolation()
77 if (t < mX[midIndex]) { in getInterpolation()
84 final float xRange = mX[endIndex] - mX[startIndex]; in getInterpolation()
89 final float tInRange = t - mX[startIndex]; in getInterpolation()
/frameworks/base/libs/hwui/
DRevealClip.h30 , mX(0) in RevealClip()
36 mX = x; in set()
51 outBounds->set(mX - mRadius, mY - mRadius, in getBounds()
52 mX + mRadius, mY + mRadius); in getBounds()
56 float getX() const { return mX; } in getX()
67 float mX; variable
DInterpolator.cpp100 size_t endIndex = mX.size() - 1; in interpolate()
104 if (t < mX[midIndex]) { in interpolate()
111 float xRange = mX[endIndex] - mX[startIndex]; in interpolate()
116 float tInRange = t - mX[startIndex]; in interpolate()
/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/graphics/java/android/graphics/
DRadialGradient.java34 private float mX; field in RadialGradient
70 mX = centerX; in RadialGradient()
94 mX = centerX; in RadialGradient()
105 return nativeCreate1(nativeMatrix, mX, mY, mRadius, in createNativeInstance()
108 return nativeCreate2(nativeMatrix, mX, mY, mRadius, in createNativeInstance()
120 copy = new RadialGradient(mX, mY, mRadius, mColors.clone(), in copy()
123 copy = new RadialGradient(mX, mY, mRadius, mCenterColor, mEdgeColor, mTileMode); in copy()
/frameworks/av/media/libmedia/include/media/
DLinearMap.h143 mX(new T[size]), in LinearMap()
147 delete[] mX; in ~LinearMap()
170 mStepValid = checkedDiff(&xdiff, x, mX[mPos], "x") in push()
179 const int32_t xdiff2 = x - mX[prev]; in push()
189 mX[mPos] = x; in push()
207 mX[mPos] = x; in push()
227 return findU(y, mX, mY, method, extrapolation, startValue);
234 return findU(x, mY, mX, method, extrapolation, startValue);
360 T * const mX; // History of X values as a circular array. variable
/frameworks/av/include/media/
DLinearMap.h143 mX(new T[size]), in LinearMap()
147 delete[] mX; in ~LinearMap()
170 mStepValid = checkedDiff(&xdiff, x, mX[mPos], "x") in push()
179 const int32_t xdiff2 = x - mX[prev]; in push()
189 mX[mPos] = x; in push()
207 mX[mPos] = x; in push()
227 return findU(y, mX, mY, method, extrapolation, startValue);
234 return findU(x, mY, mX, method, extrapolation, startValue);
360 T * const mX; // History of X values as a circular array. variable
/frameworks/base/core/java/android/view/animation/
DPathInterpolator.java54 private float[] mX; // x coordinates in the line field in PathInterpolator
171 mX = new float[numPoints]; in initPath()
187 mX[i] = x; in initPath()
213 int endIndex = mX.length - 1; in getInterpolation()
217 if (t < mX[midIndex]) { in getInterpolation()
224 float xRange = mX[endIndex] - mX[startIndex]; in getInterpolation()
229 float tInRange = t - mX[startIndex]; in getInterpolation()
240 return NativeInterpolatorFactoryHelper.createPathInterpolator(mX, mY); in createNativeInterpolator()
/frameworks/base/core/java/android/view/
DDragEvent.java130 float mX, mY; field in DragEvent
276 mX = x; in init()
316 return obtain(source.mAction, source.mX, source.mY, source.mLocalState, in obtain()
344 return mX; in getX()
477 + " action=" + mAction + " @ (" + mX + ", " + mY + ") desc=" + mClipDescription in toString()
500 dest.writeFloat(mX); in writeToParcel()
531 event.mX = in.readFloat();
/frameworks/rs/tests/lldb/java/Reduction/src/com/android/rs/lldbreductiontest/
DMainActivity.java41 static private int mX = 128; field in MainActivity
67 s.set_a_startval(mX); in findMinUserTypeAutoComb()
75 s.set_a_startval(mX); in findMinUserType()
118 findMinUserType1D(mRS, mScript, mX); in runRS()
119 findMinUserType1DAutoComb(mRS, mScript_auto_comb, mX); in runRS()
/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/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.java36 private float mX; field in GeomagneticField
234 mX = (float) (gcX * Math.cos(latDiffRad) in GeomagneticField()
245 return mX; in getX()
268 return (float) Math.toDegrees(Math.atan2(mY, mX)); in getDeclination()
284 return (float) Math.hypot(mX, mY); in getHorizontalStrength()
291 return (float) Math.sqrt(mX * mX + mY * mY + mZ * mZ); in getFieldStrength()
/frameworks/base/libs/hwui/font/
DCacheTexture.cpp41 newBlock, newBlock->mX, newBlock->mY, in insertBlock()
85 blockToRemove, blockToRemove->mX, blockToRemove->mY, in removeBlock()
282 *retOriginX = cacheBlock->mX; in fitBitmap()
288 uint16_t oldX = cacheBlock->mX; in fitBitmap()
291 cacheBlock->mX += roundedUpW; in fitBitmap()
299 newBlock, newBlock->mX, newBlock->mY, in fitBitmap()
310 cacheBlock, cacheBlock->mX, cacheBlock->mY, in fitBitmap()
DCacheTexture.h49 uint16_t mX; member
57 mX(x), mY(y), mWidth(width), mHeight(height), mNext(nullptr), mPrev(nullptr) { in CacheBlock()
67 currBlock, currBlock->mX, currBlock->mY, in output()
/frameworks/base/libs/hwui/pipeline/skia/
DAnimatedDrawables.h65 : mX(x) in AnimatedCircle()
72 const float x = mX->value; in onGetBounds()
78 canvas->drawCircle(mX->value, mY->value, mRadius->value, mPaint->value); in onDraw()
82 sp<uirenderer::CanvasPropertyPrimitive> mX;
/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 displayListCanvas.drawCircle(mX, mY, mRadius, mPaint); in onDraw()
106 mX, mToggle ? 400.0f : 200.0f)); in performClick()
/frameworks/base/core/java/android/accessibilityservice/
DGestureDescription.java138 touchPoints[numPointsFound].mX = Math.round(mTempPos[0]); in getPointsForTime()
401 public float mX; field in GestureDescription.TouchPoint
417 mX = parcel.readFloat(); in TouchPoint()
426 mX = other.mX; in copyFrom()
442 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/base/packages/WallpaperCropper/src/com/android/photos/views/
DTiledImageRenderer.java313 || !range[level - fromLevel].contains(tile.mX, tile.mY)) { in layoutTiles()
645 if (tile.mX == parent.mX) { in drawTile()
664 public int mX; field in TiledImageRenderer.Tile
672 mX = x; in Tile()
690 mDecodedTile = mModel.getTile(mTileLevel, mX, mY, reuse); in decode()
703 int rightEdge = ((mImageWidth - mX) >> mTileLevel); in onGetBitmap()
728 mX = x; in update()
739 int x = size * (mX / size); in getParentTile()
747 mX / mTileSize, mY / mTileSize, mLevel, mLevelCount); in toString()

12