Searched refs:packet_len (Results 1 – 2 of 2) sorted by relevance
164 size_t packet_len = (buffer[2] << 8) | buffer[1]; in read_ready() local165 size_t frame_len = 3 + packet_len; in read_ready()174 BT_HDR *buf = (BT_HDR *)buffer_allocator->alloc(BT_HDR_SIZE + packet_len); in read_ready()179 buf->len = packet_len; in read_ready()180 memcpy(buf->data, buffer + 3, packet_len); in read_ready()183 LOG_ERROR(LOG_TAG, "%s dropping injected packet of length %zu", __func__, packet_len); in read_ready()
210 size_t length, packet_len; in __android_log_pmsg_file_write() local252 packet_len = LOGGER_ENTRY_MAX_PAYLOAD - sizeof(char) - length; in __android_log_pmsg_file_write()272 if (transfer > packet_len) { in __android_log_pmsg_file_write()273 transfer = strnrchr(buf, packet_len - 1, '\n') - buf; in __android_log_pmsg_file_write()