/aosp14/frameworks/base/core/java/android/gesture/ |
H A D | OrientedBoundingBox.java | 58 point[0] = -width / 2; in toPath() 59 point[1] = height / 2; 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() 69 path.lineTo(point[0], point[1]); in toPath() 71 point[0] = width / 2; in toPath() 74 path.lineTo(point[0], point[1]); in toPath() 76 point[0] = width / 2; in toPath() 77 point[1] = height / 2; in toPath() [all …]
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/ui/ |
H A 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() 95 path.lineTo(point.x, point.y); in toPath() 108 d1 = new PointF((point.x - previousPoint.x), (point.y - previousPoint.y)); in normalAt() 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() 131 private PointF normalize(PointF point) { in normalize() argument 132 float magnitude = magnitude(point); in normalize() 134 return point; in normalize() [all …]
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/ |
H A 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()
|
/aosp14/frameworks/base/tests/SurfaceViewBufferTests/src/com/android/test/ |
H A D | SurfaceViewBufferTestBase.kt | 74 fun LayerSubject.hasBufferSize(point: Point) = hasBufferSize(Size.from(point.x, point.y)) 76 fun LayerSubject.hasLayerSize(point: Point) = hasLayerSize(Size.from(point.x, point.y))
|
/aosp14/frameworks/base/media/mca/filterfw/java/android/filterfw/geometry/ |
H A 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()
|
/aosp14/frameworks/base/libs/hwui/pipeline/skia/ |
H A 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()
|
/aosp14/frameworks/base/core/java/com/android/internal/graphics/palette/ |
H A 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()
|
/aosp14/frameworks/base/graphics/java/android/graphics/ |
H A 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()
|
H A 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()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/udfps/ |
H A D | EllipseOverlapDetector.kt | 115 private fun checkPoint(point: Point, touchData: NormalizedTouchData): Boolean { 119 val a: Float = cos(touchData.orientation) * (point.x - touchData.x) 120 val b: Float = sin(touchData.orientation) * (point.y - touchData.y) 121 val c: Float = sin(touchData.orientation) * (point.x - touchData.x) 122 val d: Float = cos(touchData.orientation) * (point.y - touchData.y)
|
/aosp14/frameworks/base/core/java/android/view/inputmethod/ |
H A 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()
|
H A 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()
|
H A 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()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/ |
H A 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()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
H A D | MediaArtworkProcessorTest.kt | 49 val point = Point() regex 50 checkNotNull(context.display).getSize(point) 51 screenWidth = point.x 52 screenHeight = point.y
|
/aosp14/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
H A 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()
|
/aosp14/frameworks/base/services/autofill/java/com/android/server/autofill/ui/ |
H A 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()
|
/aosp14/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/ |
H A D | CropView.java | 272 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()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
H A D | StatusBarMoveFromCenterAnimationControllerTest.kt | 46 val point = it.arguments[0] as Point regex 47 point.x = 100 48 point.y = 100
|
/aosp14/frameworks/base/core/jni/ |
H A D | android_view_InputEventReceiver.md | 10 …vailable, `InputConsumer::hasPendingBatch` returns true. No event is sent to the app at this point. 19 …g., it has unread events), the looper will execute `handleEvent`. At this point, the app is expect… 25 If a batched event comes in at this point (typically, any MOVE event that has source = TOUCHSCREEN)… 33 …alid frame time>, ..)`. At this point, the `consume` function will return all batched events up to…
|
/aosp14/frameworks/base/media/java/android/media/ |
H A D | FaceDetector.java | 58 public void getMidPoint(PointF point) { in getMidPoint() argument 60 point.set(mMidPointX, mMidPointY); in getMidPoint()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | StatusBarContentInsetsProvider.kt | 123 val point = Point() regex 124 checkNotNull(context.display).getRealSize(point) 126 return topBounds.left <= 0 || topBounds.right >= point.x 168 val point = Point(screenBounds.width(), screenBounds.height()) regex 171 point.orientToRotZero(getExactRotation(context)) 172 val width = point.logicalWidth(rotation)
|
/aosp14/frameworks/base/libs/hwui/jni/ |
H A D | GraphicsJNI.h | 82 static SkIPoint* jpoint_to_ipoint(JNIEnv*, jobject jpoint, SkIPoint* point); 83 static void ipoint_to_jpoint(const SkIPoint& point, JNIEnv*, jobject jpoint); 85 static SkPoint* jpointf_to_point(JNIEnv*, jobject jpointf, SkPoint* point); 86 static void point_to_jpointf(const SkPoint& point, JNIEnv*, jobject jpointf);
|
/aosp14/system/core/trusty/confirmationui/ |
H A D | README | 14 sufficiently secure IFF the end point is implemented on a trustworthy 18 NOTE that a secure input device end point needs a good source of entropy
|
/aosp14/frameworks/base/core/tests/coretests/src/android/widget/ |
H A D | SelectionActionModeHelperTest.java | 110 final PointF point = new PointF(pointX, pointY); in testMovePointInsideNearestRectangle() local 112 SelectionActionModeHelper.movePointInsideNearestRectangle(point, in testMovePointInsideNearestRectangle()
|