| /system/libbase/include/android-base/ |
| D | endian.h | 37 #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 …]
|
| D | logging.h | 190 #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 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 282 #define CHECK_GE(x, y) CHECK_OP(x, y, >= ) argument 283 #define CHECK_GT(x, y) CHECK_OP(x, y, > ) argument [all …]
|
| D | thread_annotations.h | 21 #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
|
| D | no_destructor.h | 72 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/ |
| D | meminfo_private.h | 27 #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/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
|
| 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
|
| D | Trace.h | 34 #define _PASTE(x, y) x ## y argument 35 #define PASTE(x, y) _PASTE(x,y) argument
|
| /system/chre/apps/nearby/location/lbs/contexthub/nanoapps/common/math/ |
| D | macros.h | 29 #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/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() 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_outside_system/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() 31 static inline int popcountl(unsigned long x) { in popcountl() 35 static inline int popcountll(unsigned long long 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/sepolicy/tools/ |
| D | post_process_mac_perms | 52 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/healthd/ |
| D | healthd_draw.cpp | 27 #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
|
| D | AnimationParser.cpp | 26 #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/core/libnetutils/ |
| D | dhcpmsg.c | 26 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/chre/apps/tflm_demo/src/ |
| D | sine_model_data.cc | 25 #define HAVE_ATTRIBUTE(x) __has_attribute(x) argument 27 #define HAVE_ATTRIBUTE(x) 0 argument
|
| /system/extras/ext4_utils/include/ext4_utils/ |
| D | ext4_utils.h | 48 #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/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/media/audio_utils/ |
| D | fixedfft.cpp | 124 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/ |
| D | squashfs_utils.c | 31 #define ERROR(x...) fprintf(stderr, x) argument 33 #define ERROR(x...) KLOG_ERROR("squashfs_utils", x) argument
|
| /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() 45 inline uint64_t fec_round_up(uint64_t x, uint64_t y) in fec_round_up()
|
| /system/chre/platform/slpi/see/include/ |
| D | sns_osa.h | 51 #define sns_malloc(x) malloc(x) argument 52 #define sns_free(x) free(x) argument
|