Home
last modified time | relevance | path

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

/frameworks/layoutlib/bridge/src/android/graphics/
DPathMeasure_Delegate.java105 PathMeasure_Delegate pathMeasure = sManager.getDelegate(native_instance); in native_setPath() local
106 assert pathMeasure != null; in native_setPath()
116pathMeasure.mOriginalPathIterator = new CachedPathIteratorFactory(pathDelegate.getJavaShape() in native_setPath()
120 pathMeasure.mNativePath = native_path; in native_setPath()
125 PathMeasure_Delegate pathMeasure = sManager.getDelegate(native_instance); in native_getLength() local
126 assert pathMeasure != null; in native_getLength()
128 if (pathMeasure.mOriginalPathIterator == null) { in native_getLength()
132 return pathMeasure.mOriginalPathIterator.iterator().getTotalLength(); in native_getLength()
137 PathMeasure_Delegate pathMeasure = sManager.getDelegate(native_instance); in native_isClosed() local
138 assert pathMeasure != null; in native_isClosed()
[all …]
/frameworks/support/transition/tests/src/android/support/transition/
DPathMotionTest.java29 PathMeasure pathMeasure = new PathMeasure(path, false); in assertPathMatches() local
36 assertEquals("Lengths differ", expectedLength, pathMeasure.getLength(), 0.01f); in assertPathMatches()
38 float minLength = Math.min(expectedLength, pathMeasure.getLength()); in assertPathMatches()
48 pathMeasure.getPosTan(along, pos, null); in assertPathMatches()
55 pathNextContour = pathMeasure.nextContour(); in assertPathMatches()
/frameworks/base/core/java/android/transition/
DPatternPathMotion.java103 PathMeasure pathMeasure = new PathMeasure(patternPath, false); in setPatternPath() local
104 float length = pathMeasure.getLength(); in setPatternPath()
106 pathMeasure.getPosTan(length, pos, null); in setPatternPath()
109 pathMeasure.getPosTan(0, pos, null); in setPatternPath()
/frameworks/support/transition/src/android/support/transition/
DPatternPathMotion.java103 PathMeasure pathMeasure = new PathMeasure(patternPath, false); in setPatternPath() local
104 float length = pathMeasure.getLength(); in setPatternPath()
106 pathMeasure.getPosTan(length, pos, null); in setPatternPath()
109 pathMeasure.getPosTan(0, pos, null); in setPatternPath()
/frameworks/support/compat/java/android/support/v4/view/animation/
DPathInterpolatorApi14.java37 final PathMeasure pathMeasure = new PathMeasure(path, false /* forceClosed */); in PathInterpolatorApi14() local
39 final float pathLength = pathMeasure.getLength(); in PathInterpolatorApi14()
48 pathMeasure.getPosTan(distance, position, null /* tangent */); in PathInterpolatorApi14()
/frameworks/support/wear/tests/src/android/support/wear/widget/util/
DArcSwipe.java97 PathMeasure pathMeasure = new PathMeasure(); in interpolate() local
100 pathMeasure.setPath(path, false); in interpolate()
101 float pathLength = pathMeasure.getLength(); in interpolate()
107 pathMeasure.getPosTan((pathLength * i) / (steps + 2f), res[i - 1], mPathTangent); in interpolate()
/frameworks/support/graphics/drawable/animated/src/android/support/graphics/drawable/
DPathInterpolatorCompat.java136 final PathMeasure pathMeasure = new PathMeasure(path, false /* forceClosed */); in initPath() local
138 final float pathLength = pathMeasure.getLength(); in initPath()
151 pathMeasure.getPosTan(distance, position, null /* tangent */); in initPath()
176 if (pathMeasure.nextContour()) { in initPath()
DAnimatorInflaterCompat.java449 final PathMeasure pathMeasure = new PathMeasure(path, false); in setupPathMotion() local
465 pathMeasure.getPosTan(currentDistance, position, null); in setupPathMotion()
466 pathMeasure.getPosTan(currentDistance, position, null); in setupPathMotion()
475 pathMeasure.nextContour(); in setupPathMotion()
/frameworks/base/core/java/android/accessibilityservice/
DGestureDescription.java264 PathMeasure pathMeasure = new PathMeasure(tempPath, false); in StrokeDescription() local
265 pathMeasure.getPosTan(0, mTapLocation, null); in StrokeDescription()