/system/bt/stack/include/ |
D | hcidefs.h | 1110 #define HCI_CVSD_SUPPORTED(x) \ argument 1111 (((x)&HCI_AIR_CODING_FORMAT_MASK) == HCI_AIR_CODING_FORMAT_CVSD) 1112 #define HCI_U_LAW_SUPPORTED(x) \ argument 1113 (((x)&HCI_AIR_CODING_FORMAT_MASK) == HCI_AIR_CODING_FORMAT_U_LAW) 1114 #define HCI_A_LAW_SUPPORTED(x) \ argument 1115 (((x)&HCI_AIR_CODING_FORMAT_MASK) == HCI_AIR_CODING_FORMAT_A_LAW) 1116 #define HCI_TRANSPNT_SUPPORTED(x) \ argument 1117 (((x)&HCI_AIR_CODING_FORMAT_MASK) == HCI_AIR_CODING_FORMAT_TRANSPNT) 1328 #define HCI_FEATURES_KNOWN(x) \ argument 1329 (((x)[0] | (x)[1] | (x)[2] | (x)[3] | (x)[4] | (x)[5] | (x)[6] | (x)[7]) != 0) [all …]
|
D | avrc_defs.h | 474 #define AVRC_PF_SELECT_SUPPORTED(x) \ argument 475 ((x)[AVRC_PF_SELECT_OFF] & AVRC_PF_SELECT_MASK) 480 #define AVRC_PF_UP_SUPPORTED(x) ((x)[AVRC_PF_UP_OFF] & AVRC_PF_UP_MASK) argument 485 #define AVRC_PF_DOWN_SUPPORTED(x) ((x)[AVRC_PF_DOWN_OFF] & AVRC_PF_DOWN_MASK) argument 490 #define AVRC_PF_LEFT_SUPPORTED(x) ((x)[AVRC_PF_LEFT_OFF] & AVRC_PF_LEFT_MASK) argument 495 #define AVRC_PF_RIGHT_SUPPORTED(x) ((x)[AVRC_PF_RIGHT_OFF] & AVRC_PF_RIGHT_MASK) argument 500 #define AVRC_PF_RIGHTUP_SUPPORTED(x) \ argument 501 ((x)[AVRC_PF_RIGHTUP_OFF] & AVRC_PF_RIGHTUP_MASK) 506 #define AVRC_PF_RIGHTDOWN_SUPPORTED(x) \ argument 507 ((x)[AVRC_PF_RIGHTDOWN_OFF] & AVRC_PF_RIGHTDOWN_MASK) [all …]
|
/system/libbase/include/android-base/ |
D | endian.h | 37 #define htonq(x) htobe64(x) argument 38 #define ntohq(x) be64toh(x) argument 41 #define betoh16(x) be16toh(x) argument 42 #define betoh32(x) be32toh(x) argument 43 #define betoh64(x) be64toh(x) argument 44 #define letoh16(x) le16toh(x) argument 45 #define letoh32(x) le32toh(x) argument 46 #define letoh64(x) le64toh(x) argument 58 #define htons(x) __builtin_bswap16(x) argument 59 #define htonl(x) __builtin_bswap32(x) argument [all …]
|
D | thread_annotations.h | 21 #define THREAD_ANNOTATION_ATTRIBUTE__(x) __attribute__((x)) argument 23 #define CAPABILITY(x) \ argument 24 THREAD_ANNOTATION_ATTRIBUTE__(capability(x)) 32 #define GUARDED_BY(x) \ argument 33 THREAD_ANNOTATION_ATTRIBUTE__(guarded_by(x)) 35 #define PT_GUARDED_BY(x) \ argument 36 THREAD_ANNOTATION_ATTRIBUTE__(pt_guarded_by(x)) 77 #define ASSERT_CAPABILITY(x) \ argument 78 THREAD_ANNOTATION_ATTRIBUTE__(assert_capability(x)) 80 #define ASSERT_SHARED_CAPABILITY(x) \ argument [all …]
|
D | logging.h | 184 #define ABORT_AFTER_LOG_EXPR_IF(c, x) (((c) && ::android::base::LogAbortAfterFullExpr()) || (x)) argument 189 #define ABORT_AFTER_LOG_EXPR_IF(c, x) (x) argument 192 #define ABORT_AFTER_LOG_FATAL_EXPR(x) ABORT_AFTER_LOG_EXPR_IF(true, x) argument 243 #define CHECK(x) \ argument 244 LIKELY((x)) || ABORT_AFTER_LOG_FATAL_EXPR(false) || \ 248 << "Check failed: " #x << " " 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 [all …]
|
/system/core/init/ |
D | tokenizer.cpp | 10 char *x = state->ptr; in next_token() local 20 switch (*x) { in next_token() 22 state->ptr = x; in next_token() 25 x++; in next_token() 26 state->ptr = x; in next_token() 31 x++; in next_token() 34 while (*x && (*x != '\n')) x++; in next_token() 35 if (*x == '\n') { in next_token() 36 state->ptr = x+1; in next_token() 39 state->ptr = x; in next_token() [all …]
|
/system/core/libnetutils/ |
D | dhcpmsg.c | 26 uint8_t *x; in init_dhcp_msg() local 41 x = msg->options; in init_dhcp_msg() 43 *x++ = OPT_COOKIE1; in init_dhcp_msg() 44 *x++ = OPT_COOKIE2; in init_dhcp_msg() 45 *x++ = OPT_COOKIE3; in init_dhcp_msg() 46 *x++ = OPT_COOKIE4; in init_dhcp_msg() 48 *x++ = OPT_MESSAGE_TYPE; in init_dhcp_msg() 49 *x++ = 1; in init_dhcp_msg() 50 *x++ = type; in init_dhcp_msg() 52 return x; in init_dhcp_msg() [all …]
|
D | dhcpclient.c | 166 uint8_t *x; in decode_dhcp_msg() local 180 x = msg->options + 4; in decode_dhcp_msg() 183 opt = *x++; in decode_dhcp_msg() 191 optlen = *x++; in decode_dhcp_msg() 200 memcpy(&mask, x, 4); in decode_dhcp_msg() 205 if (optlen >= 4) memcpy(&info->gateway, x, 4); in decode_dhcp_msg() 208 if (optlen >= 4) memcpy(&info->dns1, x + 0, 4); in decode_dhcp_msg() 209 if (optlen >= 8) memcpy(&info->dns2, x + 4, 4); in decode_dhcp_msg() 213 memcpy(&info->lease, x, 4); in decode_dhcp_msg() 218 if (optlen >= 4) memcpy(&info->serveraddr, x, 4); in decode_dhcp_msg() [all …]
|
/system/bt/gd/security/ecc/ |
D | multipoint_test.cc | 35 p.x[7] = 0x20b003d2; in TEST() 36 p.x[6] = 0xf297be2c; in TEST() 37 p.x[5] = 0x5e2c83a7; in TEST() 38 p.x[4] = 0xe9f9a5b9; in TEST() 39 p.x[3] = 0xeff49111; in TEST() 40 p.x[2] = 0xacf4fddb; in TEST() 41 p.x[1] = 0xcc030148; in TEST() 42 p.x[0] = 0x0e359de6; in TEST() 56 p.x[7] = 0x2c31a47b; in TEST() 57 p.x[6] = 0x5779809e; in TEST() [all …]
|
/system/memory/libmeminfo/ |
D | meminfo_private.h | 28 #define _BITS(x, offset, bits) (((x) >> (offset)) & ((1LL << (bits)) - 1)) argument 29 #define PAGE_PRESENT(x) (_BITS(x, 63, 1)) argument 30 #define PAGE_SWAPPED(x) (_BITS(x, 62, 1)) argument 31 #define PAGE_SHIFT(x) (_BITS(x, 55, 6)) argument 32 #define PAGE_PFN(x) (_BITS(x, 0, 55)) argument 33 #define PAGE_SWAP_OFFSET(x) (_BITS(x, 5, 50)) argument 34 #define PAGE_SWAP_TYPE(x) (_BITS(x, 0, 5)) argument
|
/system/core/libutils/include/utils/ |
D | ByteOrder.h | 39 #define dtohl(x) (x) argument 40 #define dtohs(x) (x) argument 41 #define htodl(x) (x) argument 42 #define htods(x) (x) argument 44 #define fromlel(x) (x) argument 45 #define tolel(x) (x) argument
|
/system/nfc/src/nfc/tags/ |
D | tags_int.cc | 96 static unsigned int tags_ones32(unsigned int x); 269 int tags_pow(int x, int y) { in tags_pow() argument 272 ret *= x; in tags_pow() 287 static unsigned int tags_ones32(unsigned int x) { in tags_ones32() argument 292 x -= ((x >> 1) & 0x55555555); in tags_ones32() 293 x = (((x >> 2) & 0x33333333) + (x & 0x33333333)); in tags_ones32() 294 x = (((x >> 4) + x) & 0x0f0f0f0f); in tags_ones32() 295 x += (x >> 8); in tags_ones32() 296 x += (x >> 16); in tags_ones32() 297 return (x & 0x0000003f); in tags_ones32() [all …]
|
/system/core/libpixelflinger/codeflinger/ |
D | armreg.h | 70 #define CPU_ID_ISOLD(x) (((x) & 0x0000f000) == 0x00000000) argument 71 #define CPU_ID_IS7(x) (((x) & 0x0000f000) == 0x00007000) argument 72 #define CPU_ID_ISNEW(x) (!CPU_ID_ISOLD(x) && !CPU_ID_IS7(x)) argument 239 #define CPU_CT_ISIZE(x) ((x) & 0xfff) /* I$ info */ argument 240 #define CPU_CT_DSIZE(x) (((x) >> 12) & 0xfff) /* D$ info */ argument 242 #define CPU_CT_CTYPE(x) (((x) >> 25) & 0xf) /* cache type */ argument 250 #define CPU_CT_xSIZE_LEN(x) ((x) & 0x3) /* line size */ argument 252 #define CPU_CT_xSIZE_ASSOC(x) (((x) >> 3) & 0x7) /* associativity */ argument 253 #define CPU_CT_xSIZE_SIZE(x) (((x) >> 6) & 0x7) /* size */ argument
|
/system/core/libpixelflinger/ |
D | fixed.cpp | 26 int32_t gglRecipQNormalized(int32_t x, int* exponent) in gglRecipQNormalized() argument 28 const int32_t s = x>>31; in gglRecipQNormalized() 29 uint32_t a = s ? -x : x; in gglRecipQNormalized() 60 int32_t gglRecipQ(GGLfixed x, int q) in gglRecipQ() argument 63 x = gglRecipQNormalized(x, &shift); in gglRecipQ() 66 x += 1L << (shift-1); // rounding in gglRecipQ() 67 x >>= shift; in gglRecipQ() 68 return x; in gglRecipQ() 78 GGLfixed gglSqrtRecipx(GGLfixed x) in gglSqrtRecipx() argument 80 if (x == 0) return FIXED_MAX; in gglSqrtRecipx() [all …]
|
/system/core/libcutils/include_vndk/cutils/ |
D | klog.h | 40 #define KLOG_ERROR(tag,x...) klog_write(KLOG_ERROR_LEVEL, "<3>" tag ": " x) argument 41 #define KLOG_WARNING(tag,x...) klog_write(KLOG_WARNING_LEVEL, "<4>" tag ": " x) argument 42 #define KLOG_NOTICE(tag,x...) klog_write(KLOG_NOTICE_LEVEL, "<5>" tag ": " x) argument 43 #define KLOG_INFO(tag,x...) klog_write(KLOG_INFO_LEVEL, "<6>" tag ": " x) argument 44 #define KLOG_DEBUG(tag,x...) klog_write(KLOG_DEBUG_LEVEL, "<7>" tag ": " x) argument
|
D | bitops.h | 27 static inline int popcount(unsigned int x) { in popcount() argument 28 return __builtin_popcount(x); in popcount() 31 static inline int popcountl(unsigned long x) { in popcountl() argument 32 return __builtin_popcountl(x); in popcountl() 35 static inline int popcountll(unsigned long long x) { in popcountll() argument 36 return __builtin_popcountll(x); in popcountll()
|
/system/core/libcutils/include/cutils/ |
D | klog.h | 40 #define KLOG_ERROR(tag,x...) klog_write(KLOG_ERROR_LEVEL, "<3>" tag ": " x) argument 41 #define KLOG_WARNING(tag,x...) klog_write(KLOG_WARNING_LEVEL, "<4>" tag ": " x) argument 42 #define KLOG_NOTICE(tag,x...) klog_write(KLOG_NOTICE_LEVEL, "<5>" tag ": " x) argument 43 #define KLOG_INFO(tag,x...) klog_write(KLOG_INFO_LEVEL, "<6>" tag ": " x) argument 44 #define KLOG_DEBUG(tag,x...) klog_write(KLOG_DEBUG_LEVEL, "<7>" tag ": " x) argument
|
D | bitops.h | 27 static inline int popcount(unsigned int x) { in popcount() argument 28 return __builtin_popcount(x); in popcount() 31 static inline int popcountl(unsigned long x) { in popcountl() argument 32 return __builtin_popcountl(x); in popcountl() 35 static inline int popcountll(unsigned long long x) { in popcountll() argument 36 return __builtin_popcountll(x); in popcountll()
|
/system/nfc/src/include/ |
D | gki_hal_target.h | 79 #define GKI_MS_TO_TICKS(x) ((x) / (1000 / TICKS_PER_SEC)) argument 83 #define GKI_SECS_TO_TICKS(x) ((x) * (TICKS_PER_SEC)) argument 87 #define GKI_TICKS_TO_MS(x) ((x)*1000 / TICKS_PER_SEC) argument 91 #define GKI_TICKS_TO_SECS(x) ((x) / TICKS_PER_SEC) argument 105 #define GKI_OS_TICKS_TO_MS(x) ((x)*1000 / OS_TICKS_PER_SEC) argument 109 #define GKI_OS_TICKS_TO_SECS(x) ((x) / OS_TICKS_PER_SEC)) argument
|
/system/core/healthd/ |
D | healthd_draw.cpp | 24 #define LOGE(x...) KLOG_ERROR("charger", x); argument 25 #define LOGW(x...) KLOG_WARNING("charger", x); argument 26 #define LOGV(x...) KLOG_DEBUG("charger", x); argument 110 int x = (screen_width_ - w) / 2 + kSplitOffset; 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() 116 x += screen_width_ - 2 * kSplitOffset; 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() 124 int HealthdDraw::draw_text(const GRFont* font, int x, int y, const char* str) { in draw_text() argument [all …]
|
/system/bt/osi/test/ |
D | list_test.cc | 61 int x; in TEST_F() local 64 EXPECT_FALSE(list_remove(list, &x)); in TEST_F() 71 int x[] = {1, 2, 3, 4, 5}; in TEST_F() local 74 for (size_t i = 0; i < ARRAY_SIZE(x); ++i) list_append(list, &x[i]); in TEST_F() 76 EXPECT_EQ(list_front(list), &x[0]); in TEST_F() 82 int x[] = {1, 2, 3, 4, 5}; in TEST_F() local 85 for (size_t i = 0; i < ARRAY_SIZE(x); ++i) list_append(list, &x[i]); in TEST_F() 87 EXPECT_EQ(list_back(list), &x[ARRAY_SIZE(x) - 1]); in TEST_F() 93 int x[] = {1, 2, 3, 4, 5}; in TEST_F() local 96 for (size_t i = 0; i < ARRAY_SIZE(x); ++i) list_append(list, &x[i]); in TEST_F() [all …]
|
/system/bt/stack/test/ |
D | stack_smp_test.cc | 220 p.x[7] = 0x20b003d2; in TEST() 221 p.x[6] = 0xf297be2c; in TEST() 222 p.x[5] = 0x5e2c83a7; in TEST() 223 p.x[4] = 0xe9f9a5b9; in TEST() 224 p.x[3] = 0xeff49111; in TEST() 225 p.x[2] = 0xacf4fddb; in TEST() 226 p.x[1] = 0xcc030148; in TEST() 227 p.x[0] = 0x0e359de6; in TEST() 241 p.x[7] = 0x2c31a47b; in TEST() 242 p.x[6] = 0x5779809e; in TEST() [all …]
|
/system/netd/bpf_progs/ |
D | bpf_net_helpers.h | 51 #define htons(x) (__builtin_constant_p(x) ? ___constant_swab16(x) : __builtin_bswap16(x)) argument 52 #define htonl(x) (__builtin_constant_p(x) ? ___constant_swab32(x) : __builtin_bswap32(x)) argument 53 #define ntohs(x) htons(x) argument 54 #define ntohl(x) htonl(x) argument
|
/system/core/libpixelflinger/include/private/pixelflinger/ |
D | ggl_fixed.h | 86 GGLfixed gglPowx(GGLfixed x, GGLfixed y) CONST; 88 GGLfixed gglSqrtRecipx(GGLfixed x) CONST; 91 int32_t gglRecipQNormalized(int32_t x, int* exponent); 92 int32_t gglRecipQ(GGLfixed x, int q) CONST; 94 inline GGLfixed gglRecip(GGLfixed x) CONST; 95 inline GGLfixed gglRecip(GGLfixed x) { in gglRecip() argument 96 return gglRecipQ(x, 16); in gglRecip() 99 inline GGLfixed gglRecip28(GGLfixed x) CONST; 100 int32_t gglRecip28(GGLfixed x) { in gglRecip28() argument 101 return gglRecipQ(x, 28); in gglRecip28() [all …]
|
/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 64 #define cpu_to_le32(x) (x) argument 65 #define cpu_to_le16(x) (x) argument 66 #define le32_to_cpu(x) (x) argument 67 #define le16_to_cpu(x) (x) argument
|