/packages/modules/Bluetooth/system/stack/btm/ |
D | btm_sco_hci.cc | 405 size_t buf_size; /* The size of the buffer, determined by the packet_size. */ member 484 pkt_size = get_supported_packet_size(pkt_size, &buf_size); in init() 491 msbc_decode_buf = (uint8_t*)osi_calloc(buf_size); in init() 494 msbc_encode_buf = (uint8_t*)osi_calloc(buf_size); in init() 545 return buf_size; in decode_buf_data_len() 549 return buf_size - (decode_buf_ro - decode_buf_wo); in decode_buf_data_len() 553 size_t decode_buf_avail_len() { return buf_size - decode_buf_data_len(); } in decode_buf_avail_len() 561 incr_buf_offset(decode_buf_ro, decode_buf_ro_mirror, buf_size, in mark_pkt_decoded() 574 if (buf_size - decode_buf_wo > input.size()) { in write() 577 std::copy(input.begin(), input.begin() + buf_size - decode_buf_wo, in write() [all …]
|
/packages/modules/Bluetooth/system/osi/test/fuzzers/compat/ |
D | fuzz_compat.cc | 27 size_t buf_size = in LLVMFuzzerTestOneInput() local 29 if (buf_size == 0) { in LLVMFuzzerTestOneInput() 37 dataProvider.ConsumeBytesWithTerminator<char>(buf_size, '\0'); in LLVMFuzzerTestOneInput() 41 buf_size = bytes.size(); in LLVMFuzzerTestOneInput() 42 void* dst_buf = malloc(buf_size); in LLVMFuzzerTestOneInput() 51 size_t len_to_cpy = dataProvider.ConsumeIntegralInRange<size_t>(0, buf_size); in LLVMFuzzerTestOneInput()
|
/packages/modules/Bluetooth/system/osi/test/fuzzers/include/ |
D | libosiFuzzHelperFunctions.h | 26 size_t buf_size = in generateBuffer() local 28 if (buf_size == 0) { in generateBuffer() 33 char* buf = reinterpret_cast<char*>(malloc(buf_size)); in generateBuffer() 34 std::vector<char> bytes = dataProvider->ConsumeBytes<char>(buf_size); in generateBuffer() 39 buf[buf_size - 1] = 0x00; in generateBuffer()
|
/packages/modules/adb/client/ |
D | incremental.cpp | 232 int buf_size = 0; in wait_for_installation() local 234 while ((bytes_read = adb_read(read_fd, child_stdout.data() + buf_size, in wait_for_installation() 235 child_stdout.size() - buf_size)) > 0) { in wait_for_installation() 237 fprintf(stdout, "%.*s", bytes_read, child_stdout.data() + buf_size); in wait_for_installation() 239 buf_size += bytes_read; in wait_for_installation() 240 const std::string_view stdout_str(child_stdout.data(), buf_size); in wait_for_installation() 249 if (buf_size >= maxMessageSize) { in wait_for_installation() 257 child_stdout.resize(buf_size + CHUNK_SIZE); in wait_for_installation()
|
D | line_printer.cpp | 101 COORD buf_size = { csbi.dwSize.X, 1 }; in Print() local 113 WriteConsoleOutputW(console_, &char_data[0], buf_size, zero_zero, &target); in Print()
|
/packages/modules/Bluetooth/system/osi/test/fuzzers/future/ |
D | fuzz_future.cc | 27 size_t buf_size = in LLVMFuzzerTestOneInput() local 29 void* buf = malloc(buf_size); in LLVMFuzzerTestOneInput() 33 std::vector<uint8_t> bytes = dataProvider.ConsumeBytes<uint8_t>(buf_size); in LLVMFuzzerTestOneInput()
|
/packages/modules/Bluetooth/system/stack/test/fuzzers/sdp/ |
D | sdpFuzzHelpers.h | 259 uint8_t buf_size = fdp->ConsumeIntegral<uint8_t>(); in generateArbitrarySdpElemSequence() local 261 (ret.len.get())[i] = buf_size; in generateArbitrarySdpElemSequence() 263 reinterpret_cast<uint8_t*>(calloc(buf_size, sizeof(uint8_t))), free); in generateArbitrarySdpElemSequence() 266 std::vector<uint8_t> bytes = fdp->ConsumeBytes<uint8_t>(buf_size); in generateArbitrarySdpElemSequence()
|
/packages/modules/Bluetooth/system/bta/hh/ |
D | bta_hh_api.cc | 186 uint8_t rpt_id, uint16_t buf_size) { in BTA_HhGetReport() argument 187 uint8_t param = (buf_size) ? (r_type | 0x08) : r_type; in BTA_HhGetReport() 189 bta_hh_snd_write_dev(dev_handle, HID_TRANS_GET_REPORT, param, buf_size, in BTA_HhGetReport()
|
/packages/modules/Bluetooth/system/stack/hid/ |
D | hidd_conn.cc | 737 uint16_t buf_size; in hidd_conn_send_data() local 754 buf_size = HID_CONTROL_BUF_SIZE; in hidd_conn_send_data() 759 buf_size = HID_CONTROL_BUF_SIZE; in hidd_conn_send_data() 762 buf_size = HID_INTERRUPT_BUF_SIZE; in hidd_conn_send_data() 772 p_buf = (BT_HDR*)osi_malloc(buf_size); in hidd_conn_send_data()
|
D | hidh_conn.cc | 754 uint16_t buf_size; in hidh_conn_snd_data() local 784 buf_size = HID_CONTROL_BUF_SIZE; in hidh_conn_snd_data() 788 buf_size = HID_INTERRUPT_BUF_SIZE; in hidh_conn_snd_data() 804 p_buf = (BT_HDR*)osi_malloc(buf_size); in hidh_conn_snd_data() 812 p_buf = (BT_HDR*)osi_malloc(buf_size); in hidh_conn_snd_data()
|
/packages/modules/adb/ |
D | sysdeps_win32_test.cpp | 115 void TestParseCompleteUTF8(const char* buf, const size_t buf_size, in TestParseCompleteUTF8() argument 119 const size_t complete_bytes = internal::ParseCompleteUTF8(buf, buf + buf_size, in TestParseCompleteUTF8()
|
D | sysdeps_win32.cpp | 2680 static int _console_write_utf8(const char* const buf, const size_t buf_size, FILE* stream, in _console_write_utf8() argument 2698 utf8_size = internal::ParseCompleteUTF8(buf, buf + buf_size, &console_output_buffer); in _console_write_utf8() 2704 combined_buffer.insert(combined_buffer.end(), buf, buf + buf_size); in _console_write_utf8() 2740 return buf_size; in _console_write_utf8()
|
/packages/modules/Bluetooth/system/stack/test/fuzzers/a2dp/codec/ |
D | a2dpCodecHelperFunctions.h | 127 size_t buf_size = fdp->ConsumeIntegralInRange<size_t>(0, MAX_BTHDR_SIZE); in getArbitraryBtHdr() local 128 std::vector<uint8_t> bytes = fdp->ConsumeBytes<uint8_t>(buf_size); in getArbitraryBtHdr()
|
/packages/modules/adb/client/openscreen/platform/ |
D | udp_socket.cpp | 282 unsigned int buf_size = sizeof(default_addr); in SetMulticastOutboundInterface() local 283 if (getsockopt(fd_.get(), IPPROTO_IP, IP_MULTICAST_IF, &default_addr, &buf_size) != in SetMulticastOutboundInterface() 299 buf_size = sizeof(default_addr); in SetMulticastOutboundInterface() 300 if (getsockopt(fd_.get(), IPPROTO_IP, IP_MULTICAST_IF, &default_addr, &buf_size) != in SetMulticastOutboundInterface()
|
/packages/modules/Bluetooth/system/stack/test/btm/ |
D | sco_hci_test.cc | 369 for (auto [pkt_size, buf_size] : irregular_packet_to_buffer_size) { in TEST_F() 370 ASSERT_EQ(buf_size % pkt_size, 0u); in TEST_F() 392 for (size_t iter = 0, decodable = 0; iter < 2 * buf_size / pkt_size; in TEST_F() 427 for (auto [pkt_size, buf_size] : irregular_packet_to_buffer_size) { in TEST_F() 428 ASSERT_EQ(buf_size % pkt_size, 0u); in TEST_F() 449 for (size_t iter = 0, decodable = 0; iter < 2 * buf_size / pkt_size; in TEST_F()
|
/packages/modules/adb/tls/tests/ |
D | tls_connection_test.cpp | 547 const size_t buf_size = 256; in TEST_F() local 548 uint8_t buf[buf_size]; in TEST_F() 554 reinterpret_cast<char*>(buf), buf_size), in TEST_F()
|
/packages/modules/Virtualization/authfs/fd_server/src/ |
D | aidl.rs | 399 let buf_size = min(remaining, max_size as u64) as usize; in read_into_buf() localVariable 400 let mut buf = vec![0; buf_size]; in read_into_buf()
|
/packages/modules/Bluetooth/system/stack/avct/ |
D | avct_lcb_act.cc | 557 uint16_t buf_size = p_lcb->peer_mtu + L2CAP_MIN_OFFSET + BT_HDR_SIZE; in avct_lcb_send_msg() local 582 p_buf = (BT_HDR*)osi_malloc(buf_size); in avct_lcb_send_msg()
|
/packages/modules/Bluetooth/system/bta/include/ |
D | bta_hh_api.h | 459 uint8_t rpt_id, uint16_t buf_size);
|
/packages/modules/Connectivity/staticlibs/native/bpf_headers/include/bpf/ |
D | bpf_helpers.h | 398 static long (*bpf_get_current_comm)(void* buf, uint32_t buf_size) = (void*) BPF_FUNC_get_current_co…
|
/packages/modules/Bluetooth/system/stack/l2cap/ |
D | l2c_fcr.cc | 245 uint16_t buf_size = no_of_bytes + sizeof(BT_HDR) + new_offset + L2CAP_FCS_LEN; in l2c_fcr_clone_buf() local 246 BT_HDR* p_buf2 = (BT_HDR*)osi_malloc(buf_size); in l2c_fcr_clone_buf()
|
/packages/modules/Bluetooth/system/btif/src/ |
D | btif_rc.cc | 3855 size_t buf_size = p_rsp->num_attrs * sizeof(btrc_element_attr_val_t); in handle_get_metadata_attr_response() local 3857 (btrc_element_attr_val_t*)osi_calloc(buf_size); in handle_get_metadata_attr_response()
|