HomeSort by relevance Sort by last modified time
    Searched refs:PointF (Results 1 - 25 of 244) sorted by null

1 2 3 4 5 6 7 8 910

  /frameworks/base/graphics/java/android/graphics/
PointF.aidl 18 parcelable PointF;
PointF.java 25 * PointF holds two float coordinates
27 public class PointF implements Parcelable {
31 public PointF() {}
33 public PointF(float x, float y) {
38 public PointF(Point p) {
54 public final void set(PointF p) {
81 PointF pointF = (PointF) o;
83 if (Float.compare(pointF.x, x) != 0) return false
    [all...]
  /external/chromium_org/ui/gfx/geometry/
point_f.h 17 class GFX_EXPORT PointF : public PointBase<PointF, float, Vector2dF> {
19 PointF() : PointBase<PointF, float, Vector2dF>(0, 0) {}
20 PointF(float x, float y) : PointBase<PointF, float, Vector2dF>(x, y) {}
21 ~PointF() {}
35 inline bool operator==(const PointF& lhs, const PointF& rhs) {
39 inline bool operator!=(const PointF& lhs, const PointF& rhs)
    [all...]
point_f.cc 11 template class PointBase<PointF, float, Vector2dF>;
13 std::string PointF::ToString() const {
17 PointF ScalePoint(const PointF& p, float x_scale, float y_scale) {
18 PointF scaled_p(p);
point_conversions.h 13 // Returns a Point with each component from the input PointF floored.
14 GFX_EXPORT Point ToFlooredPoint(const PointF& point);
16 // Returns a Point with each component from the input PointF ceiled.
17 GFX_EXPORT Point ToCeiledPoint(const PointF& point);
19 // Returns a Point with each component from the input PointF rounded.
20 GFX_EXPORT Point ToRoundedPoint(const PointF& point);
point_unittest.cc 16 int TestPointF(const PointF& p) {
28 PointF b(10, 20);
42 EXPECT_FALSE(PointF(0.1f, 0).IsOrigin());
43 EXPECT_FALSE(PointF(0, 0.1f).IsOrigin());
44 EXPECT_FALSE(PointF(0.1f, 2).IsOrigin());
45 EXPECT_FALSE(PointF(-0.1f, 0).IsOrigin());
46 EXPECT_FALSE(PointF(0, -0.1f).IsOrigin());
47 EXPECT_FALSE(PointF(-0.1f, -2).IsOrigin());
48 EXPECT_TRUE(PointF(0, 0).IsOrigin());
80 EXPECT_EQ(Point(0, 0), ToRoundedPoint(PointF(0, 0)))
    [all...]
quad_f.h 23 QuadF(const PointF& p1, const PointF& p2, const PointF& p3, const PointF& p4)
37 void set_p1(const PointF& p) { p1_ = p; }
38 void set_p2(const PointF& p) { p2_ = p; }
39 void set_p3(const PointF& p) { p3_ = p; }
40 void set_p4(const PointF& p) { p4_ = p; }
42 const PointF& p1() const { return p1_; }
43 const PointF& p2() const { return p2_;
    [all...]
quad_unittest.cc 14 PointF a(1, 1);
15 PointF b(2, 1);
16 PointF c(2, 2);
17 PointF d(1, 2);
18 PointF e;
54 PointF a(1, 1);
55 PointF b(2, 1);
56 PointF c(2, 2);
57 PointF d(1, 2);
63 QuadF expected1(PointF(4.5f, -1.5f)
    [all...]
point_conversions.cc 11 Point ToFlooredPoint(const PointF& point) {
17 Point ToCeiledPoint(const PointF& point) {
23 Point ToRoundedPoint(const PointF& point) {
rect_f.h 21 : public RectBase<RectF, PointF, SizeF, InsetsF, Vector2dF, float> {
24 : RectBase<RectF, PointF, SizeF, InsetsF, Vector2dF, float>
28 : RectBase<RectF, PointF, SizeF, InsetsF, Vector2dF, float>
32 : RectBase<RectF, PointF, SizeF, InsetsF, Vector2dF, float>
33 (PointF(x, y), SizeF(width, height)) {}
36 : RectBase<RectF, PointF, SizeF, InsetsF, Vector2dF, float>
39 RectF(const PointF& origin, const SizeF& size)
40 : RectBase<RectF, PointF, SizeF, InsetsF, Vector2dF, float>
105 GFX_EXPORT RectF BoundingRect(const PointF& p1, const PointF& p2)
    [all...]
  /frameworks/base/core/java/android/animation/
PointFEvaluator.java 18 import android.graphics.PointF;
21 * This evaluator can be used to perform type interpolation between <code>PointF</code> values.
23 public class PointFEvaluator implements TypeEvaluator<PointF> {
26 * When null, a new PointF is returned on every evaluate call. When non-null,
29 private PointF mPoint;
32 * Construct a PointFEvaluator that returns a new PointF on every evaluate call.
34 * {@link PointFEvaluator#PointFEvaluator(android.graphics.PointF)} should be used
42 * in {@link #evaluate(float, android.graphics.PointF, android.graphics.PointF)} calls.
44 * {@link #evaluate(float, android.graphics.PointF, android.graphics.PointF)} shoul
    [all...]
PathKeyframes.java 19 import android.graphics.PointF;
34 * Typically, the returned type is a PointF, but the individual components can be extracted
45 private PointF mTempPointF = new PointF();
98 private PointF interpolateInRange(float fraction, int startIndex, int endIndex) {
129 return PointF.class;
141 private PointF pointForIndex(int index) {
162 PointF pointF = (PointF) PathKeyframes.this.getValue(fraction)
    [all...]
  /cts/tests/tests/graphics/src/android/graphics/cts/
PointFTest.java 20 import android.graphics.PointF;
25 private PointF mPointF;
36 // new the PointF instance
37 mPointF = new PointF();
40 // new the PointF instance
41 mPointF = new PointF(10.0f, 10.0f);
45 // new the PointF instance
46 mPointF = new PointF(point);
51 mPointF = new PointF(10, 10);
58 mPointF = new PointF(0.3f, 0.4f)
    [all...]
  /frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/geometry/
Quad.java 21 import android.graphics.PointF;
40 private final PointF mTopLeft;
41 private final PointF mTopRight;
42 private final PointF mBottomLeft;
43 private final PointF mBottomRight;
61 return new Quad(new PointF(rect.left, rect.top),
62 new PointF(rect.right, rect.top),
63 new PointF(rect.left, rect.bottom),
64 new PointF(rect.right, rect.bottom));
77 return new Quad(new PointF(x, y)
    [all...]
  /external/chromium_org/cc/resources/
layer_quad_unittest.cc 14 gfx::PointF p1(-0.5f, -0.5f);
15 gfx::PointF p2(0.5f, -0.5f);
16 gfx::PointF p3(0.5f, 0.5f);
17 gfx::PointF p4(-0.5f, 0.5f);
29 gfx::PointF p1(-0.5f, -0.5f);
30 gfx::PointF p2(0.5f, -0.5f);
31 gfx::PointF p3(0.5f, 0.5f);
32 gfx::PointF p4(-0.5f, 0.5f);
  /external/chromium_org/ui/events/ozone/evdev/
cursor_delegate_evdev.h 23 const gfx::PointF& location) = 0;
26 virtual gfx::PointF location() = 0;
  /external/chromium_org/ui/ozone/public/
event_factory_ozone.h 16 class PointF;
37 const gfx::PointF& location);
  /external/chromium_org/ui/events/gestures/
gesture_point.h 52 const gfx::PointF& first_touch_position() const {
57 const gfx::PointF& last_touch_position() const {
95 gfx::PointF p1, gfx::PointF p2) const;
112 gfx::PointF first_touch_position_;
115 gfx::PointF second_last_touch_position_;
118 gfx::PointF last_touch_position_;
122 gfx::PointF second_last_tap_position_;
125 gfx::PointF last_tap_position_;
  /external/chromium_org/ui/ozone/platform/dri/
cursor_factory_evdev_dri.h 35 const gfx::PointF& location) OVERRIDE;
37 virtual gfx::PointF location() OVERRIDE;
53 gfx::PointF cursor_location_;
  /external/chromium_org/cc/layers/
ui_resource_layer.h 35 void SetUV(const gfx::PointF& top_left, const gfx::PointF& bottom_right);
57 gfx::PointF uv_top_left_;
58 gfx::PointF uv_bottom_right_;
  /external/chromium_org/content/child/
fling_animator_impl_android.h 33 void StartFling(const gfx::PointF& velocity);
40 gfx::PointF last_position_;
  /external/chromium_org/ui/ozone/platform/caca/
caca_event_factory.h 26 const gfx::PointF& location) OVERRIDE;
45 gfx::PointF last_cursor_location_;
  /external/chromium_org/cc/quads/
texture_draw_quad.h 25 const gfx::PointF& uv_top_left,
26 const gfx::PointF& uv_bottom_right,
38 const gfx::PointF& uv_top_left,
39 const gfx::PointF& uv_bottom_right,
46 gfx::PointF uv_top_left;
47 gfx::PointF uv_bottom_right;
  /external/chromium_org/ui/events/gesture_detection/
gesture_event_data_packet.h 49 const gfx::PointF& touch_location() const { return touch_location_; }
50 const gfx::PointF& raw_touch_location() const { return raw_touch_location_; }
55 const gfx::PointF& touch_location,
56 const gfx::PointF& raw_touch_location);
61 gfx::PointF touch_location_;
62 gfx::PointF raw_touch_location_;
  /external/chromium_org/cc/trees/
layer_tree_host_unittest_occlusion.cc 88 const gfx::PointF& position,
123 gfx::PointF(0.f, 0.f), gfx::Size(200, 200), true);
126 gfx::PointF(10.f, 10.f), gfx::Size(500, 500), false);
129 gfx::PointF(-10.f, -10.f), gfx::Size(20, 500), true);
153 gfx::PointF(0.f, 0.f), gfx::Size(200, 200), true);
156 gfx::PointF(10.f, 10.f), gfx::Size(500, 500), true);
159 gfx::PointF(-10.f, -10.f), gfx::Size(20, 500), true);
182 gfx::PointF(0.f, 0.f), gfx::Size(200, 200), true);
185 gfx::PointF(10.f, 10.f), gfx::Size(500, 500), false);
188 gfx::PointF(-10.f, -10.f), gfx::Size(20, 500), true)
    [all...]

Completed in 529 milliseconds

1 2 3 4 5 6 7 8 910