Home
last modified time | relevance | path

Searched refs:data_len (Results 1 – 25 of 37) sorted by relevance

12

/packages/modules/NetworkStack/tests/unit/jni/
Dapf_jni.cpp57 uint32_t data_len = jdata ? env->GetArrayLength(jdata) : 0; in com_android_server_ApfTest_apfSimulate() local
61 uint32_t ram_len = program_len + data_len; in com_android_server_ApfTest_apfSimulate()
64 if (data_len < 20) ram_len += 20; in com_android_server_ApfTest_apfSimulate()
72 env->GetByteArrayRegion(jdata, 0, data_len, jbuf + ram_len - data_len); in com_android_server_ApfTest_apfSimulate()
81 env->SetByteArrayRegion(jdata, 0, data_len, jbuf + ram_len - data_len); in com_android_server_ApfTest_apfSimulate()
152 uint32_t data_len = (apf_version > 4) ? 20 : 0; in com_android_server_ApfTest_compareBpfApf() local
153 uint32_t ram_len = program_len + data_len; in com_android_server_ApfTest_compareBpfApf()
222 uint32_t data_len = env->GetArrayLength(jdata); in com_android_server_ApfTest_dropsAllPackets() local
223 uint32_t ram_len = apf_program_len + data_len; in com_android_server_ApfTest_dropsAllPackets()
226 if (data_len < 20) ram_len += 20; in com_android_server_ApfTest_dropsAllPackets()
[all …]
/packages/modules/Bluetooth/tools/rootcanal/model/controller/
Dffi.h24 size_t data_len),
25 void (*send_ll)(uint8_t const* data, size_t data_len,
29 size_t data_len);
31 size_t data_len, int phy, int rssi);
Dffi.cc48 void (*send_hci)(int idc, uint8_t const* data, size_t data_len), in ffi_controller_new() argument
49 void (*send_ll)(uint8_t const* data, size_t data_len, int phy, in ffi_controller_new()
86 void* controller_, int idc, uint8_t const* data, size_t data_len) { in ffi_controller_receive_hci() argument
90 std::make_shared<std::vector<uint8_t>>(data, data + data_len); in ffi_controller_receive_hci()
113 void* controller_, uint8_t const* data, size_t data_len, int phy, in ffi_controller_receive_ll() argument
118 std::make_shared<std::vector<uint8_t>>(data, data + data_len); in ffi_controller_receive_ll()
/packages/apps/Nfc/nci/src/com/android/nfc/dhimpl/
DNativeNfcManager.java403 public void notifyPollingLoopFrame(int data_len, byte[] p_data) { in notifyPollingLoopFrame() argument
404 if (data_len < MIN_POLLING_FRAME_TLV_SIZE) { in notifyPollingLoopFrame()
417 while (pos + TLV_len_offset < data_len) { in notifyPollingLoopFrame()
426 if (pos + TLV_header_len + length > data_len) { in notifyPollingLoopFrame()
429 + ") is longer than buffer data length (" + data_len + ")."); in notifyPollingLoopFrame()
455 if (pos + TLV_header_len + length <= data_len) { in notifyPollingLoopFrame()
460 if (pos + TLV_gain_offset <= data_len) { in notifyPollingLoopFrame()
467 if (pos + TLV_timestamp_offset + 3 < data_len) { in notifyPollingLoopFrame()
/packages/modules/Bluetooth/system/gd/dumpsys/bundler/
Dbundler.cc124 void WriteHeaderFile(FILE* fp, const uint8_t* data, size_t data_len) { in WriteHeaderFile() argument
153 fprintf(fp, "const unsigned char %sdata_[%zu] = {\n", namespace_prefix.c_str(), data_len); in WriteHeaderFile()
155 for (size_t i = 0; i < data_len; i++) { in WriteHeaderFile()
157 if (i != data_len - 1) { in WriteHeaderFile()
Dtest.cc36 int WriteHeaderFile(FILE* fp, const uint8_t* data, size_t data_len);
/packages/modules/Bluetooth/system/gd/hci/
Dle_advertising_manager.cc933 uint16_t data_len = 0; in check_advertising_data() local
936 data_len += data[i].size(); in check_advertising_data()
943 data_len += kLenOfFlags; in check_advertising_data()
946 if (data_len > le_maximum_advertising_data_length_) { in check_advertising_data()
949 data_len, in check_advertising_data()
957 uint16_t data_len = 0; in check_extended_advertising_data() local
967 data_len += data[i].size(); in check_extended_advertising_data()
974 data_len += kLenOfFlags; in check_extended_advertising_data()
977 if (data_len > le_maximum_advertising_data_length_) { in check_extended_advertising_data()
980 data_len, in check_extended_advertising_data()
[all …]
/packages/apps/Nfc/testutils/pn532/
Dpn532.py253 data_len = frame[3]
255 if (length_checksum + data_len) & 0xFF != 0:
267 self.device.read(data_len - 1)
/packages/modules/Bluetooth/system/stack/btm/
Dbtm_iso_impl.h518 uint16_t data_len) { in prepare_hci_packet()
520 uint16_t iso_data_load_len = data_len + 4; in prepare_hci_packet()
535 UINT16_TO_STREAM(packet_data, data_len); in prepare_hci_packet()
541 uint16_t data_len) { in send_iso_data()
564 if (iso_credits_ == 0 || data_len > iso_buffer_size_) { in send_iso_data()
565 iso->cr_stats.credits_underflow_bytes += data_len; in send_iso_data()
572 static_cast<int>(data_len), static_cast<int>(iso_credits_), in send_iso_data()
580 BT_HDR* packet = prepare_hci_packet(iso_handle, seq_nb, data_len); in send_iso_data()
581 memcpy(packet->data + kIsoHeaderWithoutTsLen, data, data_len); in send_iso_data()
Dbtm_iso.cc107 uint16_t data_len) { in SendIsoData() argument
108 pimpl_->iso_impl_->send_iso_data(iso_handle, data, data_len); in SendIsoData()
Dbtm_ble_gap.cc285 uint8_t data_len, const uint8_t* data,
1109 uint8_t data_status, uint8_t data_len, in btm_ble_periodic_adv_report() argument
1114 sync_handle, tx_power, rssi, cte_type, data_status, data_len); in btm_ble_periodic_adv_report()
1117 for (int i = 0; i < data_len; i++) { in btm_ble_periodic_adv_report()
1801 uint8_t data_len; in btm_ble_is_discoverable() local
1803 adv_data, BTM_BLE_AD_TYPE_FLAG, &data_len); in btm_ble_is_discoverable()
1804 if (p_flag != NULL && data_len != 0) { in btm_ble_is_discoverable()
2143 uint8_t data_len, const uint8_t* data, in btm_ble_process_adv_pkt_cont() argument
2148 if (data_len != 0) tmp.insert(tmp.begin(), data, data + data_len); in btm_ble_process_adv_pkt_cont()
Dbtm_sco_hci.cc595 size_t data_len = decode_buf_data_len(); in find_msbc_pkt_head() local
596 while (rp < BTM_MSBC_PKT_LEN && data_len - rp >= BTM_MSBC_PKT_LEN) { in find_msbc_pkt_head()
1049 size_t data_len = decode_buf_data_len(); in find_lc3_pkt_head() local
1050 while (rp < BTM_LC3_PKT_LEN && data_len - rp >= BTM_LC3_PKT_LEN) { in find_lc3_pkt_head()
Dbtm_sco.cc483 size_t data_len = btm_pcm_buf_data_len(); in btm_route_sco_data() local
485 if (data_len) { in btm_route_sco_data()
490 if (bytes_remaining > data_len) { in btm_route_sco_data()
492 btm_pcm_buf + btm_pcm_buf_read_offset + data_len, in btm_route_sco_data()
497 std::copy(btm_pcm_buf, btm_pcm_buf + data_len - bytes_remaining, in btm_route_sco_data()
501 rc = encode((int16_t*)packet_buf, data_len); in btm_route_sco_data()
/packages/modules/Bluetooth/system/test/mock/
Dmock_stack_btm_iso.cc101 uint16_t data_len) { in SendIsoData() argument
103 pimpl_->SendIsoData(iso_handle, data, data_len); in SendIsoData()
Dmock_stack_btm_iso.h60 (uint16_t iso_handle, const uint8_t* data, uint16_t data_len));
Dmock_stack_hcic_hciblecmds.h291 std::function<void(uint8_t data_len, uint8_t* p_data)> body{
293 void operator()(uint8_t data_len, uint8_t* p_data) { in operator()
294 body(data_len, p_data); in operator()
Dmock_stack_hcic_hciblecmds.cc196 void btsnd_hcic_ble_set_adv_data(uint8_t data_len, uint8_t* p_data) { in btsnd_hcic_ble_set_adv_data() argument
198 test::mock::stack_hcic_hciblecmds::btsnd_hcic_ble_set_adv_data(data_len, in btsnd_hcic_ble_set_adv_data()
/packages/modules/Bluetooth/system/stack/hcic/
Dhciblecmds.cc154 void btsnd_hcic_ble_set_adv_data(uint8_t data_len, uint8_t* p_data) { in btsnd_hcic_ble_set_adv_data() argument
166 if (p_data != NULL && data_len > 0) { in btsnd_hcic_ble_set_adv_data()
167 if (data_len > HCIC_PARAM_SIZE_BLE_WRITE_ADV_DATA) in btsnd_hcic_ble_set_adv_data()
168 data_len = HCIC_PARAM_SIZE_BLE_WRITE_ADV_DATA; in btsnd_hcic_ble_set_adv_data()
170 UINT8_TO_STREAM(pp, data_len); in btsnd_hcic_ble_set_adv_data()
172 ARRAY_TO_STREAM(pp, p_data, data_len); in btsnd_hcic_ble_set_adv_data()
/packages/modules/Bluetooth/tools/rootcanal/py/
Dcontroller.py76 def send_hci(idc: c_int, data: POINTER(c_ubyte), data_len: c_size_t):
78 for n in range(data_len):
83 def send_ll(data: POINTER(c_ubyte), data_len: c_size_t, phy: c_int, tx_power: c_int):
85 for n in range(data_len):
/packages/modules/adb/tls/
Dtls_connection.cpp121 long data_len = 0; in BufferFromPEM() local
123 if (!PEM_read_bio(bio.get(), &name, &header, &data, &data_len)) { in BufferFromPEM()
130 auto ret = bssl::UniquePtr<CRYPTO_BUFFER>(CRYPTO_BUFFER_new(data, data_len, nullptr)); in BufferFromPEM()
/packages/modules/Bluetooth/system/stack/test/
Dbtm_iso_test.cc2106 constexpr uint8_t data_len = 108; in TEST_F() local
2109 .WillOnce([handle, data_len](BT_HDR* p_msg) { in TEST_F()
2115 ASSERT_EQ(p_msg->len, data_len + ((p_msg->layer_specific & in TEST_F()
2127 data_len + in TEST_F()
2138 ASSERT_EQ(msg_data_len, data_len); in TEST_F()
2142 std::vector<uint8_t> data_vec(data_len, 0); in TEST_F()
2157 constexpr uint8_t data_len = 108; in TEST_F() local
2160 .WillOnce([handle, data_len](BT_HDR* p_msg) { in TEST_F()
2166 ASSERT_EQ(p_msg->len, data_len + ((p_msg->layer_specific & in TEST_F()
2178 data_len + in TEST_F()
[all …]
/packages/modules/Virtualization/libs/libfdt/src/
Dlibfdt.rs250 let data_len = FdtRawResult::from(len).try_into()?; in get_property_by_offset() localVariable
253 let len = data_offset.checked_add(data_len).ok_or(FdtError::Internal)?; in get_property_by_offset()
262 if data_len != u32::from_be(prop.len).try_into().unwrap() { in get_property_by_offset()
/packages/modules/Bluetooth/system/stack/l2cap/
Dl2c_utils.cc756 uint16_t data_len, uint16_t rej_len) { in l2cu_send_peer_config_rej() argument
761 log::verbose("l2cu_send_peer_config_rej: data_len={}, rej_len={}", data_len, in l2cu_send_peer_config_rej()
806 p_data_end = p_data + data_len; in l2cu_send_peer_config_rej()
825 if ((cfg_len + L2CAP_CFG_OPTION_OVERHEAD) <= data_len) { in l2cu_send_peer_config_rej()
956 uint8_t* p_data, uint16_t data_len) { in l2cu_send_peer_echo_rsp() argument
983 if (data_len > maxlen) data_len = 0; in l2cu_send_peer_echo_rsp()
985 p_buf = l2cu_build_header(p_lcb, (uint16_t)(L2CAP_ECHO_RSP_LEN + data_len), in l2cu_send_peer_echo_rsp()
995 if (data_len) { in l2cu_send_peer_echo_rsp()
996 ARRAY_TO_STREAM(p, p_data, data_len); in l2cu_send_peer_echo_rsp()
/packages/modules/Bluetooth/system/stack/include/
Dbtm_iso_api.h170 uint16_t data_len);
Dbtm_ble_api.h390 uint8_t data_status, uint8_t data_len,

12