Searched refs:packet_size (Results 1 - 10 of 10) sorted by relevance

/system/bt/stack/test/common/
H A Dstack_test_packet_utils.cc59 size_t packet_size = buffer_length + BT_HDR_SIZE; local
60 auto packet = reinterpret_cast<BT_HDR*>(osi_malloc(packet_size));
79 size_t packet_size = local
81 auto packet = reinterpret_cast<BT_HDR*>(osi_malloc(packet_size));
/system/bt/packet/tests/avrcp/
H A Dget_folder_items_packet_test.cc56 auto packet_size = BrowsePacket::kMinSize() + 5; local
57 packet_size += player1.size() + player3.size();
60 Status::NO_ERROR, 0x0000, packet_size);
94 auto packet_size = BrowsePacket::kMinSize() + 5; local
95 packet_size += folder1.size() + folder3.size();
98 Status::NO_ERROR, 0x0000, packet_size);
136 auto packet_size = BrowsePacket::kMinSize() + 5; local
137 packet_size += song1.size() + song3.size();
140 Status::NO_ERROR, 0x0000, packet_size);
/system/core/fastboot/
H A Dudp.cpp191 uint16_t packet_size = ExtractUint16(rx_data + 2); local
192 if (packet_size < kMinPacketSize) {
193 *error = android::base::StringPrintf("target reported invalid packet size %d", packet_size);
197 packet_size = std::min(kHostMaxPacketSize, packet_size);
198 max_data_length_ = packet_size - kHeaderSize;
199 rx_packet_.resize(packet_size);
/system/bt/stack/rfcomm/
H A Dport_utils.cc141 uint16_t packet_size; local
146 packet_size = btm_get_max_packet_size(p_port->bd_addr);
147 if (packet_size == 0) {
165 if ((L2CAP_MTU_SIZE + L2CAP_PKT_OVERHEAD) >= packet_size) {
166 p_port->mtu = ((L2CAP_MTU_SIZE + L2CAP_PKT_OVERHEAD) / packet_size *
167 packet_size) -
/system/bt/hci/src/
H A Dhci_layer_android.cc64 size_t packet_size = data.size() + BT_HDR_SIZE; local
66 reinterpret_cast<BT_HDR*>(buffer_allocator->alloc(packet_size));
H A Dhci_layer_linux.cc123 size_t packet_size = buf_size + BT_HDR_SIZE; local
125 reinterpret_cast<BT_HDR*>(buffer_allocator->alloc(packet_size));
/system/bt/bta/hearing_aid/
H A Dhearing_aid.cc848 uint16_t packet_size; local
851 packet_size = 120;
853 packet_size = 80;
856 for (size_t i = 0; i < encoded_data_size; i += packet_size) {
859 SendAudio(encoded_data_left.data() + i, packet_size, left);
863 SendAudio(encoded_data_right.data() + i, packet_size, right);
871 void SendAudio(uint8_t* encoded_data, uint16_t packet_size, argument
873 BT_HDR* audio_packet = malloc_l2cap_buf(packet_size + 1);
877 memcpy(p, encoded_data, packet_size);
879 DVLOG(2) << hearingAid->address << " : " << base::HexEncode(p, packet_size);
[all...]
/system/core/adb/client/
H A Dusb_libusb.cpp226 size_t packet_size = 0; local
274 if (packet_size == 0) {
275 packet_size = endpoint_packet_size;
277 CHECK(packet_size == endpoint_packet_size);
376 bulk_out, zero_mask, packet_size));
/system/core/adb/daemon/
H A Dusb.cpp414 int packet_size = getMaxPacketSize(aiob->fd); local
428 if (len == 0 && buf_len % packet_size == 0 && read) {
436 packet_size, 0, read);
/system/bt/stack/l2cap/
H A Dl2c_utils.cc2487 uint16_t packet_size; local
2490 packet_size = btm_get_max_packet_size(p_ccb->p_lcb->remote_bd_addr);
2492 if (packet_size <= (L2CAP_PKT_OVERHEAD + L2CAP_FCR_OVERHEAD +
2497 packet_size, p_ccb->peer_cfg.fcr.mps);
2500 packet_size -= (L2CAP_PKT_OVERHEAD + L2CAP_FCR_OVERHEAD +
2514 if (p_ccb->peer_cfg.fcr.mps >= packet_size)
2515 p_ccb->tx_mps = p_ccb->peer_cfg.fcr.mps / packet_size * packet_size;
2521 "packet_size: %u",
2522 p_ccb->tx_mps, p_ccb->peer_cfg.fcr.mps, packet_size);
[all...]

Completed in 1217 milliseconds