/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 | 229 p.y[7] = 0xdc809c49; in TEST() 230 p.y[6] = 0x652aeb6d; in TEST() 231 p.y[5] = 0x63329abf; in TEST() 232 p.y[4] = 0x5a52155c; in TEST() 233 p.y[3] = 0x766345c2; in TEST() 234 p.y[2] = 0x8fed3024; in TEST() 235 p.y[1] = 0x741c8ed0; in TEST() 236 p.y[0] = 0x1589d28b; in TEST() 250 p.y[7] = 0x91951218; in TEST() 251 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()
|
/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/core/libpixelflinger/tests/gglmul/ |
D | gglmul_test.cpp | 103 GGLfixed y; member 130 test->x, test->y, test->shift); in gglMulx_test() 131 actual = gglMulx(test->x, test->y, test->shift); in gglMulx_test() 133 ((int64_t)test->x * test->y + (1 << (test->shift-1))) >> test->shift; in gglMulx_test() 145 GGLfixed y; member 173 test->x, test->y, test->shift, test->a); in gglMulAddx_test() 174 actual = gglMulAddx(test->x, test->y,test->a, test->shift); in gglMulAddx_test() 175 expected = (((int64_t)test->x * test->y) >> test->shift) + test->a; in gglMulAddx_test() 188 GGLfixed y; member 216 test->x, test->y, test->shift, test->a); in gglMulSubx_test() [all …]
|
/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/core/libpixelflinger/ |
D | raster.cpp | 27 static void ggl_rasterPos2x(void* con, GGLfixed x, GGLfixed y); 28 static void ggl_rasterPos2i(void* con, GGLint x, GGLint y); 40 void ggl_rasterPos2x(void* con, GGLfixed x, GGLfixed y) in ggl_rasterPos2x() argument 45 c->state.raster.y = y; in ggl_rasterPos2x() 48 void ggl_rasterPos2i(void* con, GGLint x, GGLint y) in ggl_rasterPos2i() argument 50 ggl_rasterPos2x(con, gglIntToFixed(x), gglIntToFixed(y)); in ggl_rasterPos2i() 73 GGLint yd = gglFixedToIntRound(c->state.raster.y); in ggl_copyPixels() 151 GGLint y = where[1]; in gglBitBlit() local 175 const GGLint t0 = Vcr - y; in gglBitBlit() 177 c->procs.recti(c, x, y, x+w, y+h); in gglBitBlit() [all …]
|
/system/libbase/include/android-base/ |
D | logging.h | 272 #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) argument 273 #define CHECK_NE(x, y) CHECK_OP(x, y, != ) argument 274 #define CHECK_LE(x, y) CHECK_OP(x, y, <= ) argument 275 #define CHECK_LT(x, y) CHECK_OP(x, y, < ) argument 276 #define CHECK_GE(x, y) CHECK_OP(x, y, >= ) argument 277 #define CHECK_GT(x, y) CHECK_OP(x, y, > ) argument 317 #define DCHECK_EQ(x, y) \ argument 318 if (::android::base::kEnableDChecks) CHECK_EQ(x, y) 319 #define DCHECK_NE(x, y) \ argument 320 if (::android::base::kEnableDChecks) CHECK_NE(x, y) [all …]
|
/system/core/libpixelflinger/include/private/pixelflinger/ |
D | ggl_fixed.h | 86 GGLfixed gglPowx(GGLfixed x, GGLfixed y) CONST; 109 inline GGLfixed gglMulx(GGLfixed x, GGLfixed y, int shift) CONST; 110 __attribute__((always_inline)) inline GGLfixed gglMulx(GGLfixed x, GGLfixed y, int shift) { in gglMulx() argument 117 : "%[x]"(x), [y]"r"(y), [lshift] "I"(32-shift), [rshift] "I"(shift) in gglMulx() 125 : "%[x]"(x), [y]"r"(y), [lshift] "r"(32-shift), [rshift] "r"(shift) in gglMulx() 132 inline GGLfixed gglMulAddx(GGLfixed x, GGLfixed y, GGLfixed a, int shift) CONST; 133 __attribute__((always_inline)) inline GGLfixed gglMulAddx(GGLfixed x, GGLfixed y, GGLfixed a, in gglMulAddx() argument 141 : "%[x]"(x), [y]"r"(y), [a]"r"(a), [lshift] "I"(32-shift), [rshift] "I"(shift) in gglMulAddx() 148 : "%[x]"(x), [y]"r"(y), [a]"r"(a), [lshift] "r"(32-shift), [rshift] "r"(shift) in gglMulAddx() 154 inline GGLfixed gglMulSubx(GGLfixed x, GGLfixed y, GGLfixed a, int shift) CONST; [all …]
|
/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/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/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/iorap/tests/src/tmp/ |
D | introspection_test.cc | 27 double y; member 31 IORAP_INTROSPECT_ADAPT_STRUCT(TestStructXyz, x, y, z); 98 EXPECT_EQ(xyz_expected.y, xyz.y); in TEST() 114 EXPECT_EQ(xyz_expected.y, xyz.y); in TEST() 135 EXPECT_EQ(xyz_expected.y, xyz.y); in TEST() 158 EXPECT_EQ(xyz_expected.y, xyz.y); in TEST()
|
/system/bt/gd/security/ |
D | ecdh_keys.cc | 62 memcpy(pk.y.data(), public_key.y, 32); in GenerateECDHKeyPair() 71 memcpy(public_key.y, pk.y.data(), 32); in ValidateECDHPoint() 81 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
|
/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
|