/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 == nullptr) 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 | 242 #define HCI_GET_CMD_HDR_OPCODE(p) \ argument 243 (uint16_t)((*((uint8_t*)((p) + 1) + (p)->offset) + \ 244 (*((uint8_t*)((p) + 1) + (p)->offset + 1) << 8))) 245 #define HCI_GET_CMD_HDR_PARAM_LEN(p) \ argument 246 (uint8_t)(*((uint8_t*)((p) + 1) + (p)->offset + 2)) 248 #define HCI_GET_EVT_HDR_OPCODE(p) \ argument 249 (uint8_t)(*((uint8_t*)((p) + 1) + (p)->offset)) 250 #define HCI_GET_EVT_HDR_PARAM_LEN(p) \ argument 251 (uint8_t)(*((uint8_t*)((p) + 1) + (p)->offset + 1)) 256 #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/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 | 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 | 214 Point p; in TEST() local 220 p.x[7] = 0x20b003d2; in TEST() 221 p.x[6] = 0xf297be2c; in TEST() 222 p.x[5] = 0x5e2c83a7; in TEST() 223 p.x[4] = 0xe9f9a5b9; in TEST() 224 p.x[3] = 0xeff49111; in TEST() 225 p.x[2] = 0xacf4fddb; in TEST() 226 p.x[1] = 0xcc030148; in TEST() 227 p.x[0] = 0x0e359de6; in TEST() 229 p.y[7] = 0xdc809c49; in TEST() [all …]
|
/system/extras/simpleperf/ |
D | record.cpp | 65 void MoveToBinaryFormat(const RecordHeader& data, char*& p) { in MoveToBinaryFormat() argument 66 data.MoveToBinaryFormat(p); in MoveToBinaryFormat() 80 void SampleId::ReadFromBinaryFormat(const perf_event_attr& attr, const char* p, in ReadFromBinaryFormat() argument 86 MoveFromBinaryFormat(tid_data, p); in ReadFromBinaryFormat() 89 MoveFromBinaryFormat(time_data, p); in ReadFromBinaryFormat() 92 MoveFromBinaryFormat(id_data, p); in ReadFromBinaryFormat() 95 MoveFromBinaryFormat(stream_id_data, p); in ReadFromBinaryFormat() 98 MoveFromBinaryFormat(cpu_data, p); in ReadFromBinaryFormat() 101 MoveFromBinaryFormat(id_data, p); in ReadFromBinaryFormat() 104 CHECK_LE(p, end); in ReadFromBinaryFormat() [all …]
|
/system/core/libprocinfo/include/procinfo/ |
D | process_map.h | 41 char* p; in ReadMapFileContent() local 44 if (*p != ' ') { in ReadMapFileContent() 47 while (*p == ' ') { in ReadMapFileContent() 48 p++; in ReadMapFileContent() 54 if (!isxdigit(*p)) { in ReadMapFileContent() 58 p++; in ReadMapFileContent() 59 } while (isxdigit(*p)); in ReadMapFileContent() 64 p = next_line; in ReadMapFileContent() 73 start_addr = strtoull(p, &end, 16); in ReadMapFileContent() 74 if (end == p || *end != '-') { in ReadMapFileContent() [all …]
|
/system/bt/stack/sdp/ |
D | sdp_discovery.cc | 51 static uint8_t* save_attr_seq(tCONN_CB* p_ccb, uint8_t* p, uint8_t* p_msg_end); 54 static uint8_t* add_attr(uint8_t* p, uint8_t* p_end, tSDP_DISCOVERY_DB* p_db, 120 uint8_t *p, *p_start, *p_param_len; in sdp_snd_service_search_req() local 126 p = p_start = (uint8_t*)(p_cmd + 1) + L2CAP_MIN_OFFSET; in sdp_snd_service_search_req() 129 UINT8_TO_BE_STREAM(p, SDP_PDU_SERVICE_SEARCH_REQ); in sdp_snd_service_search_req() 130 UINT16_TO_BE_STREAM(p, p_ccb->transaction_id); in sdp_snd_service_search_req() 134 p_param_len = p; in sdp_snd_service_search_req() 135 p += 2; in sdp_snd_service_search_req() 139 p = sdpu_build_uuid_seq(p, 1, in sdp_snd_service_search_req() 142 p = sdpu_build_uuid_seq(p, p_ccb->p_db->num_uuid_filters, in sdp_snd_service_search_req() [all …]
|
/system/netd/resolv/ |
D | res_debug.cpp | 137 static char* dbprint(char* p, char* end, const char* format, ...) { in dbprint() argument 141 avail = end - p; in dbprint() 143 if (avail <= 0) return p; in dbprint() 146 n = vsnprintf(p, avail, format, args); in dbprint() 152 p += n; in dbprint() 154 if (p == end) p[-1] = 0; in dbprint() 156 return p; in dbprint() 164 char temp[2048], *p = temp, *end = p + sizeof(temp); in do_section() local 172 dbprint(p, end, ";; memory allocation failure\n"); in do_section() 182 dbprint(p, end, ";; ns_parserr: %s", strerror(errno)); in do_section() [all …]
|
/system/bt/stack/btu/ |
D | btu_hcif.cc | 60 extern void btm_ble_test_command_complete(uint8_t* p); 66 static void btu_hcif_inquiry_comp_evt(uint8_t* p); 67 static void btu_hcif_inquiry_result_evt(uint8_t* p); 68 static void btu_hcif_inquiry_rssi_result_evt(uint8_t* p); 69 static void btu_hcif_extended_inquiry_result_evt(uint8_t* p); 71 static void btu_hcif_connection_comp_evt(uint8_t* p); 72 static void btu_hcif_connection_request_evt(uint8_t* p); 73 static void btu_hcif_disconnection_comp_evt(uint8_t* p); 74 static void btu_hcif_authentication_comp_evt(uint8_t* p); 75 static void btu_hcif_rmt_name_request_comp_evt(uint8_t* p, uint16_t evt_len); [all …]
|
/system/bt/stack/btm/ |
D | btm_sco.cc | 436 tSCO_CONN* p = &btm_cb.sco_cb.sco_db[0]; in BTM_CreateSco() local 459 for (xx = 0; xx < BTM_MAX_SCO_LINKS; xx++, p++) { in BTM_CreateSco() 460 if (((p->state == SCO_ST_CONNECTING) || (p->state == SCO_ST_LISTENING) || in BTM_CreateSco() 461 (p->state == SCO_ST_PEND_UNPARK)) && in BTM_CreateSco() 462 (p->esco.data.bd_addr == *remote_bda)) { in BTM_CreateSco() 464 << *remote_bda << ", at state " << unsigned(p->state); in BTM_CreateSco() 470 for (xx = 0; xx < BTM_MAX_SCO_LINKS; xx++, p++) { in BTM_CreateSco() 471 if ((p->state == SCO_ST_LISTENING) && (!p->rem_bd_known)) { in BTM_CreateSco() 481 for (xx = 0, p = &btm_cb.sco_cb.sco_db[0]; xx < BTM_MAX_SCO_LINKS; in BTM_CreateSco() 482 xx++, p++) { in BTM_CreateSco() [all …]
|
D | btm_acl.cc | 97 tACL_CONN* p = &btm_cb.acl_db[0]; in btm_bda_to_acl() local 99 for (xx = 0; xx < MAX_L2CAP_LINKS; xx++, p++) { in btm_bda_to_acl() 100 if ((p->in_use) && p->remote_addr == bda && p->transport == transport) { in btm_bda_to_acl() 102 return (p); in btm_bda_to_acl() 121 tACL_CONN* p = &btm_cb.acl_db[0]; in btm_handle_to_acl_index() local 124 for (xx = 0; xx < MAX_L2CAP_LINKS; xx++, p++) { in btm_handle_to_acl_index() 125 if ((p->in_use) && (p->hci_handle == hci_handle)) { in btm_handle_to_acl_index() 195 tACL_CONN* p; in btm_acl_created() local 202 p = btm_bda_to_acl(bda, transport); in btm_acl_created() 203 if (p != (tACL_CONN*)NULL) { in btm_acl_created() [all …]
|
D | btm_ble_adv_filter.cc | 171 uint8_t* p, uint16_t evt_len) { in btm_flt_update_cb() argument 178 STREAM_TO_UINT8(status, p); in btm_flt_update_cb() 179 STREAM_TO_UINT8(op_subcode, p); in btm_flt_update_cb() 180 STREAM_TO_UINT8(action, p); in btm_flt_update_cb() 181 STREAM_TO_UINT8(num_avail, p); in btm_flt_update_cb() 306 uint8_t* p = param; in BTM_LE_PF_local_name() local 307 UINT8_TO_STREAM(p, BTM_BLE_META_PF_LOCAL_NAME); in BTM_LE_PF_local_name() 308 UINT8_TO_STREAM(p, action); in BTM_LE_PF_local_name() 309 UINT8_TO_STREAM(p, filt_index); in BTM_LE_PF_local_name() 313 ARRAY_TO_STREAM(p, name.data(), size); in BTM_LE_PF_local_name() [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/l2cap/ |
D | l2c_main.cc | 47 static void process_l2cap_cmd(tL2C_LCB* p_lcb, uint8_t* p, uint16_t pkt_len); 65 uint8_t* p = (uint8_t*)(p_msg + 1) + p_msg->offset; in l2c_rcv_acl_data() local 69 STREAM_TO_UINT16(handle, p); in l2c_rcv_acl_data() 82 STREAM_TO_UINT16(hci_len, p); in l2c_rcv_acl_data() 91 STREAM_TO_UINT16(l2cap_len, p); in l2c_rcv_acl_data() 92 STREAM_TO_UINT16(rcv_cid, p); in l2c_rcv_acl_data() 101 STREAM_TO_UINT8(cmd_code, p); in l2c_rcv_acl_data() 170 process_l2cap_cmd(p_lcb, p, l2cap_len); in l2c_rcv_acl_data() 182 l2cble_process_sig_cmd(p_lcb, p, l2cap_len); in l2c_rcv_acl_data() 258 static void process_l2cap_cmd(tL2C_LCB* p_lcb, uint8_t* p, uint16_t pkt_len) { in process_l2cap_cmd() argument [all …]
|
/system/core/libprocinfo/testdata/ |
D | maps | 1 12c00000-2ac00000 rw-p 00000000 00:05 10267643 [anon:dalvik-main space (r… 2 6fb5d000-6fd6e000 rw-p 00000000 103:1d 639511 /data/dalvik-cache/arm64/s… 3 6fd6e000-6fd82000 r--p 00211000 103:1d 639511 /data/dalvik-cache/arm64/s… 4 6fd82000-6fe47000 rw-p 00000000 103:1d 639514 /data/dalvik-cache/arm64/s… 5 6fe47000-6fe52000 r--p 000c5000 103:1d 639514 /data/dalvik-cache/arm64/s… 6 6fe52000-6fe84000 rw-p 00000000 103:1d 639517 /data/dalvik-cache/arm64/s… 7 6fe84000-6fe87000 r--p 00032000 103:1d 639517 /data/dalvik-cache/arm64/s… 8 6fe87000-6feb2000 rw-p 00000000 103:1d 639520 /data/dalvik-cache/arm64/s… 9 6feb2000-6feb5000 r--p 0002b000 103:1d 639520 /data/dalvik-cache/arm64/s… 10 6feb5000-6fef4000 rw-p 00000000 103:1d 639523 /data/dalvik-cache/arm64/s… [all …]
|
/system/core/adb/ |
D | transport_usb.cpp | 63 static int UsbReadPayload(usb_handle* h, apacket* p) { in UsbReadPayload() argument 64 D("UsbReadPayload(%d)", p->msg.data_length); in UsbReadPayload() 66 if (p->msg.data_length > MAX_PAYLOAD) { in UsbReadPayload() 76 size_t len = p->msg.data_length; in UsbReadPayload() 82 p->payload.resize(len); in UsbReadPayload() 83 int rc = usb_read(h, &p->payload[0], p->payload.size()); in UsbReadPayload() 84 if (rc != static_cast<int>(p->msg.data_length)) { in UsbReadPayload() 88 p->payload.resize(rc); in UsbReadPayload() 91 p->payload.resize(p->msg.data_length); in UsbReadPayload() 92 return usb_read(h, &p->payload[0], p->payload.size()); in UsbReadPayload() [all …]
|
/system/nfc/src/nfc/tags/ |
D | rw_t4t.cc | 153 uint8_t* p; in rw_t4t_get_hw_version() local 163 p = (uint8_t*)(p_c_apdu + 1) + p_c_apdu->offset; in rw_t4t_get_hw_version() 165 UINT8_TO_BE_STREAM(p, T4T_CMD_DES_CLASS); in rw_t4t_get_hw_version() 166 UINT8_TO_BE_STREAM(p, T4T_CMD_INS_GET_HW_VERSION); in rw_t4t_get_hw_version() 167 UINT16_TO_BE_STREAM(p, 0x0000); in rw_t4t_get_hw_version() 168 UINT8_TO_BE_FIELD(p, 0x00); in rw_t4t_get_hw_version() 190 uint8_t* p; in rw_t4t_get_sw_version() local 200 p = (uint8_t*)(p_c_apdu + 1) + p_c_apdu->offset; in rw_t4t_get_sw_version() 202 UINT8_TO_BE_STREAM(p, T4T_CMD_DES_CLASS); in rw_t4t_get_sw_version() 203 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 = nullptr, *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 = nullptr, *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 = nullptr, *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/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 …]
|