Home
last modified time | relevance | path

Searched refs:pts (Results 1 – 25 of 34) sorted by relevance

12

/frameworks/base/core/java/android/gesture/
DInstance.java73 float[] pts; in createInstance() local
76 pts = temporalSampler(orientationType, gesture); in createInstance()
77 instance = new Instance(gesture.getID(), pts, label); in createInstance()
80 pts = spatialSampler(gesture); in createInstance()
81 instance = new Instance(gesture.getID(), pts, label); in createInstance()
91 float[] pts = GestureUtils.temporalSampling(gesture.getStrokes().get(0), in temporalSampler() local
93 float[] center = GestureUtils.computeCentroid(pts); in temporalSampler()
94 float orientation = (float)Math.atan2(pts[1] - center[1], pts[0] - center[0]); in temporalSampler()
107 GestureUtils.translate(pts, -center[0], -center[1]); in temporalSampler()
108 GestureUtils.rotate(pts, adjustment); in temporalSampler()
[all …]
DGestureStroke.java87 private GestureStroke(RectF bbx, float len, float[] pts, long[] times) { in GestureStroke() argument
90 points = pts.clone(); in GestureStroke()
161 final float[] pts = GestureUtils.temporalSampling(this, numSample); in toPath() local
164 GestureUtils.translate(pts, -rect.left, -rect.top); in toPath()
169 GestureUtils.scale(pts, scale, scale); in toPath()
176 final int count = pts.length; in toPath()
179 float x = pts[i]; in toPath()
180 float y = pts[i + 1]; in toPath()
201 final float[] pts = points; in serialize() local
210 out.writeFloat(pts[i]); in serialize()
[all …]
DGestureUtils.java143 final float[] pts = new float[size]; in spatialSampling() local
145 pts[i] = (strokepoints[i] + preDx) * sx + postDx; in spatialSampling()
146 pts[i + 1] = (strokepoints[i + 1] + preDy) * sy + postDy; in spatialSampling()
151 float segmentStartX = pts[i] < 0 ? 0 : pts[i]; in spatialSampling()
152 float segmentStartY = pts[i + 1] < 0 ? 0 : pts[i + 1]; in spatialSampling()
273 float[] pts = stroke.points; in temporalSampling() local
274 float lstPointX = pts[0]; in temporalSampling()
275 float lstPointY = pts[1]; in temporalSampling()
284 int count = pts.length / 2; in temporalSampling()
291 currentPointX = pts[i * 2]; in temporalSampling()
[all …]
/frameworks/base/libs/hwui/tests/common/scenes/
DListOfFadedTextAnimation.cpp41 SkPoint pts[2]; in createListItem() local
42 pts[0].set(0, 0); in createListItem()
43 pts[1].set(0, 1); in createListItem()
47 SkGradientShader::MakeLinear(pts, colors, NULL, 2, SkTileMode::kClamp)); in createListItem()
DSimpleGradientAnimation.cpp53 SkPoint pts[] = {SkPoint::Make(0, 0), SkPoint::Make(width, height)}; in createCard() local
59 paint.setShader(SkGradientShader::MakeLinear(pts, colors + (i % 2), pos, 2, in createCard()
DSimpleColorMatrixAnimation.cpp67 SkPoint pts[] = {SkPoint::Make(0, 0), SkPoint::Make(width, height)}; in createCard() local
69 paint.setShader(SkGradientShader::MakeLinear(pts, colors, pos, 2, in createCard()
/frameworks/base/media/java/android/media/tv/tuner/filter/
DTemiEvent.java34 private TemiEvent(long pts, byte descrTag, byte[] descrData) { in TemiEvent() argument
35 mPts = pts; in TemiEvent()
DMediaEvent.java52 private MediaEvent(int streamId, boolean isPtsPresent, long pts, long dataLength, long offset, in MediaEvent() argument
57 mPts = pts; in MediaEvent()
/frameworks/av/services/camera/libcameraservice/device3/
DRotateAndCropMapper.cpp303 void RotateAndCropMapper::transformPoints(int32_t* pts, size_t count, float transformMat[4], in transformPoints() argument
306 float x0 = pts[i] - ox; in transformPoints()
307 float y0 = pts[i + 1] - oy; in transformPoints()
311 pts[i] = std::min(std::max(nx, 0), mArrayWidth); in transformPoints()
312 pts[i + 1] = std::min(std::max(ny, 0), mArrayHeight); in transformPoints()
DRotateAndCropMapper.h54 void transformPoints(int32_t* pts, size_t count, float transformMat[4],
DZoomRatioMapper.cpp264 for (auto pts : kResultPointsToCorrectNoClamp) { in separateZoomFromCropLocked() local
265 entry = metadata->find(pts); in separateZoomFromCropLocked()
306 for (auto pts : kResultPointsToCorrectNoClamp) { in combineZoomAndCropLocked() local
307 entry = metadata->find(pts); in combineZoomAndCropLocked()
DDistortionMapper.cpp141 for (auto pts : kResultPointsToCorrectNoClamp) { in correctCaptureResult() local
142 e = result->find(pts); in correctCaptureResult()
/frameworks/base/core/java/android/app/
DActivityOptions.java559 int[] pts = new int[2]; in makeScaleUpAnimation() local
560 source.getLocationOnScreen(pts); in makeScaleUpAnimation()
561 opts.mStartX = pts[0] + startX; in makeScaleUpAnimation()
562 opts.mStartY = pts[1] + startY; in makeScaleUpAnimation()
586 int[] pts = new int[2]; in makeClipRevealAnimation() local
587 source.getLocationOnScreen(pts); in makeClipRevealAnimation()
588 opts.mStartX = pts[0] + startX; in makeClipRevealAnimation()
589 opts.mStartY = pts[1] + startY; in makeClipRevealAnimation()
661 int[] pts = new int[2]; in makeThumbnailAnimation() local
662 source.getLocationOnScreen(pts); in makeThumbnailAnimation()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/graph/
DBatteryMeterDrawableBase.java228 final int[] pts = res.getIntArray(pointArrayRes); in loadPoints() local
230 for (int i = 0; i < pts.length; i += 2) { in loadPoints()
231 maxX = Math.max(maxX, pts[i]); in loadPoints()
232 maxY = Math.max(maxY, pts[i + 1]); in loadPoints()
234 final float[] ptsF = new float[pts.length]; in loadPoints()
235 for (int i = 0; i < pts.length; i += 2) { in loadPoints()
236 ptsF[i] = (float) pts[i] / maxX; in loadPoints()
237 ptsF[i + 1] = (float) pts[i + 1] / maxY; in loadPoints()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/graphics/
DNopCanvas.java134 public void drawPoints(float[] pts, int offset, int count, Paint paint) { in drawPoints() argument
138 public void drawPoints(float[] pts, Paint paint) { in drawPoints() argument
150 public void drawLines(float[] pts, int offset, int count, Paint paint) { in drawLines() argument
154 public void drawLines(float[] pts, Paint paint) { in drawLines() argument
/frameworks/base/graphics/java/android/graphics/
DBaseRecordingCanvas.java230 public final void drawLines(@Size(multiple = 4) @NonNull float[] pts, int offset, int count, in drawLines()
232 nDrawLines(mNativeCanvasWrapper, pts, offset, count, paint.getNativeInstance()); in drawLines()
236 public final void drawLines(@Size(multiple = 4) @NonNull float[] pts, @NonNull Paint paint) { in drawLines()
237 drawLines(pts, 0, pts.length, paint); in drawLines()
327 public final void drawPoints(@Size(multiple = 2) float[] pts, int offset, int count, in drawPoints()
329 nDrawPoints(mNativeCanvasWrapper, pts, offset, count, paint.getNativeInstance()); in drawPoints()
333 public final void drawPoints(@Size(multiple = 2) @NonNull float[] pts, @NonNull Paint paint) { in drawPoints()
334 drawPoints(pts, 0, pts.length, paint); in drawPoints()
608 private static native void nDrawPoints(long canvasHandle, float[] pts, int offset, int count, in nDrawPoints() argument
616 private static native void nDrawLines(long canvasHandle, float[] pts, int offset, int count, in nDrawLines() argument
DBaseCanvas.java274 public void drawLines(@Size(multiple = 4) @NonNull float[] pts, int offset, int count, in drawLines()
277 nDrawLines(mNativeCanvasWrapper, pts, offset, count, paint.getNativeInstance()); in drawLines()
280 public void drawLines(@Size(multiple = 4) @NonNull float[] pts, @NonNull Paint paint) { in drawLines()
282 drawLines(pts, 0, pts.length, paint); in drawLines()
336 public void drawPoints(@Size(multiple = 2) float[] pts, int offset, int count, in drawPoints()
339 nDrawPoints(mNativeCanvasWrapper, pts, offset, count, paint.getNativeInstance()); in drawPoints()
342 public void drawPoints(@Size(multiple = 2) @NonNull float[] pts, @NonNull Paint paint) { in drawPoints()
344 drawPoints(pts, 0, pts.length, paint); in drawPoints()
684 private static native void nDrawPoints(long canvasHandle, float[] pts, int offset, int count, in nDrawPoints() argument
690 private static native void nDrawLines(long canvasHandle, float[] pts, int offset, int count, in nDrawLines() argument
DCanvas.java1838 public void drawLines(@Size(multiple = 4) @NonNull float[] pts, int offset, int count, in drawLines()
1840 super.drawLines(pts, offset, count, paint); in drawLines()
1843 public void drawLines(@Size(multiple = 4) @NonNull float[] pts, @NonNull Paint paint) { in drawLines()
1844 super.drawLines(pts, paint); in drawLines()
1931 public void drawPoints(@Size(multiple = 2) float[] pts, int offset, int count, in drawPoints()
1933 super.drawPoints(pts, offset, count, paint); in drawPoints()
1939 public void drawPoints(@Size(multiple = 2) @NonNull float[] pts, @NonNull Paint paint) { in drawPoints()
1940 super.drawPoints(pts, paint); in drawPoints()
DMatrix.java697 public void mapPoints(float[] pts) { in mapPoints() argument
698 mapPoints(pts, 0, pts, 0, pts.length >> 1); in mapPoints()
/frameworks/layoutlib/bridge/src/android/graphics/
DBaseCanvas_Delegate.java183 /*package*/ static void nDrawPoints(long nativeCanvas, float[] pts, int offset, int count, in nDrawPoints() argument
185 if (offset < 0 || count < 0 || offset + count > pts.length) { in nDrawPoints()
191 nDrawPoint(nativeCanvas, pts[i], pts[i + 1], nativePaint); in nDrawPoints()
205 final float[] pts, final int offset, final int count, in nDrawLines() argument
210 graphics.drawLine((int) pts[i + offset], (int) pts[i + offset + 1], in nDrawLines()
211 (int) pts[i + offset + 2], (int) pts[i + offset + 3]); in nDrawLines()
DMatrix_Delegate.java905 private void mapPoints(float[] pts) { in mapPoints() argument
906 mapPoints(pts, 0, pts, 0, pts.length >> 1); in mapPoints()
/frameworks/base/libs/hwui/jni/
DShader.cpp108 SkPoint pts[2]; in LinearGradient_create() local
109 pts[0].set(x0, y0); in LinearGradient_create()
110 pts[1].set(x1, y1); in LinearGradient_create()
121 sk_sp<SkShader> shader(SkGradientShader::MakeLinear(pts, &colors[0], in LinearGradient_create()
/frameworks/base/libs/hwui/tests/unit/
DFatalTestCanvas.h57 void onDrawPoints(PointMode, size_t count, const SkPoint pts[], const SkPaint&) { in onDrawPoints() argument
/frameworks/base/tests/ApkVerityTest/block_device_writer/
DAndroid.bp51 test_suites: ["general-tests", "pts", "vts"],
/frameworks/base/libs/hwui/
DSkiaCanvas.cpp465 std::unique_ptr<SkPoint[]> pts(new SkPoint[count]); in drawPoints() local
467 pts[i].set(points[0], points[1]); in drawPoints()
472 mCanvas->drawPoints(mode, count, pts.get(), p); in drawPoints()

12