Home
last modified time | relevance | path

Searched refs:point (Results 1 – 25 of 170) sorted by relevance

1234567

/frameworks/base/core/java/android/gesture/
DOrientedBoundingBox.java57 float[] point = new float[2]; in toPath() local
58 point[0] = -width / 2; in toPath()
59 point[1] = height / 2; in toPath()
63 matrix.mapPoints(point); in toPath()
64 path.moveTo(point[0], point[1]); in toPath()
66 point[0] = -width / 2; in toPath()
67 point[1] = -height / 2; in toPath()
68 matrix.mapPoints(point); in toPath()
69 path.lineTo(point[0], point[1]); in toPath()
71 point[0] = width / 2; in toPath()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/ui/
DCornerPathRenderer.java81 PointF point = input.get(i); in shiftBy() local
84 new PointF(point.x + (normal.x * delta), point.y + (normal.y * delta)); in shiftBy()
94 for (PointF point : points.subList(1, points.size())) { in toPath()
95 path.lineTo(point.x, point.y); in toPath()
106 PointF point = points.get(index); in normalAt() local
108 d1 = new PointF((point.x - previousPoint.x), (point.y - previousPoint.y)); in normalAt()
115 PointF point = points.get(index); in normalAt() local
117 d2 = new PointF((nextPoint.x - point.x), (nextPoint.y - point.y)); in normalAt()
127 private float magnitude(PointF point) { in magnitude() argument
128 return (float) Math.sqrt((point.x * point.x) + (point.y * point.y)); in magnitude()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
DAccelerationClassifier.java53 Point point = stroke.getPoints().get(stroke.getPoints().size() - 1); in onTouchEvent() local
55 mStrokeMap.put(stroke, new Data(point)); in onTouchEvent()
57 mStrokeMap.get(stroke).addPoint(point); in onTouchEvent()
76 public Data(Point point) { in Data() argument
77 previousPoint = point; in Data()
80 public void addPoint(Point point) { in addPoint() argument
81 float distance = previousPoint.dist(point); in addPoint()
82 float duration = (float) (point.timeOffsetNano - previousPoint.timeOffsetNano + 1); in addPoint()
88 previousPoint = point; in addPoint()
96 previousPoint = point; in addPoint()
DStroke.java41 Point point = new Point(x / mDpi, y / mDpi, eventTimeNano - mStartTimeNano); in addPoint() local
43 mLength += mPoints.get(mPoints.size() - 1).dist(point); in addPoint()
45 mPoints.add(point); in addPoint()
DSpeedAnglesClassifier.java109 public void addPoint(Point point) { in addPoint() argument
111 mDist += mPreviousPoint.dist(point); in addPoint()
114 mPreviousPoint = point; in addPoint()
115 Point speedPoint = new Point((float) point.timeOffsetNano / DURATION_SCALE, in addPoint()
DAnglesClassifier.java124 public void addPoint(Point point) { in addPoint() argument
128 || !mLastThreePoints.get(mLastThreePoints.size() - 1).equals(point)) { in addPoint()
130 mLength += mLastThreePoints.get(mLastThreePoints.size() - 1).dist(point); in addPoint()
132 mLastThreePoints.add(point); in addPoint()
/frameworks/base/media/mca/filterfw/java/android/filterfw/geometry/
DPoint.java57 public Point plus(Point point) { in plus() argument
58 return this.plus(point.x, point.y); in plus()
65 public Point minus(Point point) { in minus() argument
66 return this.minus(point.x, point.y); in minus()
/frameworks/base/libs/hwui/pipeline/skia/
DSkiaDisplayList.cpp62 for (auto& point : points) { in intersects() local
63 mat.mapPoint3d(point); in intersects()
65 minX = maxX = point.x; in intersects()
66 minY = maxY = point.y; in intersects()
69 minX = std::min(minX, point.x); in intersects()
70 minY = std::min(minY, point.y); in intersects()
71 maxX = std::max(maxX, point.x); in intersects()
72 maxY = std::max(maxY, point.y); in intersects()
/frameworks/compile/slang/tests/F_reduce_general_bad_result/
Dstderr.txt.expect11 …_bad_result.rs:182:12) parameter 'accum' (type 'rs_matrix2x2 *') must not point to a matrix type u…
12 …neral_bad_result.rs:190:12) parameter 'out' (type 'rs_matrix2x2 *') must not point to a matrix type
13 …esult.rs:198:12) parameter 'accum' (type 'rs_matrix2x2 (*)[10]') must not point to an array of mat…
14 …_result.rs:208:12) parameter 'out' (type 'rs_matrix2x2 (*)[10]') must not point to an array of mat…
15 …esult.rs:214:12) parameter 'out' (type 'struct rs_allocation *') must not point to data containing…
16 …rs:222:12) parameter 'out' (type 'struct rs_allocation (*)[10]') must not point to data containing…
17 …d_result.rs:234:12) parameter 'out' (type 'struct StructObj1 *') must not point to data containing…
18 …lt.rs:247:12) parameter 'out' (type 'struct StructObj2 (*)[10]') must not point to data containing…
19 …general_bad_result.rs:257:12) parameter 'accum' (type 'char **') must not point to a pointer unles…
20 … (reduce_general_bad_result.rs:267:12) parameter 'out' (type 'char **') must not point to a pointer
[all …]
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/util/
DCachedPathIteratorFactory.java190 point) { in getShapeEndPoint()
193 point[0] = coords[pointIndex]; in getShapeEndPoint()
194 point[1] = coords[pointIndex + 1]; in getShapeEndPoint()
248 lastY, float t, @NonNull float[] point) { in getPointAtLength() argument
250 point[0] = lastX + (coords[0] - lastX) * t; in getPointAtLength()
251 point[1] = lastY + (coords[1] - lastY) * t; in getPointAtLength()
268 point[0] = curve[2 + lastPointIndex]; in getPointAtLength()
269 point[1] = curve[2 + lastPointIndex + 1]; in getPointAtLength()
391 public void getCurrentSegmentEnd(float[] point) { in getCurrentSegmentEnd() argument
392 point[0] = mLastPoint[0]; in getCurrentSegmentEnd()
[all …]
/frameworks/rs/tests/java_api/RsNbody/src/com/example/android/rs/nbody_gl/
Dnbody.rs35 float3 point = {rsRand(-1000.f, 1000.f),
38 point = normalize(point);
44 v.xyz = cross(point.xyz, v.xyz);
45 point *= r;
46 float4 out = {point.x, point.y, point.z,
/frameworks/native/services/surfaceflinger/
DBufferLayer.cpp519 auto point = mLocalSyncPoints.begin(); in latchBuffer() local
520 while (point != mLocalSyncPoints.end()) { in latchBuffer()
521 if (!(*point)->frameIsAvailable() || !(*point)->transactionIsApplied()) { in latchBuffer()
524 ++point; in latchBuffer()
528 if ((*point)->getFrameNumber() <= mCurrentFrameNumber) { in latchBuffer()
530 ss << "Dropping sync point " << (*point)->getFrameNumber(); in latchBuffer()
532 point = mLocalSyncPoints.erase(point); in latchBuffer()
534 ++point; in latchBuffer()
548 for (auto& point : mLocalSyncPoints) { in notifyAvailableFrames() local
549 if (headFrameNumber >= point->getFrameNumber() && headFenceSignaled && in notifyAvailableFrames()
[all …]
/frameworks/base/graphics/java/android/graphics/
DPoint.java83 Point point = (Point) o; in equals()
85 if (x != point.x) return false; in equals()
86 if (y != point.y) return false; in equals()
179 public static @NonNull Size convert(@NonNull Point point) { in convert() argument
180 return new Size(point.x, point.y); in convert()
/frameworks/base/services/autofill/java/com/android/server/autofill/ui/
DCustomScrollView.java75 final Point point = new Point(); in calculateDimensions() local
77 context.getDisplay().getSize(point); in calculateDimensions()
82 final int maxHeight = (int) typedValue.getFraction(point.y, point.y); in calculateDimensions()
84 mWidth = point.x; in calculateDimensions()
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/brightline/
DZigZagClassifier.java108 for (Point point : rotatedPoints) { in isFalseTouch()
110 pX = point.x; in isFalseTouch()
111 pY = point.y; in isFalseTouch()
115 runningAbsDx += Math.abs(point.x - pX); in isFalseTouch()
116 runningAbsDy += Math.abs(point.y - pY); in isFalseTouch()
117 pX = point.x; in isFalseTouch()
118 pY = point.y; in isFalseTouch()
/frameworks/opt/gamesdk/src/swappy/
DChoreographerFilter.cpp46 bool addTimestamp(time_point point) { in addTimestamp() argument
50 if (point == mLastTimestamp) { in addTimestamp()
57 mLastTimestamp = point; in addTimestamp()
59 point += mAppToSfDelay; in addTimestamp()
61 while (mBaseTime + mRefreshPeriod * 1.5 < point) { in addTimestamp()
65 std::chrono::nanoseconds delta = (point - (mBaseTime + mRefreshPeriod)); in addTimestamp()
/frameworks/av/services/camera/libcameraservice/common/
DDepthPhotoProcessor.cpp246 auto point = static_cast<float>(value & 0x1FFF) / 1000.f; in unpackDepth16() local
247 points->push_back(point); in unpackDepth16()
256 if (*near > point) { in unpackDepth16()
257 *near = point; in unpackDepth16()
259 if (*far < point) { in unpackDepth16()
260 *far = point; in unpackDepth16()
375 auto point = *pointIt; in processDepthMapFrame() local
377 point = std::clamp(point, near, far); in processDepthMapFrame()
379 pointsQuantized.push_back(floorf(((far * (point - near)) / in processDepthMapFrame()
380 (point * (far - near))) * 255.0f)); in processDepthMapFrame()
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/
DCropView.java272 float[] point = mTempPoint; in onTouchEvent() local
273 point[0] = (mLastX - x) / mRenderer.scale; in onTouchEvent()
274 point[1] = (mLastY - y) / mRenderer.scale; in onTouchEvent()
275 mInverseRotateMatrix.mapPoints(point); in onTouchEvent()
276 mCenterX += point[0]; in onTouchEvent()
277 mCenterY += point[1]; in onTouchEvent()
/frameworks/rs/tests/java_api/Balls/src/com/example/android/rs/balls/
Dballs.rs18 Point_t *point;
96 point[ct].position = balls[ct].position;
97 point[ct].color = balls[ct].color;
/frameworks/base/core/jni/android/graphics/
DGraphicsJNI.h57 static SkIPoint* jpoint_to_ipoint(JNIEnv*, jobject jpoint, SkIPoint* point);
58 static void ipoint_to_jpoint(const SkIPoint& point, JNIEnv*, jobject jpoint);
60 static SkPoint* jpointf_to_point(JNIEnv*, jobject jpointf, SkPoint* point);
61 static void point_to_jpointf(const SkPoint& point, JNIEnv*, jobject jpointf);
/frameworks/compile/slang/tests/F_reduce_general_bad_accumulator/
Dstderr.txt.expect8 …ce_general_bad_accumulator.rs:42:12) parameter 'other' (type 'Fn *') must point to const-qualified…
10 …ce_general_bad_accumulator.rs:47:12) parameter 'other' (type 'Fn *') must point to const-qualified…
11 …duce_general_bad_accumulator.rs:47:12) parameter 'val' (type 'Fn *') must point to const-qualified…
/frameworks/av/services/audiopolicy/engine/config/src/
DEngineConfig.cpp448 std::vector<int> point; in deserialize() local
450 reinterpret_cast<const char*>(pointXml.get()), point, ","); in deserialize()
451 if (point.size() != 2) { in deserialize()
456 curvePoints.push_back({point[0], point[1]}); in deserialize()
556 std::vector<int> point; in deserializeLegacyVolume() local
558 reinterpret_cast<const char*>(pointXml.get()), point, ","); in deserializeLegacyVolume()
559 if (point.size() != 2) { in deserializeLegacyVolume()
564 curvePoints.push_back({point[0], point[1]}); in deserializeLegacyVolume()
/frameworks/base/media/java/android/media/
DFaceDetector.java58 public void getMidPoint(PointF point) { in getMidPoint() argument
60 point.set(mMidPointX, mMidPointY); in getMidPoint()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/compiler/
Dplugin.proto109 // point. This feature allows a code generator to extend the output
116 // an identifier naming the point -- this is what other generators will use
117 // as the insertion_point. Code inserted at this point will be placed
118 // immediately above the line containing the insertion point (thus multiple
119 // insertions to the same point will come out in the order they were added).
131 // Note that if the line containing the insertion point begins with
134 // indentation matters. In these languages, the insertion point comment
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DHardwareBgDrawable.java68 public void setCutPoint(int point) { in setCutPoint() argument
69 mPoint = point; in setCutPoint()

1234567