Searched refs:stroke (Results 1 – 24 of 24) sorted by relevance
25 int stroke, Paint paint) { in drawSelection() argument26 canvas.drawRect(left, top, right, top + stroke, paint); in drawSelection()27 canvas.drawRect(left, bottom - stroke, right, bottom, paint); in drawSelection()28 canvas.drawRect(left, top, left + stroke, bottom, paint); in drawSelection()29 canvas.drawRect(right - stroke, top, right, bottom, paint); in drawSelection()33 int stroke, Paint selectPaint, int border, Paint borderPaint) { in drawSelection() argument34 canvas.drawRect(left, top, right, top + stroke, selectPaint); in drawSelection()35 canvas.drawRect(left, bottom - stroke, right, bottom, selectPaint); in drawSelection()36 canvas.drawRect(left, top, left + stroke, bottom, selectPaint); in drawSelection()37 canvas.drawRect(right - stroke, top, right, bottom, selectPaint); in drawSelection()[all …]
354 StrokeData stroke = new StrokeData(); in deSerializeRepresentation() local359 stroke.mColor = sreader.nextInt(); in deSerializeRepresentation()361 stroke.mRadius = (float) sreader.nextDouble(); in deSerializeRepresentation()363 stroke.mType = (byte) sreader.nextInt(); in deSerializeRepresentation()365 stroke.noPoints = sreader.nextInt(); in deSerializeRepresentation()371 if ((count + 1) > stroke.mPoints.length) { in deSerializeRepresentation()372 stroke.mPoints = Arrays.copyOf(stroke.mPoints, count * 2); in deSerializeRepresentation()374 stroke.mPoints[count++] = (float) sreader.nextDouble(); in deSerializeRepresentation()376 stroke.mPath = new Path(); in deSerializeRepresentation()377 stroke.mPath.moveTo(stroke.mPoints[0], stroke.mPoints[1]); in deSerializeRepresentation()[all …]
260 StrokeData stroke = mParameters.getCurrentDrawing(); in drawData() local261 if (stroke != null) { in drawData()262 paint(stroke, canvas, originalRotateToScreen, quality); in drawData()
52 Stroke stroke = classifierData.getStroke(event.getPointerId(i)); in onTouchEvent() local53 Point point = stroke.getPoints().get(stroke.getPoints().size() - 1); in onTouchEvent()54 if (strokeMap.get(stroke) == null) { in onTouchEvent()55 strokeMap.put(stroke, new Data(point)); in onTouchEvent()57 strokeMap.get(stroke).addPoint(point); in onTouchEvent()63 public float getFalseTouchEvaluation(Stroke stroke) { in getFalseTouchEvaluation() argument64 Data data = strokeMap.get(stroke); in getFalseTouchEvaluation()
56 Stroke stroke = classifierData.getStroke(event.getPointerId(i)); in onTouchEvent() local58 if (strokeMap.get(stroke) == null) { in onTouchEvent()59 strokeMap.put(stroke, new Data()); in onTouchEvent()65 strokeMap.get(stroke).addPoint(stroke.getPoints().get(stroke.getPoints().size() - 1)); in onTouchEvent()71 public float getFalseTouchEvaluation(Stroke stroke) { in getFalseTouchEvaluation() argument72 Data data = strokeMap.get(stroke); in getFalseTouchEvaluation()
70 Stroke stroke = classifierData.getStroke(event.getPointerId(i)); in onTouchEvent() local72 if (strokeMap.get(stroke) == null) { in onTouchEvent()73 strokeMap.put(stroke, new Data()); in onTouchEvent()75 strokeMap.get(stroke).addPoint(stroke.getPoints().get(stroke.getPoints().size() - 1)); in onTouchEvent()80 public float getFalseTouchEvaluation(Stroke stroke) { in getFalseTouchEvaluation() argument81 Data data = strokeMap.get(stroke); in getFalseTouchEvaluation()
34 public float getFalseTouchEvaluation(Stroke stroke) { in getFalseTouchEvaluation() argument36 if (stroke.getTotalLength() == 0.0f) { in getFalseTouchEvaluation()39 ratio = stroke.getEndPointLength() / stroke.getTotalLength(); in getFalseTouchEvaluation()
32 public float getFalseTouchEvaluation(Stroke stroke) { in getFalseTouchEvaluation() argument33 Point firstPoint = stroke.getPoints().get(0); in getFalseTouchEvaluation()34 Point lastPoint = stroke.getPoints().get(stroke.getPoints().size() - 1); in getFalseTouchEvaluation()
32 public float getFalseTouchEvaluation(Stroke stroke) { in getFalseTouchEvaluation() argument33 return DurationCountEvaluator.evaluate(stroke.getDurationSeconds() / stroke.getCount()); in getFalseTouchEvaluation()
35 public float getFalseTouchEvaluation(Stroke stroke) { in getFalseTouchEvaluation() argument37 stroke.getTotalLength() / Math.max(1.0f, stroke.getCount() - 2)); in getFalseTouchEvaluation()
33 public float getFalseTouchEvaluation(Stroke stroke) { in getFalseTouchEvaluation() argument34 float duration = stroke.getDurationSeconds(); in getFalseTouchEvaluation()38 return SpeedEvaluator.evaluate(stroke.getTotalLength() / duration); in getFalseTouchEvaluation()
33 public float getFalseTouchEvaluation(Stroke stroke) { in getFalseTouchEvaluation() argument34 return EndPointLengthEvaluator.evaluate(stroke.getEndPointLength()); in getFalseTouchEvaluation()
96 Stroke stroke = classifierData.getEndingStrokes().get(i); in addTouchEvent() local99 float e = c.getFalseTouchEvaluation(stroke); in addTouchEvent()
27 public abstract float getFalseTouchEvaluation(Stroke stroke); in getFalseTouchEvaluation() argument
251 final Paint stroke = new Paint(); in drawBitmapWithCircleOnCanvas() local252 stroke.setAntiAlias(true); in drawBitmapWithCircleOnCanvas()253 stroke.setColor(strokeColor); in drawBitmapWithCircleOnCanvas()254 stroke.setStyle(Paint.Style.STROKE); in drawBitmapWithCircleOnCanvas()256 stroke.setStrokeWidth(strokeWidth); in drawBitmapWithCircleOnCanvas()260 /* radius= */ dest.width() / 2f - stroke.getStrokeWidth() / 2f, in drawBitmapWithCircleOnCanvas()261 stroke); in drawBitmapWithCircleOnCanvas() local
72 public void addStroke(final GestureStrokeDrawingPoints stroke, final long downTime) { in addStroke() argument74 addStrokeLocked(stroke, downTime); in addStroke()78 private void addStrokeLocked(final GestureStrokeDrawingPoints stroke, final long downTime) { in addStrokeLocked() argument80 stroke.appendPreviewStroke(mEventTimes, mXCoordinates, mYCoordinates, mPointTypes); in addStrokeLocked()85 final int strokeId = stroke.getGestureStrokeId(); in addStrokeLocked()96 mLastInterpolatedDrawIndex = stroke.interpolateStrokeAndReturnStartIndexOfLastSegment( in addStrokeLocked()
158 final Paint stroke = new Paint(); in drawBitmapWithCircleOnCanvas() local159 stroke.setAntiAlias(true); in drawBitmapWithCircleOnCanvas()160 stroke.setColor(strokeColor); in drawBitmapWithCircleOnCanvas()161 stroke.setStyle(Paint.Style.STROKE); in drawBitmapWithCircleOnCanvas()163 stroke.setStrokeWidth(strokeWidth); in drawBitmapWithCircleOnCanvas()166 dest.width() / 2f - stroke.getStrokeWidth() / 2f, in drawBitmapWithCircleOnCanvas()167 stroke); in drawBitmapWithCircleOnCanvas() local
1dictionary=main:en_gb,locale=en_GB,description=English (UK),date ...
1dictionary=main:en,locale=en,description=English,date=1414726273, ...