Lines Matching refs:len
142 if device_name.len() > MAX_ADV_NONCONN_DATA_LEN - 2 { in serialize()
150 (1 + device_name.len()) in serialize()
163 if manufacturer_data.len() < 2 { in serialize()
168 if manufacturer_data.len() > MAX_ADV_NONCONN_DATA_LEN - 2 { in serialize()
176 (1 + manufacturer_data.len()) in serialize()
184 if bytes.len() > MAX_ADV_NONCONN_DATA_LEN { in serialize()
207 let exp_name_len = HEADER_LEN + device_name.len(); in test_from_proto_succeeds()
223 assert_eq!(exp_name_len + exp_tx_power_len, bytes.len()); in test_from_proto_succeeds()
269 let exp_len = HEADER_LEN + device_name.len(); in test_set_device_name_succeeds()
274 assert_eq!(exp_len, bytes.len()); in test_set_device_name_succeeds()
301 assert_eq!(exp_len, bytes.len()); in test_set_tx_power_level()
311 let exp_len = HEADER_LEN + manufacturer_data.len(); in test_set_manufacturer_data_succeeds()
316 assert_eq!(exp_len, bytes.len()); in test_set_manufacturer_data_succeeds()