/system/nfc/src/hal/include/ |
D | nfc_types.h | 72 #define UINT32_TO_STREAM(p, u32) \ argument 74 *(p)++ = (uint8_t)(u32); \ 75 *(p)++ = (uint8_t)((u32) >> 8); \ 76 *(p)++ = (uint8_t)((u32) >> 16); \ 77 *(p)++ = (uint8_t)((u32) >> 24); \ 79 #define UINT24_TO_STREAM(p, u24) \ argument 81 *(p)++ = (uint8_t)(u24); \ 82 *(p)++ = (uint8_t)((u24) >> 8); \ 83 *(p)++ = (uint8_t)((u24) >> 16); \ 85 #define UINT16_TO_STREAM(p, u16) \ argument [all …]
|
/system/nfc/src/static-lib-adapt/ |
D | ProtoDispBluetoothHci.c | 43 static void disp_sleepmode(uint8_t* p); 44 static void disp_sleepmode_evt(uint8_t* p); 69 void disp_sleepmode(uint8_t* p) { in disp_sleepmode() argument 72 int len = p[2]; in disp_sleepmode() 77 p += 3; in disp_sleepmode() 78 p_end_hci = p + len; in disp_sleepmode() 79 p = HCIDisp1Ext("Sleep_Mode", p, (*p <= 12) ? modes_str[*p] : ""); in disp_sleepmode() 80 p = HCIDisp1("Idle_Threshold_Host", p); in disp_sleepmode() 81 p = HCIDisp1("Idle_Threshold_HC", p); in disp_sleepmode() 82 p = HCIDisp1Ext("BT_WAKE_Active_Mode", p, in disp_sleepmode() [all …]
|
/system/nfc/src/nfc/nci/ |
D | nci_hmsgs.c | 43 NFC_HDR* p; in nci_snd_core_reset() local 46 p = NCI_GET_CMD_BUF(NCI_CORE_PARAM_SIZE_RESET); in nci_snd_core_reset() 47 if (p == NULL) return (NCI_STATUS_FAILED); in nci_snd_core_reset() 49 p->event = BT_EVT_TO_NFC_NCI; in nci_snd_core_reset() 50 p->len = NCI_MSG_HDR_SIZE + NCI_CORE_PARAM_SIZE_RESET; in nci_snd_core_reset() 51 p->offset = NCI_MSG_OFFSET_SIZE; in nci_snd_core_reset() 52 p->layer_specific = 0; in nci_snd_core_reset() 53 pp = (uint8_t*)(p + 1) + p->offset; in nci_snd_core_reset() 60 nfc_ncif_send_cmd(p); in nci_snd_core_reset() 74 NFC_HDR* p; in nci_snd_core_init() local [all …]
|
/system/bt/stack/include/ |
D | bt_types.h | 243 #define HCI_GET_CMD_HDR_OPCODE(p) \ argument 244 (uint16_t)((*((uint8_t*)((p) + 1) + (p)->offset) + \ 245 (*((uint8_t*)((p) + 1) + (p)->offset + 1) << 8))) 246 #define HCI_GET_CMD_HDR_PARAM_LEN(p) \ argument 247 (uint8_t)(*((uint8_t*)((p) + 1) + (p)->offset + 2)) 249 #define HCI_GET_EVT_HDR_OPCODE(p) \ argument 250 (uint8_t)(*((uint8_t*)((p) + 1) + (p)->offset)) 251 #define HCI_GET_EVT_HDR_PARAM_LEN(p) \ argument 252 (uint8_t)(*((uint8_t*)((p) + 1) + (p)->offset + 1)) 257 #define UINT64_TO_BE_STREAM(p, u64) \ argument [all …]
|
/system/sepolicy/tools/sepolicy-analyze/ |
D | neverallow.c | 25 char *p = *ptr; in read_typeset() local 35 while (p < end && isspace(*p)) in read_typeset() 36 p++; in read_typeset() 38 if (p == end) in read_typeset() 41 if (*p == '~') { in read_typeset() 45 p++; in read_typeset() 46 while (p < end && isspace(*p)) in read_typeset() 47 p++; in read_typeset() 48 if (p == end) in read_typeset() 52 if (*p == '{') { in read_typeset() [all …]
|
/system/bt/stack/btu/ |
D | btu_hcif.cc | 56 extern void btm_ble_test_command_complete(uint8_t* p); 61 static void btu_hcif_inquiry_comp_evt(uint8_t* p); 62 static void btu_hcif_inquiry_result_evt(uint8_t* p); 63 static void btu_hcif_inquiry_rssi_result_evt(uint8_t* p); 64 static void btu_hcif_extended_inquiry_result_evt(uint8_t* p); 66 static void btu_hcif_connection_comp_evt(uint8_t* p); 67 static void btu_hcif_connection_request_evt(uint8_t* p); 68 static void btu_hcif_disconnection_comp_evt(uint8_t* p); 69 static void btu_hcif_authentication_comp_evt(uint8_t* p); 70 static void btu_hcif_rmt_name_request_comp_evt(uint8_t* p, uint16_t evt_len); [all …]
|
/system/bt/stack/avdt/ |
D | avdt_defs.h | 155 #define AVDT_MSG_PRS_HDR(p, lbl, pkt, msg) \ argument 157 (lbl) = (*(p) >> 4) & 0x0F; \ 158 (pkt) = (*(p) >> 2) & 0x03; \ 159 (msg) = *(p)++ & 0x03; \ 162 #define AVDT_MSG_PRS_DISC(p, seid, in_use, type, tsep) \ argument 164 (seid) = *(p) >> 2; \ 165 (in_use) = (*(p)++ >> 1) & 0x01; \ 166 (type) = (*(p) >> 4) & 0x0F; \ 167 (tsep) = (*(p)++ >> 3) & 0x01; \ 170 #define AVDT_MSG_PRS_SIG(p, sig) \ argument [all …]
|
D | avdt_msg.cc | 57 typedef void (*tAVDT_MSG_BLD)(uint8_t** p, tAVDT_MSG* p_msg); 60 typedef uint8_t (*tAVDT_MSG_PRS)(tAVDT_MSG* p_msg, uint8_t* p, uint16_t len); 66 static void avdt_msg_bld_none(uint8_t** p, tAVDT_MSG* p_msg); 67 static void avdt_msg_bld_single(uint8_t** p, tAVDT_MSG* p_msg); 68 static void avdt_msg_bld_setconfig_cmd(uint8_t** p, tAVDT_MSG* p_msg); 69 static void avdt_msg_bld_reconfig_cmd(uint8_t** p, tAVDT_MSG* p_msg); 70 static void avdt_msg_bld_multi(uint8_t** p, tAVDT_MSG* p_msg); 71 static void avdt_msg_bld_security_cmd(uint8_t** p, tAVDT_MSG* p_msg); 72 static void avdt_msg_bld_discover_rsp(uint8_t** p, tAVDT_MSG* p_msg); 73 static void avdt_msg_bld_svccap(uint8_t** p, tAVDT_MSG* p_msg); [all …]
|
/system/bt/stack/hcic/ |
D | hcicmds.cc | 40 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_inquiry() local 41 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_inquiry() 43 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_INQUIRY; in btsnd_hcic_inquiry() 44 p->offset = 0; in btsnd_hcic_inquiry() 53 btu_hcif_send_cmd(LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_inquiry() 57 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_inq_cancel() local 58 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_inq_cancel() 60 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_INQ_CANCEL; in btsnd_hcic_inq_cancel() 61 p->offset = 0; in btsnd_hcic_inq_cancel() 65 btu_hcif_send_cmd(LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_inq_cancel() [all …]
|
D | hciblecmds.cc | 37 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_ble_set_local_used_feat() local 38 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_ble_set_local_used_feat() 40 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_SET_USED_FEAT_CMD; in btsnd_hcic_ble_set_local_used_feat() 41 p->offset = 0; in btsnd_hcic_ble_set_local_used_feat() 46 btu_hcif_send_cmd(LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_ble_set_local_used_feat() 50 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_ble_set_random_addr() local 51 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_ble_set_random_addr() 53 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_WRITE_RANDOM_ADDR_CMD; in btsnd_hcic_ble_set_random_addr() 54 p->offset = 0; in btsnd_hcic_ble_set_random_addr() 61 btu_hcif_send_cmd(LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_ble_set_random_addr() [all …]
|
/system/extras/simpleperf/ |
D | record.cpp | 59 void MoveToBinaryFormat(const RecordHeader& data, char*& p) { in MoveToBinaryFormat() argument 60 data.MoveToBinaryFormat(p); in MoveToBinaryFormat() 74 void SampleId::ReadFromBinaryFormat(const perf_event_attr& attr, const char* p, in ReadFromBinaryFormat() argument 80 MoveFromBinaryFormat(tid_data, p); in ReadFromBinaryFormat() 83 MoveFromBinaryFormat(time_data, p); in ReadFromBinaryFormat() 86 MoveFromBinaryFormat(id_data, p); in ReadFromBinaryFormat() 89 MoveFromBinaryFormat(stream_id_data, p); in ReadFromBinaryFormat() 92 MoveFromBinaryFormat(cpu_data, p); in ReadFromBinaryFormat() 95 MoveFromBinaryFormat(id_data, p); in ReadFromBinaryFormat() 98 CHECK_LE(p, end); in ReadFromBinaryFormat() [all …]
|
/system/bt/stack/l2cap/ |
D | l2c_main.cc | 46 static void process_l2cap_cmd(tL2C_LCB* p_lcb, uint8_t* p, uint16_t pkt_len); 64 uint8_t* p = (uint8_t*)(p_msg + 1) + p_msg->offset; in l2c_rcv_acl_data() local 73 STREAM_TO_UINT16(handle, p); in l2c_rcv_acl_data() 88 STREAM_TO_UINT16(hci_len, p); in l2c_rcv_acl_data() 89 STREAM_TO_UINT16(l2cap_len, p); in l2c_rcv_acl_data() 90 STREAM_TO_UINT16(rcv_cid, p); in l2c_rcv_acl_data() 91 STREAM_TO_UINT8(cmd_code, p); in l2c_rcv_acl_data() 127 STREAM_TO_UINT16(hci_len, p); in l2c_rcv_acl_data() 138 STREAM_TO_UINT16(l2cap_len, p); in l2c_rcv_acl_data() 139 STREAM_TO_UINT16(rcv_cid, p); in l2c_rcv_acl_data() [all …]
|
/system/bt/stack/sdp/ |
D | sdp_discovery.cc | 53 static uint8_t* save_attr_seq(tCONN_CB* p_ccb, uint8_t* p, uint8_t* p_msg_end); 56 static uint8_t* add_attr(uint8_t* p, uint8_t* p_end, tSDP_DISCOVERY_DB* p_db, 121 uint8_t *p, *p_start, *p_param_len; in sdp_snd_service_search_req() local 127 p = p_start = (uint8_t*)(p_cmd + 1) + L2CAP_MIN_OFFSET; in sdp_snd_service_search_req() 130 UINT8_TO_BE_STREAM(p, SDP_PDU_SERVICE_SEARCH_REQ); in sdp_snd_service_search_req() 131 UINT16_TO_BE_STREAM(p, p_ccb->transaction_id); in sdp_snd_service_search_req() 135 p_param_len = p; in sdp_snd_service_search_req() 136 p += 2; in sdp_snd_service_search_req() 140 p = sdpu_build_uuid_seq(p, 1, in sdp_snd_service_search_req() 143 p = sdpu_build_uuid_seq(p, p_ccb->p_db->num_uuid_filters, in sdp_snd_service_search_req() [all …]
|
/system/extras/showslab/ |
D | showslab.c | 62 struct slab_info *head = NULL, *p = NULL, *prev = NULL; in get_slabinfo() local 97 p = malloc(sizeof (struct slab_info)); in get_slabinfo() 98 if (!p) { in get_slabinfo() 104 head = prev = p; in get_slabinfo() 108 slabdata %lu %lu %*d", p->name, in get_slabinfo() 109 &p->nr_active_objs, &p->nr_objs, in get_slabinfo() 110 &p->obj_size, &p->objs_per_slab, in get_slabinfo() 113 &p->nr_slabs); in get_slabinfo() 121 if (p->obj_size < stats->min_obj_size) in get_slabinfo() 122 stats->min_obj_size = p->obj_size; in get_slabinfo() [all …]
|
/system/nfc/src/nfc/tags/ |
D | rw_t4t.c | 154 uint8_t* p; in rw_t4t_get_hw_version() local 164 p = (uint8_t*)(p_c_apdu + 1) + p_c_apdu->offset; in rw_t4t_get_hw_version() 166 UINT8_TO_BE_STREAM(p, T4T_CMD_DES_CLASS); in rw_t4t_get_hw_version() 167 UINT8_TO_BE_STREAM(p, T4T_CMD_INS_GET_HW_VERSION); in rw_t4t_get_hw_version() 168 UINT16_TO_BE_STREAM(p, 0x0000); in rw_t4t_get_hw_version() 169 UINT8_TO_BE_FIELD(p, 0x00); in rw_t4t_get_hw_version() 191 uint8_t* p; in rw_t4t_get_sw_version() local 201 p = (uint8_t*)(p_c_apdu + 1) + p_c_apdu->offset; in rw_t4t_get_sw_version() 203 UINT8_TO_BE_STREAM(p, T4T_CMD_DES_CLASS); in rw_t4t_get_sw_version() 204 UINT8_TO_BE_STREAM(p, T4T_ADDI_FRAME_RESP); in rw_t4t_get_sw_version() [all …]
|
D | tags_int.c | 112 const tT1T_CMD_RSP_INFO *p_ret = NULL, *p; in t1t_cmd_to_rsp_info() local 115 for (xx = 0, p = &t1t_cmd_rsp_infos[0]; xx < T1T_MAX_NUM_OPCODES; xx++, p++) { in t1t_cmd_to_rsp_info() 116 if (opcode == p->opcode) { in t1t_cmd_to_rsp_info() 118 p_ret = p; in t1t_cmd_to_rsp_info() 136 const tT1T_INIT_TAG *p_ret = NULL, *p; in t1t_tag_init_data() local 139 for (xx = 0, p = &t1t_init_content[0]; xx < T1T_MAX_TAG_MODELS; xx++, p++) { in t1t_tag_init_data() 140 if (tag_model == p->tag_model) { in t1t_tag_init_data() 141 p_ret = p; in t1t_tag_init_data() 161 const tT2T_INIT_TAG *p_ret = NULL, *p; in t2t_tag_init_data() local 164 for (xx = 0, p = &t2t_init_content[0]; xx < T2T_MAX_TAG_MODELS; xx++, p++) { in t2t_tag_init_data() [all …]
|
/system/bt/stack/btm/ |
D | btm_sco.cc | 74 tSCO_CONN* p; in btm_sco_flush_sco_data() local 78 p = &btm_cb.sco_cb.sco_db[sco_inx]; in btm_sco_flush_sco_data() 79 while ((p_buf = (BT_HDR*)fixed_queue_try_dequeue(p->xmit_data_q)) != NULL) in btm_sco_flush_sco_data() 249 uint8_t* p = (uint8_t*)(p_msg + 1) + p_msg->offset; 254 STREAM_TO_UINT16(handle, p); 258 STREAM_TO_UINT8(pkt_size, p); 303 uint8_t* p; 319 p = (uint8_t*)(p_buf + 1) + p_buf->offset; 321 UINT16_TO_STREAM(p, p_ccb->hci_handle); 329 UINT8_TO_STREAM(p, (uint8_t)p_buf->len); [all …]
|
D | btm_acl.cc | 94 tACL_CONN* p = &btm_cb.acl_db[0]; in btm_bda_to_acl() local 96 for (xx = 0; xx < MAX_L2CAP_LINKS; xx++, p++) { in btm_bda_to_acl() 97 if ((p->in_use) && p->remote_addr == bda && p->transport == transport) { in btm_bda_to_acl() 99 return (p); in btm_bda_to_acl() 118 tACL_CONN* p = &btm_cb.acl_db[0]; in btm_handle_to_acl_index() local 121 for (xx = 0; xx < MAX_L2CAP_LINKS; xx++, p++) { in btm_handle_to_acl_index() 122 if ((p->in_use) && (p->hci_handle == hci_handle)) { in btm_handle_to_acl_index() 192 tACL_CONN* p; in btm_acl_created() local 198 p = btm_bda_to_acl(bda, transport); in btm_acl_created() 199 if (p != (tACL_CONN*)NULL) { in btm_acl_created() [all …]
|
D | btm_ble_adv_filter.cc | 188 uint8_t* p, uint16_t evt_len) { in btm_flt_update_cb() argument 195 STREAM_TO_UINT8(status, p); in btm_flt_update_cb() 196 STREAM_TO_UINT8(op_subcode, p); in btm_flt_update_cb() 197 STREAM_TO_UINT8(action, p); in btm_flt_update_cb() 198 STREAM_TO_UINT8(num_avail, p); in btm_flt_update_cb() 323 uint8_t* p = param; in BTM_LE_PF_local_name() local 324 UINT8_TO_STREAM(p, BTM_BLE_META_PF_LOCAL_NAME); in BTM_LE_PF_local_name() 325 UINT8_TO_STREAM(p, action); in BTM_LE_PF_local_name() 326 UINT8_TO_STREAM(p, filt_index); in BTM_LE_PF_local_name() 330 ARRAY_TO_STREAM(p, name.data(), size); in BTM_LE_PF_local_name() [all …]
|
/system/core/adb/ |
D | transport_usb.cpp | 51 static int UsbReadPayload(usb_handle* h, apacket* p) { in UsbReadPayload() argument 52 D("UsbReadPayload(%d)", p->msg.data_length); in UsbReadPayload() 55 CHECK(sizeof(p->data) % usb_packet_size == 0); in UsbReadPayload() 60 size_t len = p->msg.data_length; in UsbReadPayload() 65 CHECK(len <= sizeof(p->data)); in UsbReadPayload() 66 return usb_read(h, &p->data, len); in UsbReadPayload() 69 static int remote_read(apacket* p, atransport* t) { in remote_read() argument 70 int n = UsbReadMessage(t->usb, &p->msg); in remote_read() 75 if (static_cast<size_t>(n) != sizeof(p->msg) || !check_header(p, t)) { in remote_read() 82 if (p->msg.command != A_CNXN && p->msg.command != A_AUTH) { in remote_read() [all …]
|
/system/chre/apps/ash_world/ |
D | ash_world.cc | 124 struct ashCalParams p; in handleTimerEvent() local 126 success = ashLoadCalibrationParams(sensor, ASH_CAL_STORAGE_ASH, &p); in handleTimerEvent() 131 LOGI("offset %f %f %f", p.offset[0], p.offset[1], p.offset[2]); in handleTimerEvent() 132 LOGI("offsetTempCelsius %f", p.offsetTempCelsius); in handleTimerEvent() 133 LOGI("tempSensitivity %f %f %f", p.tempSensitivity[0], in handleTimerEvent() 134 p.tempSensitivity[1], p.tempSensitivity[2]); in handleTimerEvent() 135 LOGI("tempIntercept %f %f %f", p.tempIntercept[0], in handleTimerEvent() 136 p.tempIntercept[1], p.tempIntercept[2]); in handleTimerEvent() 137 LOGI("scaleFactor %f %f %f", p.scaleFactor[0], in handleTimerEvent() 138 p.scaleFactor[1], p.scaleFactor[2]); in handleTimerEvent() [all …]
|
/system/bt/tools/mcap_tool/ |
D | mcap_tool.cc | 113 static void process_cmd(char* p, bool is_job); 217 void skip_blanks(char** p) { in skip_blanks() argument 218 while (**p == ' ') (*p)++; in skip_blanks() 221 uint32_t get_int(char** p, int DefaultValue) { in get_int() argument 226 skip_blanks(p); in get_int() 228 while (((**p) <= '9' && (**p) >= '0')) { in get_int() 229 Value = Value * 10 + (**p) - '0'; in get_int() 231 (*p)++; in get_int() 240 int get_signed_int(char** p, int DefaultValue) { in get_signed_int() argument 246 skip_blanks(p); in get_signed_int() [all …]
|
/system/bt/stack/avrc/ |
D | avrc_pars_tg.cc | 47 uint8_t* p = p_msg->p_vendor_data; in avrc_ctrl_pars_vendor_cmd() local 48 p_result->pdu = *p++; in avrc_ctrl_pars_vendor_cmd() 55 p++; /* skip the reserved byte */ in avrc_ctrl_pars_vendor_cmd() 57 BE_STREAM_TO_UINT16(len, p); in avrc_ctrl_pars_vendor_cmd() 69 BE_STREAM_TO_UINT8(p_result->volume.volume, p); in avrc_ctrl_pars_vendor_cmd() 75 BE_STREAM_TO_UINT8(p_result->reg_notif.event_id, p); in avrc_ctrl_pars_vendor_cmd() 76 BE_STREAM_TO_UINT32(p_result->reg_notif.param, p); in avrc_ctrl_pars_vendor_cmd() 101 uint8_t* p; in avrc_pars_vendor_cmd() local 114 p = p_msg->p_vendor_data; in avrc_pars_vendor_cmd() 115 p_result->pdu = *p++; in avrc_pars_vendor_cmd() [all …]
|
/system/nfc/src/nfc/llcp/ |
D | llcp_util.c | 46 uint8_t param_type, param_len, *p = p_bytes; in llcp_util_parse_link_params() local 49 BE_STREAM_TO_UINT8(param_type, p); in llcp_util_parse_link_params() 50 BE_STREAM_TO_UINT8(param_len, p); in llcp_util_parse_link_params() 65 BE_STREAM_TO_UINT8(llcp_cb.lcb.peer_version, p); in llcp_util_parse_link_params() 75 BE_STREAM_TO_UINT16(llcp_cb.lcb.peer_miu, p); in llcp_util_parse_link_params() 87 BE_STREAM_TO_UINT16(llcp_cb.lcb.peer_wks, p); in llcp_util_parse_link_params() 97 BE_STREAM_TO_UINT8(llcp_cb.lcb.peer_lto, p); in llcp_util_parse_link_params() 108 BE_STREAM_TO_UINT8(llcp_cb.lcb.peer_opt, p); in llcp_util_parse_link_params() 115 p += param_len; in llcp_util_parse_link_params() 269 uint8_t* p; in llcp_util_send_ui() local [all …]
|
/system/nfc/halimpl/pn54x/tml/ |
D | phDal4Nfc_messageQueueLib.c | 118 phDal4Nfc_message_queue_item_t* p; in phDal4Nfc_msgctl() local 126 p = pQueue->pItems; in phDal4Nfc_msgctl() 127 while (p->pNext != NULL) { in phDal4Nfc_msgctl() 128 p = p->pNext; in phDal4Nfc_msgctl() 130 while (p->pPrev != NULL) { in phDal4Nfc_msgctl() 131 p = p->pPrev; in phDal4Nfc_msgctl() 132 free(p->pNext); in phDal4Nfc_msgctl() 133 p->pNext = NULL; in phDal4Nfc_msgctl() 135 free(p); in phDal4Nfc_msgctl() 163 phDal4Nfc_message_queue_item_t* p; in phDal4Nfc_msgsnd() local [all …]
|