/bionic/tests/ |
D | buffer_tests.h | 24 size_t max_test_size, void (*test_func)(uint8_t*, size_t), 28 size_t max_test_size, void (*test_func)(uint8_t*, uint8_t*, size_t), 32 size_t max_test_size, void (*test_cmp_func)(uint8_t*, uint8_t*, size_t), 33 void (*test_miscmp_func)(uint8_t*, uint8_t*, size_t, size_t), 36 void RunSingleBufferOverreadTest(void (*test_func)(uint8_t*, size_t)); 38 void RunSrcDstBufferOverreadTest(void (*test_func)(uint8_t*, uint8_t*, size_t)); 41 void (*test_cmp_func)(uint8_t*, uint8_t*, size_t), 42 void (*test_miscmp_func)(uint8_t*, uint8_t*, size_t, size_t));
|
D | buffer_tests.cpp | 209 static void SetFencepost(uint8_t *buffer) { in SetFencepost() 216 static void VerifyFencepost(uint8_t *buffer) { in VerifyFencepost() 219 uint8_t expected_value; in VerifyFencepost() 239 size_t max_test_size, void (*test_func)(uint8_t*, size_t), in RunSingleBufferAlignTest() argument 247 uint8_t *buf = new uint8_t[3*max_test_size]; in RunSingleBufferAlignTest() 249 uint8_t *buf_align; in RunSingleBufferAlignTest() 255 buf_align = reinterpret_cast<uint8_t*>(GetAlignedPtr( in RunSingleBufferAlignTest() 271 size_t max_test_size, void (*test_func)(uint8_t*, uint8_t*, size_t), in RunSrcDstBufferAlignTest() argument 278 uint8_t* src = new uint8_t[3*max_test_size]; in RunSrcDstBufferAlignTest() 279 uint8_t* dst = new uint8_t[3*max_test_size]; in RunSrcDstBufferAlignTest() [all …]
|
D | string_test.cpp | 805 uint8_t* buffer; in TEST() 1048 static void DoMemcpyTest(uint8_t* src, uint8_t* dst, size_t len) { in DoMemcpyTest() 1064 static void DoMemmoveTest(uint8_t* src, uint8_t* dst, size_t len) { in DoMemmoveTest() 1080 static void DoMemsetTest(uint8_t* buf, size_t len) { in DoMemsetTest() 1095 static void DoStrlenTest(uint8_t* buf, size_t len) { in DoStrlenTest() 1111 static void DoStrcpyTest(uint8_t* src, uint8_t* dst, size_t len) { in DoStrcpyTest() 1116 ASSERT_EQ(dst, reinterpret_cast<uint8_t*>(strcpy(reinterpret_cast<char*>(dst), in DoStrcpyTest() 1131 static void DoStrlcpyTest(uint8_t* src, uint8_t* dst, size_t len) { in DoStrlcpyTest() 1160 static void DoStpcpyTest(uint8_t* src, uint8_t* dst, size_t len) { in DoStpcpyTest() 1165 ASSERT_EQ(dst+len-1, reinterpret_cast<uint8_t*>(stpcpy(reinterpret_cast<char*>(dst), in DoStpcpyTest() [all …]
|
/bionic/libc/include/bits/ |
D | swab.h | 42 const uint8_t* __src = __BIONIC_CAST(static_cast, const uint8_t*, __void_src); in swab() 43 uint8_t* __dst = __BIONIC_CAST(static_cast, uint8_t*, __void_dst); in swab() 45 uint8_t x = *__src++; in swab() 46 uint8_t y = *__src++; in swab()
|
/bionic/libc/include/netinet/ |
D | ip.h | 221 uint8_t ihl :4, 224 uint8_t version:4, 229 uint8_t tos; 233 uint8_t ttl; 234 uint8_t protocol; 241 uint8_t nexthdr; 242 uint8_t hdrlen; 246 uint8_t auth_data[0]; 252 uint8_t enc_data[0]; 256 uint8_t nexthdr; [all …]
|
D | ip_icmp.h | 69 uint8_t icmp_type; /* type of message, see below */ 70 uint8_t icmp_code; /* type sub code */ 73 uint8_t ih_pptr; /* ICMP_PARAMPROB */ 88 uint8_t irt_num_addrs; 89 uint8_t irt_wpa;
|
D | tcp.h | 48 uint8_t th_x2:4; 49 uint8_t th_off:4; 50 uint8_t th_flags;
|
/bionic/linker/ |
D | linker_sleb128.h | 42 sleb128_decoder(const uint8_t* buffer, size_t count) in sleb128_decoder() 50 uint8_t byte; in pop_front() 69 const uint8_t* current_; 70 const uint8_t* const end_;
|
D | linker_block_allocator_test.cpp | 73 ASSERT_EQ(reinterpret_cast<uint8_t*>(ptr1)+16, reinterpret_cast<uint8_t*>(ptr2)); in TEST() 105 ASSERT_EQ(reinterpret_cast<uint8_t*>(ptr1) + 1024, reinterpret_cast<uint8_t*>(ptr2)); in TEST()
|
D | linker_gnu_hash.h | 48 const uint8_t* name_bytes = reinterpret_cast<const uint8_t*>(name); in calculate_gnu_hash_simple()
|
D | linker_block_allocator.cpp | 49 uint8_t bytes[kAllocateSize - 16] __attribute__((aligned(16))); 96 ssize_t offset = reinterpret_cast<uint8_t*>(block) - page->bytes; in free() 144 const uint8_t* page_ptr = reinterpret_cast<const uint8_t*>(page); in find_page()
|
D | linker_mapped_file_fragment.cpp | 61 uint8_t* map_start = static_cast<uint8_t*>( in Map()
|
/bionic/libc/dns/include/ |
D | resolv_params.h | 45 uint8_t success_threshold; // 0: disable, value / 100 otherwise 46 uint8_t min_samples; // min # samples needed for statistics to be considered meaningful 47 uint8_t max_samples; // max # samples taken into account for statistics
|
D | resolv_stats.h | 37 uint8_t rcode; // the DNS rcode or RCODE_XXX defined above 44 uint8_t sample_count; 46 uint8_t sample_next;
|
/bionic/benchmarks/ |
D | malloc_sql_benchmark.cpp | 38 enum AllocEnum : uint8_t { 62 reinterpret_cast<uint8_t*>(ptrs[entries[i].idx])[0] = 10; in BenchmarkMalloc() 68 reinterpret_cast<uint8_t*>(ptrs[entries[i].idx])[0] = 20; in BenchmarkMalloc() 74 reinterpret_cast<uint8_t*>(ptrs[entries[i].idx])[0] = 30; in BenchmarkMalloc() 84 reinterpret_cast<uint8_t*>(ptrs[entries[i].idx])[0] = 40; in BenchmarkMalloc()
|
D | util.h | 76 uint8_t* data = reinterpret_cast<uint8_t*>(ptr); in MakeAllocationResident()
|
/bionic/libc/malloc_debug/ |
D | DebugData.h | 63 uint8_t* GetFrontGuard(const Header* header) { in GetFrontGuard() 65 return reinterpret_cast<uint8_t*>(value + front_guard->offset()); in GetFrontGuard() 68 uint8_t* GetRearGuard(const Header* header) { in GetRearGuard() 70 return reinterpret_cast<uint8_t*>(value + header->size); in GetRearGuard()
|
D | Config.h | 79 uint8_t front_guard_value() const { return front_guard_value_; } in front_guard_value() 80 uint8_t rear_guard_value() const { return rear_guard_value_; } in rear_guard_value() 89 uint8_t fill_alloc_value() const { return fill_alloc_value_; } in fill_alloc_value() 90 uint8_t fill_free_value() const { return fill_free_value_; } in fill_free_value() 159 uint8_t fill_alloc_value_; 160 uint8_t fill_free_value_; 161 uint8_t front_guard_value_; 162 uint8_t rear_guard_value_;
|
D | GuardData.cpp | 55 const uint8_t* expected = cmp_mem_.data(); in LogFailure() 57 const uint8_t* real = reinterpret_cast<const uint8_t*>(data); in LogFailure()
|
/bionic/libc/bionic/ |
D | mbrtoc32.cpp | 57 uint8_t ch; in mbrtoc32() 58 if (mbsinit(state) && (((ch = static_cast<uint8_t>(*s)) & ~0x7f) == 0)) { in mbrtoc32() 82 ch = bytes_so_far > 0 ? mbstate_get_byte(state, 0) : static_cast<uint8_t>(*s); in mbrtoc32()
|
D | gwp_asan_wrappers.cpp | 84 void gwp_asan_get_malloc_leak_info(uint8_t**, size_t*, size_t*, size_t*, size_t*) { in gwp_asan_get_malloc_leak_info() argument 87 void gwp_asan_free_malloc_leak_info(uint8_t*) { in gwp_asan_free_malloc_leak_info() argument 204 static constexpr uint8_t kProcessSampleRate = 128; 207 uint8_t random_number; in ShouldGwpAsanSampleProcess()
|
/bionic/libc/private/ |
D | bionic_mbstate.h | 55 ps->__seq[i] = static_cast<uint8_t>(byte); in mbstate_set_byte() 58 static inline __wur uint8_t mbstate_get_byte(const mbstate_t* ps, int n) { in mbstate_get_byte()
|
/bionic/linker/arch/arm_neon/ |
D | linker_gnu_hash_neon.cpp | 122 uint8_t offset = reinterpret_cast<uintptr_t>(name) & 7; in calculate_gnu_hash_neon() 126 uint8x8_t chunk = vld1_u8(reinterpret_cast<const uint8_t*>(chunk_ptr)); in calculate_gnu_hash_neon() 127 chunk |= vld1_u8(reinterpret_cast<const uint8_t*>(&entry->ignore_mask)); in calculate_gnu_hash_neon() 153 chunk = vld1_u8(reinterpret_cast<const uint8_t*>(++chunk_ptr)); in calculate_gnu_hash_neon()
|
/bionic/libc/dns/resolv/ |
D | res_cache.c | 296 _bprint_hexdump( char* p, char* end, const uint8_t* data, int datalen ) in _bprint_hexdump() 451 const uint8_t* base; 452 const uint8_t* end; 453 const uint8_t* cursor; 457 _dnsPacket_init( DnsPacket* packet, const uint8_t* buff, int bufflen ) in _dnsPacket_init() 473 const uint8_t* p = packet->cursor + count; in _dnsPacket_skip() 484 const uint8_t* p = packet->cursor; in _dnsPacket_readInt16() 502 const uint8_t* p = packet->cursor; in _dnsPacket_checkBytes() 521 const uint8_t* p = packet->cursor; in _dnsPacket_checkQName() 522 const uint8_t* end = packet->end; in _dnsPacket_checkQName() [all …]
|
/bionic/libc/malloc_hooks/ |
D | malloc_hooks.cpp | 55 uint8_t** info, size_t* overall_size, size_t* info_size, size_t* total_memory, 58 void hooks_free_malloc_leak_info(uint8_t* info); 112 void hooks_get_malloc_leak_info(uint8_t** info, size_t* overall_size, in hooks_get_malloc_leak_info() 121 void hooks_free_malloc_leak_info(uint8_t*) { in hooks_free_malloc_leak_info() argument
|