Home
last modified time | relevance | path

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

/system/bt/vendor_libs/test_vendor_lib/src/
Dbroken_adv.cc97 static uint8_t random_length(size_t bytes_remaining) { in random_length() argument
102 return bytes_remaining + (randomness & 0xff); in random_length()
104 return bytes_remaining - (randomness & 0xff); in random_length()
106 return bytes_remaining + (randomness & 0xf); in random_length()
108 return bytes_remaining - (randomness & 0xf); in random_length()
111 return bytes_remaining + (randomness & 0x3); in random_length()
114 return bytes_remaining - (randomness & 0x3); in random_length()
116 return bytes_remaining; in random_length()
133 static size_t random_data_length(size_t length, size_t bytes_remaining) { in random_data_length() argument
138 return bytes_remaining; in random_data_length()
[all …]
/system/iot/attestation/atap/libatap/
Datap_util.c130 int32_t bytes_remaining = 0; in copy_cert_chain_from_buf() local
145 bytes_remaining = cert_chain_size; in copy_cert_chain_from_buf()
152 bytes_remaining -= (sizeof(uint32_t) + cert_chain->entries[i].data_length); in copy_cert_chain_from_buf()
153 if (bytes_remaining <= 0) { in copy_cert_chain_from_buf()
154 retval = (bytes_remaining == 0); in copy_cert_chain_from_buf()
/system/update_engine/common/
Dutils.cc447 const unsigned int bytes_remaining = length - i; in HexDumpArray() local
449 bytes_remaining); in HexDumpArray()