Home
last modified time | relevance | path

Searched refs:kSizeBytes (Results 1 – 4 of 4) sorted by relevance

/system/bt/vendor_libs/test_vendor_lib/model/devices/
Dlink_layer_socket_device.cc38 received_ = std::make_shared<std::vector<uint8_t>>(Link::kSizeBytes); in TimerTick()
39 size_t bytes_received = socket_.TryReceive(Link::kSizeBytes, received_->data()); in TimerTick()
43 CHECK(bytes_received == Link::kSizeBytes) << "bytes_received == " << bytes_received; in TimerTick()
44 packets::PacketView<true> size({packets::View(received_, 0, Link::kSizeBytes)}); in TimerTick()
46 received_->resize(Link::kSizeBytes + bytes_left_); in TimerTick()
47 offset_ = Link::kSizeBytes; in TimerTick()
/system/bt/vendor_libs/test_vendor_lib/packets/link_layer/
Dlink_layer_packet_view.cc21 constexpr size_t Link::kSizeBytes; member in test_vendor_lib::Link
28 CHECK(raw->size() >= Link::kSizeBytes + Link::kTypeBytes + 2 * Address::kLength); in Create()
33 return static_cast<Link::PacketType>(at(Link::kSizeBytes)); in GetType()
37 size_t offset = Link::kSizeBytes + Link::kTypeBytes; in GetSourceAddress()
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()
Dlink_layer_packet_builder.cc156 return Link::kTypeBytes + Link::kSizeBytes + 2 * Address::kLength + builder_size; in size()
160 insert(static_cast<uint32_t>(size() - Link::kSizeBytes), it); in Serialize()
/system/bt/vendor_libs/test_vendor_lib/include/
Dlink.h22 static constexpr size_t kSizeBytes = sizeof(uint32_t);