Home
last modified time | relevance | path

Searched refs:x (Results 1 – 25 of 370) sorted by relevance

12345678910>>...15

/system/libbase/include/android-base/
Dendian.h37 #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 …]
Dthread_annotations.h21 #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 …]
Dlogging.h190 #define ABORT_AFTER_LOG_EXPR_IF(c, x) (((c) && ::android::base::LogAbortAfterFullExpr()) || (x)) argument
195 #define ABORT_AFTER_LOG_EXPR_IF(c, x) (x) argument
198 #define ABORT_AFTER_LOG_FATAL_EXPR(x) ABORT_AFTER_LOG_EXPR_IF(true, x) argument
249 #define CHECK(x) \ argument
250 LIKELY((x)) || ABORT_AFTER_LOG_FATAL_EXPR(false) || \
254 << "Check failed: " #x << " "
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
[all …]
/system/bt/stack/include/
Dhcidefs.h951 #define HCI_3_SLOT_PACKETS_SUPPORTED(x) ((x)[0] & 0x01) argument
952 #define HCI_5_SLOT_PACKETS_SUPPORTED(x) ((x)[0] & 0x02) argument
953 #define HCI_ENCRYPTION_SUPPORTED(x) ((x)[0] & 0x04) argument
954 #define HCI_SLOT_OFFSET_SUPPORTED(x) ((x)[0] & 0x08) argument
955 #define HCI_TIMING_ACC_SUPPORTED(x) ((x)[0] & 0x10) argument
956 #define HCI_SWITCH_SUPPORTED(x) ((x)[0] & 0x20) argument
957 #define HCI_HOLD_MODE_SUPPORTED(x) ((x)[0] & 0x40) argument
958 #define HCI_SNIFF_MODE_SUPPORTED(x) ((x)[0] & 0x80) argument
960 #define HCI_PARK_MODE_SUPPORTED(x) ((x)[1] & 0x01) argument
961 #define HCI_RSSI_SUPPORTED(x) ((x)[1] & 0x02) argument
[all …]
Davrc_defs.h476 #define AVRC_PF_SELECT_SUPPORTED(x) \ argument
477 ((x)[AVRC_PF_SELECT_OFF] & AVRC_PF_SELECT_MASK)
482 #define AVRC_PF_UP_SUPPORTED(x) ((x)[AVRC_PF_UP_OFF] & AVRC_PF_UP_MASK) argument
487 #define AVRC_PF_DOWN_SUPPORTED(x) ((x)[AVRC_PF_DOWN_OFF] & AVRC_PF_DOWN_MASK) argument
492 #define AVRC_PF_LEFT_SUPPORTED(x) ((x)[AVRC_PF_LEFT_OFF] & AVRC_PF_LEFT_MASK) argument
497 #define AVRC_PF_RIGHT_SUPPORTED(x) ((x)[AVRC_PF_RIGHT_OFF] & AVRC_PF_RIGHT_MASK) argument
502 #define AVRC_PF_RIGHTUP_SUPPORTED(x) \ argument
503 ((x)[AVRC_PF_RIGHTUP_OFF] & AVRC_PF_RIGHTUP_MASK)
508 #define AVRC_PF_RIGHTDOWN_SUPPORTED(x) \ argument
509 ((x)[AVRC_PF_RIGHTDOWN_OFF] & AVRC_PF_RIGHTDOWN_MASK)
[all …]
/system/core/init/
Dtokenizer.cpp10 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/
Ddhcpmsg.c26 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 …]
Ddhcpclient.c166 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/memory/libmeminfo/
Dmeminfo_private.h27 #define _BITS(x, offset, bits) (((x) >> (offset)) & ((1LL << (bits)) - 1)) argument
30 #define PAGE_PRESENT(x) (_BITS(x, 63, 1)) argument
31 #define PAGE_SWAPPED(x) (_BITS(x, 62, 1)) argument
32 #define PAGE_SHIFT(x) (_BITS(x, 55, 6)) argument
33 #define PAGE_PFN(x) (_BITS(x, 0, 55)) argument
34 #define PAGE_SWAP_OFFSET(x) (_BITS(x, 5, 50)) argument
35 #define PAGE_SWAP_TYPE(x) (_BITS(x, 0, 5)) argument
38 #define KPAGEFLAG_THP(x) (_BITS(x, 22, 1)) argument
/system/bt/gd/security/ecc/
Dmultipoint_test.cc35 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/core/libutils/include/utils/
DByteOrder.h39 #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
DMutex.h34 #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/nfc/src/nfc/tags/
Dtags_int.cc96 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/security/keystore2/src/
Dtry_insert.rs82 let mut x = None; in test() localVariable
83 assert_eq!(x.get_or_try_to_insert_with(fails), Err("fail".to_string())); in test()
84 assert_eq!(x, None); in test()
85 assert_eq!(*x.get_or_try_to_insert_with(succeeds).unwrap(), 99); in test()
86 assert_eq!(x, Some(99)); in test()
87 x = Some(42); in test()
88 assert_eq!(*x.get_or_try_to_insert_with(fails).unwrap(), 42); in test()
89 assert_eq!(x, Some(42)); in test()
90 assert_eq!(*x.get_or_try_to_insert_with(succeeds).unwrap(), 42); in test()
91 assert_eq!(x, Some(42)); in test()
[all …]
/system/core/libcutils/include/cutils/
Dklog.h40 #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
Dbitops.h27 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_outside_system/cutils/
Dklog.h40 #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
Dbitops.h27 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/
Dgki_hal_target.h79 #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/
Dhealthd_draw.cpp24 #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/
Dlist_test.cc61 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/
Dstack_smp_test.cc221 p.x[7] = 0x20b003d2; in TEST()
222 p.x[6] = 0xf297be2c; in TEST()
223 p.x[5] = 0x5e2c83a7; in TEST()
224 p.x[4] = 0xe9f9a5b9; in TEST()
225 p.x[3] = 0xeff49111; in TEST()
226 p.x[2] = 0xacf4fddb; in TEST()
227 p.x[1] = 0xcc030148; in TEST()
228 p.x[0] = 0x0e359de6; in TEST()
242 p.x[7] = 0x2c31a47b; in TEST()
243 p.x[6] = 0x5779809e; in TEST()
[all …]
/system/extras/ext4_utils/include/ext4_utils/
Dext4_utils.h60 #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
/system/bt/stack/btm/
Dbtm_scn.cc35 uint8_t x; in BTM_AllocateSCN() local
39 for (x = 1; x < PORT_MAX_RFC_PORTS; x++) { in BTM_AllocateSCN()
40 if (!btm_cb.btm_scn[x]) { in BTM_AllocateSCN()
41 btm_cb.btm_scn[x] = true; in BTM_AllocateSCN()
42 return (x + 1); in BTM_AllocateSCN()
/system/netd/bpf_progs/
Dbpf_net_helpers.h59 #define htons(x) (__builtin_constant_p(x) ? ___constant_swab16(x) : __builtin_bswap16(x)) argument
60 #define htonl(x) (__builtin_constant_p(x) ? ___constant_swab32(x) : __builtin_bswap32(x)) argument
61 #define ntohs(x) htons(x) argument
62 #define ntohl(x) htonl(x) argument

12345678910>>...15