Loading apct-tests/perftests/core/src/android/graphics/perftests/PathIteratorPerfTest.java +2 −2 Original line number Diff line number Diff line Loading @@ -58,7 +58,7 @@ public class PathIteratorPerfTest { BenchmarkState state = mPerfStatusReporter.getBenchmarkState(); Path path = constructCircularPath(numSegments); while (state.keepRunning()) { PathIterator iterator = path.iterator(); PathIterator iterator = path.getPathIterator(); PathIterator.Segment segment = iterator.next(); while (segment.getVerb() != VERB_DONE) { segment = iterator.next(); Loading @@ -71,7 +71,7 @@ public class PathIteratorPerfTest { float[] points = new float[8]; Path path = constructCircularPath(numSegments); while (state.keepRunning()) { PathIterator iterator = path.iterator(); PathIterator iterator = path.getPathIterator(); int verb = iterator.next(points, 0); while (verb != VERB_DONE) { verb = iterator.next(points, 0); Loading core/api/current.txt +2 −2 Original line number Diff line number Diff line Loading @@ -15128,7 +15128,7 @@ package android.graphics { field @NonNull public static final android.os.Parcelable.Creator<android.graphics.ParcelableColorSpace> CREATOR; } public class Path implements java.lang.Iterable<android.graphics.PathIterator.Segment> { public class Path { ctor public Path(); ctor public Path(@Nullable android.graphics.Path); method public void addArc(@NonNull android.graphics.RectF, float, float); Loading @@ -15155,6 +15155,7 @@ package android.graphics { method public void cubicTo(float, float, float, float, float, float); method @NonNull public android.graphics.Path.FillType getFillType(); method public int getGenerationId(); method @NonNull public android.graphics.PathIterator getPathIterator(); method public void incReserve(int); method public boolean interpolate(@NonNull android.graphics.Path, float, @NonNull android.graphics.Path); method @Deprecated public boolean isConvex(); Loading @@ -15162,7 +15163,6 @@ package android.graphics { method public boolean isInterpolatable(@NonNull android.graphics.Path); method public boolean isInverseFillType(); method public boolean isRect(@Nullable android.graphics.RectF); method @NonNull public android.graphics.PathIterator iterator(); method public void lineTo(float, float); method public void moveTo(float, float); method public void offset(float, float, @Nullable android.graphics.Path); graphics/java/android/graphics/Path.java +2 −3 Original line number Diff line number Diff line Loading @@ -33,7 +33,7 @@ import libcore.util.NativeAllocationRegistry; * (based on the paint's Style), or it can be used for clipping or to draw * text on a path. */ public class Path implements Iterable<PathIterator.Segment> { public class Path { private static final NativeAllocationRegistry sRegistry = NativeAllocationRegistry.createMalloced( Loading Loading @@ -97,8 +97,7 @@ public class Path implements Iterable<PathIterator.Segment> { * @return the Iterator object */ @NonNull @Override public PathIterator iterator() { public PathIterator getPathIterator() { return new PathIterator(this); } Loading Loading
apct-tests/perftests/core/src/android/graphics/perftests/PathIteratorPerfTest.java +2 −2 Original line number Diff line number Diff line Loading @@ -58,7 +58,7 @@ public class PathIteratorPerfTest { BenchmarkState state = mPerfStatusReporter.getBenchmarkState(); Path path = constructCircularPath(numSegments); while (state.keepRunning()) { PathIterator iterator = path.iterator(); PathIterator iterator = path.getPathIterator(); PathIterator.Segment segment = iterator.next(); while (segment.getVerb() != VERB_DONE) { segment = iterator.next(); Loading @@ -71,7 +71,7 @@ public class PathIteratorPerfTest { float[] points = new float[8]; Path path = constructCircularPath(numSegments); while (state.keepRunning()) { PathIterator iterator = path.iterator(); PathIterator iterator = path.getPathIterator(); int verb = iterator.next(points, 0); while (verb != VERB_DONE) { verb = iterator.next(points, 0); Loading
core/api/current.txt +2 −2 Original line number Diff line number Diff line Loading @@ -15128,7 +15128,7 @@ package android.graphics { field @NonNull public static final android.os.Parcelable.Creator<android.graphics.ParcelableColorSpace> CREATOR; } public class Path implements java.lang.Iterable<android.graphics.PathIterator.Segment> { public class Path { ctor public Path(); ctor public Path(@Nullable android.graphics.Path); method public void addArc(@NonNull android.graphics.RectF, float, float); Loading @@ -15155,6 +15155,7 @@ package android.graphics { method public void cubicTo(float, float, float, float, float, float); method @NonNull public android.graphics.Path.FillType getFillType(); method public int getGenerationId(); method @NonNull public android.graphics.PathIterator getPathIterator(); method public void incReserve(int); method public boolean interpolate(@NonNull android.graphics.Path, float, @NonNull android.graphics.Path); method @Deprecated public boolean isConvex(); Loading @@ -15162,7 +15163,6 @@ package android.graphics { method public boolean isInterpolatable(@NonNull android.graphics.Path); method public boolean isInverseFillType(); method public boolean isRect(@Nullable android.graphics.RectF); method @NonNull public android.graphics.PathIterator iterator(); method public void lineTo(float, float); method public void moveTo(float, float); method public void offset(float, float, @Nullable android.graphics.Path);
graphics/java/android/graphics/Path.java +2 −3 Original line number Diff line number Diff line Loading @@ -33,7 +33,7 @@ import libcore.util.NativeAllocationRegistry; * (based on the paint's Style), or it can be used for clipping or to draw * text on a path. */ public class Path implements Iterable<PathIterator.Segment> { public class Path { private static final NativeAllocationRegistry sRegistry = NativeAllocationRegistry.createMalloced( Loading Loading @@ -97,8 +97,7 @@ public class Path implements Iterable<PathIterator.Segment> { * @return the Iterator object */ @NonNull @Override public PathIterator iterator() { public PathIterator getPathIterator() { return new PathIterator(this); } Loading