/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/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/windowdecor/ |
D | DragResizeWindowGeometryTests.java | 124 private static void verifyHorizontalEdge(@NonNull Region region, @NonNull Point point) { in verifyHorizontalEdge() argument 125 assertThat(region.contains(point.x, point.y)).isTrue(); in verifyHorizontalEdge() 127 assertThat(region.contains(point.x + EDGE_RESIZE_DEBUG_THICKNESS, point.y)).isTrue(); in verifyHorizontalEdge() 128 assertThat(region.contains(point.x - EDGE_RESIZE_DEBUG_THICKNESS, point.y)).isTrue(); in verifyHorizontalEdge() 130 assertThat(region.contains(point.x, point.y - EDGE_RESIZE_DEBUG_THICKNESS)).isFalse(); in verifyHorizontalEdge() 131 assertThat(region.contains(point.x, point.y + EDGE_RESIZE_DEBUG_THICKNESS)).isFalse(); in verifyHorizontalEdge() 134 private static void verifyVerticalEdge(@NonNull Region region, @NonNull Point point) { in verifyVerticalEdge() argument 135 assertThat(region.contains(point.x, point.y)).isTrue(); in verifyVerticalEdge() 137 assertThat(region.contains(point.x + EDGE_RESIZE_DEBUG_THICKNESS, point.y)).isFalse(); in verifyVerticalEdge() 138 assertThat(region.contains(point.x - EDGE_RESIZE_DEBUG_THICKNESS, point.y)).isFalse(); in verifyVerticalEdge() [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/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/base/libs/hwui/pipeline/skia/ |
D | SkiaDisplayList.cpp | 78 for (auto& point : points) { in intersects() local 79 mat.mapPoint3d(point); in intersects() 81 minX = maxX = point.x; in intersects() 82 minY = maxY = point.y; in intersects() 85 minX = std::min(minX, point.x); in intersects() 86 minY = std::min(minY, point.y); in intersects() 87 maxX = std::max(maxX, point.x); in intersects() 88 maxY = std::max(maxY, point.y); in intersects()
|
/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 | 88 Point point = (Point) o; in equals() 90 if (x != point.x) return false; in equals() 91 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 | 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()
|
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()
|
/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/services/core/java/com/android/server/display/config/ |
D | HdrBrightnessData.java | 91 for (NonNegativeFloatToFloatPoint point: points) { in loadConfig() 92 brightnessLimits.put(point.getFirst().floatValue(), point.getSecond().floatValue()); in loadConfig()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | ScreenshotTests.java | 203 Point point = mActivity.getPositionBelowStatusBar(); in testCaptureDisplay() local 208 .setPosition(sc, point.x, point.y) in testCaptureDisplay() 240 Rect bounds = new Rect(point.x, point.y, BUFFER_WIDTH + point.x, in testCaptureDisplay() 241 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 | 222 void UinputTouchScreen::sendDown(const Point& point) { in sendDown() argument 225 injectEvent(EV_ABS, ABS_MT_POSITION_X, point.x); in sendDown() 226 injectEvent(EV_ABS, ABS_MT_POSITION_Y, point.y); in sendDown() 229 void UinputTouchScreen::sendMove(const Point& point) { in sendMove() argument 230 injectEvent(EV_ABS, ABS_MT_POSITION_X, point.x); in sendMove() 231 injectEvent(EV_ABS, ABS_MT_POSITION_Y, point.y); in sendMove()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/wallpaper/ |
D | WallpaperCropperTest.java | 634 private static Rect centerOf(Rect container, Point point) { in centerOf() argument 635 checkSubset(container, point); in centerOf() 636 int diffWidth = container.width() - point.x; in centerOf() 637 int diffHeight = container.height() - point.y; in centerOf() 640 return new Rect(startX, startY, startX + point.x, startY + point.y); in centerOf() 643 private static Rect leftOf(Rect container, Point point) { in leftOf() argument 644 Rect result = centerOf(container, point); in leftOf() 649 private static Rect rightOf(Rect container, Point point) { in rightOf() argument 650 checkSubset(container, point); in rightOf() 651 Rect result = centerOf(container, point); in rightOf() [all …]
|
/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()
|