Searched refs:packet_size (Results 1 – 10 of 10) sorted by relevance
/system/bt/packet/tests/avrcp/ |
D | get_folder_items_packet_test.cc | 56 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/stack/test/common/ |
D | stack_test_packet_utils.cc | 59 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/core/fastboot/ |
D | udp.cpp | 191 uint16_t packet_size = ExtractUint16(rx_data + 2); in InitializeProtocol() local 192 if (packet_size < kMinPacketSize) { in InitializeProtocol() 193 *error = android::base::StringPrintf("target reported invalid packet size %d", packet_size); in InitializeProtocol() 197 packet_size = std::min(kHostMaxPacketSize, packet_size); in InitializeProtocol() 198 max_data_length_ = packet_size - kHeaderSize; in InitializeProtocol() 199 rx_packet_.resize(packet_size); in InitializeProtocol()
|
/system/bt/stack/rfcomm/ |
D | port_utils.cc | 141 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/bt/hci/src/ |
D | hci_layer_android.cc | 73 size_t packet_size = data.size() + BT_HDR_SIZE; in WrapPacketAndCopy() local 75 reinterpret_cast<BT_HDR*>(buffer_allocator->alloc(packet_size)); in WrapPacketAndCopy()
|
D | hci_layer_linux.cc | 122 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/daemon/ |
D | usb_legacy.cpp | 182 int packet_size = getMaxPacketSize(aiob->fd); in usb_ffs_do_aio() local 196 if (len == 0 && buf_len % packet_size == 0 && read) { in usb_ffs_do_aio() 204 packet_size, 0, read); in usb_ffs_do_aio()
|
/system/core/adb/client/ |
D | usb_libusb.cpp | 226 size_t packet_size = 0; in process_device() local 274 if (packet_size == 0) { in process_device() 275 packet_size = endpoint_packet_size; in process_device() 277 CHECK(packet_size == endpoint_packet_size); in process_device() 369 bulk_out, zero_mask, packet_size)); in process_device()
|
/system/bt/bta/hearing_aid/ |
D | hearing_aid.cc | 1236 uint16_t packet_size = in OnAudioDataReady() local 1239 for (size_t i = 0; i < encoded_data_size; i += packet_size) { in OnAudioDataReady() 1242 SendAudio(encoded_data_left.data() + i, packet_size, left); in OnAudioDataReady() 1246 SendAudio(encoded_data_right.data() + i, packet_size, right); in OnAudioDataReady() 1254 void SendAudio(uint8_t* encoded_data, uint16_t packet_size, in SendAudio() argument 1264 BT_HDR* audio_packet = malloc_l2cap_buf(packet_size + 1); in SendAudio() 1268 memcpy(p, encoded_data, packet_size); in SendAudio() 1270 DVLOG(2) << hearingAid->address << " : " << base::HexEncode(p, packet_size); in SendAudio()
|
/system/bt/stack/l2cap/ |
D | l2c_utils.cc | 2486 uint16_t packet_size; in l2cu_adjust_out_mps() local 2489 packet_size = btm_get_max_packet_size(p_ccb->p_lcb->remote_bd_addr); in l2cu_adjust_out_mps() 2491 if (packet_size <= (L2CAP_PKT_OVERHEAD + L2CAP_FCR_OVERHEAD + in l2cu_adjust_out_mps() 2496 packet_size, p_ccb->peer_cfg.fcr.mps); in l2cu_adjust_out_mps() 2499 packet_size -= (L2CAP_PKT_OVERHEAD + L2CAP_FCR_OVERHEAD + in l2cu_adjust_out_mps() 2513 if (p_ccb->peer_cfg.fcr.mps >= packet_size) in l2cu_adjust_out_mps() 2514 p_ccb->tx_mps = p_ccb->peer_cfg.fcr.mps / packet_size * packet_size; in l2cu_adjust_out_mps() 2521 p_ccb->tx_mps, p_ccb->peer_cfg.fcr.mps, packet_size); in l2cu_adjust_out_mps()
|