Home
last modified time | relevance | path

Searched defs:x (Results 1 – 25 of 176) sorted by relevance

12345678

/system/libbase/include/android-base/
Dendian.h37 #define htonq(x) htobe64(x) argument
38 #define ntohq(x) be64toh(x) argument
42 #define betoh16(x) be16toh(x) argument
43 #define betoh32(x) be32toh(x) argument
44 #define betoh64(x) be64toh(x) argument
45 #define letoh16(x) le16toh(x) argument
46 #define letoh32(x) le32toh(x) argument
47 #define letoh64(x) le64toh(x) argument
60 #define htons(x) __builtin_bswap16(x) argument
61 #define htonl(x) __builtin_bswap32(x) argument
[all …]
Dlogging.h197 #define ABORT_AFTER_LOG_EXPR_IF(c, x) (((c) && ::android::base::LogAbortAfterFullExpr()) || (x)) argument
202 #define ABORT_AFTER_LOG_EXPR_IF(c, x) (x) argument
205 #define ABORT_AFTER_LOG_FATAL_EXPR(x) ABORT_AFTER_LOG_EXPR_IF(true, x) argument
272 #define CHECK(x) \ argument
301 #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) argument
302 #define CHECK_NE(x, y) CHECK_OP(x, y, != ) argument
303 #define CHECK_LE(x, y) CHECK_OP(x, y, <= ) argument
304 #define CHECK_LT(x, y) CHECK_OP(x, y, < ) argument
305 #define CHECK_GE(x, y) CHECK_OP(x, y, >= ) argument
306 #define CHECK_GT(x, y) CHECK_OP(x, y, > ) argument
[all …]
Dthread_annotations.h21 #define THREAD_ANNOTATION_ATTRIBUTE__(x) __attribute__((x)) argument
23 #define CAPABILITY(x) \ argument
32 #define GUARDED_BY(x) \ argument
35 #define PT_GUARDED_BY(x) \ argument
77 #define ASSERT_CAPABILITY(x) \ argument
80 #define ASSERT_SHARED_CAPABILITY(x) \ argument
83 #define RETURN_CAPABILITY(x) \ argument
104 #define LOCK_RETURNED(x) \ argument
Dno_destructor.h72 explicit NoDestructor(const T& x) { new (storage_) T(x); } in NoDestructor()
73 explicit NoDestructor(T&& x) { new (storage_) T(std::move(x)); } in NoDestructor()
/system/memory/libmeminfo/
Dmeminfo_private.h28 #define _BITS(x, offset, bits) (((x) >> (offset)) & ((1LL << (bits)) - 1)) argument
31 #define PAGE_PRESENT(x) (_BITS(x, 63, 1)) argument
32 #define PAGE_SWAPPED(x) (_BITS(x, 62, 1)) argument
33 #define PAGE_SHIFT(x) (_BITS(x, 55, 6)) argument
34 #define PAGE_PFN(x) (_BITS(x, 0, 55)) argument
35 #define PAGE_SWAP_OFFSET(x) (_BITS(x, 5, 50)) argument
36 #define PAGE_SWAP_TYPE(x) (_BITS(x, 0, 5)) argument
39 #define KPAGEFLAG_THP(x) (_BITS(x, 22, 1)) argument
/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
DTrace.h27 #define _PASTE(x, y) x ## y argument
28 #define PASTE(x, y) _PASTE(x,y) argument
/system/chre/apps/nearby/location/lbs/contexthub/nanoapps/common/math/
Dmacros.h29 #define NANO_ABS(x) ((x) > 0 ? (x) : -(x)) argument
32 #define SIGMOID(x) (1 / (1 + expf(-x))) argument
36 #define NANO_FLOOR(x) ((int)(x) - ((x) < (int)(x))) // NOLINT argument
40 #define MSEC_TO_NANOS(x) (static_cast<uint64_t>((x) * UINT64_C(1000000))) argument
42 #define MSEC_TO_NANOS(x) ((uint64_t)((x) * UINT64_C(1000000))) // NOLINT argument
45 #define SEC_TO_NANOS(x) MSEC_TO_NANOS((x) * UINT64_C(1000)) argument
46 #define MIN_TO_NANOS(x) SEC_TO_NANOS((x) * UINT64_C(60)) argument
47 #define HRS_TO_NANOS(x) MIN_TO_NANOS((x) * UINT64_C(60)) argument
48 #define DAYS_TO_NANOS(x) HRS_TO_NANOS((x) * UINT64_C(24)) argument
/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()
31 static inline int popcountl(unsigned long x) { in popcountl()
35 static inline int popcountll(unsigned long long x) { in popcountll()
/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()
31 static inline int popcountl(unsigned long x) { in popcountl()
35 static inline int popcountll(unsigned long long x) { in popcountll()
/system/testing/gtest_extras/gtestifier/
Dgtestifier.h25 #define GTESTIFIER_STRINGIFY(x) GTESTIFIER_STRINGIFY2(x) argument
26 #define GTESTIFIER_STRINGIFY2(x) #x argument
28 #define GTESTIFIER_CONCAT(x, y) GTESTIFIER_CONCAT2(x, y) argument
29 #define GTESTIFIER_CONCAT2(x, y) x##y argument
/system/core/healthd/
Dhealthd_draw.cpp27 #define LOGE(x...) KLOG_ERROR("charger", x); argument
28 #define LOGW(x...) KLOG_WARNING("charger", x); argument
29 #define LOGV(x...) KLOG_DEBUG("charger", x); argument
127 int x = (screen_width_ - w) / 2 + kSplitOffset; in draw_surface_centered() local
141 int HealthdDraw::draw_text(const GRFont* font, int x, int y, const char* str) { in draw_text()
154 const int length, int* x, int* y) { in determine_xy()
200 int x, y; in draw_clock() local
224 int x, y; in draw_percent() local
DAnimationParser.cpp26 #define LOGE(x...) do { KLOG_ERROR("charger", x); } while (0) argument
27 #define LOGW(x...) do { KLOG_WARNING("charger", x); } while (0) argument
28 #define LOGV(x...) do { KLOG_DEBUG("charger", x); } while (0) argument
55 int* x = &field->pos_x; in parse_text_field() local
/system/sepolicy/tools/
Dpost_process_mac_perms52 transform = lambda x: b16encode(b64decode(x.replace('\n', ''))).lower() argument
63 transform = lambda x: os.path.join(dirpath, x) argument
64 condition = lambda x: x.endswith('.apk') argument
/system/core/libnetutils/
Ddhcpmsg.c26 uint8_t *x; in init_dhcp_msg() local
57 uint8_t *x; in init_dhcp_discover_msg() local
76 uint8_t *x; in init_dhcp_request_msg() local
/system/media/audio_utils/tests/
Dintrinsic_tests.cpp141 [](auto x, auto y) { return x + y; }, a, b); in TYPED_TEST()
150 [](auto x, auto y) { return x + y; }, a, b); in TYPED_TEST()
180 [](auto x, auto y) { return std::max(x, y); }, a, b); in TYPED_TEST()
189 [](auto x, auto y) { return std::max(x, y); }, a, b); in TYPED_TEST()
210 [](auto x, auto y) { return std::max(x, y); }, a, b); in TYPED_TEST()
220 [](auto x, auto y) { return std::min(x, y); }, a, b); in TYPED_TEST()
229 [](auto x, auto y) { return std::min(x, y); }, a, b); in TYPED_TEST()
250 [](auto x, auto y) { return std::min(x, y); }, a, b); in TYPED_TEST()
261 [](auto x, auto y, auto z) { return x + y * z; }, a, b, c); in TYPED_TEST()
271 [](auto x, auto y, auto z) { return x + y * z; }, a, b, c); in TYPED_TEST()
[all …]
/system/extras/ext4_utils/include/ext4_utils/
Dext4_utils.h48 #define DIV_ROUND_UP(x, y) (((x) + (y)-1) / (y)) argument
49 #define EXT4_ALIGN(x, y) ((y)*DIV_ROUND_UP((x), (y))) argument
52 #define cpu_to_le32(x) (x) argument
53 #define cpu_to_le16(x) (x) argument
54 #define le32_to_cpu(x) (x) argument
55 #define le16_to_cpu(x) (x) argument
/system/chre/apps/tflm_demo/src/
Dsine_model_data.cc25 #define HAVE_ATTRIBUTE(x) __has_attribute(x) argument
27 #define HAVE_ATTRIBUTE(x) 0 argument
/system/keymaster/key_blob_utils/
Docb.c97 #define bswap64(x) _byteswap_uint64(x) argument
98 static inline unsigned ntz(unsigned x) { in ntz()
105 #define bswap64(x) __builtin_bswap64(x) /* Assuming GCC 4.3+ */ argument
106 #define ntz(x) __builtin_ctz((unsigned)(x)) /* Assuming GCC 3.4+ */ argument
108 #define bswap32(x) \ argument
112 static inline uint64_t bswap64(uint64_t x) { in bswap64()
124 static inline unsigned ntz(unsigned x) { in ntz()
134 static inline unsigned ntz(unsigned x) { in ntz()
151 #define xor_block(x, y) _mm_xor_si128(x, y) argument
153 #define unequal_blocks(x, y) (_mm_movemask_epi8(_mm_cmpeq_epi8(x, y)) != 0xffff) argument
[all …]
/system/core/libsparse/
Dsparse_defs.h42 #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/media/audio_utils/
Dfixedfft.cpp124 int32_t x = half(v[i]); in fixed_fft() local
135 int32_t x = half(v[i]); in fixed_fft() local
155 int32_t x = half(v[i]); in fixed_fft_real() local
/system/extras/squashfs_utils/
Dsquashfs_utils.c31 #define ERROR(x...) fprintf(stderr, x) argument
33 #define ERROR(x...) KLOG_ERROR("squashfs_utils", x) argument

12345678