Home
last modified time | relevance | path

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

/external/walt/android/WALT/app/src/test/java/org/chromium/latency/walt/
DUtilsTest.java150 double[] touchY = new double[touchTimes.length]; in testFindBestShift() local
151 for (int i = 0; i < touchY.length; i++) { in testFindBestShift()
153touchY[i] = 1000*Math.cos((touchTimes[i] - latency) * Math.PI/500) + rand.nextDouble()*0.02 - 0.01; in testFindBestShift()
163 assertEquals(latency, Utils.findBestShift(laserTimes, touchTimes, touchY), 1e-6); in testFindBestShift()
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/core/src/main/java/com/google/android/exoplayer2/video/spherical/
DTouchTracker.java101 float touchY = (e2.getY() - previousTouchPointPx.y) / pxPerDegrees; in onScroll() local
111 accumulatedTouchOffsetDegrees.x -= cr * touchX - sr * touchY; in onScroll()
113 accumulatedTouchOffsetDegrees.y += sr * touchX + cr * touchY; in onScroll()
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/core/src/main/java/com/google/android/exoplayer2/video/spherical/
DTouchTracker.java101 float touchY = (e2.getY() - previousTouchPointPx.y) / pxPerDegrees; in onScroll() local
111 accumulatedTouchOffsetDegrees.x -= cr * touchX - sr * touchY; in onScroll()
113 accumulatedTouchOffsetDegrees.y += sr * touchX + cr * touchY; in onScroll()
/external/walt/android/WALT/app/src/main/java/org/chromium/latency/walt/
DUtils.java139 …private static double getShiftError(double[] laserT, double[] touchT, double[] touchY, double shif… in getShiftError() argument
144 double [] laserY = Utils.interp(T, touchT, touchY); in getShiftError()
156 public static double findBestShift(double[] laserT, double[] touchT, double[] touchY) { in findBestShift() argument
163 …stddevs[i] = getShiftError(laserT, touchT, touchY, bestShift + shiftStep * i - shiftStep * steps /… in findBestShift()