/system/bt/gd/security/ecc/ |
D | multipoint_test.cc | 44 p.y[7] = 0xdc809c49; in TEST() 45 p.y[6] = 0x652aeb6d; in TEST() 46 p.y[5] = 0x63329abf; in TEST() 47 p.y[4] = 0x5a52155c; in TEST() 48 p.y[3] = 0x766345c2; in TEST() 49 p.y[2] = 0x8fed3024; in TEST() 50 p.y[1] = 0x741c8ed0; in TEST() 51 p.y[0] = 0x1589d28b; in TEST() 65 p.y[7] = 0x91951218; in TEST() 66 p.y[6] = 0x3898dfbe; in TEST() [all …]
|
/system/bt/stack/test/ |
D | stack_smp_test.cc | 230 p.y[7] = 0xdc809c49; in TEST() 231 p.y[6] = 0x652aeb6d; in TEST() 232 p.y[5] = 0x63329abf; in TEST() 233 p.y[4] = 0x5a52155c; in TEST() 234 p.y[3] = 0x766345c2; in TEST() 235 p.y[2] = 0x8fed3024; in TEST() 236 p.y[1] = 0x741c8ed0; in TEST() 237 p.y[0] = 0x1589d28b; in TEST() 251 p.y[7] = 0x91951218; in TEST() 252 p.y[6] = 0x3898dfbe; in TEST() [all …]
|
/system/core/libsparse/ |
D | sparse_defs.h | 42 #define DIV_ROUND_UP(x, y) (((x) + (y)-1) / (y)) argument 43 #define ALIGN(x, y) ((y)*DIV_ROUND_UP((x), (y))) argument 44 #define ALIGN_DOWN(x, y) ((y) * ((x) / (y))) argument
|
/system/core/healthd/ |
D | healthd_draw.cpp | 111 int y = (screen_height_ - h) / 2; in draw_surface_centered() local 113 LOGV("drawing surface %dx%d+%d+%d\n", w, h, x, y); in draw_surface_centered() 114 gr_blit(surface, 0, 0, w, h, x, y); in draw_surface_centered() 117 LOGV("drawing surface %dx%d+%d+%d\n", w, h, x, y); in draw_surface_centered() 118 gr_blit(surface, 0, 0, w, h, x, y); in draw_surface_centered() 121 return y + h; in draw_surface_centered() 124 int HealthdDraw::draw_text(const GRFont* font, int x, int y, const char* str) { in draw_text() argument 129 if (y < 0) y = (screen_height_ - char_height_) / 2; in draw_text() 130 gr_text(font, x + kSplitOffset, y, str, false /* bold */); in draw_text() 131 if (kSplitScreen) gr_text(font, x - kSplitOffset + screen_width_, y, str, false /* bold */); in draw_text() [all …]
|
/system/teeui/libteeui/src/ |
D | button.cpp | 33 auto drawPixelBoundsEnforced = [&](uint32_t x, uint32_t y, Color color) -> Error { in draw() argument 34 if (!intBounds.contains(Point<intpxs>(x, y))) { in draw() 35 TEEUI_LOG << "Bounds: " << bounds << " Pixel: " << Point<pxs>(x, y) << ENDL; in draw() 38 return drawPixel(x, y, color); in draw() 42 for (int y = 0; y < box.h().count(); ++y) { in draw() local 44 if (auto error = drawPixel(box.x().count() + x, box.y().count() + y, c)) { in draw() 65 Box<intpxs> cBounds(intBounds.x(), intBounds.y(), intRadius, intRadius); in draw() 73 for (int y = 0; y < cBounds.h().count(); ++y) { in draw() local 75 auto pos = Point<pxs>(cBounds.x().count() + x, cBounds.y().count() + y); in draw() 77 if (auto error = drawPixelBoundsEnforced(pos.x().count(), pos.y().count(), color)) { in draw() [all …]
|
D | utils.cpp | 51 dist_vec = Point<pxs>(dist_vec.x().abs(), dist_vec.y().abs()); in pixelLineIntersect() 53 if (dist_vec.x() < dist_vec.y()) { in pixelLineIntersect() 54 dist_vec = Point<pxs>(dist_vec.y(), dist_vec.x()); in pixelLineIntersect() 57 auto a1 = -dist_vec.y(); in pixelLineIntersect() 74 area = R.x() * R.y() * pxs(.5); in pixelLineIntersect() 75 if (R.y() > 1.0) { in pixelLineIntersect() 76 auto r = R.y() - pxs(1.0); in pixelLineIntersect() 77 area -= r * R.x() * ((r) / R.y()) * pxs(.5); in pixelLineIntersect() 110 line = Point<pxs>(-line.y(), line.x()) / len; in drawLinePoint() 129 pxs y = 0.0; in intersect() local [all …]
|
D | label.cpp | 41 Box<intpxs> intBounds(intpxs((int64_t)bounds.x().count()), intpxs((int64_t)bounds.y().count()), in draw() 45 makePixelDrawer([&, this](uint32_t x, uint32_t y, Color color) -> Error { in draw() argument 46 if (!intBounds.contains(Point<intpxs>(x, y))) { in draw() 47 TEEUI_LOG << "Bounds: " << bounds << " Pixel: " << Point<pxs>(x, y) << ENDL; in draw() 51 return drawPixel(x, y, (textColor_ & 0xffffff) | (color & 0xff000000)); in draw() 56 for (int y = 0; y < box.h().count(); ++y) { in draw() local 58 drawPixel(box.x().count() + x, box.y().count() + y, (c & 0xffffff) | 0x40000000); in draw() 78 pen = {-bBox.x(), pen.y()}; in draw() 111 offset -= {0, boundingBox->y()}; in draw() 125 drawPixel(p.x().count(), p.y().count(), 0xffff0000); in draw()
|
/system/bt/stack/smp/ |
D | p_256_curvepara.cc | 65 ec->G.y[7] = 0x4fe342e2; in p_256_init_curve() 66 ec->G.y[6] = 0xfe1a7f9b; in p_256_init_curve() 67 ec->G.y[5] = 0x8ee7eb4a; in p_256_init_curve() 68 ec->G.y[4] = 0x7c0f9e16; in p_256_init_curve() 69 ec->G.y[3] = 0x2bce3357; in p_256_init_curve() 70 ec->G.y[2] = 0x6b315ece; in p_256_init_curve() 71 ec->G.y[1] = 0xcbb64068; in p_256_init_curve() 72 ec->G.y[0] = 0x37bf51f5; in p_256_init_curve()
|
D | p_256_ecc_pp.cc | 58 y1 = p->y; in ECC_Double() 61 y3 = q->y; in ECC_Double() 104 y1 = p->y; in ECC_Add() 107 y2 = q->y; in ECC_Add() 110 y3 = r->y; in ECC_Add() 213 multiprecision_sub(minus_p.y, modp, p->y); in ECC_PointMult_Bin_NAF() 240 multiprecision_mersenns_mult_mod(q->y, q->y, q->z); in ECC_PointMult_Bin_NAF() 250 multiprecision_mersenns_squa_mod(y2_mod, (uint32_t*)pt.y); in ECC_ValidatePoint()
|
/system/extras/libfec/include/fec/ |
D | ecc.h | 39 inline uint64_t fec_div_round_up(uint64_t x, uint64_t y) in fec_div_round_up() argument 41 return (x / y) + (x % y > 0 ? 1 : 0); in fec_div_round_up() 45 inline uint64_t fec_round_up(uint64_t x, uint64_t y) in fec_round_up() argument 47 return fec_div_round_up(x, y) * y; in fec_round_up()
|
/system/media/audio_utils/ |
D | fixedfft.cpp | 125 int32_t y = half(v[i + p]); in fixed_fft() local 126 v[i] = x + y; in fixed_fft() 127 v[i + p] = x - y; in fixed_fft() 136 int32_t y = mult(w, v[i + p]); in fixed_fft() local 137 v[i] = x - y; in fixed_fft() 138 v[i + p] = x + y; in fixed_fft() 157 int32_t y = z - (x ^ 0xFFFF); in fixed_fft_real() local 159 y = mult(y, ((int32_t) twiddle[i << scale])); in fixed_fft_real() 160 v[i] = x - y; in fixed_fft_real() 161 v[n - i] = (x + y) ^ 0xFFFF; in fixed_fft_real()
|
/system/bt/embdrv/sbc/decoder/include/ |
D | oi_stddefs.h | 191 #define OI_BIT_TEST(x, y) ((x) & (y)) argument 196 #define OI_BIT_CLEAR_TEST(x, y) (((x) & (y)) == 0) argument 199 #define OI_BIT_SET(x, y) ((x) |= (y)) argument 202 #define OI_BIT_CLEAR(x, y) ((x) &= ~(y)) argument
|
/system/libbase/include/android-base/ |
D | logging.h | 278 #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) argument 279 #define CHECK_NE(x, y) CHECK_OP(x, y, != ) argument 280 #define CHECK_LE(x, y) CHECK_OP(x, y, <= ) argument 281 #define CHECK_LT(x, y) CHECK_OP(x, y, < ) argument 282 #define CHECK_GE(x, y) CHECK_OP(x, y, >= ) argument 283 #define CHECK_GT(x, y) CHECK_OP(x, y, > ) argument 323 #define DCHECK_EQ(x, y) \ argument 324 if (::android::base::kEnableDChecks) CHECK_EQ(x, y) 325 #define DCHECK_NE(x, y) \ argument 326 if (::android::base::kEnableDChecks) CHECK_NE(x, y) [all …]
|
/system/core/libutils/include/utils/ |
D | Trace.h | 34 #define _PASTE(x, y) x ## y argument 35 #define PASTE(x, y) _PASTE(x,y) argument
|
/system/media/audio_utils/tests/ |
D | variadic_tests.cpp | 108 tuple_t y{0, 3}; in TEST() local 111 std::cout << "x=" << x << " y=" << y << " x+y=" << (x + y) << "\n"; in TEST() 112 std::cout << "x=" << x << " y=" << y << " x*y=" << (x * y) << "\n"; in TEST() 115 std::cout << "x=" << x << " y=" << y << " innerProduct(x, y)=" << innerProduct(x, y) << "\n"; in TEST() 116 std::cout << "x=" << x << " y=" << y << " outerProduct(x, y)=" << outerProduct(x, y) << "\n"; in TEST() 118 std::cout << "x=" << x << " y=" << y in TEST() 119 << " min(x, y)" << android::audio_utils::min(x, y) << "\n"; in TEST() 124 std::cout << "x=" << x << " y=" << y; in TEST() 125 std::cout << " x*=y" << (x *= y) << "\n"; in TEST()
|
/system/extras/ext4_utils/include/ext4_utils/ |
D | ext4_utils.h | 60 #define DIV_ROUND_UP(x, y) (((x) + (y)-1) / (y)) argument 61 #define EXT4_ALIGN(x, y) ((y)*DIV_ROUND_UP((x), (y))) argument
|
/system/bt/gd/security/ |
D | ecdh_keys.cc | 63 memcpy(pk.y.data(), public_key.y, 32); in GenerateECDHKeyPair() 72 memcpy(public_key.y, pk.y.data(), 32); in ValidateECDHPoint() 82 memcpy(peer_publ_key.y, remote_public_key.y.data(), 32); in ComputeDHKey()
|
/system/extras/verity/ |
D | build_verity_tree_utils.h | 23 inline uint64_t div_round_up(uint64_t x, uint64_t y) { return (x + y - 1) / y; } in div_round_up() argument
|
/system/bt/embdrv/sbc/decoder/srce/ |
D | synthesis-dct8.c | 51 #define SCALE(x, y) (((x) + (1 << ((y)-1))) >> (y)) argument 86 #define FLOAT_BUTTERFLY(x, y) \ in float_dct2_8() argument 87 x += y; \ in float_dct2_8() 88 y = x - (y * 2); \ in float_dct2_8() 90 OI_ASSERT(VALID_INT32(y)); in float_dct2_8() 92 #define FLOAT_SCALE(x, y) (((x) / (double)(1 << (y)))) in float_dct2_8() argument 251 #define BUTTERFLY(x, y) \ in dct2_8() argument 252 x += (y); \ in dct2_8() 253 (y) = (x) - ((y) << 1); in dct2_8()
|
/system/teeui/libteeui/example/ |
D | touch_button_example.cpp | 81 EventResult onEvent(uint32_t x, uint32_t y, uint32_t) override; 83 uint32_t renderUIIntoBuffer(uint32_t x, uint32_t y, uint32_t w, uint32_t h, uint32_t lineStride, 92 EventResult GUIStateTouch::onEvent(uint32_t x, uint32_t y, uint32_t) { in onEvent() argument 94 Event event{x, y, EventType::KeyUp}; in onEvent() 142 uint32_t GUIStateTouch::renderUIIntoBuffer(uint32_t x, uint32_t y, uint32_t w, uint32_t h, in renderUIIntoBuffer() argument 146 if (__builtin_add_overflow(y, h, &afterLastPixelIndex) || in renderUIIntoBuffer() 155 uint32_t* begin = buffer + (y * lineStride + x); in renderUIIntoBuffer() 167 fb.top_ = y; in renderUIIntoBuffer() 175 [&fb](uint32_t x, uint32_t y, Color color) -> Error { return fb.drawPixel(x, y, color); }); in renderUIIntoBuffer() argument
|
D | phys_button_example.cpp | 60 uint32_t renderUIIntoBuffer(uint32_t x, uint32_t y, uint32_t w, uint32_t h, uint32_t lineStride, 105 uint32_t GUIStatePhysButtons::renderUIIntoBuffer(uint32_t x, uint32_t y, uint32_t w, uint32_t h, in renderUIIntoBuffer() argument 109 if (__builtin_add_overflow(y, h, &afterLastPixelIndex) || in renderUIIntoBuffer() 118 uint32_t* begin = buffer + (y * lineStride + x); in renderUIIntoBuffer() 130 fb.top_ = y; in renderUIIntoBuffer() 138 [&fb](uint32_t x, uint32_t y, Color color) -> Error { return fb.drawPixel(x, y, color); }); in renderUIIntoBuffer() argument
|
/system/bt/gd/security/test/ |
D | ecdh_keys_test.cc | 60 …LOG_ERROR("public key a.y : %s", base::HexEncode(public_key_a.y.data(), public_key_a.y.size()).c_s… in TEST_F() 64 …LOG_ERROR("public key b.y : %s", base::HexEncode(public_key_b.y.data(), public_key_b.y.size()).c_s… in TEST_F() 86 memcpy(public_key_a.y.data(), ay, 32); in TEST_F() 97 memcpy(public_key_b.y.data(), by, 32); in TEST_F()
|
/system/extras/boottime_tools/bootio/ |
D | README.md | 6 CONFIG_TASKSTATS=y 7 CONFIG_TASK_DELAY_ACCT=y 8 CONFIG_TASK_XACCT=y 9 CONFIG_TASK_IO_ACCOUNTING=y
|
/system/unwinding/libunwindstack/tests/ |
D | ArmExidxDecodeTest.cpp | 703 for (size_t y = 0; y < 16; y++) { in TEST_P() local 706 data_->push_back((x << 4) | y); in TEST_P() 707 ASSERT_FALSE(exidx_->Decode()) << "x, y = " << x << ", " << y; in TEST_P() 708 ASSERT_EQ("", GetFakeLogBuf()) << "x, y = " << x << ", " << y; in TEST_P() 715 ASSERT_EQ("4 unwind Spare\n", GetFakeLogPrint()) << "x, y = " << x << ", " << y; in TEST_P() 718 ASSERT_EQ(0x10000U, exidx_->cfa()) << "x, y = " << x << ", " << y; in TEST_P() 762 for (size_t y = 0; y < 16; y++) { in TEST_P() local 766 ASSERT_FALSE(exidx_->Decode()) << "x, y = " << x << ", " << y; in TEST_P() 767 ASSERT_EQ("", GetFakeLogBuf()) << "x, y = " << x << ", " << y; in TEST_P() 774 ASSERT_EQ("4 unwind Spare\n", GetFakeLogPrint()) << "x, y = " << x << ", " << y; in TEST_P() [all …]
|
/system/teeui/libteeui/include/teeui/ |
D | utils.h | 550 constexpr Vec2d(Coord x, Coord y) : x_(x), y_(y) {} 555 : x_(other.x()), y_(other.y()) {} 585 bool operator==(const Vec2d& rhs) const { return x_ == rhs.x() && y_ == rhs.y(); } 592 Coord y() const { return y_; } 603 out << "Vec2d(" << p.x() << ", " << p.y() << ")"; 745 Box(const Coord& x, const Coord& y, const Coord& w, const Coord& h) 746 : topLeft_(x, y), extend_(w, h) {} 751 return p.y().count() >= 0 && p.y().count() <= extend_.y().count() && p.x().count() >= 0 && 758 topLeft_.y() <= other.topLeft_.y() && br.y() >= obr.y(); 763 return topLeft_.x() < obr.x() && other.topLeft_.x() < br.x() && topLeft_.y() < obr.y() && [all …]
|