Home
last modified time | relevance | path

Searched refs:pp (Results 1 – 25 of 53) sorted by relevance

123

/packages/modules/Bluetooth/system/stack/hcic/
Dhcicmds.cc477 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_disconnect() local
482 UINT16_TO_STREAM(pp, HCI_DISCONNECT); in btsnd_hcic_disconnect()
483 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_DISCONNECT); in btsnd_hcic_disconnect()
484 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_disconnect()
485 UINT8_TO_STREAM(pp, reason); in btsnd_hcic_disconnect()
492 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_add_SCO_conn() local
497 UINT16_TO_STREAM(pp, HCI_ADD_SCO_CONNECTION); in btsnd_hcic_add_SCO_conn()
498 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_ADD_SCO_CONN); in btsnd_hcic_add_SCO_conn()
500 UINT16_TO_STREAM(pp, handle); in btsnd_hcic_add_SCO_conn()
501 UINT16_TO_STREAM(pp, packet_types); in btsnd_hcic_add_SCO_conn()
[all …]
Dhciblecmds.cc118 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_ble_write_adv_params() local
123 UINT16_TO_STREAM(pp, HCI_BLE_WRITE_ADV_PARAMS); in btsnd_hcic_ble_write_adv_params()
124 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_BLE_WRITE_ADV_PARAMS); in btsnd_hcic_ble_write_adv_params()
126 UINT16_TO_STREAM(pp, adv_int_min); in btsnd_hcic_ble_write_adv_params()
127 UINT16_TO_STREAM(pp, adv_int_max); in btsnd_hcic_ble_write_adv_params()
128 UINT8_TO_STREAM(pp, adv_type); in btsnd_hcic_ble_write_adv_params()
129 UINT8_TO_STREAM(pp, addr_type_own); in btsnd_hcic_ble_write_adv_params()
130 UINT8_TO_STREAM(pp, addr_type_dir); in btsnd_hcic_ble_write_adv_params()
131 BDADDR_TO_STREAM(pp, direct_bda); in btsnd_hcic_ble_write_adv_params()
132 UINT8_TO_STREAM(pp, channel_map); in btsnd_hcic_ble_write_adv_params()
[all …]
/packages/modules/Nfc/libnfc-nci/src/nfc/nci/
Dnci_hmsgs.cc49 uint8_t* pp; in nci_snd_tlv_parameter_generic_cmd() local
58 pp = (uint8_t*)(p + 1) + p->offset; in nci_snd_tlv_parameter_generic_cmd()
60 NCI_MSG_BLD_HDR0(pp, NCI_MT_CMD, NCI_GID_RF_MANAGE); in nci_snd_tlv_parameter_generic_cmd()
61 NCI_MSG_BLD_HDR1(pp, oid); in nci_snd_tlv_parameter_generic_cmd()
62 UINT8_TO_STREAM(pp, (uint8_t)(tlv_size + 1)); in nci_snd_tlv_parameter_generic_cmd()
79 UINT8_TO_STREAM(pp, num); in nci_snd_tlv_parameter_generic_cmd()
80 ARRAY_TO_STREAM(pp, p_param_tlvs, tlv_size); in nci_snd_tlv_parameter_generic_cmd()
97 uint8_t* pp; in nci_snd_core_reset() local
106 pp = (uint8_t*)(p + 1) + p->offset; in nci_snd_core_reset()
108 NCI_MSG_BLD_HDR0(pp, NCI_MT_CMD, NCI_GID_CORE); in nci_snd_core_reset()
[all …]
Dnci_hrcv.cc52 uint8_t *pp, len, op_code; in nci_proc_core_rsp() local
58 pp = p + 1; in nci_proc_core_rsp()
59 NCI_MSG_PRS_HDR1(pp, op_code); in nci_proc_core_rsp()
61 len = *pp++; in nci_proc_core_rsp()
66 nfc_ncif_proc_reset_rsp(pp, false); in nci_proc_core_rsp()
79 nfc_ncif_set_config_status(pp, len); in nci_proc_core_rsp()
87 nfc_ncif_report_conn_close_evt(*p_old, *pp); in nci_proc_core_rsp()
90 nfc_ncif_event_status(NFC_SET_POWER_SUB_STATE_REVT, *pp); in nci_proc_core_rsp()
111 uint8_t *pp, len, op_code; in nci_proc_core_ntf() local
117 pp = p + 1; in nci_proc_core_ntf()
[all …]
/packages/modules/Nfc/libnfc-nci/src/nfc/ndef/
Dndef_utils.cc913 uint8_t *p_prev_pl, *pp; in NDEF_MsgAppendPayload() local
918 pp = p_rec + 1; in NDEF_MsgAppendPayload()
921 type_len = *pp++; in NDEF_MsgAppendPayload()
925 prev_paylen = *pp++; in NDEF_MsgAppendPayload()
927 BE_STREAM_TO_UINT32(prev_paylen, pp); in NDEF_MsgAppendPayload()
931 id_len = *pp++; in NDEF_MsgAppendPayload()
935 p_prev_pl = pp + type_len + id_len; in NDEF_MsgAppendPayload()
950 pp = p_rec + 2; in NDEF_MsgAppendPayload()
954 shiftdown(pp + 1, (uint32_t)(*p_cur_size - (pp - p_msg) - 1), 3); in NDEF_MsgAppendPayload()
961 UINT32_TO_BE_STREAM(pp, new_paylen); in NDEF_MsgAppendPayload()
[all …]
/packages/modules/Nfc/libnfc-nci/src/nfa/hci/
Dnfa_hci_utils.cc52 tNFA_HCI_DYN_PIPE* pp = nfa_hci_cb.cfg.dyn_pipes; in nfa_hciu_find_pipe_by_pid() local
56 for (; xx < NFA_HCI_MAX_PIPE_CB; xx++, pp++) { in nfa_hciu_find_pipe_by_pid()
57 if (pp->pipe_id == pipe_id) return (pp); in nfa_hciu_find_pipe_by_pid()
159 tNFA_HCI_DYN_PIPE* pp = nfa_hci_cb.cfg.dyn_pipes; in nfa_hciu_count_open_pipes_on_gate() local
164 for (; xx < NFA_HCI_MAX_PIPE_CB; xx++, pp++) { in nfa_hciu_count_open_pipes_on_gate()
167 (pp->pipe_state == NFA_HCI_PIPE_OPENED)) in nfa_hciu_count_open_pipes_on_gate()
204 tNFA_HCI_DYN_PIPE* pp; in nfa_hciu_get_pipe_owner() local
207 pp = nfa_hciu_find_pipe_by_pid(pipe_id); in nfa_hciu_get_pipe_owner()
208 if (pp == nullptr) return (NFA_HANDLE_INVALID); in nfa_hciu_get_pipe_owner()
210 pg = nfa_hciu_find_gate_by_gid(pp->local_gate); in nfa_hciu_get_pipe_owner()
[all …]
Dnfa_hci_act.cc400 tNFA_HCI_DYN_PIPE* pp = nfa_hci_cb.cfg.dyn_pipes; in nfa_hci_api_get_gate_pipe_list() local
409 pp = nfa_hci_cb.cfg.dyn_pipes; in nfa_hci_api_get_gate_pipe_list()
412 for (yy = 0; yy < NFA_HCI_MAX_PIPE_CB; yy++, pp++) { in nfa_hci_api_get_gate_pipe_list()
413 if (pp->local_gate == pg->gate_id) in nfa_hci_api_get_gate_pipe_list()
415 *(tNFA_HCI_PIPE_INFO*)pp; in nfa_hci_api_get_gate_pipe_list()
422 for (xx = 0, pp = nfa_hci_cb.cfg.dyn_pipes; xx < NFA_HCI_MAX_PIPE_CB; in nfa_hci_api_get_gate_pipe_list()
423 xx++, pp++) { in nfa_hci_api_get_gate_pipe_list()
424 if (pp->pipe_id != 0 && pp->local_gate == NFA_HCI_CONNECTIVITY_GATE) { in nfa_hci_api_get_gate_pipe_list()
427 pp, sizeof(tNFA_HCI_PIPE_INFO)); in nfa_hci_api_get_gate_pipe_list()
428 } else if (pp->pipe_id != 0 && pp->local_gate == NFA_HCI_LOOP_BACK_GATE) { in nfa_hci_api_get_gate_pipe_list()
[all …]
Dnfa_hci_api.cc812 tNFA_HCI_DYN_PIPE* pp = nfa_hci_cb.cfg.dyn_pipes; in NFA_HciDebug() local
838 for (xx = 0; xx < NFA_HCI_MAX_PIPE_CB; xx++, pp++) { in NFA_HciDebug()
839 if (pp->pipe_id != 0) { in NFA_HciDebug()
843 __func__, xx, pp->pipe_id, pp->pipe_state, pp->local_gate, in NFA_HciDebug()
844 pp->dest_gate, pp->dest_host); in NFA_HciDebug()
/packages/modules/Bluetooth/system/stack/btm/
Dbtm_ble.cc143 uint8_t* pp = data; in read_phy_cb() local
144 STREAM_TO_UINT8(status, pp); in read_phy_cb()
145 STREAM_TO_UINT16(handle, pp); in read_phy_cb()
147 STREAM_TO_UINT8(tx_phy, pp); in read_phy_cb()
148 STREAM_TO_UINT8(rx_phy, pp); in read_phy_cb()
183 uint8_t* pp = data; in BTM_BleReadPhy() local
184 UINT16_TO_STREAM(pp, handle); in BTM_BleReadPhy()
225 uint8_t* pp = data; in BTM_BleSetPhy() local
226 UINT16_TO_STREAM(pp, handle); in BTM_BleSetPhy()
227 UINT8_TO_STREAM(pp, all_phys); in BTM_BleSetPhy()
[all …]
/packages/modules/Bluetooth/system/bta/has/
Dhas_ctp.cc148 auto* pp = value.data(); in ToCharacteristicValue() local
153 pp = value.data(); in ToCharacteristicValue()
154 UINT8_TO_STREAM(pp, static_cast<std::underlying_type_t<PresetCtpOpcode>>(opcode)); in ToCharacteristicValue()
155 UINT8_TO_STREAM(pp, index); in ToCharacteristicValue()
156 UINT8_TO_STREAM(pp, num_of_indices); in ToCharacteristicValue()
161 pp = value.data(); in ToCharacteristicValue()
162 UINT8_TO_STREAM(pp, static_cast<std::underlying_type_t<PresetCtpOpcode>>(opcode)); in ToCharacteristicValue()
163 UINT8_TO_STREAM(pp, index); in ToCharacteristicValue()
171 pp = value.data(); in ToCharacteristicValue()
172 UINT8_TO_STREAM(pp, static_cast<std::underlying_type_t<PresetCtpOpcode>>(opcode)); in ToCharacteristicValue()
[all …]
Dhas_preset.cc55 auto pp = value.data() + initial_offset; in ToCharacteristicValue() local
57 UINT8_TO_STREAM(pp, index_); in ToCharacteristicValue()
58 UINT8_TO_STREAM(pp, properties_); in ToCharacteristicValue()
59 ARRAY_TO_STREAM(pp, name_.c_str(), (int)name_.size()); in ToCharacteristicValue()
/packages/services/Telephony/testapps/TestRcsApp/aosp_test_rcsclient/src/com/android/libraries/rcs/simpleclient/protocol/msrp/
DMsrpParser.java227 int pp = 0; in readUnknownChunk() local
239 if (i == endOfChunkPattern[pp]) { in readUnknownChunk()
240 pp++; in readUnknownChunk()
242 pp = 1; in readUnknownChunk()
244 pp = 0; in readUnknownChunk()
249 if (pp == endOfChunkPattern.length) { in readUnknownChunk()
255 if (pp > 0) { in readUnknownChunk()
256 outputStream.write(bufferArray, 0, bufferArray.length - pp); in readUnknownChunk()
257 System.arraycopy(endOfChunkPattern, 0, bufferArray, 0, pp); in readUnknownChunk()
258 buffer.position(pp); in readUnknownChunk()
/packages/modules/Nfc/libnfc-nci/src/nfc/nfc/
Dnfc_vs.cc129 uint8_t* pp; in NFC_SendVsCommand() local
159 pp = (uint8_t*)(p_data + 1) + p_data->offset; in NFC_SendVsCommand()
160 NCI_MSG_BLD_HDR0(pp, NCI_MT_CMD, NCI_GID_PROP); in NFC_SendVsCommand()
161 NCI_MSG_BLD_HDR1(pp, oid); in NFC_SendVsCommand()
162 *pp = (uint8_t)p_data->len; in NFC_SendVsCommand()
Dnfc_ncif.cc139 uint8_t* pp; in nfc_ncif_send_data() local
214 pp = (uint8_t*)(p + 1) + p->offset; in nfc_ncif_send_data()
216 memcpy(pp, ps, ulen); in nfc_ncif_send_data()
227 pp = (uint8_t*)(p + 1) + p->offset; in nfc_ncif_send_data()
229 NCI_DATA_PBLD_HDR(pp, pbf, hdr0, ulen); in nfc_ncif_send_data()
989 uint8_t *pp, len_act; in nfc_ncif_proc_activate() local
1037 pp = p; in nfc_ncif_proc_activate()
1043 STREAM_TO_ARRAY(p_intf->intf_param.frame.param, pp, in nfc_ncif_proc_activate()
1074 pp = &p_pa_iso->ats_res[NCI_ATS_T0_INDEX]; in nfc_ncif_proc_activate()
1076 pp++; /* T0 */ in nfc_ncif_proc_activate()
[all …]
Dnfc_main.cc1092 uint8_t param_tlvs[4], *pp; in NFC_ConnCreate() local
1099 pp = param_tlvs; in NFC_ConnCreate()
1102 UINT8_TO_STREAM(pp, NCI_CON_CREATE_TAG_NFCEE_VAL); in NFC_ConnCreate()
1103 UINT8_TO_STREAM(pp, 2); in NFC_ConnCreate()
1104 UINT8_TO_STREAM(pp, id); in NFC_ConnCreate()
1105 UINT8_TO_STREAM(pp, protocol); in NFC_ConnCreate()
1109 UINT8_TO_STREAM(pp, NCI_CON_CREATE_TAG_RF_DISC_ID); in NFC_ConnCreate()
1110 UINT8_TO_STREAM(pp, 1); in NFC_ConnCreate()
1111 UINT8_TO_STREAM(pp, id); in NFC_ConnCreate()
/packages/modules/Bluetooth/system/stack/srvc/
Dsrvc_dis.cc160 uint8_t *pp = NULL, *p_str; in dis_c_cmpl_cback() local
177 pp = p_data->att_value.value; in dis_c_cmpl_cback()
185 STREAM_TO_UINT64(p_clcb->dis_value.system_id, pp); in dis_c_cmpl_cback()
192 STREAM_TO_UINT8(p_clcb->dis_value.pnp_id.vendor_id_src, pp); in dis_c_cmpl_cback()
193 STREAM_TO_UINT16(p_clcb->dis_value.pnp_id.vendor_id, pp); in dis_c_cmpl_cback()
194 STREAM_TO_UINT16(p_clcb->dis_value.pnp_id.product_id, pp); in dis_c_cmpl_cback()
195 STREAM_TO_UINT16(p_clcb->dis_value.pnp_id.product_version, pp); in dis_c_cmpl_cback()
/packages/modules/Nfc/libnfc-nci/src/nfa/ee/
Dnfa_ee_act.cc72 static void add_route_tech_proto_tlv(uint8_t** pp, uint8_t tlv_type, in add_route_tech_proto_tlv() argument
78 *(*pp)++ = tlv_type; in add_route_tech_proto_tlv()
79 *(*pp)++ = 3; in add_route_tech_proto_tlv()
80 *(*pp)++ = nfcee_id; in add_route_tech_proto_tlv()
81 *(*pp)++ = pwr_cfg; in add_route_tech_proto_tlv()
82 *(*pp)++ = tech_proto; in add_route_tech_proto_tlv()
85 static void add_route_aid_tlv(uint8_t** pp, uint8_t* pa, uint8_t nfcee_id, in add_route_aid_tlv() argument
89 *(*pp)++ = tag; in add_route_aid_tlv()
90 *(*pp)++ = len + 2; in add_route_aid_tlv()
91 *(*pp)++ = nfcee_id; in add_route_aid_tlv()
[all …]
/packages/modules/Bluetooth/system/test/headless/
Dget_options.cc68 char* pp = optarg; in ParseValue() local
72 string_list.push_back(std::string(pp)); in ParseValue()
73 pp = p + 1; in ParseValue()
77 if (pp != p) { in ParseValue()
78 string_list.push_back(std::string(pp)); in ParseValue()
/packages/modules/Bluetooth/system/stack/gap/
Dgap_ble.cc343 uint8_t* pp; in client_cmpl_cback() local
361 pp = p_data->att_value.value; in client_cmpl_cback()
365 STREAM_TO_UINT16(min, pp); in client_cmpl_cback()
366 STREAM_TO_UINT16(max, pp); in client_cmpl_cback()
367 STREAM_TO_UINT16(latency, pp); in client_cmpl_cback()
368 STREAM_TO_UINT16(tout, pp); in client_cmpl_cback()
376 len = (uint16_t)strlen((char*)pp); in client_cmpl_cback()
380 cl_op_cmpl(*p_clcb, true, len, pp); in client_cmpl_cback()
384 cl_op_cmpl(*p_clcb, true, 1, pp); in client_cmpl_cback()
388 cl_op_cmpl(*p_clcb, true, p_data->att_value.len, pp); in client_cmpl_cback()
/packages/modules/Bluetooth/system/gd/crypto_toolbox/
Daes_cmac.cc152 uint8_t* pp = p.data(); in cmac_generate_subkey() local
155 if ((pp[kOctet16Length - 1] & 0x80) != 0) { in cmac_generate_subkey()
157 leftshift_onebit(pp, k1.data()); in cmac_generate_subkey()
160 leftshift_onebit(pp, k1.data()); in cmac_generate_subkey()
/packages/modules/Nfc/libnfc-nci/tools/casimir/scripts/
Drf_packets.py28 def print_val(p: str, pp: str, name: str, align: int, typ, val):
45 n_pp = pp + (' ' * (align + 4))
56 val.show(prefix=pp)
64 n_p = pp + ('├── ' if idx != last else '└── ')
65 n_pp = pp + ('│ ' if idx != last else ' ')
80 pp = prefix + ('│ ' if idx != last else ' ')
83 print_val(p, pp, f.name, align, f.type, val)
/packages/modules/Bluetooth/system/bta/vc/
Dvc.cc493 uint8_t* pp = value; in OnVolumeControlStateReadOrNotified() local
494 STREAM_TO_UINT8(vol, pp); in OnVolumeControlStateReadOrNotified()
495 STREAM_TO_UINT8(mute, pp); in OnVolumeControlStateReadOrNotified()
496 STREAM_TO_UINT8(device->change_counter, pp); in OnVolumeControlStateReadOrNotified()
567 uint8_t* pp = value; in OnExtAudioOutStateChanged() local
568 STREAM_TO_UINT16(offset->offset, pp); in OnExtAudioOutStateChanged()
569 STREAM_TO_UINT8(offset->change_counter, pp); in OnExtAudioOutStateChanged()
590 uint8_t* pp = value; in OnExtAudioOutLocationChanged() local
591 STREAM_TO_UINT32(offset->location, pp); in OnExtAudioOutLocationChanged()
612 uint8_t* pp = value; in OnExtAudioInputStateChanged() local
[all …]
/packages/modules/Bluetooth/system/bta/hh/
Dbta_hh_le.cc1252 uint8_t* pp = value; in read_hid_info_cb() local
1254 STREAM_TO_UINT16(p_dev_cb->dscp_info.version, pp); in read_hid_info_cb()
1255 STREAM_TO_UINT8(p_dev_cb->dscp_info.ctry_code, pp); in read_hid_info_cb()
1256 STREAM_TO_UINT8(p_dev_cb->dscp_info.flag, pp); in read_hid_info_cb()
1292 uint8_t* pp = desc; in bta_hh_le_save_report_map() local
1293 STREAM_TO_ARRAY(p_srvc->rpt_map, pp, len); in bta_hh_le_save_report_map()
1327 uint8_t* pp = value; in read_ext_rpt_ref_desc_cb() local
1329 STREAM_TO_UINT16(p_dev_cb->hid_srvc.ext_rpt_ref, pp); in read_ext_rpt_ref_desc_cb()
1365 uint8_t* pp = value; in read_report_ref_desc_cb() local
1368 STREAM_TO_UINT8(rpt_id, pp); in read_report_ref_desc_cb()
[all …]
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/
DDirectoryListBot.java356 MotionEvent.PointerProperties[] pp = {new MotionEvent.PointerProperties()}; in getTestMotionEvent() local
357 pp[0].clear(); in getTestMotionEvent()
358 pp[0].id = 0; in getTestMotionEvent()
359 pp[0].toolType = toolType; in getTestMotionEvent()
373 pp, in getTestMotionEvent()
/packages/modules/Bluetooth/system/stack/l2cap/
Dl2c_utils.cc2311 uint8_t* pp = command; in l2cu_set_acl_priority_latency_brcm() local
2312 UINT16_TO_STREAM(pp, p_lcb->Handle()); in l2cu_set_acl_priority_latency_brcm()
2313 UINT8_TO_STREAM(pp, vs_param); in l2cu_set_acl_priority_latency_brcm()
2350 uint8_t* pp = command; in l2cu_set_acl_priority_latency_syna() local
2351 UINT16_TO_STREAM(pp, p_lcb->Handle()); in l2cu_set_acl_priority_latency_syna()
2352 UINT8_TO_STREAM(pp, vs_param); in l2cu_set_acl_priority_latency_syna()
2381 uint8_t* pp = command; in l2cu_set_acl_priority_unisoc() local
2382 UINT16_TO_STREAM(pp, p_lcb->Handle()); in l2cu_set_acl_priority_unisoc()
2383 UINT8_TO_STREAM(pp, vs_param); in l2cu_set_acl_priority_unisoc()
2461 uint8_t* pp = command; in l2cu_set_acl_latency_brcm() local
[all …]

123