/external/libchrome/ui/gfx/geometry/ |
D | quad_unittest.cc | 17 PointF a(1, 1); in TEST() 18 PointF b(2, 1); in TEST() 19 PointF c(2, 2); in TEST() 20 PointF d(1, 2); in TEST() 21 PointF e; in TEST() 57 PointF a(1, 1); in TEST() 58 PointF b(2, 1); in TEST() 59 PointF c(2, 2); in TEST() 60 PointF d(1, 2); in TEST() 66 QuadF expected1(PointF(4.5f, -1.5f), in TEST() [all …]
|
D | point_unittest.cc | 18 PointF b = PointF(a); in TEST() 33 EXPECT_FALSE(PointF(0.1f, 0).IsOrigin()); in TEST() 34 EXPECT_FALSE(PointF(0, 0.1f).IsOrigin()); in TEST() 35 EXPECT_FALSE(PointF(0.1f, 2).IsOrigin()); in TEST() 36 EXPECT_FALSE(PointF(-0.1f, 0).IsOrigin()); in TEST() 37 EXPECT_FALSE(PointF(0, -0.1f).IsOrigin()); in TEST() 38 EXPECT_FALSE(PointF(-0.1f, -2).IsOrigin()); in TEST() 39 EXPECT_TRUE(PointF(0, 0).IsOrigin()); in TEST() 71 EXPECT_EQ(Point(0, 0), ToRoundedPoint(PointF(0, 0))); in TEST() 72 EXPECT_EQ(Point(0, 0), ToRoundedPoint(PointF(0.0001f, 0.0001f))); in TEST() [all …]
|
D | point_f.h | 19 class GFX_EXPORT PointF { 21 constexpr PointF() : x_(0.f), y_(0.f) {} in PointF() function 22 constexpr PointF(float x, float y) : x_(x), y_(y) {} in PointF() function 24 constexpr explicit PointF(const Point& p) in PointF() function 25 : PointF(static_cast<float>(p.x()), static_cast<float>(p.y())) {} in PointF() 52 void SetToMin(const PointF& other); 53 void SetToMax(const PointF& other); 65 bool operator<(const PointF& rhs) const { 85 inline bool operator==(const PointF& lhs, const PointF& rhs) { 89 inline bool operator!=(const PointF& lhs, const PointF& rhs) { [all …]
|
D | quad_f.h | 27 constexpr QuadF(const PointF& p1, in QuadF() 28 const PointF& p2, in QuadF() 29 const PointF& p3, in QuadF() 30 const PointF& p4) in QuadF() 41 void set_p1(const PointF& p) { p1_ = p; } in set_p1() 42 void set_p2(const PointF& p) { p2_ = p; } in set_p2() 43 void set_p3(const PointF& p) { p3_ = p; } in set_p3() 44 void set_p4(const PointF& p) { p4_ = p; } in set_p4() 46 constexpr const PointF& p1() const { return p1_; } in p1() 47 constexpr const PointF& p2() const { return p2_; } in p2() [all …]
|
D | point_f.cc | 11 void PointF::SetToMin(const PointF& other) { in SetToMin() 16 void PointF::SetToMax(const PointF& other) { in SetToMax() 21 std::string PointF::ToString() const { in ToString() 25 PointF ScalePoint(const PointF& p, float x_scale, float y_scale) { in ScalePoint() 26 PointF scaled_p(p); in ScalePoint()
|
D | rect_f.h | 33 constexpr RectF(const PointF& origin, const SizeF& size) in RectF() 60 constexpr const PointF& origin() const { return origin_; } in origin() 61 void set_origin(const PointF& origin) { origin_ = origin; } in set_origin() 69 constexpr PointF top_right() const { return PointF(right(), y()); } in top_right() 70 constexpr PointF bottom_left() const { return PointF(x(), bottom()); } in bottom_left() 71 constexpr PointF bottom_right() const { return PointF(right(), bottom()); } in bottom_right() 116 bool Contains(const PointF& point) const { in Contains() 146 PointF CenterPoint() const; 161 float ManhattanDistanceToPoint(const PointF& point) const; 188 PointF origin_; [all …]
|
D | rect_unittest.cc | 361 PointF center; in TEST() 365 EXPECT_TRUE(center == PointF(10, 10)); in TEST() 369 EXPECT_TRUE(center == PointF(20, 20)); in TEST() 373 EXPECT_TRUE(center == PointF(21, 21)); in TEST() 377 EXPECT_TRUE(center == PointF(10, 20)); in TEST() 379 EXPECT_TRUE(center == PointF(20, 10)); in TEST() 383 EXPECT_TRUE(center == PointF(20.5f, 20.5f)); in TEST() 387 EXPECT_TRUE(center == PointF(21.5f, 21.5f)); in TEST() 769 PointF a; in TEST() 770 PointF b; in TEST() [all …]
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowMatrixTest.java | 7 import android.graphics.PointF; 209 assertPointsEqual(mapPoint(matrix, 1.0f, 1.0f), new PointF(3.0f, 3.0f)); in testSetTranslate() 211 assertPointsEqual(mapPoint(matrix, 1.0f, 1.0f), new PointF(-1.0f, -1.0f)); in testSetTranslate() 218 assertPointsEqual(mapPoint(matrix1, 1.0f, 1.0f), new PointF(2.0f, 2.0f)); in testPostTranslate() 221 assertPointsEqual(mapPoint(matrix1, 1.0f, 1.0f), new PointF(4.0f, 4.0f)); in testPostTranslate() 226 assertPointsEqual(mapPoint(matrix2, 1.0f, 1.0f), new PointF(-3.0f, 12.0f)); in testPostTranslate() 233 assertPointsEqual(mapPoint(matrix1, 1.0f, 1.0f), new PointF(2.0f, 2.0f)); in testPreTranslate() 236 assertPointsEqual(mapPoint(matrix1, 1.0f, 1.0f), new PointF(4.0f, 4.0f)); in testPreTranslate() 241 assertPointsEqual(mapPoint(matrix2, 1.0f, 1.0f), new PointF(-8.0f, 22.0f)); in testPreTranslate() 248 assertPointsEqual(mapPoint(matrix, 1.0f, 1.0f), new PointF(2.0f, 2.0f)); in testSetScale() [all …]
|
/external/lottie/lottie/src/main/java/com/airbnb/lottie/model/ |
D | CubicCurveData.java | 3 import android.graphics.PointF; 10 private final PointF controlPoint1; 11 private final PointF controlPoint2; 12 private final PointF vertex; 15 controlPoint1 = new PointF(); in CubicCurveData() 16 controlPoint2 = new PointF(); in CubicCurveData() 17 vertex = new PointF(); in CubicCurveData() 20 public CubicCurveData(PointF controlPoint1, PointF controlPoint2, PointF vertex) { in CubicCurveData() 30 public PointF getControlPoint1() { in getControlPoint1() 38 public PointF getControlPoint2() { in getControlPoint2() [all …]
|
/external/lottie/lottie/src/main/java/com/airbnb/lottie/parser/ |
D | ShapeDataParser.java | 3 import android.graphics.PointF; 36 List<PointF> pointsArray = null; in parse() 37 List<PointF> inTangents = null; in parse() 38 List<PointF> outTangents = null; in parse() 72 return new ShapeData(new PointF(), false, Collections.<CubicCurveData>emptyList()); in parse() 76 PointF vertex = pointsArray.get(0); in parse() 77 PointF initialPoint = vertex; in parse() 82 PointF previousVertex = pointsArray.get(i - 1); in parse() 83 PointF cp1 = outTangents.get(i - 1); in parse() 84 PointF cp2 = inTangents.get(i); in parse() [all …]
|
D | JsonUtils.java | 4 import android.graphics.PointF; 33 static List<PointF> jsonToPoints(JsonReader reader, float scale) throws IOException { in jsonToPoints() 34 List<PointF> points = new ArrayList<>(); in jsonToPoints() 46 static PointF jsonToPoint(JsonReader reader, float scale) throws IOException { in jsonToPoint() 55 private static PointF jsonNumbersToPoint(JsonReader reader, float scale) throws IOException { in jsonNumbersToPoint() 61 return new PointF(x * scale, y * scale); in jsonNumbersToPoint() 64 private static PointF jsonArrayToPoint(JsonReader reader, float scale) throws IOException { in jsonArrayToPoint() 74 return new PointF(x * scale, y * scale); in jsonArrayToPoint() 79 private static PointF jsonObjectToPoint(JsonReader reader, float scale) throws IOException { in jsonObjectToPoint() 97 return new PointF(x * scale, y * scale); in jsonObjectToPoint()
|
/external/lottie/lottie/src/main/java/com/airbnb/lottie/value/ |
D | LottieInterpolatedPointValue.java | 3 import android.graphics.PointF; 9 public class LottieInterpolatedPointValue extends LottieInterpolatedValue<PointF> { 10 private final PointF point = new PointF(); 12 public LottieInterpolatedPointValue(PointF startValue, PointF endValue) { in LottieInterpolatedPointValue() 16 …public LottieInterpolatedPointValue(PointF startValue, PointF endValue, Interpolator interpolator)… in LottieInterpolatedPointValue() 20 @Override PointF interpolateValue(PointF startValue, PointF endValue, float progress) { in interpolateValue()
|
D | LottieRelativePointValueCallback.java | 3 import android.graphics.PointF; 13 public class LottieRelativePointValueCallback extends LottieValueCallback<PointF> { 14 private final PointF point = new PointF(); 19 public LottieRelativePointValueCallback(@NonNull PointF staticValue) { in LottieRelativePointValueCallback() 24 public final PointF getValue(LottieFrameInfo<PointF> frameInfo) { in getValue() 36 PointF offset = getOffset(frameInfo); in getValue() 44 public PointF getOffset(LottieFrameInfo<PointF> frameInfo) { in getOffset()
|
/external/lottie/lottie/src/main/java/com/airbnb/lottie/ |
D | LottieProperty.java | 4 import android.graphics.PointF; 69 PointF TRANSFORM_ANCHOR_POINT = new PointF(); 71 PointF TRANSFORM_POSITION = new PointF(); 73 PointF ELLIPSE_SIZE = new PointF(); 75 PointF RECTANGLE_SIZE = new PointF(); 79 PointF POSITION = new PointF();
|
/external/lottie/lottie/src/main/java/com/airbnb/lottie/animation/keyframe/ |
D | PointKeyframeAnimation.java | 3 import android.graphics.PointF; 9 public class PointKeyframeAnimation extends KeyframeAnimation<PointF> { 10 private final PointF point = new PointF(); 12 public PointKeyframeAnimation(List<Keyframe<PointF>> keyframes) { in PointKeyframeAnimation() 16 @Override public PointF getValue(Keyframe<PointF> keyframe, float keyframeProgress) { in getValue() 21 PointF startPoint = keyframe.startValue; in getValue() 22 PointF endPoint = keyframe.endValue; in getValue() 26 … PointF value = valueCallback.getValueInternal(keyframe.startFrame, keyframe.endFrame, startPoint, in getValue()
|
D | SplitDimensionPathKeyframeAnimation.java | 3 import android.graphics.PointF; 9 public class SplitDimensionPathKeyframeAnimation extends BaseKeyframeAnimation<PointF, PointF> { 10 private final PointF point = new PointF(); 17 super(Collections.<Keyframe<PointF>>emptyList()); in SplitDimensionPathKeyframeAnimation() 34 @Override public PointF getValue() { in getValue() 38 @Override PointF getValue(Keyframe<PointF> keyframe, float keyframeProgress) { in getValue()
|
D | PathKeyframeAnimation.java | 5 import android.graphics.PointF; 11 public class PathKeyframeAnimation extends KeyframeAnimation<PointF> { 12 private final PointF point = new PointF(); 17 public PathKeyframeAnimation(List<? extends Keyframe<PointF>> keyframes) { in PathKeyframeAnimation() 21 @Override public PointF getValue(Keyframe<PointF> keyframe, float keyframeProgress) { in getValue() 29 PointF value = valueCallback.getValueInternal(pathKeyframe.startFrame, pathKeyframe.endFrame, in getValue()
|
/external/lottie/lottie/src/main/java/com/airbnb/lottie/model/animatable/ |
D | AnimatablePathValue.java | 3 import android.graphics.PointF; 13 public class AnimatablePathValue implements AnimatableValue<PointF, PointF> { 14 private final List<Keyframe<PointF>> keyframes; 20 keyframes = Collections.singletonList(new Keyframe<>(new PointF(0, 0))); in AnimatablePathValue() 23 public AnimatablePathValue(List<Keyframe<PointF>> keyframes) { in AnimatablePathValue() 28 public List<Keyframe<PointF>> getKeyframes() { in getKeyframes() 38 public BaseKeyframeAnimation<PointF, PointF> createAnimation() { in createAnimation()
|
D | AnimatablePointValue.java | 3 import android.graphics.PointF; 11 public class AnimatablePointValue extends BaseAnimatableValue<PointF, PointF> { 12 public AnimatablePointValue(List<Keyframe<PointF>> keyframes) { in AnimatablePointValue() 16 @Override public BaseKeyframeAnimation<PointF, PointF> createAnimation() { in createAnimation()
|
/external/lottie/lottie/src/main/java/com/airbnb/lottie/model/content/ |
D | ShapeData.java | 3 import android.graphics.PointF; 15 private PointF initialPoint; 18 public ShapeData(PointF initialPoint, boolean closed, List<CubicCurveData> curves) { in ShapeData() 30 initialPoint = new PointF(); in setInitialPoint() 35 public PointF getInitialPoint() { in getInitialPoint() 50 initialPoint = new PointF(); in interpolateBetween() 71 PointF initialPoint1 = shapeData1.getInitialPoint(); in interpolateBetween() 72 PointF initialPoint2 = shapeData2.getInitialPoint(); in interpolateBetween() 81 PointF cp11 = curve1.getControlPoint1(); in interpolateBetween() 82 PointF cp21 = curve1.getControlPoint2(); in interpolateBetween() [all …]
|
D | CircleShape.java | 3 import android.graphics.PointF; 14 private final AnimatableValue<PointF, PointF> position; 19 public CircleShape(String name, AnimatableValue<PointF, PointF> position, in CircleShape() argument 36 public AnimatableValue<PointF, PointF> getPosition() { in getPosition()
|
D | RectangleShape.java | 3 import android.graphics.PointF; 15 private final AnimatableValue<PointF, PointF> position; 20 public RectangleShape(String name, AnimatableValue<PointF, PointF> position, in RectangleShape() argument 41 public AnimatableValue<PointF, PointF> getPosition() { in getPosition()
|
/external/subsampling-scale-image-view/sample/src/main/java/com/davemorrissey/labs/subscaleview/test/extension/views/ |
D | FreehandView.java | 21 private final PointF vPoint = new PointF(); 22 private PointF vPrev = new PointF(); 23 private PointF vPrevious; 24 private PointF vStart; 29 private List<PointF> sPoints; 61 vStart = new PointF(event.getX(), event.getY()); in onTouchEvent() 62 vPrevious = new PointF(event.getX(), event.getY()); in onTouchEvent() 69 PointF sCurrentF = viewToSourceCoord(event.getX(), event.getY()); in onTouchEvent() 70 PointF sCurrent = new PointF(sCurrentF.x, sCurrentF.y); in onTouchEvent() 71 …PointF sStart = vStart == null ? null : new PointF(viewToSourceCoord(vStart).x, viewToSourceCoord(… in onTouchEvent()
|
/external/lottie/lottie/src/main/java/com/airbnb/lottie/utils/ |
D | MiscUtils.java | 4 import android.graphics.PointF; 15 private static PointF pathFromDataCurrentPoint = new PointF(); 17 public static PointF addPoints(PointF p1, PointF p2) { in addPoints() 18 return new PointF(p1.x + p2.x, p1.y + p2.y); in addPoints() 23 PointF initialPoint = shapeData.getInitialPoint(); in getPathFromData() 28 PointF cp1 = curveData.getControlPoint1(); in getPathFromData() 29 PointF cp2 = curveData.getControlPoint2(); in getPathFromData() 30 PointF vertex = curveData.getVertex(); in getPathFromData()
|
/external/tflite-support/tensorflow_lite_support/java/src/java/org/tensorflow/lite/support/image/ops/ |
D | Rot90Op.java | 20 import android.graphics.PointF; 85 public PointF inverseTransform(PointF point, int inputImageHeight, int inputImageWidth) { in inverseTransform() 92 private static PointF transformImpl(PointF point, int height, int width, int numRotation) { in transformImpl() 96 return new PointF(point.y, width - point.x); in transformImpl() 98 return new PointF(width - point.x, height - point.y); in transformImpl() 100 return new PointF(height - point.y, point.x); in transformImpl()
|