/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/ |
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 | 17 int TestPointF(const PointF& p) { 29 PointF b(10, 20); 43 EXPECT_FALSE(PointF(0.1f, 0).IsOrigin()); 44 EXPECT_FALSE(PointF(0, 0.1f).IsOrigin()); 45 EXPECT_FALSE(PointF(0.1f, 2).IsOrigin()); 46 EXPECT_FALSE(PointF(-0.1f, 0).IsOrigin()); 47 EXPECT_FALSE(PointF(0, -0.1f).IsOrigin()); 48 EXPECT_FALSE(PointF(-0.1f, -2).IsOrigin()); 49 EXPECT_TRUE(PointF(0, 0).IsOrigin()); 81 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 | 15 PointF a(1, 1); 16 PointF b(2, 1); 17 PointF c(2, 2); 18 PointF d(1, 2); 19 PointF e; 55 PointF a(1, 1); 56 PointF b(2, 1); 57 PointF c(2, 2); 58 PointF d(1, 2); 64 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...] |
rect_f.cc | 17 template class RectBase<RectF, PointF, SizeF, InsetsF, Vector2dF, float>; 19 typedef class RectBase<RectF, PointF, SizeF, InsetsF, Vector2dF, 52 RectF BoundingRect(const PointF& p1, const PointF& p2) {
|
quad_f.cc | 14 p1_ = PointF(rect.x(), rect.y()); 15 p2_ = PointF(rect.right(), rect.y()); 16 p3_ = PointF(rect.right(), rect.bottom()); 17 p4_ = PointF(rect.x(), rect.bottom()); 61 static inline bool PointIsInTriangle(const PointF& point, 62 const PointF& r1, 63 const PointF& r2, 64 const PointF& r3) { 89 bool QuadF::Contains(const PointF& point) const {
|
/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/quads/ |
texture_draw_quad.h | 24 gfx::PointF uv_top_left, 25 gfx::PointF uv_bottom_right, 37 gfx::PointF uv_top_left, 38 gfx::PointF uv_bottom_right, 45 gfx::PointF uv_top_left; 46 gfx::PointF uv_bottom_right;
|
/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/cc/layers/ |
ui_resource_layer.h | 35 void SetUV(gfx::PointF top_left, gfx::PointF bottom_right); 57 gfx::PointF uv_top_left_; 58 gfx::PointF uv_bottom_right_;
|
ui_resource_layer_impl.h | 36 void SetUV(gfx::PointF top_left, gfx::PointF bottom_right); 61 gfx::PointF uv_top_left_; 62 gfx::PointF uv_bottom_right_;
|
/external/chromium_org/cc/trees/ |
layer_tree_host_unittest_occlusion.cc | 89 gfx::PointF position, 100 layer->SetAnchorPoint(gfx::PointF()); 126 gfx::PointF(0.f, 0.f), gfx::Size(200, 200), true); 129 gfx::PointF(10.f, 10.f), gfx::Size(500, 500), false); 132 gfx::PointF(-10.f, -10.f), gfx::Size(20, 500), true); 156 gfx::PointF(0.f, 0.f), gfx::Size(200, 200), true); 159 gfx::PointF(10.f, 10.f), gfx::Size(500, 500), true); 162 gfx::PointF(-10.f, -10.f), gfx::Size(20, 500), true); 185 gfx::PointF(0.f, 0.f), gfx::Size(200, 200), true); 188 gfx::PointF(10.f, 10.f), gfx::Size(500, 500), false) [all...] |
layer_tree_host_common_unittest.cc | 45 gfx::PointF anchor, 46 gfx::PointF position, 60 gfx::PointF anchor, 61 gfx::PointF position, 76 gfx::PointF anchor, 77 gfx::PointF position, 236 gfx::PointF(), 237 gfx::PointF(), 243 gfx::PointF(), 244 gfx::PointF(), [all...] |
/external/chromium_org/mojo/examples/sample_app/ |
gles2_client_impl.h | 38 gfx::PointF capture_point_; 39 gfx::PointF last_drag_point_;
|
/external/chromium_org/webkit/child/ |
fling_animator_impl_android.h | 37 void StartFling(const gfx::PointF& velocity); 50 gfx::PointF last_velocity_;
|
/external/chromium_org/third_party/WebKit/public/platform/ |
WebFloatPoint.h | 79 WebFloatPoint(const gfx::PointF& p) 85 WebFloatPoint& operator=(const gfx::PointF& p) 92 operator gfx::PointF() const 94 return gfx::PointF(x, y);
|
/external/chromium_org/cc/base/ |
math_util_unittest.cc | 50 gfx::RectF(gfx::PointF(-100, -100), gfx::SizeF(90, 90)), result, 0.15f); 54 gfx::PointF vertices[3]; 57 vertices[0] = gfx::PointF(-10, -100); 58 vertices[1] = gfx::PointF(-100, -10); 59 vertices[2] = gfx::PointF(-30, -30); 68 EXPECT_FLOAT_RECT_EQ(gfx::RectF(gfx::PointF(-100, -100), gfx::SizeF(90, 90)),
|
/external/chromium_org/remoting/android/java/src/org/chromium/chromoting/ |
TapGestureDetector.java | 8 import android.graphics.PointF; 52 private HashMap<Integer, PointF> mInitialPositions = new HashMap<Integer, PointF>(); 135 new PointF(event.getX(pointerIndex), event.getY(pointerIndex))); 160 PointF downPoint = mInitialPositions.get(pointerId); 164 mInitialPositions.put(pointerId, new PointF(currentX, currentY));
|