/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/ |
H A D | AccelerationClassifier.java | 53 Point point = stroke.getPoints().get(stroke.getPoints().size() - 1); 55 mStrokeMap.put(stroke, new Data(point)); 57 mStrokeMap.get(stroke).addPoint(point); 76 public Data(Point point) { argument 77 previousPoint = point; 80 public void addPoint(Point point) { argument 81 float distance = previousPoint.dist(point); 82 float duration = (float) (point.timeOffsetNano - previousPoint.timeOffsetNano + 1); 88 previousPoint = point; 96 previousPoint = point; [all...] |
H A D | AnglesClassifier.java | 31 * ignores the repetitions. If a new point is added, the classifier calculates the angle between 125 public void addPoint(Point point) { argument 126 // Checking if the added point is different than the previously added point 129 || !mLastThreePoints.get(mLastThreePoints.size() - 1).equals(point)) { 131 mLength += mLastThreePoints.get(mLastThreePoints.size() - 1).dist(point); 133 mLastThreePoints.add(point);
|
H A D | SpeedAnglesClassifier.java | 28 * A classifier which for each point from a stroke, it creates a point on plane with coordinates 32 * the last point of a stroke because the UP event comes in with some delay and this ruins the 109 public void addPoint(Point point) { argument 111 mDist += mPreviousPoint.dist(point); 114 mPreviousPoint = point; 115 Point speedPoint = new Point((float) point.timeOffsetNano / DURATION_SCALE, 118 // Checking if the added point is different than the previously added point
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/geometry/ |
H A D | Point.java | 52 public Point plus(Point point) { argument 53 return this.plus(point.x, point.y); 60 public Point minus(Point point) { argument 61 return this.minus(point.x, point.y);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
H A D | HardwareBgDrawable.java | 68 public void setCutPoint(int point) { argument 69 mPoint = point;
|
H A D | HardwareUiLayout.java | 368 private void setCutPoint(int point) { argument 370 if (curPoint == point) return; 372 mBackground.setCutPoint(point); 376 if (mEndPoint == point) { 381 mEndPoint = point; 382 mAnimator = ObjectAnimator.ofInt(mBackground, "cutPoint", curPoint, point);
|
/frameworks/support/compat/src/main/java/androidx/core/view/ |
H A D | DragStartHelper.java | 175 * @param point The position of the touch event that started the drag operation. 177 public void getTouchPosition(Point point) { argument 178 point.set(mLastTouchX, mLastTouchY);
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/ |
H A D | StreamDescriptor.cpp | 77 const VolumeCurvePoint *point) 79 mVolumeCurve[deviceCategory] = point; 127 const VolumeCurvePoint *point) 129 editValueAt(stream).setVolumeCurvePoint(deviceCategory, point); 76 setVolumeCurvePoint(device_category deviceCategory, const VolumeCurvePoint *point) argument 125 setVolumeCurvePoint(audio_stream_type_t stream, device_category deviceCategory, const VolumeCurvePoint *point) argument
|
H A D | Serializer.cpp | 524 const char *const VolumeTraits::volumePointTag = "point"; 575 Vector<int32_t> point; local 576 collectionFromString<DefaultTraits<int32_t> >((const char*)pointDefinition, point, ","); 577 if (point.size() != 2) { 582 element->add(CurvePoint(point[0], point[1]));
|
/frameworks/base/core/java/com/android/internal/ml/clustering/ |
H A D | KMeans.java | 143 // which point belongs to each mean again. 186 public static Mean nearestMean(float[] point, List<Mean> means) { argument 195 float nextDistance = sqDistance(point, next.mCentroid);
|
/frameworks/base/media/mca/filterfw/native/core/ |
H A D | geometry.cpp | 131 const Point& Quad::point(int ix) const { function in class:android::filterfw::Quad
|
/frameworks/base/media/mca/filterpacks/native/base/ |
H A D | geometry.cpp | 132 const Point& Quad::point(int ix) const { function in class:android::filterfw::Quad
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
H A D | GestureDescriptionTest.java | 298 description.appendText("Has " + numTouchPoints + " touch point(s)"); 343 Matcher<GestureStep> hasPoint(final PointF point) { argument 348 if ((gestureStep.touchPoints[i].mX == point.x) 349 && (gestureStep.touchPoints[i].mY == point.y)) { 358 description.appendText("Has at least one point at " + point); 377 description.appendText("Has at least one point with stroke id " + strokeId);
|
/frameworks/rs/tests/java_api/HealingBrush/src/rs/example/android/com/healingbrush/ |
H A D | MainActivity.java | 216 void getScreenCoord(float[] point) { argument
|
/frameworks/rs/tests/java_api/SSHealingBrush/src/rs/example/android/com/healingbrush/ |
H A D | MainActivity.java | 216 void getScreenCoord(float[] point) { argument
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/ |
H A D | VolumeCurve.h | 58 void add(const CurvePoint &point) { mCurvePoints.add(point); } argument
|
/frameworks/base/media/java/android/media/ |
H A D | FaceDetector.java | 54 * Sets the position of the mid-point between the eyes. 55 * @param point the PointF coordinates (float values) of the 56 * face's mid-point 58 public void getMidPoint(PointF point) { argument 60 point.set(mMidPointX, mMidPointY);
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/util/ |
H A D | CachedPathIteratorFactory.java | 58 int nPoints = getNumberOfPoints(type) * 2; // 2 coordinates per point 129 // Calculate X and Y at 0.5 (We'll use this to reconstruct the control point later) 146 // estimated control point at t'=0.5 183 * Returns the end point of a given segment 187 * @param point the return array where the point will be stored 190 point) { 191 // start index of the end point for the segment type 193 point[0] = coords[pointIndex]; 194 point[ 189 getShapeEndPoint(int type, @NonNull float[] coords, @NonNull float[] point) argument 247 getPointAtLength(int type, @NonNull float[] coords, float lastX, float lastY, float t, @NonNull float[] point) argument 391 getCurrentSegmentEnd(float[] point) argument [all...] |
/frameworks/base/core/java/android/content/res/ |
H A D | CompatibilityInfo.java | 393 public void translatePointInScreenToAppWindow(PointF point) { argument 396 point.x *= scale; 397 point.y *= scale;
|
/frameworks/base/core/java/android/hardware/camera2/legacy/ |
H A D | ParameterUtils.java | 46 /** Upper/left minimal point of a normalized rectangle */ 48 /** Lower/right maximal point of a normalized rectangle */ 943 Rect activeArray, ZoomData zoomData, Point point, boolean usePreviewCrop) { 944 Rect pointedRect = new Rect(point.x, point.y, point.x, point.y); 978 // Move the rect so that the [-1000,-1000] point ends up at the preview [left, top] 942 convertCameraPointToActiveArrayPoint( Rect activeArray, ZoomData zoomData, Point point, boolean usePreviewCrop) argument
|
/frameworks/base/core/java/android/widget/ |
H A D | SmartSelectSprite.java | 103 * touch point). For example, in left-to-right text, a selection spanning two lines with the 351 * @param start The point from which the animation will start. Must be inside 359 * @throws IllegalArgumentException if the given start point is not in any of the 392 throw new IllegalArgumentException("Center point is not inside any of the rectangles!"); 541 * A variant of {@link RectF#contains(float, float)} that also allows the point to reside on 544 * @param rectangle the rectangle inside which the point should be to be considered "contained" 545 * @param point the point which will be tested 546 * @return whether the point is inside the rectangle (or on it's right boundary) 548 private static boolean contains(final RectF rectangle, final PointF point) { argument [all...] |
H A D | SelectionActionModeHelper.java | 410 public static <T> PointF movePointInsideNearestRectangle(final PointF point, argument 422 if (point.x > rectangle.right) { 424 } else if (point.x < rectangle.left) { 427 candidateX = point.x; 430 final double candidateDistance = Math.pow(point.x - candidateX, 2) 431 + Math.pow(point.y - candidateY, 2);
|
/frameworks/base/libs/hwui/ |
H A D | TessellationCache.cpp | 182 static void mapPointFakeZ(Vector3& point, const mat4* transformXY, const mat4* transformZ) { argument 184 point.z = transformZ->mapZ(point); 187 transformXY->mapPoint(point.x, point.y);
|
/frameworks/base/packages/EasterEgg/src/com/android/egg/octo/ |
H A D | OctopusDrawable.java | 50 final PointF point = new PointF(); field in class:OctopusDrawable 122 if (point.y - BASE_SCALE/2 > scaledBounds[1]) { 124 } else if (point.y + BASE_SCALE < 0) { 128 point.x = clamp(point.x + dt_sec * vx, 0, scaledBounds[0]); 129 point.y = point.y + dt_sec * vy; 158 point.x = x; 159 point.y = y; 160 mapPointF(M_inv, point); 273 mapPointF(Matrix m, PointF point) argument [all...] |
/frameworks/base/core/jni/android/graphics/ |
H A D | Path.cpp | 245 const SkPoint& point) { 250 segmentPoints.push_back(point); 296 // Subdivide a section of the Bezier curve, set the mid-point and the mid-t value. 313 // errorSquared as a metric. Cubic Bezier curves can have an inflection point that improperly 316 // the point. It is clearly not the case that we can linearly interpolate at that point. 344 // Found an inflection point. No need to double-check. 408 // Returns a float[] with each point along the path represented by 3 floats 409 // * fractional length along the path that the point resides 412 // Note that more than one point ma 244 addMove(std::vector<SkPoint>& segmentPoints, std::vector<float>& lengths, const SkPoint& point) argument 457 const SkPoint& point = segmentPoints[i]; local [all...] |