/frameworks/base/core/java/android/gesture/ |
D | Instance.java | 73 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 …]
|
D | GestureStroke.java | 87 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 …]
|
D | GestureUtils.java | 143 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/ |
D | ListOfFadedTextAnimation.cpp | 41 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()
|
D | SimpleGradientAnimation.cpp | 53 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()
|
D | SimpleColorMatrixAnimation.cpp | 67 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/ |
D | TemiEvent.java | 34 private TemiEvent(long pts, byte descrTag, byte[] descrData) { in TemiEvent() argument 35 mPts = pts; in TemiEvent()
|
D | TsRecordEvent.java | 39 private TsRecordEvent(int pid, int tsIndexMask, int scIndexMask, long dataLength, long pts, in TsRecordEvent() argument 45 mPts = pts; in TsRecordEvent()
|
D | MmtpRecordEvent.java | 39 private MmtpRecordEvent(int scHevcIndexMask, long dataLength, int mpuSequenceNumber, long pts, in MmtpRecordEvent() argument 44 mPts = pts; in MmtpRecordEvent()
|
D | MediaEvent.java | 56 private MediaEvent(int streamId, boolean isPtsPresent, long pts, boolean isDtsPresent, long dts, in MediaEvent() argument 62 mPts = pts; in MediaEvent()
|
/frameworks/av/services/camera/libcameraservice/device3/ |
D | RotateAndCropMapper.cpp | 317 void RotateAndCropMapper::transformPoints(int32_t* pts, size_t count, float transformMat[4], in transformPoints() argument 320 float x0 = pts[i] - ox; in transformPoints() 321 float y0 = pts[i + 1] - oy; in transformPoints() 325 pts[i] = std::min(std::max(nx, 0), mArrayWidth); in transformPoints() 326 pts[i + 1] = std::min(std::max(ny, 0), mArrayHeight); in transformPoints()
|
D | RotateAndCropMapper.h | 56 void transformPoints(int32_t* pts, size_t count, float transformMat[4],
|
D | ZoomRatioMapper.cpp | 377 for (auto pts : kResultPointsToCorrectNoClamp) { in separateZoomFromCropLocked() local 378 entry = metadata->find(pts); in separateZoomFromCropLocked() 422 for (auto pts : kResultPointsToCorrectNoClamp) { in combineZoomAndCropLocked() local 423 entry = metadata->find(pts); in combineZoomAndCropLocked()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/graph/ |
D | BatteryMeterDrawableBase.java | 228 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/base/core/java/android/app/ |
D | ActivityOptions.java | 740 int[] pts = new int[2]; in makeScaleUpAnimation() local 741 source.getLocationOnScreen(pts); in makeScaleUpAnimation() 742 opts.mStartX = pts[0] + startX; in makeScaleUpAnimation() 743 opts.mStartY = pts[1] + startY; in makeScaleUpAnimation() 767 int[] pts = new int[2]; in makeClipRevealAnimation() local 768 source.getLocationOnScreen(pts); in makeClipRevealAnimation() 769 opts.mStartX = pts[0] + startX; in makeClipRevealAnimation() 770 opts.mStartY = pts[1] + startY; in makeClipRevealAnimation() 842 int[] pts = new int[2]; in makeThumbnailAnimation() local 843 source.getLocationOnScreen(pts); in makeThumbnailAnimation() [all …]
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/graphics/ |
D | NopCanvas.java | 134 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/ |
D | BaseRecordingCanvas.java | 236 public final void drawLines(@Size(multiple = 4) @NonNull float[] pts, int offset, int count, in drawLines() 238 nDrawLines(mNativeCanvasWrapper, pts, offset, count, paint.getNativeInstance()); in drawLines() 242 public final void drawLines(@Size(multiple = 4) @NonNull float[] pts, @NonNull Paint paint) { in drawLines() 243 drawLines(pts, 0, pts.length, paint); in drawLines() 333 public final void drawPoints(@Size(multiple = 2) float[] pts, int offset, int count, in drawPoints() 335 nDrawPoints(mNativeCanvasWrapper, pts, offset, count, paint.getNativeInstance()); in drawPoints() 339 public final void drawPoints(@Size(multiple = 2) @NonNull float[] pts, @NonNull Paint paint) { in drawPoints() 340 drawPoints(pts, 0, pts.length, paint); in drawPoints() 650 private static native void nDrawPoints(long canvasHandle, float[] pts, int offset, int count, in nDrawPoints() argument 658 private static native void nDrawLines(long canvasHandle, float[] pts, int offset, int count, in nDrawLines() argument
|
D | BaseCanvas.java | 282 public void drawLines(@Size(multiple = 4) @NonNull float[] pts, int offset, int count, in drawLines() 285 nDrawLines(mNativeCanvasWrapper, pts, offset, count, paint.getNativeInstance()); in drawLines() 288 public void drawLines(@Size(multiple = 4) @NonNull float[] pts, @NonNull Paint paint) { in drawLines() 290 drawLines(pts, 0, pts.length, paint); in drawLines() 345 public void drawPoints(@Size(multiple = 2) float[] pts, int offset, int count, in drawPoints() 348 nDrawPoints(mNativeCanvasWrapper, pts, offset, count, paint.getNativeInstance()); in drawPoints() 351 public void drawPoints(@Size(multiple = 2) @NonNull float[] pts, @NonNull Paint paint) { in drawPoints() 353 drawPoints(pts, 0, pts.length, paint); in drawPoints() 754 private static native void nDrawPoints(long canvasHandle, float[] pts, int offset, int count, in nDrawPoints() argument 760 private static native void nDrawLines(long canvasHandle, float[] pts, int offset, int count, in nDrawLines() argument
|
D | Canvas.java | 1797 public void drawLines(@Size(multiple = 4) @NonNull float[] pts, int offset, int count, 1799 super.drawLines(pts, offset, count, paint); 1802 public void drawLines(@Size(multiple = 4) @NonNull float[] pts, @NonNull Paint paint) { 1803 super.drawLines(pts, paint); 1894 public void drawPoints(@Size(multiple = 2) float[] pts, int offset, int count, 1896 super.drawPoints(pts, offset, count, paint); 1902 public void drawPoints(@Size(multiple = 2) @NonNull float[] pts, @NonNull Paint paint) { 1903 super.drawPoints(pts, paint);
|
D | Matrix.java | 696 public void mapPoints(float[] pts) { in mapPoints() argument 697 mapPoints(pts, 0, pts, 0, pts.length >> 1); in mapPoints()
|
/frameworks/av/media/libstagefright/writer_fuzzers/ |
D | WriterFuzzerBase.cpp | 80 int64_t pts = 0; in getFrameInfo() local 83 pts = 0; in getFrameInfo() 89 copy(framePtr, framePtr + sizeof(int64_t), reinterpret_cast<uint8_t *>(&pts)); in getFrameInfo() 96 FrameData{bufferSize, flags, pts, framePtr}); in getFrameInfo()
|
/frameworks/av/media/libmediatranscoding/transcoder/tests/ |
D | MediaSampleWriterTests.cpp | 81 static Event WriteSampleWithPts(size_t trackIndex, int64_t pts) { in WriteSampleWithPts() argument 82 return {.type = Event::WriteSample, .trackIndex = trackIndex, .info = {0, 0, pts, 0}}; in WriteSampleWithPts() 383 for (int64_t pts = 0; pts < 100; ++pts) { in TEST_F() local 384 sampleConsumer(newSampleWithPts(pts)); in TEST_F() 410 auto addSampleToTrackWithPts = [&addedSamples, &sampleConsumers](int trackIndex, int64_t pts) { in TEST_F() argument 411 auto sample = newSampleWithPts(pts); in TEST_F()
|
/frameworks/base/libs/hwui/tests/unit/ |
D | CanvasOpTests.cpp | 153 auto pts = sk_sp<Points>( in TEST() local 164 .points = pts in TEST() 196 auto pts = sk_sp<Points>( in TEST() local 206 .points = pts in TEST() 450 SkPoint pts[3] = {{64, 32}, {0, 224}, {128, 224}}; in TEST() local 452 sk_sp<SkVertices> vertices = SkVertices::MakeCopy(SkVertices::kTriangles_VertexMode, 3, pts, in TEST()
|
/frameworks/av/media/tests/SampleVideoEncoder/app/src/main/java/com/android/media/samplevideoencoder/ |
D | MediaCodecSurfaceEncoder.java | 246 long pts = mExtractor.getSampleTime(); in enqueueDecoderInput() local 260 Log.d(TAG, "input: id: " + bufferIndex + " size: " + size + " pts: " + pts + in enqueueDecoderInput() 263 mDecoder.queueInputBuffer(bufferIndex, 0, size, pts, codecFlags); in enqueueDecoderInput()
|
/frameworks/base/libs/hwui/jni/ |
D | Shader.cpp | 118 SkPoint pts[2]; in LinearGradient_create() local 119 pts[0].set(x0, y0); in LinearGradient_create() 120 pts[1].set(x1, y1); in LinearGradient_create() 131 sk_sp<SkShader> shader(SkGradientShader::MakeLinear(pts, &colors[0], in LinearGradient_create()
|