/packages/apps/Dialer/java/com/android/dialer/util/ |
H A D | TouchPointManager.java | 32 private Point point = new Point(); field in class:TouchPointManager 42 return point; 46 point.set(x, y); 50 * When a point is initialized, its value is (0,0). Since it is highly unlikely a user will touch 51 * at that exact point, if the point in TouchPointManager is (0,0), it is safe to assume that the 54 * @return True if there is a valid point saved. Define a valid point as any point that is not 58 return point [all...] |
/packages/apps/Dialer/java/com/android/incallui/answer/impl/classifier/ |
H A D | AccelerationClassifier.java | 53 Point point = stroke.getPoints().get(stroke.getPoints().size() - 1); 55 strokeMap.put(stroke, new Data(point)); 57 strokeMap.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 | Stroke.java | 42 Point point = new Point(x / dpi, y / dpi, eventTimeNano - startTimeNano); 44 length += points.get(points.size() - 1).dist(point); 46 points.add(point);
|
H A D | SpeedAnglesClassifier.java | 26 * A classifier which for each point from a stroke, it creates a point on plane with coordinates 29 * (without splitting it into two parts). The classifier ignores the last point of a stroke because 102 public void addPoint(Point point) { argument 104 dist += previousPoint.dist(point); 107 previousPoint = point; 109 new Point((float) point.timeOffsetNano / DURATION_SCALE, dist / LENGTH_SCALE); 111 // Checking if the added point is different than the previously added point
|
H A D | AnglesClassifier.java | 28 * ignores the repetitions. If a new point is added, the classifier calculates the angle between the 118 public void addPoint(Point point) { argument 119 // Checking if the added point is different than the previously added point 122 || (!lastThreePoints.get(lastThreePoints.size() - 1).equals(point) 123 && (lastThreePoints.get(lastThreePoints.size() - 1).dist(point) 126 length += lastThreePoints.get(lastThreePoints.size() - 1).dist(point); 128 lastThreePoints.add(point);
|
/packages/apps/Camera2/src/com/android/camera/one/v2/autofocus/ |
H A D | PointMeteringParameters.java | 92 private MeteringRectangle regionForNormalizedCoord(PointF point, argument 99 // point is normalized to the screen. 104 PointF nsc = transformPortraitCoordinatesToSensorCoordinates(point); 132 PointF point) { 135 return point; 137 return new PointF(point.y, 1.0f - point.x); 139 return new PointF(1.0f - point.x, 1.0f - point.y); 141 return new PointF(1.0f - point 131 transformPortraitCoordinatesToSensorCoordinates( PointF point) argument [all...] |
H A D | ManualAutoFocusImpl.java | 46 PointF point = new PointF(nx, ny); 48 point /* afPoint */, point /* aePoint */, mSensorOrientation, mSettings3A));
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
H A D | FilterGradRepresentation.java | 102 for (Band point : mBands) { 103 if (!point.mask) { 180 for (Band point : mBands) { 181 if (!point.mask) { 205 for (Band point : mBands) { 206 if (point.mask) { 211 for (Band point : mBands) { 212 if (point.mask) { 215 int index = mBands.indexOf(point); 218 double dist = Math.hypot(point [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
H A D | ControlPoint.java | 28 public ControlPoint(ControlPoint point) { argument 29 x = point.x; 30 y = point.y;
|
H A D | GradControl.java | 129 float[] point = new float[]{ 131 mScrToImg.mapPoints(point); 132 mDownX = point[0]; 133 mDownY = point[1]; 141 float[] point = new float[]{ 143 mScrToImg.mapPoints(point); 144 x = point[0]; 145 y = point[1]; 148 point[0] = 0; 149 point[ [all...] |
H A D | EclipseControl.java | 112 float[] point = new float[]{ 114 mScrToImg.mapPoints(point); 115 mDownX = point[0]; 116 mDownY = point[1]; 125 float[] point = new float[]{ 127 mScrToImg.mapPoints(point); 128 x = point[0]; 129 y = point[1]; 132 point[0] = 0; 133 point[ [all...] |
H A D | Spline.java | 108 private void didMovePoint(ControlPoint point) { argument 109 mCurrentControlPoint = point; 116 ControlPoint point = mPoints.elementAt(pick); 117 point.x = x; 118 point.y = y; 119 didMovePoint(point); 419 ControlPoint point = mPoints.elementAt(i); 420 if (point.x > x) { 425 ControlPoint point = mPoints.elementAt(i); 426 if (point [all...] |
H A D | ImageRedEye.java | 109 protected void drawPoint(FilterPoint point, Canvas canvas, Matrix originalToScreen, argument 111 RedEyeCandidate candidate = (RedEyeCandidate) point;
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
H A D | BaseRecyclerView.java | 125 int[] point = new int[2]; 126 point[0] = (int) ev.getX(); 127 point[1] = (int) ev.getY(); 128 Utilities.mapCoordInSelfToDescendant(mScrollbar, eventSource, point); 130 if (mScrollbar.shouldBlockIntercept(point[0], point[1])) {
|
/packages/apps/Settings/src/com/android/settings/widget/ |
H A D | ChartAxis.java | 23 * Axis along a {@link ChartView} that knows how to convert between raw point 33 /** Convert raw value into screen point. */ 35 /** Convert screen point into raw value. */ 36 public long convertToValue(float point); argument
|
H A D | InvertedChartAxis.java | 50 public long convertToValue(float point) { argument 51 return mWrapped.convertToValue(mSize - point);
|
H A D | ChartDataUsageView.java | 433 public long convertToValue(float point) { argument 434 return (long) (mMin + ((point * (mMax - mMin)) / mSize)); 523 public long convertToValue(float point) { argument 525 final double normalized = point / mSize; 530 return (long) (mMin + ((point * (mMax - mMin)) / mSize)); 566 final float point = convertToPoint(value); 567 if (point < mSize * 0.1) { 569 } else if (point > mSize * 0.85) {
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/touch/ |
H A D | TouchPointView.java | 77 finger.point = new Point((int)event.getX(pointerIndex), (int)event.getY(pointerIndex)); 110 Point point = finger.point; 113 canvas.drawCircle(point.x, point.y, radius, mPaint); 118 public Point point; field in class:TouchPointView.Finger
|
/packages/apps/ExactCalculator/src/com/android/calculator2/ |
H A D | DragLayout.java | 131 final PointF point = new PointF(event.getX(actionIndex), event.getY(actionIndex)); 132 mLastMotionPoints.put(pointerId, point); 138 final PointF point = mLastMotionPoints.get(pointerId); 139 if (point != null) { 140 point.set(event.getX(i), event.getY(i)); 307 final PointF point = mLastMotionPoints.get(pointerId); 308 if (point == null) { 312 final int x = (int) point.x; 313 final int y = (int) point.y;
|
/packages/apps/Camera2/src/com/android/camera/captureintent/resource/ |
H A D | ResourceOpenedCameraImpl.java | 139 public void triggerFocusAndMeterAtPoint(PointF point) { argument 140 mCamera.triggerFocusAndMeterAtPoint(point.x, point.y);
|
H A D | ResourceOpenedCamera.java | 102 * Trigger active focus at a specific point. 104 * @param point The focus point. 106 public void triggerFocusAndMeterAtPoint(PointF point); argument
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/ |
H A D | CropMath.java | 53 * Returns true iff point (x, y) is within or on the rectangle's bounds. 58 * @param x the x value of the point 59 * @param y the y value of the point 89 * If edge point [x, y] in array [x0, y0, x1, y1, ...] is outside of the 106 * Takes a point and the corners of a rectangle and returns the two corners 107 * representing the side of the rectangle closest to the point. 109 * @param point the point which is being checked 113 public static float[] closestSide(float[] point, float[] corners) { argument 123 GeometryMathUtils.shortestVectorFromPointToLine(point, lin 140 pointInRotatedRect(float[] point, RectF bound, float rot) argument 159 pointInRotatedRect(float[] point, float[] rotatedRect, float[] center) argument [all...] |
/packages/apps/Camera2/src/com/android/camera/util/ |
H A D | Size.java | 40 public Size(Point point) { argument 41 this.width = point.x; 42 this.height = point.y;
|
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/ |
H A D | CropView.java | 239 // Determine focal point 283 float[] point = mTempPoint; 284 point[0] = (mLastX - x) / mRenderer.scale; 285 point[1] = (mLastY - y) / mRenderer.scale; 286 mInverseRotateMatrix.mapPoints(point); 287 mCenterX += point[0]; 288 mCenterY += point[1];
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/ |
H A D | MatrixFit.java | 119 public double[] apply(double[] point) { argument 120 if (mDimension != point.length) { 126 res[j] += point[i] * mMatrix[i][j+ mDimension +1];
|