Home
last modified time | relevance | path

Searched refs:dst_bit_offset (Results 1 – 3 of 3) sorted by relevance

/hardware/libhardware/modules/sensors/dynamic_sensor/HidUtils/
DHidUtils.cpp23 unsigned int src_bit_offset, unsigned int dst_bit_offset, in copyBits() argument
32 if ((static_cast<size_t>(dst_bit_offset) > (8 * dst_size)) || in copyBits()
34 (static_cast<size_t>(dst_bit_offset + bit_count) > (8 * dst_size))) { in copyBits()
41 p_dst = static_cast<uint8_t*>(dst) + (dst_bit_offset / 8); in copyBits()
42 dst_bit_offset = dst_bit_offset % 8; in copyBits()
48 bit_block_count = std::min(bit_block_count, 8 - dst_bit_offset); in copyBits()
51 dst_mask = ((1 << bit_block_count) - 1) << dst_bit_offset; in copyBits()
55 (((*p_src >> src_bit_offset) << dst_bit_offset) & dst_mask); in copyBits()
63 dst_bit_offset += bit_block_count; in copyBits()
64 p_dst += dst_bit_offset / 8; in copyBits()
[all …]
DHidUtils.h24 unsigned int src_bit_offset, unsigned int dst_bit_offset,
/hardware/libhardware/modules/sensors/dynamic_sensor/HidUtils/test/
DCopyBitsTest.cpp27 int dst_bit_offset; in TEST() member
42 test_vector.src_bit_offset, test_vector.dst_bit_offset, in TEST()
53 unsigned int dst_bit_offset; in TEST() member
68 test_vector.src_bit_offset, test_vector.dst_bit_offset, in TEST()