/system/bt/stack/include/ |
D | hcidefs.h | 1109 #define HCI_CVSD_SUPPORTED(x) \ argument 1110 (((x)&HCI_AIR_CODING_FORMAT_MASK) == HCI_AIR_CODING_FORMAT_CVSD) 1111 #define HCI_U_LAW_SUPPORTED(x) \ argument 1112 (((x)&HCI_AIR_CODING_FORMAT_MASK) == HCI_AIR_CODING_FORMAT_U_LAW) 1113 #define HCI_A_LAW_SUPPORTED(x) \ argument 1114 (((x)&HCI_AIR_CODING_FORMAT_MASK) == HCI_AIR_CODING_FORMAT_A_LAW) 1115 #define HCI_TRANSPNT_SUPPORTED(x) \ argument 1116 (((x)&HCI_AIR_CODING_FORMAT_MASK) == HCI_AIR_CODING_FORMAT_TRANSPNT) 1327 #define HCI_FEATURES_KNOWN(x) \ argument 1328 (((x)[0] | (x)[1] | (x)[2] | (x)[3] | (x)[4] | (x)[5] | (x)[6] | (x)[7]) != 0) [all …]
|
D | avrc_defs.h | 473 #define AVRC_PF_SELECT_SUPPORTED(x) \ argument 474 ((x)[AVRC_PF_SELECT_OFF] & AVRC_PF_SELECT_MASK) 479 #define AVRC_PF_UP_SUPPORTED(x) ((x)[AVRC_PF_UP_OFF] & AVRC_PF_UP_MASK) argument 484 #define AVRC_PF_DOWN_SUPPORTED(x) ((x)[AVRC_PF_DOWN_OFF] & AVRC_PF_DOWN_MASK) argument 489 #define AVRC_PF_LEFT_SUPPORTED(x) ((x)[AVRC_PF_LEFT_OFF] & AVRC_PF_LEFT_MASK) argument 494 #define AVRC_PF_RIGHT_SUPPORTED(x) ((x)[AVRC_PF_RIGHT_OFF] & AVRC_PF_RIGHT_MASK) argument 499 #define AVRC_PF_RIGHTUP_SUPPORTED(x) \ argument 500 ((x)[AVRC_PF_RIGHTUP_OFF] & AVRC_PF_RIGHTUP_MASK) 505 #define AVRC_PF_RIGHTDOWN_SUPPORTED(x) \ argument 506 ((x)[AVRC_PF_RIGHTDOWN_OFF] & AVRC_PF_RIGHTDOWN_MASK) [all …]
|
/system/core/base/include/android-base/ |
D | endian.h | 35 #define htonq(x) htobe64(x) argument 36 #define ntohq(x) be64toh(x) argument 39 #define betoh16(x) be16toh(x) argument 40 #define betoh32(x) be32toh(x) argument 41 #define betoh64(x) be64toh(x) argument 56 #define htons(x) __builtin_bswap16(x) argument 57 #define htonl(x) __builtin_bswap32(x) argument 58 #define htonq(x) __builtin_bswap64(x) argument 60 #define ntohs(x) __builtin_bswap16(x) argument 61 #define ntohl(x) __builtin_bswap32(x) argument [all …]
|
D | thread_annotations.h | 21 #define THREAD_ANNOTATION_ATTRIBUTE__(x) __attribute__((x)) argument 23 #define THREAD_ANNOTATION_ATTRIBUTE__(x) // no-op argument 26 #define CAPABILITY(x) \ argument 27 THREAD_ANNOTATION_ATTRIBUTE__(capability(x)) 35 #define GUARDED_BY(x) \ argument 36 THREAD_ANNOTATION_ATTRIBUTE__(guarded_by(x)) 38 #define PT_GUARDED_BY(x) \ argument 39 THREAD_ANNOTATION_ATTRIBUTE__(pt_guarded_by(x)) 80 #define ASSERT_CAPABILITY(x) \ argument 81 THREAD_ANNOTATION_ATTRIBUTE__(assert_capability(x)) [all …]
|
D | logging.h | 195 #define ABORT_AFTER_LOG_EXPR_IF(c, x) (((c) && ::android::base::LogAbortAfterFullExpr()) || (x)) argument 200 #define ABORT_AFTER_LOG_EXPR_IF(c, x) (x) argument 203 #define ABORT_AFTER_LOG_FATAL_EXPR(x) ABORT_AFTER_LOG_EXPR_IF(true, x) argument 267 #define CHECK(x) \ argument 268 LIKELY((x)) || ABORT_AFTER_LOG_FATAL_EXPR(false) || \ 272 << "Check failed: " #x << " " 294 #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) argument 295 #define CHECK_NE(x, y) CHECK_OP(x, y, != ) argument 296 #define CHECK_LE(x, y) CHECK_OP(x, y, <= ) argument 297 #define CHECK_LT(x, y) CHECK_OP(x, y, < ) argument [all …]
|
/system/core/libutils/include/utils/ |
D | ByteOrder.h | 55 #define dtohl(x) (x) argument 56 #define dtohs(x) (x) argument 57 #define htodl(x) (x) argument 58 #define htods(x) (x) argument 62 #define dtohl(x) (android_swap_long(x)) argument 63 #define dtohs(x) (android_swap_short(x)) argument 64 #define htodl(x) (android_swap_long(x)) argument 65 #define htods(x) (android_swap_short(x)) argument 70 #define fromlel(x) (x) argument 71 #define fromles(x) (x) argument [all …]
|
D | Mutex.h | 34 #define THREAD_ANNOTATION_ATTRIBUTE__(x) __attribute__((x)) argument 36 #define THREAD_ANNOTATION_ATTRIBUTE__(x) // no-op argument 39 #define CAPABILITY(x) THREAD_ANNOTATION_ATTRIBUTE__(capability(x)) argument 43 #define GUARDED_BY(x) THREAD_ANNOTATION_ATTRIBUTE__(guarded_by(x)) argument 45 #define PT_GUARDED_BY(x) THREAD_ANNOTATION_ATTRIBUTE__(pt_guarded_by(x)) argument 70 #define ASSERT_CAPABILITY(x) THREAD_ANNOTATION_ATTRIBUTE__(assert_capability(x)) argument 72 #define ASSERT_SHARED_CAPABILITY(x) THREAD_ANNOTATION_ATTRIBUTE__(assert_shared_capability(x)) argument 74 #define RETURN_CAPABILITY(x) THREAD_ANNOTATION_ATTRIBUTE__(lock_returned(x)) argument
|
/system/core/init/ |
D | tokenizer.cpp | 8 char *x = state->ptr; in next_token() local 18 switch (*x) { in next_token() 20 state->ptr = x; in next_token() 23 x++; in next_token() 24 state->ptr = x; in next_token() 29 x++; in next_token() 32 while (*x && (*x != '\n')) x++; in next_token() 33 if (*x == '\n') { in next_token() 34 state->ptr = x+1; in next_token() 37 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/nfc/src/nfc/tags/ |
D | tags_int.cc | 96 static unsigned int tags_ones32(register 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(register 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/netd/server/dns/ |
D | DnsTlsServer.cpp | 42 static bool operator <(const in6_addr& x, const in6_addr& y) { in operator <() argument 44 std::begin(x.s6_addr), std::end(x.s6_addr), in operator <() 48 static bool operator ==(const in6_addr& x, const in6_addr& y) { in operator ==() argument 50 std::begin(x.s6_addr), std::end(x.s6_addr), in operator ==() 54 static bool operator <(const sockaddr_storage& x, const sockaddr_storage& y) { in operator <() argument 55 if (x.ss_family != y.ss_family) { in operator <() 56 return x.ss_family < y.ss_family; in operator <() 59 if (x.ss_family == AF_INET) { in operator <() 60 const sockaddr_in& x_sin = reinterpret_cast<const sockaddr_in&>(x); in operator <() 63 } else if (x.ss_family == AF_INET6) { in operator <() [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() 89 GGLfixed gglSqrtRecipx(GGLfixed x) in gglSqrtRecipx() argument 91 if (x == 0) return FIXED_MAX; in gglSqrtRecipx() [all …]
|
/system/core/libbacktrace/ |
D | GetPss.cpp | 27 #define _BITS(x, offset, bits) (((x) >> (offset)) & ((1LL << (bits)) - 1)) argument 29 #define PAGEMAP_PRESENT(x) (_BITS(x, 63, 1)) argument 30 #define PAGEMAP_SWAPPED(x) (_BITS(x, 62, 1)) argument 31 #define PAGEMAP_SHIFT(x) (_BITS(x, 55, 6)) argument 32 #define PAGEMAP_PFN(x) (_BITS(x, 0, 55)) argument 33 #define PAGEMAP_SWAP_OFFSET(x) (_BITS(x, 5, 50)) argument 34 #define PAGEMAP_SWAP_TYPE(x) (_BITS(x, 0, 5)) argument
|
/system/core/healthd/ |
D | healthd_draw.cpp | 23 #define LOGE(x...) KLOG_ERROR("charger", x); argument 24 #define LOGV(x...) KLOG_DEBUG("charger", x); argument 71 int x = (screen_width_ - w) / 2 + kSplitOffset; in draw_surface_centered() local 74 LOGV("drawing surface %dx%d+%d+%d\n", w, h, x, y); in draw_surface_centered() 75 gr_blit(surface, 0, 0, w, h, x, y); in draw_surface_centered() 77 x += screen_width_ - 2 * kSplitOffset; in draw_surface_centered() 78 LOGV("drawing surface %dx%d+%d+%d\n", w, h, x, y); in draw_surface_centered() 79 gr_blit(surface, 0, 0, w, h, x, y); in draw_surface_centered() 85 int HealthdDraw::draw_text(const GRFont* font, int x, int y, const char* str) { in draw_text() argument 88 if (x < 0) x = (screen_width_ - str_len_px) / 2; in draw_text() [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/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/core/libpixelflinger/include/private/pixelflinger/ |
D | ggl_fixed.h | 86 GGLfixed gglPowx(GGLfixed x, GGLfixed y) CONST; 88 GGLfixed gglSqrtRecipx(GGLfixed x) CONST; 92 int32_t gglRecipQNormalized(int32_t x, int* exponent); 93 int32_t gglRecipQ(GGLfixed x, int q) CONST; 95 inline GGLfixed gglRecip(GGLfixed x) CONST; 96 inline GGLfixed gglRecip(GGLfixed x) { in gglRecip() argument 97 return gglRecipQ(x, 16); in gglRecip() 100 inline GGLfixed gglRecip28(GGLfixed x) CONST; 101 int32_t gglRecip28(GGLfixed x) { in gglRecip28() argument 102 return gglRecipQ(x, 28); in gglRecip28() [all …]
|
/system/bt/stack/test/ |
D | stack_smp_test.cc | 237 p.x[7] = 0x20b003d2; in TEST() 238 p.x[6] = 0xf297be2c; in TEST() 239 p.x[5] = 0x5e2c83a7; in TEST() 240 p.x[4] = 0xe9f9a5b9; in TEST() 241 p.x[3] = 0xeff49111; in TEST() 242 p.x[2] = 0xacf4fddb; in TEST() 243 p.x[1] = 0xcc030148; in TEST() 244 p.x[0] = 0x0e359de6; in TEST() 258 p.x[7] = 0x2c31a47b; in TEST() 259 p.x[6] = 0x5779809e; in TEST() [all …]
|
/system/extras/ext4_utils/include/ext4_utils/ |
D | ext4_utils.h | 66 #define DIV_ROUND_UP(x, y) (((x) + (y) - 1)/(y)) argument 67 #define EXT4_ALIGN(x, y) ((y) * DIV_ROUND_UP((x), (y))) argument 70 #define cpu_to_le32(x) (x) argument 71 #define cpu_to_le16(x) (x) argument 72 #define le32_to_cpu(x) (x) argument 73 #define le16_to_cpu(x) (x) argument
|