Home
last modified time | relevance | path

Searched refs:kLength (Results 1 – 25 of 30) sorted by relevance

12

/system/bt/types/
Dclass_of_device.cc27 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()
Dclass_of_device.h26 static constexpr unsigned int kLength = 3;
28 uint8_t cod[kLength];
31 ClassOfDevice(const uint8_t (&class_of_device)[kLength]);
Draw_address.cc33 std::copy(addr, addr + kLength, address); in RawAddress()
66 std::copy(from, from + kLength, address); in FromOctets()
67 return kLength; in FromOctets()
Draw_address.h26 static constexpr unsigned int kLength = 6;
28 uint8_t address[kLength];
/system/bt/vendor_libs/test_vendor_lib/types/
Dclass_of_device.cc27 static_assert(sizeof(ClassOfDevice) == ClassOfDevice::kLength, "ClassOfDevice must be 3 bytes long!…
29 ClassOfDevice::ClassOfDevice(const uint8_t (&class_of_device)[kLength]) { in ClassOfDevice() argument
30 std::copy(class_of_device, class_of_device + kLength, cod); in ClassOfDevice()
51 for (size_t i = 0; i < kLength; i++) { in FromString()
68 std::copy(from, from + kLength, cod); in FromOctets()
69 return kLength; in FromOctets()
Dclass_of_device.h26 static constexpr unsigned int kLength = 3;
28 uint8_t cod[kLength];
31 ClassOfDevice(const uint8_t (&class_of_device)[kLength]);
Daddress.cc33 std::copy(addr, addr + kLength, address); in Address()
64 std::copy(from, from + kLength, address); in FromOctets()
65 return kLength; in FromOctets()
Daddress.h26 static constexpr unsigned int kLength = 6;
28 uint8_t address[kLength];
/system/core/libunwindstack/tests/
DMemoryOfflineBufferTest.cpp35 buffer_.resize(kLength); in SetUpTestCase()
36 for (size_t i = 0; i < kLength; i++) { in SetUpTestCase()
43 static constexpr size_t kLength = 0x2000; member in unwindstack::MemoryOfflineBufferTest
45 static constexpr uint64_t kEnd = kStart + kLength;
74 ASSERT_TRUE(memory_->ReadFully(kStart + kLength - 105, buffer.data(), 105)); in TEST_F()
75 ASSERT_NO_FATAL_FAILURE(VerifyBuffer(buffer.data(), kLength - 105, 105)); in TEST_F()
80 ASSERT_EQ(100U, memory_->Read(kStart + kLength - 100, buffer.data(), buffer.size())); in TEST_F()
81 VerifyBuffer(buffer.data(), kLength - 100, 100); in TEST_F()
/system/bt/gd/common/
Dclass_of_device.cc31 static_assert(sizeof(ClassOfDevice) == ClassOfDevice::kLength, "ClassOfDevice must be 3 bytes long!…
33 ClassOfDevice::ClassOfDevice(const uint8_t (&class_of_device)[kLength]) { in ClassOfDevice() argument
34 std::copy(class_of_device, class_of_device + kLength, cod); in ClassOfDevice()
89 std::copy(from, from + kLength, cod); in FromOctets()
90 return kLength; in FromOctets()
Dclass_of_device.h28 static constexpr unsigned int kLength = 3;
30 uint8_t cod[kLength];
33 ClassOfDevice(const uint8_t (&class_of_device)[kLength]);
Daddress.cc35 std::copy(addr, addr + kLength, address); in Address()
82 std::copy(from, from + kLength, address); in FromOctets()
83 return kLength; in FromOctets()
Daddress.h28 static constexpr unsigned int kLength = 6;
30 uint8_t address[kLength];
Dclass_of_device_unittest.cc55 size_t expected_result = ClassOfDevice::kLength; in TEST()
/system/bt/vendor_libs/test_vendor_lib/packets/link_layer/
Dlink_layer_packet_view.cc28 CHECK(raw->size() >= Link::kSizeBytes + Link::kTypeBytes + 2 * Address::kLength); in Create()
42 size_t offset = Link::kSizeBytes + Link::kTypeBytes + Address::kLength; in GetDestinationAddress()
47 return SubViewLittleEndian(Link::kSizeBytes + Link::kTypeBytes + 2 * Address::kLength, size()); in GetPayload()
/system/bt/vendor_libs/test_vendor_lib/packets/hci/
Devent_payload_builder.cc61 if (payload_.size() + Address::kLength > max_bytes_) return false; in AddPayloadAddress()
63 for (size_t i = 0; i < Address::kLength; i++) { in AddPayloadAddress()
/system/bt/gd/packet/
Draw_builder.cc63 if (payload_.size() + Address::kLength > max_bytes_) return false; in AddAddress()
65 for (size_t i = 0; i < Address::kLength; i++) { in AddAddress()
/system/bt/vendor_libs/test_vendor_lib/packets/
Draw_builder.cc61 if (payload_.size() + Address::kLength > max_bytes_) return false; in AddAddress()
63 for (size_t i = 0; i < Address::kLength; i++) { in AddAddress()
/system/bt/common/
Daddress_obfuscator.cc52 address.address, address.kLength, result.data(), in Obfuscate()
/system/bt/types/test/
Dclass_of_device_unittest.cc53 size_t expected_result = ClassOfDevice::kLength; in TEST()
Draw_address_unittest.cc71 size_t expected_result = RawAddress::kLength; in TEST()
/system/bt/vendor_libs/test_vendor_lib/types/test/
Dclass_of_device_unittest.cc53 size_t expected_result = ClassOfDevice::kLength; in TEST()
/system/bt/service/
Dlow_energy_client.h38 return memcmp(a.address, b.address, RawAddress::kLength) < 0; in operator()
/system/bt/service/hal/
Dfake_bluetooth_interface.cc124 property.len = RawAddress::kLength; in NotifyAdapterAddressPropertyChanged()
/system/bt/device/src/
Dinterop.cc83 CHECK(length < RawAddress::kLength); in interop_database_add()

12