Home
last modified time | relevance | path

Searched refs:x_ (Results 1 – 25 of 290) sorted by relevance

12345678910>>...12

/external/libchrome/ui/gfx/geometry/
Dscroll_offset.h23 ScrollOffset() : x_(0), y_(0) {} in ScrollOffset()
24 ScrollOffset(float x, float y) : x_(x), y_(y) {} in ScrollOffset()
25 explicit ScrollOffset(const Vector2dF& v) : x_(v.x()), y_(v.y()) {} in ScrollOffset()
26 explicit ScrollOffset(const Vector2d& v) : x_(v.x()), y_(v.y()) {} in ScrollOffset()
28 float x() const { return x_; } in x()
29 void set_x(float x) { x_ = x; } in set_x()
36 return x_ == 0 && y_ == 0; in IsZero()
41 x_ += other.x_; in Add()
48 x_ -= other.x_; in Subtract()
53 return Vector2dF(x_ - v.x(), y_ - v.y()); in DeltaFrom()
[all …]
Dvector2d.h25 constexpr Vector2d() : x_(0), y_(0) {} in Vector2d()
26 constexpr Vector2d(int x, int y) : x_(x), y_(y) {} in Vector2d()
28 constexpr int x() const { return x_; } in x()
29 void set_x(int x) { x_ = x; } in set_x()
43 return x_ == other.x_ && y_ == other.y_;
49 x_ = x_ <= other.x_ ? x_ : other.x_; in SetToMin()
54 x_ = x_ >= other.x_ ? x_ : other.x_; in SetToMax()
72 int x_;
Dvector2d_f.h22 constexpr Vector2dF() : x_(0), y_(0) {} in Vector2dF()
23 constexpr Vector2dF(float x, float y) : x_(x), y_(y) {} in Vector2dF()
25 constexpr float x() const { return x_; } in x()
26 void set_x(float x) { x_ = x; } in set_x()
43 x_ = x_ <= other.x_ ? x_ : other.x_; in SetToMin()
48 x_ = x_ >= other.x_ ? x_ : other.x_; in SetToMax()
66 float x_;
Dvector2d.cc15 return x_ == 0 && y_ == 0; in IsZero()
19 x_ = base::ClampAdd(other.x_, x_); in Add()
24 x_ = base::ClampSub(x_, other.x_); in Subtract()
29 return static_cast<int64_t>(x_) * x_ + static_cast<int64_t>(y_) * y_; in LengthSquared()
37 return base::StringPrintf("[%d %d]", x_, y_); in ToString()
Dpoint_f.cc12 x_ = x_ <= other.x_ ? x_ : other.x_; in SetToMin()
17 x_ = x_ >= other.x_ ? x_ : other.x_; in SetToMax()
Dpoint.cc25 x_ = points.x; in Point()
29 Point::Point(const POINT& point) : x_(point.x), y_(point.y) { in Point()
33 x_ = point.x; in operator =()
38 Point::Point(const CGPoint& point) : x_(point.x), y_(point.y) {
56 x_ = x_ <= other.x_ ? x_ : other.x_; in SetToMin()
61 x_ = x_ >= other.x_ ? x_ : other.x_; in SetToMax()
Dpoint.h29 constexpr Point() : x_(0), y_(0) {} in Point()
30 constexpr Point(int x, int y) : x_(x), y_(y) {} in Point()
48 constexpr int x() const { return x_; } in x()
50 void set_x(int x) { x_ = x; } in set_x()
54 x_ = x; in SetPoint()
59 x_ = base::ClampAdd(x_, delta_x); in Offset()
64 x_ = base::ClampAdd(x_, vector.x());
69 x_ = base::ClampSub(x_, vector.x());
76 bool IsOrigin() const { return x_ == 0 && y_ == 0; } in IsOrigin()
78 Vector2d OffsetFromOrigin() const { return Vector2d(x_, y_); } in OffsetFromOrigin()
[all …]
Dpoint_f.h21 constexpr PointF() : x_(0.f), y_(0.f) {} in PointF()
22 constexpr PointF(float x, float y) : x_(x), y_(y) {} in PointF()
27 constexpr float x() const { return x_; } in x()
29 void set_x(float x) { x_ = x; } in set_x()
33 x_ = x; in SetPoint()
38 x_ += delta_x; in Offset()
43 x_ += vector.x();
48 x_ -= vector.x();
55 bool IsOrigin() const { return x_ == 0 && y_ == 0; } in IsOrigin()
57 Vector2dF OffsetFromOrigin() const { return Vector2dF(x_, y_); } in OffsetFromOrigin()
[all …]
Dvector2d_f.cc14 return base::StringPrintf("[%f %f]", x_, y_); in ToString()
18 return x_ == 0 && y_ == 0; in IsZero()
22 x_ += other.x_; in Add()
27 x_ -= other.x_; in Subtract()
32 return static_cast<double>(x_) * x_ + static_cast<double>(y_) * y_; in LengthSquared()
40 x_ *= x_scale; in Scale()
/external/libcxx/test/std/numerics/rand/rand.adapt/rand.adapt.ibits/
Dresult_type.pass.cpp32 result_type x_; member in rand1
46 explicit rand1(result_type sd = Min) : x_(sd) in rand1()
48 if (x_ < Min) in rand1()
49 x_ = Min; in rand1()
50 if (x_ > Max) in rand1()
51 x_ = Max; in rand1()
56 result_type r = x_; in operator ()()
57 if (x_ < Max) in operator ()()
58 ++x_; in operator ()()
60 x_ = Min; in operator ()()
Deval.pass.cpp30 result_type x_; member in rand1
44 explicit rand1(result_type sd = Min) : x_(sd) in rand1()
46 if (x_ > Max) in rand1()
47 x_ = Max; in rand1()
52 result_type r = x_; in operator ()()
53 if (x_ < Max) in operator ()()
54 ++x_; in operator ()()
56 x_ = Min; in operator ()()
/external/libcxx/test/std/numerics/rand/rand.adapt/rand.adapt.shuf/
Dresult_type.pass.cpp32 result_type x_; member in rand1
46 explicit rand1(result_type sd = Min) : x_(sd) in rand1()
48 if (x_ < Min) in rand1()
49 x_ = Min; in rand1()
50 if (x_ > Max) in rand1()
51 x_ = Max; in rand1()
56 result_type r = x_; in operator ()()
57 if (x_ < Max) in operator ()()
58 ++x_; in operator ()()
60 x_ = Min; in operator ()()
Deval.pass.cpp30 result_type x_; member in rand1
44 explicit rand1(result_type sd = Min) : x_(sd) in rand1()
46 if (x_ > Max) in rand1()
47 x_ = Max; in rand1()
52 result_type r = x_; in operator ()()
53 if (x_ < Max) in operator ()()
54 ++x_; in operator ()()
56 x_ = Min; in operator ()()
/external/ImageMagick/Magick++/lib/
DPixels.cpp37 Magick::Quantum* Magick::Pixels::get(const ssize_t x_,const ssize_t y_, in get() argument
40 _x=x_; in get()
46 Quantum* pixels=GetCacheViewAuthenticPixels(_view,x_,y_,columns_,rows_, in get()
53 const Magick::Quantum* Magick::Pixels::getConst(const ssize_t x_, in getConst() argument
56 _x=x_; in getConst()
62 const Quantum* pixels=GetCacheViewVirtualPixels(_view,x_,y_,columns_,rows_, in getConst()
76 Magick::Quantum* Magick::Pixels::set(const ssize_t x_,const ssize_t y_, in set() argument
79 _x=x_; in set()
85 Quantum* pixels=QueueCacheViewAuthenticPixels(_view,x_,y_,columns_,rows_, in set()
113 Magick::PixelData::PixelData(Magick::Image &image_,const ::ssize_t x_, in PixelData() argument
[all …]
/external/compiler-rt/lib/tsan/rtl/
Dtsan_rtl.h94 x_ = tid << kTidShift; in FastState()
95 x_ |= epoch; in FastState()
102 : x_(x) { in FastState()
106 return x_; in raw()
110 u64 res = (x_ & ~kIgnoreBit) >> kTidShift; in tid()
115 u64 res = x_ >> kTidShift; in TidWithIgnore()
120 u64 res = x_ & ((1ull << kClkBits) - 1); in epoch()
126 x_ += 1; in IncrementEpoch()
131 void SetIgnoreBit() { x_ |= kIgnoreBit; } in SetIgnoreBit()
132 void ClearIgnoreBit() { x_ &= ~kIgnoreBit; } in ClearIgnoreBit()
[all …]
/external/tensorflow/tensorflow/python/kernel_tests/
Dlinalg_ops_test.py271 x_ = np.array(
287 x_, shape=x_.shape if self.use_static_shape else None)
300 x_ = np.array(
315 x_, shape=x_.shape if self.use_static_shape else None)
423 x_ = np.array([[3, 4], [1, 2]], dtype=self.dtype)
425 x_, shape=x_.shape if self.use_static_shape else None)
431 self.assertAllEqual(x_.shape, y.shape)
432 self.assertAllClose(x_, y_, atol=0., rtol=1e-3)
435 x_ = np.array([
440 x_, shape=x_.shape if self.use_static_shape else None)
[all …]
/external/libchrome/mojo/public/cpp/bindings/tests/
Drect_chromium.h19 : x_(other.x_), in RectChromium()
24 x_(x), y_(y), width_(width), height_(height) { in RectChromium()
31 x_ = other.x_;
38 int x() const { return x_; } in x()
39 void set_x(int x) { x_ = x; } in set_x()
65 int x_ = 0;
Drect_blink.h20 x_(x), y_(y), width_(width), height_(height) { in RectBlink()
21 DCHECK_GE(x_, 0); in RectBlink()
28 int x() const { return x_; } in x()
31 x_ = x; in setX()
61 int x_ = 0;
/external/libchrome/crypto/
Dp224_spake.cc106 memset(&x_, 0, sizeof(x_)); in P224EncryptedKeyExchange()
110 RandBytes(x_, sizeof(x_)); in P224EncryptedKeyExchange()
122 p224::ScalarBaseMult(x_, &X); in Init()
192 p224::ScalarMult(Y, x_, &k); in ProcessMessage()
265 memset(&x_, 0, sizeof(x_)); in SetXForTesting()
266 memcpy(&x_, x.data(), std::min(x.size(), sizeof(x_))); in SetXForTesting()
/external/grpc-grpc/src/core/lib/gprpp/
Datomic_with_atm.h36 atomic() { gpr_atm_no_barrier_store(&x_, static_cast<gpr_atm>(false)); } in atomic()
38 gpr_atm_no_barrier_store(&x_, static_cast<gpr_atm>(x)); in atomic()
43 if (!gpr_atm_no_barrier_cas(&x_, static_cast<gpr_atm>(expected), in compare_exchange_strong()
45 expected = gpr_atm_no_barrier_load(&x_) != 0; in compare_exchange_strong()
52 gpr_atm x_;
/external/ImageMagick/Magick++/lib/Magick++/
DDrawable.h54 Coordinate(double x_,double y_) in Coordinate() argument
55 : _x(x_), in Coordinate()
60 void x(double x_) { _x=x_; } in x() argument
305 DrawableAlpha(double x_, double y_,PaintMethod paintMethod_) in DrawableAlpha() argument
306 : _x(x_), in DrawableAlpha()
320 void x(double x_) in x() argument
322 _x=x_; in x()
671 DrawableColor ( double x_, double y_, in DrawableColor() argument
673 : _x(x_), in DrawableColor()
686 void x( double x_ ) in x() argument
[all …]
/external/compiler-rt/test/msan/
Duse-after-dtor.cc19 int x_; member
21 x_ = 5; in Simple()
24 x_ += 1; in ~Simple()
35 return s->x_; in main()
/external/webrtc/webrtc/modules/desktop_capture/
Ddesktop_geometry.h22 DesktopVector() : x_(0), y_(0) {} in DesktopVector()
23 DesktopVector(int32_t x, int32_t y) : x_(x), y_(y) {} in DesktopVector()
25 int32_t x() const { return x_; } in x()
27 bool is_zero() const { return x_ == 0 && y_ == 0; } in is_zero()
30 return x_ == other.x_ && y_ == other.y_; in equals()
34 x_ = x; in set()
46 int32_t x_;
/external/googletest/googletest/test/
Dgtest_prod_test.cc40 EXPECT_EQ(0, a.x_); in TEST()
43 EXPECT_EQ(1, a.x_); in TEST()
52 EXPECT_EQ(0, a.x_); in TEST_F()
55 EXPECT_EQ(2, a.x_); in TEST_F()
/external/google-breakpad/src/testing/gtest/test/
Dgtest_prod_test.cc41 EXPECT_EQ(0, a.x_); in TEST()
44 EXPECT_EQ(1, a.x_); in TEST()
53 EXPECT_EQ(0, a.x_); in TEST_F()
56 EXPECT_EQ(2, a.x_); in TEST_F()

12345678910>>...12