Home
last modified time | relevance | path

Searched refs:packet_size (Results 1 – 13 of 13) sorted by relevance

/system/bt/packet/tests/avrcp/
Dget_folder_items_packet_test.cc56 auto packet_size = BrowsePacket::kMinSize() + 5; in TEST() local
57 packet_size += player1.size() + player3.size(); in TEST()
60 Status::NO_ERROR, 0x0000, packet_size); in TEST()
94 auto packet_size = BrowsePacket::kMinSize() + 5; in TEST() local
95 packet_size += folder1.size() + folder3.size(); in TEST()
98 Status::NO_ERROR, 0x0000, packet_size); in TEST()
136 auto packet_size = BrowsePacket::kMinSize() + 5; in TEST() local
137 packet_size += song1.size() + song3.size(); in TEST()
140 Status::NO_ERROR, 0x0000, packet_size); in TEST()
/system/bt/packet/tests/fuzzers/
Dget_folder_items_res_fuzzer.cc59 auto packet_size = BrowsePacket::kMinSize() + 5; in LLVMFuzzerTestOneInput() local
60 packet_size += player1.size(); in LLVMFuzzerTestOneInput()
63 Status::NO_ERROR, 0x0000, packet_size); in LLVMFuzzerTestOneInput()
/system/bt/stack/test/common/
Dstack_test_packet_utils.cc59 size_t packet_size = buffer_length + BT_HDR_SIZE; in AllocateWrappedIncomingL2capAclPacket() local
60 auto packet = reinterpret_cast<BT_HDR*>(osi_malloc(packet_size)); in AllocateWrappedIncomingL2capAclPacket()
79 size_t packet_size = in AllocateWrappedOutgoingL2capAclPacket() local
81 auto packet = reinterpret_cast<BT_HDR*>(osi_malloc(packet_size)); in AllocateWrappedOutgoingL2capAclPacket()
/system/bt/vendor_libs/test_vendor_lib/model/devices/
Dlink_layer_socket_device.cc34 auto packet_size = std::make_shared<std::vector<uint8_t>>(kSizeBytes); in TimerTick() local
36 size_t bytes_received = socket_.TryReceive(kSizeBytes, packet_size->data()); in TimerTick()
42 {bluetooth::packet::View(packet_size, 0, kSizeBytes)}); in TimerTick()
/system/core/fastboot/
Dudp.cpp192 uint16_t packet_size = ExtractUint16(rx_data + 2); in InitializeProtocol() local
193 if (packet_size < kMinPacketSize) { in InitializeProtocol()
194 *error = android::base::StringPrintf("target reported invalid packet size %d", packet_size); in InitializeProtocol()
198 packet_size = std::min(kHostMaxPacketSize, packet_size); in InitializeProtocol()
199 max_data_length_ = packet_size - kHeaderSize; in InitializeProtocol()
200 rx_packet_.resize(packet_size); in InitializeProtocol()
/system/bt/stack/rfcomm/
Dport_utils.cc141 uint16_t packet_size; in port_select_mtu() local
146 packet_size = btm_get_max_packet_size(p_port->bd_addr); in port_select_mtu()
147 if (packet_size == 0) { in port_select_mtu()
165 if ((L2CAP_MTU_SIZE + L2CAP_PKT_OVERHEAD) >= packet_size) { in port_select_mtu()
166 p_port->mtu = ((L2CAP_MTU_SIZE + L2CAP_PKT_OVERHEAD) / packet_size * in port_select_mtu()
167 packet_size) - in port_select_mtu()
/system/core/fastboot/device/
Dusb.cpp135 int packet_size = getMaxPacketSize(aiob->fd); in usb_ffs_do_aio() local
149 if (len == 0 && buf_len % packet_size == 0 && read) { in usb_ffs_do_aio()
157 packet_size, 0, read); in usb_ffs_do_aio()
/system/bt/hci/src/
Dhci_layer_android.cc79 size_t packet_size = data.size() + BT_HDR_SIZE; in WrapPacketAndCopy() local
81 reinterpret_cast<BT_HDR*>(buffer_allocator->alloc(packet_size)); in WrapPacketAndCopy()
Dhci_layer_linux.cc122 size_t packet_size = buf_size + BT_HDR_SIZE; in monitor_socket() local
124 reinterpret_cast<BT_HDR*>(buffer_allocator->alloc(packet_size)); in monitor_socket()
/system/core/adb/client/
Dusb_libusb.cpp225 size_t packet_size = 0; in process_device() local
273 if (packet_size == 0) { in process_device()
274 packet_size = endpoint_packet_size; in process_device()
276 CHECK(packet_size == endpoint_packet_size); in process_device()
368 bulk_out, zero_mask, packet_size)); in process_device()
/system/bt/gd/os/
Dqueue_benchmark.cc176 int64_t packet_size = state.range(0); in BENCHMARK_DEFINE_F() local
189 std::string data = std::string(packet_size, 'x'); in BENCHMARK_DEFINE_F()
/system/bt/bta/hearing_aid/
Dhearing_aid.cc1252 uint16_t packet_size = in OnAudioDataReady() local
1255 for (size_t i = 0; i < encoded_data_size; i += packet_size) { in OnAudioDataReady()
1258 SendAudio(encoded_data_left.data() + i, packet_size, left); in OnAudioDataReady()
1262 SendAudio(encoded_data_right.data() + i, packet_size, right); in OnAudioDataReady()
1270 void SendAudio(uint8_t* encoded_data, uint16_t packet_size, in SendAudio() argument
1280 BT_HDR* audio_packet = malloc_l2cap_buf(packet_size + 1); in SendAudio()
1284 memcpy(p, encoded_data, packet_size); in SendAudio()
1286 DVLOG(2) << hearingAid->address << " : " << base::HexEncode(p, packet_size); in SendAudio()
/system/bt/stack/l2cap/
Dl2c_utils.cc2485 uint16_t packet_size; in l2cu_adjust_out_mps() local
2488 packet_size = btm_get_max_packet_size(p_ccb->p_lcb->remote_bd_addr); in l2cu_adjust_out_mps()
2490 if (packet_size <= (L2CAP_PKT_OVERHEAD + L2CAP_FCR_OVERHEAD + in l2cu_adjust_out_mps()
2495 packet_size, p_ccb->peer_cfg.fcr.mps); in l2cu_adjust_out_mps()
2498 packet_size -= (L2CAP_PKT_OVERHEAD + L2CAP_FCR_OVERHEAD + in l2cu_adjust_out_mps()
2512 if (p_ccb->peer_cfg.fcr.mps >= packet_size) in l2cu_adjust_out_mps()
2513 p_ccb->tx_mps = p_ccb->peer_cfg.fcr.mps / packet_size * packet_size; in l2cu_adjust_out_mps()
2520 p_ccb->tx_mps, p_ccb->peer_cfg.fcr.mps, packet_size); in l2cu_adjust_out_mps()