/system/bt/gd/common/ |
D | byte_array.h | 37 static constexpr size_t kLength = LENGTH; 39 ByteArray(const uint8_t (&d)[kLength]) { in ByteArray() argument 40 std::copy(d, d + kLength, data()); in ByteArray() 42 ByteArray(std::array<uint8_t, kLength> a) : bytes(std::move(a)) {} in ByteArray() 44 std::array<uint8_t, kLength> bytes = {}; 78 static std::optional<ByteArray<kLength>> FromString(const std::string& from) { in FromString() 79 if (from.length() != (kLength * 2)) { in FromString() 86 ByteArray<kLength> byte_array = {}; in FromString() 93 static std::optional<ByteArray<kLength>> FromLegacyConfigString(const std::string& from) { in FromLegacyConfigString()
|
D | byte_array_test.cc | 34 for (int i = 0; i < ByteArray<16>::kLength; i++) { in TEST() 43 for (int i = 0; i < ByteArray<16>::kLength; i++) { in TEST()
|
/system/bt/types/ |
D | class_of_device.cc | 27 static_assert(sizeof(ClassOfDevice) == ClassOfDevice::kLength, 30 ClassOfDevice::ClassOfDevice(const uint8_t (&class_of_device)[kLength]) { in ClassOfDevice() argument 31 std::copy(class_of_device, class_of_device + kLength, cod); in ClassOfDevice() 54 for (size_t i = 0; i < kLength; i++) { in FromString() 71 std::copy(from, from + kLength, cod); in FromOctets() 72 return kLength; in FromOctets()
|
D | raw_address.h | 28 static constexpr unsigned int kLength = 6; 30 uint8_t address[kLength]; 33 RawAddress(const uint8_t (&addr)[kLength]); 73 static_assert(sizeof(uint64_t) >= RawAddress::kLength); 76 RawAddress::kLength);
|
D | class_of_device.h | 29 static constexpr unsigned int kLength = 3; 31 uint8_t cod[kLength]; 34 ClassOfDevice(const uint8_t (&class_of_device)[kLength]);
|
D | raw_address.cc | 33 std::copy(addr, addr + kLength, address); in RawAddress() 66 std::copy(from, from + kLength, address); in FromOctets() 67 return kLength; in FromOctets()
|
/system/core/libunwindstack/tests/ |
D | MemoryOfflineBufferTest.cpp | 34 buffer_.resize(kLength); in SetUpTestSuite() 35 for (size_t i = 0; i < kLength; i++) { in SetUpTestSuite() 42 static constexpr size_t kLength = 0x2000; member in unwindstack::MemoryOfflineBufferTest 44 static constexpr uint64_t kEnd = kStart + kLength; 73 ASSERT_TRUE(memory_->ReadFully(kStart + kLength - 105, buffer.data(), 105)); in TEST_F() 74 ASSERT_NO_FATAL_FAILURE(VerifyBuffer(buffer.data(), kLength - 105, 105)); in TEST_F() 79 ASSERT_EQ(100U, memory_->Read(kStart + kLength - 100, buffer.data(), buffer.size())); in TEST_F() 80 VerifyBuffer(buffer.data(), kLength - 100, 100); in TEST_F()
|
/system/bt/gd/packet/ |
D | custom_field_fixed_size_interface.h | 35 …std::is_same_v<decltype(T::kLength), const size_t>, "T::kLength must be const size_t or constexpr … in length() 36 static_assert(std::is_const_v<decltype(T::kLength)>, "T::kLength must be const"); in length() 37 return T::kLength; in length()
|
D | raw_builder.cc | 65 if (payload_.size() + Address::kLength > max_bytes_) return false; in AddAddress() 67 for (size_t i = 0; i < Address::kLength; i++) { in AddAddress()
|
/system/bt/gd/hci/ |
D | address.h | 35 static constexpr size_t kLength = 6; 37 std::array<uint8_t, kLength> address = {}; 40 Address(const uint8_t (&addr)[kLength]); 107 static_assert(sizeof(uint64_t) >= bluetooth::hci::Address::kLength); 109 memcpy(reinterpret_cast<uint8_t*>(&int_addr), val.data(), bluetooth::hci::Address::kLength);
|
D | address.cc | 38 std::copy(addr, addr + kLength, data()); in Address() 42 std::copy(l.begin(), std::min(l.begin() + kLength, l.end()), data()); in Address() 114 std::copy(from, from + kLength, data()); in FromOctets() 115 return kLength; in FromOctets()
|
D | class_of_device.h | 34 static constexpr size_t kLength = 3; 36 std::array<uint8_t, kLength> cod = {}; 39 ClassOfDevice(const uint8_t (&class_of_device)[kLength]);
|
D | class_of_device.cc | 37 ClassOfDevice::ClassOfDevice(const uint8_t (&class_of_device)[kLength]) { in ClassOfDevice() argument 38 std::copy(class_of_device, class_of_device + kLength, cod.data()); in ClassOfDevice() 133 std::copy(from, from + kLength, data()); in FromOctets() 134 return kLength; in FromOctets()
|
D | address_with_type.h | 117 …static_assert(sizeof(uint64_t) >= (bluetooth::hci::Address::kLength + sizeof(bluetooth::hci::Addre… 119 …(reinterpret_cast<uint8_t*>(&int_addr), val.GetAddress().data(), bluetooth::hci::Address::kLength); 122 …reinterpret_cast<uint8_t*>(&int_addr) + bluetooth::hci::Address::kLength, &address_type, sizeof(ad…
|
D | class_of_device_unittest.cc | 56 size_t expected_result = ClassOfDevice::kLength; in TEST() 94 ASSERT_EQ(0, memcmp(cod.data(), result0.data(), ClassOfDevice::kLength)); in TEST() 98 ASSERT_EQ(0, memcmp(cod.data(), result1.data(), ClassOfDevice::kLength)); in TEST()
|
D | address_unittest.cc | 76 size_t expected_result = Address::kLength; in TEST() 188 ASSERT_EQ(0, memcmp(addr.data(), result0.data(), Address::kLength)); in TEST() 195 ASSERT_EQ(0, memcmp(addr.data(), result1.data(), Address::kLength)); in TEST()
|
/system/bt/gd/packet/parser/test/ |
D | six_bytes.h | 33 static constexpr size_t kLength = 6; 35 uint8_t six_bytes[kLength] = {};
|
D | six_bytes.cc | 27 std::copy(six, six + kLength, six_bytes); in SixBytes()
|
/system/bt/common/ |
D | address_obfuscator.cc | 52 address.address, address.kLength, result.data(), in Obfuscate()
|
/system/bt/types/test/ |
D | class_of_device_unittest.cc | 53 size_t expected_result = ClassOfDevice::kLength; in TEST()
|
/system/bt/gd/security/ |
D | pairing_handler_le_secure_connections.cc | 142 memcpy(a, i.my_connection_address.GetAddress().data(), hci::Address::kLength); in DoSecureConnectionsStage2() 144 memcpy(b, i.remote_connection_address.GetAddress().data(), hci::Address::kLength); in DoSecureConnectionsStage2() 147 memcpy(a, i.remote_connection_address.GetAddress().data(), hci::Address::kLength); in DoSecureConnectionsStage2() 149 memcpy(b, i.my_connection_address.GetAddress().data(), hci::Address::kLength); in DoSecureConnectionsStage2()
|
D | pairing_handler_le_unittest.cc | 237 …mcpy(b, initial_informations.remote_connection_address.GetAddress().data(), hci::Address::kLength); in TEST_F() 239 memcpy(a, initial_informations.my_connection_address.GetAddress().data(), hci::Address::kLength); in TEST_F()
|
/system/bt/service/ |
D | low_energy_client.h | 38 return memcmp(a.address, b.address, RawAddress::kLength) < 0; in operator()
|
/system/bt/service/hal/ |
D | fake_bluetooth_interface.cc | 125 property.len = RawAddress::kLength; in NotifyAdapterAddressPropertyChanged()
|
/system/bt/device/src/ |
D | interop.cc | 84 CHECK(length < RawAddress::kLength); in interop_database_add()
|