Searched refs:byte_array (Results 1 – 5 of 5) sorted by relevance
/packages/modules/Bluetooth/system/gd/common/ |
D | byte_array_test.cc | 41 ByteArray<N> byte_array(data); in simple_constructor_test() local 43 ASSERT_EQ(data[i], byte_array.bytes[i]); in simple_constructor_test() 49 const ByteArray<N> byte_array(data); in simple_const_constructor_test() local 51 ASSERT_EQ(data[i], byte_array.data()[i]); in simple_const_constructor_test() 60 ByteArray<N> byte_array(array_of_bytes); in simple_array_constructor_test() local 62 ASSERT_EQ(data[i], byte_array.data()[i]); in simple_array_constructor_test() 68 auto byte_array = ByteArray<N>::FromString(byte_string); in simple_from_string_test() local 69 ASSERT_TRUE(byte_array); in simple_from_string_test() 72 ASSERT_EQ(data[i], byte_array->bytes[i]); in simple_from_string_test() 78 const ByteArray<N> byte_array(data); in simple_to_string_test() local [all …]
|
D | byte_array.h | 86 ByteArray<kLength> byte_array = {}; in FromString() local 87 std::move(vec->data(), vec->data() + vec->size(), byte_array.data()); in FromString() 88 return byte_array; in FromString()
|
/packages/modules/Bluetooth/system/gd/security/record/ |
D | security_record_storage.cc | 60 common::ByteArray<23> byte_array(peerid); in SetLeData() local 61 mutation.Add(le_device.SetPeerId(byte_array.ToString())); in SetLeData() 78 common::ByteArray<28> byte_array(penc_keys); in SetLeData() local 79 mutation.Add(le_device.SetPeerEncryptionKeys(byte_array.ToString())); in SetLeData() 93 common::ByteArray<21> byte_array(psrk_keys); in SetLeData() local 94 mutation.Add(le_device.SetPeerSignatureResolvingKeys(byte_array.ToString())); in SetLeData()
|
/packages/modules/Uwb/service/uci/jni/src/ |
D | uci_jni_android_new.rs | 337 fn parse_app_config_tlv_vec(no_of_params: i32, mut byte_array: &[u8]) -> Result<Vec<AppConfigTlv>> { in parse_app_config_tlv_vec() 339 let received_tlvs_len = byte_array.len(); in parse_app_config_tlv_vec() 345 let tlv = RawAppConfigTlv::parse(byte_array).map_err(|_| Error::BadParameters)?; in parse_app_config_tlv_vec() 346 byte_array = byte_array.get(tlv.v.len() + TLV_HEADER_SIZE..).ok_or(Error::BadParameters)?; in parse_app_config_tlv_vec() 358 mut byte_array: &[u8], in parse_radar_config_tlv_vec() 361 let received_tlvs_len = byte_array.len(); in parse_radar_config_tlv_vec() 367 let tlv = RadarConfigTlv::parse(byte_array).map_err(|_| Error::BadParameters)?; in parse_radar_config_tlv_vec() 368 byte_array = byte_array.get(tlv.v.len() + TLV_HEADER_SIZE..).ok_or(Error::BadParameters)?; in parse_radar_config_tlv_vec() 534 byte_array: &[u8], in parse_hybrid_controller_config_phase_list() 543 let phase_list_short = byte_array in parse_hybrid_controller_config_phase_list() [all …]
|
/packages/modules/Bluetooth/system/gd/packet/parser/test/ |
D | generated_packet_test.cc | 573 std::array<uint8_t, byte_array_size> byte_array; in TEST() local 574 for (uint8_t i = 0; i < byte_array_size; i++) byte_array[i] = i; in TEST() 580 auto packet = PacketWithFixedArraysOfBytesBuilder::Create(byte_array, word_array); in TEST() 590 ASSERT_EQ(byte_array[i], packet_bytes->at(i)); in TEST() 597 ASSERT_EQ(byte_array.size(), array.size()); in TEST() 599 ASSERT_EQ(array[i], byte_array[i]); in TEST()
|