Home
last modified time | relevance | path

Searched refs:segmentStartX (Results 1 – 1 of 1) sorted by relevance

/frameworks/base/core/java/android/gesture/
DGestureUtils.java151 float segmentStartX = pts[i] < 0 ? 0 : pts[i]; in spatialSampling() local
153 if (segmentStartX > targetPatchSize) { in spatialSampling()
154 segmentStartX = targetPatchSize; in spatialSampling()
159 plot(segmentStartX, segmentStartY, sample, bitmapSize); in spatialSampling()
162 if (segmentEndX > segmentStartX) { in spatialSampling()
163 xpos = (float) Math.ceil(segmentStartX); in spatialSampling()
165 (segmentEndX - segmentStartX); in spatialSampling()
167 ypos = slope * (xpos - segmentStartX) + segmentStartY; in spatialSampling()
171 } else if (segmentEndX < segmentStartX){ in spatialSampling()
174 (segmentEndX - segmentStartX); in spatialSampling()
[all …]