/frameworks/base/core/java/android/gesture/ |
D | OrientedBoundingBox.java | 57 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/av/media/module/libmediaformatshaper/ |
D | CodecProperties.cpp | 231 struct bpp_point *point = (struct bpp_point*) malloc(sizeof(*point)); in bppPoint() local 232 if (point == nullptr) { in bppPoint() 237 point->pixels = width * height; in bppPoint() 238 point->width = width; in bppPoint() 239 point->height = height; in bppPoint() 240 point->bpp = bpp; in bppPoint() 243 point->next = nullptr; in bppPoint() 244 mBppPoints = point; in bppPoint() 245 } else if (point->pixels < mBppPoints->pixels) { in bppPoint() 247 point->next = mBppPoints; in bppPoint() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/ui/ |
D | CornerPathRenderer.java | 81 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/accessibility/ |
D | MirrorWindowControl.java | 154 private void setPosition(Point point) { in setPosition() argument 155 constrainFrameToDraggableBound(point); in setPosition() 156 if (point.equals(mControlPosition)) { in setPosition() 159 mControlPosition.set(point.x, point.y); in setPosition() 166 private void constrainFrameToDraggableBound(Point point) { in constrainFrameToDraggableBound() argument 167 point.x = MathUtils.constrain(point.x, mDraggableBound.left, mDraggableBound.right); in constrainFrameToDraggableBound() 168 point.y = MathUtils.constrain(point.y, mDraggableBound.top, mDraggableBound.bottom); in constrainFrameToDraggableBound()
|
/frameworks/base/tests/SurfaceViewBufferTests/src/com/android/test/ |
D | SurfaceViewBufferTestBase.kt | 74 fun LayerSubject.hasBufferSize(point: Point) = hasBufferSize(Size.from(point.x, point.y)) in LayerSubject() 76 fun LayerSubject.hasLayerSize(point: Point) = hasLayerSize(Size.from(point.x, point.y)) in LayerSubject()
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/geometry/ |
D | Point.java | 56 public Point plus(Point point) { in plus() argument 57 return this.plus(point.x, point.y); in plus() 64 public Point minus(Point point) { in minus() argument 65 return this.minus(point.x, point.y); in minus()
|
/frameworks/base/libs/hwui/pipeline/skia/ |
D | SkiaDisplayList.cpp | 76 for (auto& point : points) { in intersects() local 77 mat.mapPoint3d(point); in intersects() 79 minX = maxX = point.x; in intersects() 80 minY = maxY = point.y; in intersects() 83 minX = std::min(minX, point.x); in intersects() 84 minY = std::min(minY, point.y); in intersects() 85 maxX = std::max(maxX, point.x); in intersects() 86 maxY = std::max(maxY, point.y); in intersects()
|
/frameworks/compile/slang/tests/F_reduce_general_bad_result/ |
D | stderr.txt.expect | 11 …result.rscript:182:12) parameter 'accum' (type 'rs_matrix2x2 *') must not point to a matrix type u… 12 …_bad_result.rscript:190:12) parameter 'out' (type 'rs_matrix2x2 *') must not point to a matrix type 13 ….rscript:198:12) parameter 'accum' (type 'rs_matrix2x2 (*)[10]') must not point to an array of mat… 14 …lt.rscript:208:12) parameter 'out' (type 'rs_matrix2x2 (*)[10]') must not point to an array of mat… 15 ….rscript:214:12) parameter 'out' (type 'struct rs_allocation *') must not point to data containing… 16 …pt:222:12) parameter 'out' (type 'struct rs_allocation (*)[10]') must not point to data containing… 17 …ult.rscript:234:12) parameter 'out' (type 'struct StructObj1 *') must not point to data containing… 18 …cript:247:12) parameter 'out' (type 'struct StructObj2 (*)[10]') must not point to data containing… 19 …al_bad_result.rscript:257:12) parameter 'accum' (type 'char **') must not point to a pointer unles… 20 …uce_general_bad_result.rscript:267:12) parameter 'out' (type 'char **') must not point to a pointer [all …]
|
/frameworks/rs/tests/java_api/RsNbody/src/com/example/android/rs/nbody_gl/ |
D | nbody.rscript | 35 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/base/graphics/java/android/graphics/ |
D | GraphicsProtos.java | 41 @NonNull Point point, @NonNull ProtoOutputStream protoOutputStream, long fieldId) { in dumpPointProto() 43 protoOutputStream.write(PointProto.X, point.x); in dumpPointProto() 44 protoOutputStream.write(PointProto.Y, point.y); in dumpPointProto()
|
D | Point.java | 87 Point point = (Point) o; in equals() 89 if (x != point.x) return false; in equals() 90 if (y != point.y) return false; in equals()
|
/frameworks/base/core/java/com/android/internal/graphics/palette/ |
D | WSMeansQuantizer.java | 70 float[] point = pointProvider.fromInt(cluster); in WSMeansQuantizer() local 71 mClusters[index++] = point; in WSMeansQuantizer() 199 float[] point = mPoints[i]; in reassignPoints() local 202 float previousDistance = mPointProvider.distance(point, previousCluster); in reassignPoints() 212 float distance = mPointProvider.distance(point, mClusters[t]); in reassignPoints() 237 float[] point = mPoints[i]; in recalculateClusterCenters() local 241 aSums[clusterIndex] += point[0] * count; in recalculateClusterCenters() 242 bSums[clusterIndex] += point[1] * count; in recalculateClusterCenters() 243 cSums[clusterIndex] += point[2] * count; in recalculateClusterCenters()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/udfps/ |
D | EllipseOverlapDetector.kt | 115 private fun checkPoint(point: Point, touchData: NormalizedTouchData): Boolean { in checkPoint() 119 val a: Float = cos(touchData.orientation) * (point.x - touchData.x) in checkPoint() 120 val b: Float = sin(touchData.orientation) * (point.y - touchData.y) in checkPoint() 121 val c: Float = sin(touchData.orientation) * (point.x - touchData.x) in checkPoint() 122 val d: Float = cos(touchData.orientation) * (point.y - touchData.y) in checkPoint()
|
/frameworks/base/core/java/android/view/inputmethod/ |
D | JoinOrSplitGesture.java | 36 private JoinOrSplitGesture(PointF point, String fallbackText) { in JoinOrSplitGesture() argument 38 mPoint = point; in JoinOrSplitGesture() 73 public Builder setJoinOrSplitPoint(@NonNull PointF point) { in setJoinOrSplitPoint() argument 74 mPoint = point; in setJoinOrSplitPoint()
|
D | InsertGesture.java | 40 private InsertGesture(String text, PointF point, String fallbackText) { in InsertGesture() argument 42 mPoint = point; in InsertGesture() 96 public Builder setInsertionPoint(@NonNull PointF point) { in setInsertionPoint() argument 97 mPoint = point; in setInsertionPoint()
|
D | InsertModeGesture.java | 47 private InsertModeGesture(PointF point, String fallbackText, in InsertModeGesture() argument 50 mPoint = point; in InsertModeGesture() 98 public Builder setInsertionPoint(@NonNull PointF point) { in setInsertionPoint() argument 99 mPoint = point; in setInsertionPoint()
|
/frameworks/minikin/libs/minikin/ |
D | BoundsCache.cpp | 33 const Point& point = layoutPiece.pointAt(i); in getBounds() local 37 tmpRect.offset(point.x, point.y); in getBounds()
|
/frameworks/native/services/inputflinger/docs/ |
D | input_coordinates.md | 12 report **floating point** axis values in a **continuous space**. This disparity 38 When converted to the continuous space, the point (0, 2) corresponds to the 74 The point (2, 2) now corresponds to a different location in the continuous space 90 90 degrees, the touched point would correspond to the location (2, 3), shown 91 below. This new point is outside the bounds of the display, since it does not 96 to the area of the display. Therefore, that point is an invalid coordinate that 111 determine if a point in the continuous space falls inside a window's bounds,
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/ |
D | ZigZagClassifier.java | 129 for (Point point : rotatedPoints) { in calculateFalsingResult() 131 pX = point.x; in calculateFalsingResult() 132 pY = point.y; in calculateFalsingResult() 136 runningAbsDx += Math.abs(point.x - pX); in calculateFalsingResult() 137 runningAbsDy += Math.abs(point.y - pY); in calculateFalsingResult() 138 pX = point.x; in calculateFalsingResult() 139 pY = point.y; in calculateFalsingResult()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
D | MediaArtworkProcessorTest.kt | 49 val point = Point() in setUp() constant 50 checkNotNull(context.display).getSize(point) in setUp() 51 screenWidth = point.x in setUp() 52 screenHeight = point.y in setUp()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | ScreenshotTests.java | 163 Point point = mActivity.getPositionBelowStatusBar(); in testCaptureDisplay() local 167 .setPosition(sc, point.x, point.y) in testCaptureDisplay() 183 Rect bounds = new Rect(point.x, point.y, BUFFER_WIDTH + point.x, BUFFER_HEIGHT + point.y); in testCaptureDisplay()
|
/frameworks/av/services/camera/libcameraservice/common/ |
D | DepthPhotoProcessor.cpp | 250 auto point = static_cast<float>(value & 0x1FFF) / 1000.f; in unpackDepth16() local 251 points->push_back(point); in unpackDepth16() 260 if (*near > point) { in unpackDepth16() 261 *near = point; in unpackDepth16() 263 if (*far < point) { in unpackDepth16() 264 *far = point; in unpackDepth16() 379 auto point = *pointIt; in processDepthMapFrame() local 381 point = std::clamp(point, near, far); in processDepthMapFrame() 383 pointsQuantized.push_back(floorf(((far * (point - near)) / in processDepthMapFrame() 384 (point * (far - near))) * 255.0f)); in processDepthMapFrame()
|
/frameworks/native/services/inputflinger/tests/ |
D | UinputDevice.cpp | 219 void UinputTouchScreen::sendDown(const Point& point) { in sendDown() argument 221 injectEvent(EV_ABS, ABS_MT_POSITION_X, point.x); in sendDown() 222 injectEvent(EV_ABS, ABS_MT_POSITION_Y, point.y); in sendDown() 225 void UinputTouchScreen::sendMove(const Point& point) { in sendMove() argument 226 injectEvent(EV_ABS, ABS_MT_POSITION_X, point.x); in sendMove() 227 injectEvent(EV_ABS, ABS_MT_POSITION_Y, point.y); in sendMove()
|
/frameworks/base/services/autofill/java/com/android/server/autofill/ui/ |
D | CustomScrollView.java | 114 final Point point = new Point(); in calculateDimensions() 116 context.getDisplayNoVerify().getSize(point); in calculateDimensions() 120 int displayHeight = point.y; in calculateDimensions()
|
/frameworks/libs/binary_translation/kernel_api/tools/ |
D | README.md | 12 Automatic translation happens between system calls with the same entry point if entry point 24 In addition, the script checks entry point prototypes and marks those without parameters. System 36 Entry point `sys_foo` is a function that gets system call parameters in a form of `struct ptregs*`.
|