/system/nfc/src/include/ |
D | nfc_types.h | 50 #define UINT32_TO_STREAM(p, u32) \ argument 52 *(p)++ = (uint8_t)(u32); \ 53 *(p)++ = (uint8_t)((u32) >> 8); \ 54 *(p)++ = (uint8_t)((u32) >> 16); \ 55 *(p)++ = (uint8_t)((u32) >> 24); \ 57 #define UINT16_TO_STREAM(p, u16) \ argument 59 *(p)++ = (uint8_t)(u16); \ 60 *(p)++ = (uint8_t)((u16) >> 8); \ 62 #define UINT8_TO_STREAM(p, u8) \ argument 63 { *(p)++ = (uint8_t)(u8); } [all …]
|
/system/nfc/src/nfc/nci/ |
D | nci_hmsgs.cc | 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 | 57 extern void btm_ble_test_command_complete(uint8_t* p); 62 static void btu_hcif_inquiry_comp_evt(uint8_t* p); 63 static void btu_hcif_inquiry_result_evt(uint8_t* p); 64 static void btu_hcif_inquiry_rssi_result_evt(uint8_t* p); 65 static void btu_hcif_extended_inquiry_result_evt(uint8_t* p); 67 static void btu_hcif_connection_comp_evt(uint8_t* p); 68 static void btu_hcif_connection_request_evt(uint8_t* p); 69 static void btu_hcif_disconnection_comp_evt(uint8_t* p); 70 static void btu_hcif_authentication_comp_evt(uint8_t* p); 71 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/extras/simpleperf/ |
D | record.cpp | 64 void MoveToBinaryFormat(const RecordHeader& data, char*& p) { in MoveToBinaryFormat() argument 65 data.MoveToBinaryFormat(p); in MoveToBinaryFormat() 79 void SampleId::ReadFromBinaryFormat(const perf_event_attr& attr, const char* p, in ReadFromBinaryFormat() argument 85 MoveFromBinaryFormat(tid_data, p); in ReadFromBinaryFormat() 88 MoveFromBinaryFormat(time_data, p); in ReadFromBinaryFormat() 91 MoveFromBinaryFormat(id_data, p); in ReadFromBinaryFormat() 94 MoveFromBinaryFormat(stream_id_data, p); in ReadFromBinaryFormat() 97 MoveFromBinaryFormat(cpu_data, p); in ReadFromBinaryFormat() 100 MoveFromBinaryFormat(id_data, p); in ReadFromBinaryFormat() 103 CHECK_LE(p, end); in ReadFromBinaryFormat() [all …]
|
/system/bt/stack/hcic/ |
D | hcicmds.cc | 39 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_inquiry() local 40 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_inquiry() 42 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_INQUIRY; in btsnd_hcic_inquiry() 43 p->offset = 0; in btsnd_hcic_inquiry() 52 btu_hcif_send_cmd(LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_inquiry() 56 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_inq_cancel() local 57 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_inq_cancel() 59 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_INQ_CANCEL; in btsnd_hcic_inq_cancel() 60 p->offset = 0; in btsnd_hcic_inq_cancel() 64 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/bt/stack/test/ |
D | stack_smp_test.cc | 231 Point p; in TEST() local 237 p.x[7] = 0x20b003d2; in TEST() 238 p.x[6] = 0xf297be2c; in TEST() 239 p.x[5] = 0x5e2c83a7; in TEST() 240 p.x[4] = 0xe9f9a5b9; in TEST() 241 p.x[3] = 0xeff49111; in TEST() 242 p.x[2] = 0xacf4fddb; in TEST() 243 p.x[1] = 0xcc030148; in TEST() 244 p.x[0] = 0x0e359de6; in TEST() 246 p.y[7] = 0xdc809c49; in TEST() [all …]
|
/system/bt/stack/sdp/ |
D | sdp_discovery.cc | 55 static uint8_t* save_attr_seq(tCONN_CB* p_ccb, uint8_t* p, uint8_t* p_msg_end); 58 static uint8_t* add_attr(uint8_t* p, uint8_t* p_end, tSDP_DISCOVERY_DB* p_db, 124 uint8_t *p, *p_start, *p_param_len; in sdp_snd_service_search_req() local 130 p = p_start = (uint8_t*)(p_cmd + 1) + L2CAP_MIN_OFFSET; in sdp_snd_service_search_req() 133 UINT8_TO_BE_STREAM(p, SDP_PDU_SERVICE_SEARCH_REQ); in sdp_snd_service_search_req() 134 UINT16_TO_BE_STREAM(p, p_ccb->transaction_id); in sdp_snd_service_search_req() 138 p_param_len = p; in sdp_snd_service_search_req() 139 p += 2; in sdp_snd_service_search_req() 143 p = sdpu_build_uuid_seq(p, 1, in sdp_snd_service_search_req() 146 p = sdpu_build_uuid_seq(p, p_ccb->p_db->num_uuid_filters, in sdp_snd_service_search_req() [all …]
|
D | sdp_db.cc | 44 static bool find_uuid_in_seq(uint8_t* p, uint32_t seq_len, uint8_t* p_his_uuid, 109 static bool find_uuid_in_seq(uint8_t* p, uint32_t seq_len, uint8_t* p_uuid, in find_uuid_in_seq() argument 111 uint8_t* p_end = p + seq_len; in find_uuid_in_seq() 118 while (p < p_end) { in find_uuid_in_seq() 119 type = *p++; in find_uuid_in_seq() 120 p = sdpu_get_len_from_type(p, p_end, type, &len); in find_uuid_in_seq() 121 if (p == NULL || (p + len) > p_end) { in find_uuid_in_seq() 127 if (sdpu_compare_uuid_arrays(p, len, p_uuid, uuid_len)) return (true); in find_uuid_in_seq() 129 if (find_uuid_in_seq(p, len, p_uuid, uuid_len, nest_level + 1)) in find_uuid_in_seq() 132 p = p + len; in find_uuid_in_seq() [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 68 STREAM_TO_UINT16(handle, p); in l2c_rcv_acl_data() 81 STREAM_TO_UINT16(hci_len, p); in l2c_rcv_acl_data() 90 STREAM_TO_UINT16(l2cap_len, p); in l2c_rcv_acl_data() 91 STREAM_TO_UINT16(rcv_cid, p); in l2c_rcv_acl_data() 100 STREAM_TO_UINT8(cmd_code, p); in l2c_rcv_acl_data() 169 process_l2cap_cmd(p_lcb, p, l2cap_len); in l2c_rcv_acl_data() 177 STREAM_TO_UINT16(psm, p); in l2c_rcv_acl_data() 184 l2cble_process_sig_cmd(p_lcb, p, l2cap_len); in l2c_rcv_acl_data() [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/bt/stack/btm/ |
D | btm_sco.cc | 438 tSCO_CONN* p = &btm_cb.sco_cb.sco_db[0]; in BTM_CreateSco() local 461 for (xx = 0; xx < BTM_MAX_SCO_LINKS; xx++, p++) { in BTM_CreateSco() 462 if (((p->state == SCO_ST_CONNECTING) || (p->state == SCO_ST_LISTENING) || in BTM_CreateSco() 463 (p->state == SCO_ST_PEND_UNPARK)) && in BTM_CreateSco() 464 (p->esco.data.bd_addr == *remote_bda)) { in BTM_CreateSco() 466 << *remote_bda << ", at state " << unsigned(p->state); in BTM_CreateSco() 472 for (xx = 0; xx < BTM_MAX_SCO_LINKS; xx++, p++) { in BTM_CreateSco() 473 if ((p->state == SCO_ST_LISTENING) && (!p->rem_bd_known)) { in BTM_CreateSco() 483 for (xx = 0, p = &btm_cb.sco_cb.sco_db[0]; xx < BTM_MAX_SCO_LINKS; in BTM_CreateSco() 484 xx++, p++) { in BTM_CreateSco() [all …]
|
D | btm_acl.cc | 96 tACL_CONN* p = &btm_cb.acl_db[0]; in btm_bda_to_acl() local 98 for (xx = 0; xx < MAX_L2CAP_LINKS; xx++, p++) { in btm_bda_to_acl() 99 if ((p->in_use) && p->remote_addr == bda && p->transport == transport) { in btm_bda_to_acl() 101 return (p); in btm_bda_to_acl() 120 tACL_CONN* p = &btm_cb.acl_db[0]; in btm_handle_to_acl_index() local 123 for (xx = 0; xx < MAX_L2CAP_LINKS; xx++, p++) { in btm_handle_to_acl_index() 124 if ((p->in_use) && (p->hci_handle == hci_handle)) { in btm_handle_to_acl_index() 194 tACL_CONN* p; in btm_acl_created() local 201 p = btm_bda_to_acl(bda, transport); in btm_acl_created() 202 if (p != (tACL_CONN*)NULL) { in btm_acl_created() [all …]
|
/system/core/adb/ |
D | transport_usb.cpp | 61 static int UsbReadPayload(usb_handle* h, apacket* p) { in UsbReadPayload() argument 62 D("UsbReadPayload(%d)", p->msg.data_length); in UsbReadPayload() 64 if (p->msg.data_length > MAX_PAYLOAD) { in UsbReadPayload() 74 size_t len = p->msg.data_length; in UsbReadPayload() 80 p->payload.resize(len); in UsbReadPayload() 81 int rc = usb_read(h, &p->payload[0], p->payload.size()); in UsbReadPayload() 82 if (rc != static_cast<int>(p->msg.data_length)) { in UsbReadPayload() 86 p->payload.resize(rc); in UsbReadPayload() 89 p->payload.resize(p->msg.data_length); in UsbReadPayload() 90 return usb_read(h, &p->payload[0], p->payload.size()); in UsbReadPayload() [all …]
|
/system/nfc/src/nfc/tags/ |
D | rw_t4t.cc | 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.cc | 108 const tT1T_CMD_RSP_INFO *p_ret = NULL, *p; in t1t_cmd_to_rsp_info() local 111 for (xx = 0, p = &t1t_cmd_rsp_infos[0]; xx < T1T_MAX_NUM_OPCODES; xx++, p++) { in t1t_cmd_to_rsp_info() 112 if (opcode == p->opcode) { in t1t_cmd_to_rsp_info() 114 p_ret = p; in t1t_cmd_to_rsp_info() 132 const tT1T_INIT_TAG *p_ret = NULL, *p; in t1t_tag_init_data() local 135 for (xx = 0, p = &t1t_init_content[0]; xx < T1T_MAX_TAG_MODELS; xx++, p++) { in t1t_tag_init_data() 136 if (tag_model == p->tag_model) { in t1t_tag_init_data() 137 p_ret = p; in t1t_tag_init_data() 157 const tT2T_INIT_TAG *p_ret = NULL, *p; in t2t_tag_init_data() local 160 for (xx = 0, p = &t2t_init_content[0]; xx < T2T_MAX_TAG_MODELS; xx++, p++) { in t2t_tag_init_data() [all …]
|
/system/chre/apps/ash_world/ |
D | ash_world.cc | 145 struct ashCalParams p; in handleTimerEvent() local 147 success = ashLoadCalibrationParams(sensor, ASH_CAL_STORAGE_ASH, &p); in handleTimerEvent() 152 LOGI("offset %f %f %f", p.offset[0], p.offset[1], p.offset[2]); in handleTimerEvent() 153 LOGI("offsetTempCelsius %f", p.offsetTempCelsius); in handleTimerEvent() 154 LOGI("tempSensitivity %f %f %f", p.tempSensitivity[0], in handleTimerEvent() 155 p.tempSensitivity[1], p.tempSensitivity[2]); in handleTimerEvent() 156 LOGI("tempIntercept %f %f %f", p.tempIntercept[0], in handleTimerEvent() 157 p.tempIntercept[1], p.tempIntercept[2]); in handleTimerEvent() 158 LOGI("scaleFactor %f %f %f", p.scaleFactor[0], in handleTimerEvent() 159 p.scaleFactor[1], p.scaleFactor[2]); in handleTimerEvent() [all …]
|
/system/bt/tools/mcap_tool/ |
D | mcap_tool.cc | 109 static void process_cmd(char* p, bool is_job); 213 void skip_blanks(char** p) { in skip_blanks() argument 214 while (**p == ' ') (*p)++; in skip_blanks() 217 uint32_t get_int(char** p, int DefaultValue) { in get_int() argument 222 skip_blanks(p); in get_int() 224 while (((**p) <= '9' && (**p) >= '0')) { in get_int() 225 Value = Value * 10 + (**p) - '0'; in get_int() 227 (*p)++; in get_int() 236 int get_signed_int(char** p, int DefaultValue) { in get_signed_int() argument 242 skip_blanks(p); in get_signed_int() [all …]
|
/system/bt/stack/avrc/ |
D | avrc_pars_tg.cc | 46 uint8_t* p = p_msg->p_vendor_data; in avrc_ctrl_pars_vendor_cmd() local 47 p_result->pdu = *p++; in avrc_ctrl_pars_vendor_cmd() 54 p++; /* skip the reserved byte */ in avrc_ctrl_pars_vendor_cmd() 56 BE_STREAM_TO_UINT16(len, p); in avrc_ctrl_pars_vendor_cmd() 68 BE_STREAM_TO_UINT8(p_result->volume.volume, p); in avrc_ctrl_pars_vendor_cmd() 74 BE_STREAM_TO_UINT8(p_result->reg_notif.event_id, p); in avrc_ctrl_pars_vendor_cmd() 75 BE_STREAM_TO_UINT32(p_result->reg_notif.param, p); in avrc_ctrl_pars_vendor_cmd() 100 uint8_t* p; in avrc_pars_vendor_cmd() local 113 p = p_msg->p_vendor_data; in avrc_pars_vendor_cmd() 114 p_result->pdu = *p++; in avrc_pars_vendor_cmd() [all …]
|
/system/bt/stack/bnep/ |
D | bnep_utils.cc | 169 uint8_t *p, *p_start; in bnep_send_conn_req() local 175 p = p_start = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in bnep_send_conn_req() 178 UINT8_TO_BE_STREAM(p, BNEP_FRAME_CONTROL); in bnep_send_conn_req() 181 UINT8_TO_BE_STREAM(p, BNEP_SETUP_CONNECTION_REQUEST_MSG); in bnep_send_conn_req() 186 UINT8_TO_BE_STREAM(p, len); in bnep_send_conn_req() 189 UINT16_TO_BE_STREAM(p, p_bcb->dst_uuid.As16Bit()); in bnep_send_conn_req() 190 UINT16_TO_BE_STREAM(p, p_bcb->src_uuid.As16Bit()); in bnep_send_conn_req() 192 UINT32_TO_BE_STREAM(p, p_bcb->dst_uuid.As32Bit()); in bnep_send_conn_req() 193 UINT32_TO_BE_STREAM(p, p_bcb->src_uuid.As32Bit()); in bnep_send_conn_req() 195 memcpy(p, p_bcb->dst_uuid.To128BitBE().data(), Uuid::kNumBytes128); in bnep_send_conn_req() [all …]
|
/system/extras/libfec/ |
D | fec_process.cpp | 33 process_info *p = static_cast<process_info *>(cookie); in __process() local 35 debug("thread %d: [%" PRIu64 ", %" PRIu64 ")", p->id, p->offset, in __process() 36 p->offset + p->count); in __process() 38 p->rc = p->func(p->f, p->buf, p->count, p->offset, &p->errors); in __process() 39 return p; in __process() 120 process_info *p = NULL; in process() local 122 if (pthread_join(thread, (void **)&p) != 0) { in process() 125 } else if (!p || p->rc == -1) { in process() 128 nread += p->rc; in process() 129 f->errors += p->errors; in process()
|