Home
last modified time | relevance | path

Searched refs:num_bits (Results 1 – 8 of 8) sorted by relevance

/system/bt/gd/packet/
Dendian_inserter.h72 void insert(FixedWidthIntegerType value, BitInserter& it, size_t num_bits) const { in insert() argument
73 ASSERT(num_bits <= (sizeof(FixedWidthIntegerType) * 8)); in insert()
75 for (size_t i = 0; i < num_bits / 8; i++) { in insert()
79 it.insert_byte(static_cast<uint8_t>(value >> (((num_bits / 8) - i - 1) * 8))); in insert()
82 if (num_bits % 8) { in insert()
83 it.insert_bits(static_cast<uint8_t>(value >> ((num_bits / 8) * 8)), num_bits % 8); in insert()
Dbit_inserter.cc30 void BitInserter::insert_bits(uint8_t byte, size_t num_bits) { in insert_bits() argument
31 size_t total_bits = num_bits + num_saved_bits_; in insert_bits()
Dfragmenting_inserter.cc29 void FragmentingInserter::insert_bits(uint8_t byte, size_t num_bits) { in insert_bits() argument
31 size_t total_bits = num_bits + num_saved_bits_; in insert_bits()
Dbit_inserter.h34 virtual void insert_bits(uint8_t byte, size_t num_bits);
Dfragmenting_inserter.h34 void insert_bits(uint8_t byte, size_t num_bits) override;
/system/nfc/src/nfc/tags/
Drw_t2t_ndef.cc629 p_t2t->lock_tlv[p_t2t->num_lock_tlvs].num_bits = count; in rw_t2t_handle_tlv_detect_rsp()
892 p_t2t->lock_tlv[p_t2t->num_lock_tlvs].num_bits = num_dynamic_lock_bits; in rw_t2t_extract_default_locks_info()
2093 uint8_t num_bits; in rw_t2t_get_lock_bits_for_segment() local
2129 .num_bits); in rw_t2t_get_lock_bits_for_segment()
2130 num_bits = in rw_t2t_get_lock_bits_for_segment()
2134 .num_bits % in rw_t2t_get_lock_bits_for_segment()
2137 if (((bytes_locked_per_bit * num_bits) + byte_count) <= lower_offset) { in rw_t2t_get_lock_bits_for_segment()
2139 byte_count += bytes_locked_per_bit * num_bits; in rw_t2t_get_lock_bits_for_segment()
2143 while (bit_count < num_bits) { in rw_t2t_get_lock_bits_for_segment()
2171 .num_bits); in rw_t2t_get_lock_bits_for_segment()
[all …]
Drw_t1t_ndef.cc345 uint8_t num_bits; in rw_t1t_handle_write_rsp() local
447 num_bits = in rw_t1t_handle_write_rsp()
450 .num_bits) in rw_t1t_handle_write_rsp()
453 .num_bits % in rw_t1t_handle_write_rsp()
460 tags_pow(2, num_bits) - 1; in rw_t1t_handle_write_rsp()
470 .num_bits) in rw_t1t_handle_write_rsp()
474 .num_bits % in rw_t1t_handle_write_rsp()
502 value = (uint8_t)(tags_pow(2, num_bits) - 1); in rw_t1t_handle_write_rsp()
1036 p_t1t->lock_tlv[p_t1t->num_lock_tlvs].num_bits = tlv_value[1]; in rw_t1t_handle_tlv_detect_rsp()
1841 uint8_t num_bits; in rw_t1t_get_lock_bits_for_segment() local
[all …]
/system/nfc/src/nfc/include/
Drw_int.h136 uint8_t num_bits; /* Number of lock bits in the lock byte */ member
367 uint16_t num_bits; /* Number of lock bits in the lock byte */ member