Home
last modified time | relevance | path

Searched refs:uint8_t (Results 1 – 25 of 73) sorted by relevance

123

/bionic/tests/
Dbuffer_tests.h24 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));
Dbuffer_tests.cpp208 static void SetFencepost(uint8_t *buffer) { in SetFencepost()
215 static void VerifyFencepost(uint8_t *buffer) { in VerifyFencepost()
218 uint8_t expected_value; in VerifyFencepost()
231 size_t max_test_size, void (*test_func)(uint8_t*, size_t), in RunSingleBufferAlignTest() argument
239 uint8_t *buf = new uint8_t[3*max_test_size]; in RunSingleBufferAlignTest()
241 uint8_t *buf_align; in RunSingleBufferAlignTest()
247 buf_align = reinterpret_cast<uint8_t*>(GetAlignedPtr( in RunSingleBufferAlignTest()
263 size_t max_test_size, void (*test_func)(uint8_t*, uint8_t*, size_t), in RunSrcDstBufferAlignTest() argument
270 uint8_t* src = new uint8_t[3*max_test_size]; in RunSrcDstBufferAlignTest()
271 uint8_t* dst = new uint8_t[3*max_test_size]; in RunSrcDstBufferAlignTest()
[all …]
Dresolv_test.cpp42 uint8_t buf[128]; in TEST()
/bionic/libc/kernel/uapi/scsi/
Dscsi_bsg_fc.h33 uint8_t reserved;
34 uint8_t port_id[3];
37 uint8_t reserved;
38 uint8_t port_id[3];
41 uint8_t command_code;
42 uint8_t port_id[3];
53 uint8_t action;
54 uint8_t reason_code;
55 uint8_t reason_explanation;
56 uint8_t vendor_unique;
[all …]
Dscsi_netlink.h27 uint8_t version;
28 uint8_t transport;
/bionic/libc/include/netinet/
Dip.h221 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 …]
Dtcp.h48 uint8_t th_x2:4;
49 uint8_t th_off:4;
50 uint8_t th_flags;
Dip_icmp.h67 uint8_t icmp_type; /* type of message, see below */
68 uint8_t icmp_code; /* type sub code */
71 uint8_t ih_pptr; /* ICMP_PARAMPROB */
86 uint8_t irt_num_addrs;
87 uint8_t irt_wpa;
/bionic/linker/
Dlinker_sleb128.h43 sleb128_decoder(const uint8_t* buffer, size_t count) in sleb128_decoder()
51 uint8_t byte; in pop_front()
70 const uint8_t* current_;
71 const uint8_t* const end_;
Dlinker_block_allocator.cpp44 uint8_t bytes[PAGE_SIZE - 16] __attribute__((aligned(16)));
91 ssize_t offset = reinterpret_cast<uint8_t*>(block) - page->bytes; in free()
145 const uint8_t* page_ptr = reinterpret_cast<const uint8_t*>(page); in find_page()
/bionic/tools/relocation_packer/src/
Dsleb128.h41 void GetEncoding(std::vector<uint8_t>* encoding) { *encoding = encoding_; } in GetEncoding()
45 std::vector<uint8_t> encoding_;
54 explicit Sleb128Decoder(const std::vector<uint8_t>& encoding, size_t start_with);
68 std::vector<uint8_t> encoding_;
Dpacker.h26 std::vector<uint8_t>* packed);
31 static void UnpackRelocations(const std::vector<uint8_t>& packed,
Dpacker.cc19 std::vector<uint8_t>* packed) { in PackRelocations()
31 std::vector<uint8_t> sleb128_packed; in PackRelocations()
47 const std::vector<uint8_t>& packed, in UnpackRelocations()
/bionic/libc/dns/include/
Dresolv_params.h41 uint8_t success_threshold; // 0: disable, value / 100 otherwise
42 uint8_t min_samples; // min # samples needed for statistics to be considered meaningful
43 uint8_t max_samples; // max # samples taken into account for statistics
Dresolv_stats.h37 uint8_t rcode; // the DNS rcode or RCODE_XXX defined above
44 uint8_t sample_count;
46 uint8_t sample_next;
/bionic/libc/malloc_debug/
DConfig.h74 uint8_t front_guard_value() const { return front_guard_value_; } in front_guard_value()
75 uint8_t rear_guard_value() const { return rear_guard_value_; } in rear_guard_value()
84 uint8_t fill_alloc_value() const { return fill_alloc_value_; } in fill_alloc_value()
85 uint8_t fill_free_value() const { return fill_free_value_; } in fill_free_value()
149 uint8_t fill_alloc_value_;
150 uint8_t fill_free_value_;
151 uint8_t front_guard_value_;
152 uint8_t rear_guard_value_;
DDebugData.h71 uint8_t* GetFrontGuard(const Header* header) { in GetFrontGuard()
73 return reinterpret_cast<uint8_t*>(value + front_guard->offset()); in GetFrontGuard()
76 uint8_t* GetRearGuard(const Header* header) { in GetRearGuard()
78 return reinterpret_cast<uint8_t*>(value + header->real_size()); in GetRearGuard()
DFreeTrackData.cpp45 void FreeTrackData::LogFreeError(const Header* header, const uint8_t* pointer) { in LogFreeError()
48 uint8_t fill_free_value = debug_->config().fill_free_value(); in LogFreeError()
70 const uint8_t* memory = reinterpret_cast<const uint8_t*>(pointer); in VerifyAndFree()
77 LogFreeError(header, reinterpret_cast<const uint8_t*>(pointer)); in VerifyAndFree()
DFreeTrackData.h61 void LogFreeError(const Header* header, const uint8_t* pointer);
66 std::vector<uint8_t> cmp_mem_;
/bionic/libc/malloc_debug/tests/
Dmalloc_debug_unit_tests.cpp57 void debug_get_malloc_leak_info(uint8_t**, size_t*, size_t*, size_t*, size_t*);
58 void debug_free_malloc_leak_info(uint8_t*);
139 uint8_t* pointer = reinterpret_cast<uint8_t*>(debug_malloc(alloc_size)); in VerifyAllocCalls()
147 pointer = reinterpret_cast<uint8_t*>(debug_calloc(1, alloc_size)); in VerifyAllocCalls()
154 pointer = reinterpret_cast<uint8_t*>(debug_memalign(128, alloc_size)); in VerifyAllocCalls()
161 pointer = reinterpret_cast<uint8_t*>(debug_realloc(nullptr, alloc_size)); in VerifyAllocCalls()
169 pointer = reinterpret_cast<uint8_t*>(debug_realloc(pointer, alloc_size * 2)); in VerifyAllocCalls()
179 pointer = reinterpret_cast<uint8_t*>(debug_realloc(pointer, alloc_size)); in VerifyAllocCalls()
185 pointer = reinterpret_cast<uint8_t*>(debug_realloc(pointer, 0)); in VerifyAllocCalls()
205 uint8_t* pointer = reinterpret_cast<uint8_t*>(debug_malloc(100)); in TEST_F()
[all …]
/bionic/libc/kernel/uapi/linux/nfsd/
Dcld.h34 uint8_t cm_vers;
35 uint8_t cm_cmd;
/bionic/libc/kernel/uapi/linux/
Drds.h58 uint8_t name[32];
70 uint8_t transport[TRANSNAMSIZ];
71 uint8_t flags;
82 uint8_t flags;
108 uint8_t src_gid[RDS_IB_GID_LEN];
109 uint8_t dst_gid[RDS_IB_GID_LEN];
/bionic/linker/tests/
Dlinker_block_allocator_test.cpp73 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()
/bionic/libc/private/
Dbionic_mbstate.h54 ps->__seq[i] = static_cast<uint8_t>(byte); in mbstate_set_byte()
57 static inline __wur uint8_t mbstate_get_byte(const mbstate_t* ps, int n) { in mbstate_get_byte()
/bionic/libc/bionic/
Dmbrtoc32.cpp57 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()

123