/packages/modules/Bluetooth/system/stack/include/ |
D | bt_types.h | 78 #define UINT64_TO_BE_STREAM(p, u64) \ argument 80 *(p)++ = (uint8_t)((u64) >> 56); \ 81 *(p)++ = (uint8_t)((u64) >> 48); \ 82 *(p)++ = (uint8_t)((u64) >> 40); \ 83 *(p)++ = (uint8_t)((u64) >> 32); \ 84 *(p)++ = (uint8_t)((u64) >> 24); \ 85 *(p)++ = (uint8_t)((u64) >> 16); \ 86 *(p)++ = (uint8_t)((u64) >> 8); \ 87 *(p)++ = (uint8_t)(u64); \ 89 #define UINT32_TO_STREAM(p, u32) \ argument [all …]
|
/packages/modules/AppSearch/framework/java/android/app/appsearch/safeparcel/ |
D | SafeParcelWriter.java | 50 private static void writeHeader(Parcel p, int id, int size) { in writeHeader() argument 52 p.writeInt(0xffff0000 | id); in writeHeader() 53 p.writeInt(size); in writeHeader() 55 p.writeInt((size << 16) | id); in writeHeader() 60 private static int beginVariableData(Parcel p, int id) { in beginVariableData() argument 63 p.writeInt(0xffff0000 | id); in beginVariableData() 64 p.writeInt(0); in beginVariableData() 65 return p.dataPosition(); in beginVariableData() 71 private static void finishVariableData(Parcel p, int start) { in finishVariableData() argument 72 int end = p.dataPosition(); in finishVariableData() [all …]
|
D | SafeParcelReader.java | 45 public ParseException(@NonNull String message, @NonNull Parcel p) { in ParseException() argument 46 super(message + " Parcel: pos=" + p.dataPosition() + " size=" + p.dataSize()); in ParseException() 53 public static int readHeader(@NonNull Parcel p) { in readHeader() argument 54 return p.readInt(); in readHeader() 63 public static int readSize(@NonNull Parcel p, int header) { in readSize() argument 67 return p.readInt(); in readSize() 72 public static void skipUnknownField(@NonNull Parcel p, int header) { in skipUnknownField() argument 73 int size = readSize(p, header); in skipUnknownField() 74 p.setDataPosition(p.dataPosition() + size); in skipUnknownField() 77 private static void readAndEnforceSize(@NonNull Parcel p, int header, int required) { in readAndEnforceSize() argument [all …]
|
/packages/modules/Bluetooth/system/gd/security/ecc/ |
D | multipoint_test.cc | 29 Point p; in TEST() local 35 p.x[7] = 0x20b003d2; in TEST() 36 p.x[6] = 0xf297be2c; in TEST() 37 p.x[5] = 0x5e2c83a7; in TEST() 38 p.x[4] = 0xe9f9a5b9; in TEST() 39 p.x[3] = 0xeff49111; in TEST() 40 p.x[2] = 0xacf4fddb; in TEST() 41 p.x[1] = 0xcc030148; in TEST() 42 p.x[0] = 0x0e359de6; in TEST() 44 p.y[7] = 0xdc809c49; in TEST() [all …]
|
/packages/modules/Bluetooth/system/stack/hcic/ |
D | hcicmds.cc | 483 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_disconnect() local 484 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_disconnect() 486 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_DISCONNECT; in btsnd_hcic_disconnect() 487 p->offset = 0; in btsnd_hcic_disconnect() 494 btu_hcif_send_cmd(LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_disconnect() 498 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_add_SCO_conn() local 499 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_add_SCO_conn() 501 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_ADD_SCO_CONN; in btsnd_hcic_add_SCO_conn() 502 p->offset = 0; in btsnd_hcic_add_SCO_conn() 510 btu_hcif_send_cmd(LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_add_SCO_conn() [all …]
|
D | hciblecmds.cc | 121 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_ble_write_adv_params() local 122 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_ble_write_adv_params() 124 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_BLE_WRITE_ADV_PARAMS; in btsnd_hcic_ble_write_adv_params() 125 p->offset = 0; in btsnd_hcic_ble_write_adv_params() 139 btu_hcif_send_cmd(LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_ble_write_adv_params() 142 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_ble_read_adv_chnl_tx_power() local 143 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_ble_read_adv_chnl_tx_power() 145 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_READ_CMD; in btsnd_hcic_ble_read_adv_chnl_tx_power() 146 p->offset = 0; in btsnd_hcic_ble_read_adv_chnl_tx_power() 151 btu_hcif_send_cmd(LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_ble_read_adv_chnl_tx_power() [all …]
|
/packages/modules/Connectivity/tests/common/java/android/net/ |
D | IpPrefixTest.java | 61 IpPrefix p; in testConstructor() local 63 p = new IpPrefix((byte[]) null, 9); in testConstructor() 68 p = new IpPrefix((InetAddress) null, 10); in testConstructor() 73 p = new IpPrefix((String) null); in testConstructor() 80 p = new IpPrefix(b2, 29); in testConstructor() 85 p = new IpPrefix("1.2.3.4"); in testConstructor() 90 p = new IpPrefix("1.2.3.4/"); in testConstructor() 95 p = new IpPrefix("foo/32"); in testConstructor() 100 p = new IpPrefix("1/32"); in testConstructor() 105 p = new IpPrefix("1.2.3.256/32"); in testConstructor() [all …]
|
/packages/modules/Bluetooth/system/stack/avdt/ |
D | avdt_defs.h | 136 #define AVDT_MSG_PRS_HDR(p, lbl, pkt, msg) \ argument 138 (lbl) = (*(p) >> 4) & 0x0F; \ 139 (pkt) = (*(p) >> 2) & 0x03; \ 140 (msg) = *(p)++ & 0x03; \ 143 #define AVDT_MSG_PRS_DISC(p, seid, in_use, type, tsep) \ argument 145 (seid) = *(p) >> 2; \ 146 (in_use) = (*(p)++ >> 1) & 0x01; \ 147 (type) = (*(p) >> 4) & 0x0F; \ 148 (tsep) = (*(p)++ >> 3) & 0x01; \ 151 #define AVDT_MSG_PRS_SIG(p, sig) \ argument [all …]
|
D | avdt_msg.cc | 62 typedef void (*tAVDT_MSG_BLD)(uint8_t** p, tAVDT_MSG* p_msg); 65 typedef uint8_t (*tAVDT_MSG_PRS)(tAVDT_MSG* p_msg, uint8_t* p, uint16_t len); 71 static void avdt_msg_bld_none(uint8_t** p, tAVDT_MSG* p_msg); 72 static void avdt_msg_bld_single(uint8_t** p, tAVDT_MSG* p_msg); 73 static void avdt_msg_bld_setconfig_cmd(uint8_t** p, tAVDT_MSG* p_msg); 74 static void avdt_msg_bld_reconfig_cmd(uint8_t** p, tAVDT_MSG* p_msg); 75 static void avdt_msg_bld_multi(uint8_t** p, tAVDT_MSG* p_msg); 76 static void avdt_msg_bld_security_cmd(uint8_t** p, tAVDT_MSG* p_msg); 77 static void avdt_msg_bld_discover_rsp(uint8_t** p, tAVDT_MSG* p_msg); 78 static void avdt_msg_bld_svccap(uint8_t** p, tAVDT_MSG* p_msg); [all …]
|
/packages/modules/Bluetooth/system/stack/sdp/ |
D | sdp_discovery.cc | 122 uint8_t *p, *p_start, *p_param_len; in sdp_snd_service_search_req() local 129 p = p_start = (uint8_t*)(p_cmd + 1) + L2CAP_MIN_OFFSET; in sdp_snd_service_search_req() 132 UINT8_TO_BE_STREAM(p, SDP_PDU_SERVICE_SEARCH_REQ); in sdp_snd_service_search_req() 133 UINT16_TO_BE_STREAM(p, p_ccb->transaction_id); in sdp_snd_service_search_req() 137 p_param_len = p; in sdp_snd_service_search_req() 138 p += 2; in sdp_snd_service_search_req() 156 p = sdpu_build_uuid_seq(p, p_ccb->p_db->num_uuid_filters, in sdp_snd_service_search_req() 160 UINT16_TO_BE_STREAM(p, sdp_cb.max_recs_per_search); in sdp_snd_service_search_req() 163 UINT8_TO_BE_STREAM(p, cont_len); in sdp_snd_service_search_req() 167 memcpy(p, p_cont, cont_len); in sdp_snd_service_search_req() [all …]
|
D | sdp_db.cc | 53 static bool find_uuid_in_seq(uint8_t* p, uint32_t seq_len, in find_uuid_in_seq() argument 56 uint8_t* p_end = p + seq_len; in find_uuid_in_seq() 63 while (p < p_end) { in find_uuid_in_seq() 64 type = *p++; in find_uuid_in_seq() 65 p = sdpu_get_len_from_type(p, p_end, type, &len); in find_uuid_in_seq() 66 if (p == NULL || (p + len) > p_end) { in find_uuid_in_seq() 72 if (sdpu_compare_uuid_arrays(p, len, p_uuid, uuid_len)) return (true); in find_uuid_in_seq() 74 if (find_uuid_in_seq(p, len, p_uuid, uuid_len, nest_level + 1)) in find_uuid_in_seq() 77 p = p + len; in find_uuid_in_seq() 199 static int sdp_compose_proto_list(uint8_t* p, uint16_t num_elem, in sdp_compose_proto_list() argument [all …]
|
/packages/modules/Bluetooth/system/stack/l2cap/ |
D | l2c_main.cc | 50 static void process_l2cap_cmd(tL2C_LCB* p_lcb, uint8_t* p, uint16_t pkt_len); 68 uint8_t* p = (uint8_t*)(p_msg + 1) + p_msg->offset; in l2c_rcv_acl_data() local 72 STREAM_TO_UINT16(handle, p); in l2c_rcv_acl_data() 85 STREAM_TO_UINT16(hci_len, p); in l2c_rcv_acl_data() 94 STREAM_TO_UINT16(l2cap_len, p); in l2c_rcv_acl_data() 95 STREAM_TO_UINT16(rcv_cid, p); in l2c_rcv_acl_data() 141 process_l2cap_cmd(p_lcb, p, l2cap_len); in l2c_rcv_acl_data() 153 l2cble_process_sig_cmd(p_lcb, p, l2cap_len); in l2c_rcv_acl_data() 225 static void process_l2cap_cmd(tL2C_LCB* p_lcb, uint8_t* p, uint16_t pkt_len) { in process_l2cap_cmd() argument 248 uint8_t* p_next_cmd = p; in process_l2cap_cmd() [all …]
|
D | l2c_utils.cc | 300 uint8_t* p; in l2cu_build_header() local 305 p = (uint8_t*)(p_buf + 1) + L2CAP_SEND_CMD_OFFSET; in l2cu_build_header() 309 UINT16_TO_STREAM(p, (p_lcb->Handle() | (L2CAP_PKT_START_NON_FLUSHABLE in l2cu_build_header() 312 UINT16_TO_STREAM(p, p_lcb->Handle() | l2cb.non_flushable_pbf); in l2cu_build_header() 315 UINT16_TO_STREAM(p, len + L2CAP_PKT_OVERHEAD + L2CAP_CMD_OVERHEAD); in l2cu_build_header() 316 UINT16_TO_STREAM(p, len + L2CAP_CMD_OVERHEAD); in l2cu_build_header() 319 UINT16_TO_STREAM(p, L2CAP_BLE_SIGNALLING_CID); in l2cu_build_header() 321 UINT16_TO_STREAM(p, L2CAP_SIGNALLING_CID); in l2cu_build_header() 325 UINT8_TO_STREAM(p, cmd); in l2cu_build_header() 326 UINT8_TO_STREAM(p, signal_id); in l2cu_build_header() [all …]
|
/packages/modules/Bluetooth/system/stack/btu/ |
D | btu_hcif.cc | 81 static void btu_hcif_authentication_comp_evt(uint8_t* p); 82 static void btu_hcif_encryption_change_evt(uint8_t* p); 83 static void btu_hcif_read_rmt_ext_features_comp_evt(uint8_t* p, 88 static void btu_hcif_mode_change_evt(uint8_t* p); 89 static void btu_hcif_link_key_notification_evt(const uint8_t* p); 90 static void btu_hcif_read_clock_off_comp_evt(uint8_t* p); 91 static void btu_hcif_esco_connection_comp_evt(const uint8_t* p); 92 static void btu_hcif_esco_connection_chg_evt(uint8_t* p); 96 static void btu_hcif_sec_pin_code_request(const uint8_t* p); 97 static void btu_hcif_sec_link_key_request(const uint8_t* p); [all …]
|
/packages/modules/Bluetooth/system/stack/test/ |
D | stack_smp_test.cc | 324 Point p; in TEST() local 330 p.x[7] = 0x20b003d2; in TEST() 331 p.x[6] = 0xf297be2c; in TEST() 332 p.x[5] = 0x5e2c83a7; in TEST() 333 p.x[4] = 0xe9f9a5b9; in TEST() 334 p.x[3] = 0xeff49111; in TEST() 335 p.x[2] = 0xacf4fddb; in TEST() 336 p.x[1] = 0xcc030148; in TEST() 337 p.x[0] = 0x0e359de6; in TEST() 339 p.y[7] = 0xdc809c49; in TEST() [all …]
|
/packages/modules/Bluetooth/system/stack/bnep/ |
D | bnep_utils.cc | 172 uint8_t *p, *p_start; in bnep_send_conn_req() local 178 p = p_start = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in bnep_send_conn_req() 181 UINT8_TO_BE_STREAM(p, BNEP_FRAME_CONTROL); in bnep_send_conn_req() 184 UINT8_TO_BE_STREAM(p, BNEP_SETUP_CONNECTION_REQUEST_MSG); in bnep_send_conn_req() 189 UINT8_TO_BE_STREAM(p, len); in bnep_send_conn_req() 192 UINT16_TO_BE_STREAM(p, p_bcb->dst_uuid.As16Bit()); in bnep_send_conn_req() 193 UINT16_TO_BE_STREAM(p, p_bcb->src_uuid.As16Bit()); in bnep_send_conn_req() 195 UINT32_TO_BE_STREAM(p, p_bcb->dst_uuid.As32Bit()); in bnep_send_conn_req() 196 UINT32_TO_BE_STREAM(p, p_bcb->src_uuid.As32Bit()); in bnep_send_conn_req() 198 memcpy(p, p_bcb->dst_uuid.To128BitBE().data(), Uuid::kNumBytes128); in bnep_send_conn_req() [all …]
|
/packages/modules/Bluetooth/system/stack/btm/ |
D | btm_sco.cc | 734 tSCO_CONN* p = &btm_cb.sco_cb.sco_db[0]; in BTM_CreateSco() local 759 for (xx = 0; xx < BTM_MAX_SCO_LINKS; xx++, p++) { in BTM_CreateSco() 760 if (((p->state == SCO_ST_CONNECTING) || (p->state == SCO_ST_LISTENING) || in BTM_CreateSco() 761 (p->state == SCO_ST_PEND_UNPARK)) && in BTM_CreateSco() 762 (p->esco.data.bd_addr == *remote_bda)) { in BTM_CreateSco() 764 *remote_bda, unsigned(p->state)); in BTM_CreateSco() 770 for (xx = 0; xx < BTM_MAX_SCO_LINKS; xx++, p++) { in BTM_CreateSco() 771 if ((p->state == SCO_ST_LISTENING) && (!p->rem_bd_known)) { in BTM_CreateSco() 780 for (xx = 0, p = &btm_cb.sco_cb.sco_db[0]; xx < BTM_MAX_SCO_LINKS; in BTM_CreateSco() 781 xx++, p++) { in BTM_CreateSco() [all …]
|
/packages/modules/NetworkStack/common/networkstackclient/src/android/net/shared/ |
D | ProvisioningConfiguration.java | 380 final InformationElementParcelable p = new InformationElementParcelable(); in toStableParcelable() local 381 p.id = mId; in toStableParcelable() 382 p.payload = mPayload != null ? mPayload.clone() : null; in toStableParcelable() 383 return p; in toStableParcelable() 391 public static InformationElement fromStableParcelable(InformationElementParcelable p) { in fromStableParcelable() argument 392 if (p == null) return null; in fromStableParcelable() 393 return new InformationElement(p.id, in fromStableParcelable() 394 ByteBuffer.wrap(p.payload.clone()).asReadOnlyBuffer()); in fromStableParcelable() 464 final ScanResultInfoParcelable p = new ScanResultInfoParcelable(); in toStableParcelable() local 465 p.ssid = mSsid; in toStableParcelable() [all …]
|
/packages/modules/Bluetooth/system/stack/avrc/ |
D | avrc_pars_tg.cc | 54 uint8_t* p = p_msg->p_vendor_data; in avrc_ctrl_pars_vendor_cmd() local 55 p_result->pdu = *p++; in avrc_ctrl_pars_vendor_cmd() 62 p++; /* skip the reserved byte */ in avrc_ctrl_pars_vendor_cmd() 64 BE_STREAM_TO_UINT16(len, p); in avrc_ctrl_pars_vendor_cmd() 76 BE_STREAM_TO_UINT8(p_result->volume.volume, p); in avrc_ctrl_pars_vendor_cmd() 84 BE_STREAM_TO_UINT8(p_result->reg_notif.event_id, p); in avrc_ctrl_pars_vendor_cmd() 85 BE_STREAM_TO_UINT32(p_result->reg_notif.param, p); in avrc_ctrl_pars_vendor_cmd() 115 uint8_t* p; in avrc_pars_vendor_cmd() local 134 p = p_msg->p_vendor_data; in avrc_pars_vendor_cmd() 135 p_result->pdu = *p++; in avrc_pars_vendor_cmd() [all …]
|
D | avrc_pars_ct.cc | 52 uint8_t* p; in avrc_pars_vendor_rsp() local 65 p = p_msg->p_vendor_data; in avrc_pars_vendor_rsp() 66 BE_STREAM_TO_UINT8(p_result->pdu, p); in avrc_pars_vendor_rsp() 67 p++; /* skip the reserved/packe_type byte */ in avrc_pars_vendor_rsp() 68 BE_STREAM_TO_UINT16(len, p); in avrc_pars_vendor_rsp() 82 p_result->rsp.status = *p; in avrc_pars_vendor_rsp() 97 BE_STREAM_TO_UINT8(p_result->volume.volume, p); in avrc_pars_vendor_rsp() 109 BE_STREAM_TO_UINT8(eventid, p); in avrc_pars_vendor_rsp() 121 BE_STREAM_TO_UINT8(p_result->reg_notif.param.volume, p); in avrc_pars_vendor_rsp() 218 uint8_t* p = p_msg->p_browse_data; in avrc_pars_browse_rsp() local [all …]
|
/packages/services/Car/tests/android_car_api_test/src/com/android/car/internal/test/ |
D | LargeParcelableTestService.java | 32 public TestLargeParcelable echoTestLargeParcelable(TestLargeParcelable p) { 33 Log.i(TAG, "echoTestLargeParcelable, TestLargeParcelable:" + p); 34 if (p != null) { 35 Log.i(TAG, "byteArray:" + ((p.byteData == null) ? null : p.byteData.length)); 37 return p; 41 public LargeParcelable echoLargeParcelable(LargeParcelable p) { 42 Log.i(TAG, "echoLargeParcelable, LargeParcelable:" + p); 43 if (p != null) { 44 TestParcelable tp = (TestParcelable) (p.getParcelable()); 50 return p; [all …]
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/ |
D | MetricsTestUtil.java | 30 static ConnectivityMetricsEvent ev(Parcelable p) { in ev() argument 33 ev.data = p; in ev() 38 Parcel p = Parcel.obtain(); in describeIpEvent() local 40 f.accept(p); in describeIpEvent() 42 p.setDataPosition(0); in describeIpEvent() 43 return ev(p.readParcelable(ClassLoader.getSystemClassLoader())); in describeIpEvent() 55 return (p) -> p.writeByte(b); in aByte() 59 return (p) -> p.writeInt(i); in anInt() 63 return (p) -> p.writeLong(l); in aLong() 67 return (p) -> p.writeString(s); in aString() [all …]
|
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/correction/math/ |
D | PoseTest.java | 28 Pose p = new Pose(new float[]{1, 2, 3}, new float[]{0, 0, 0, 1}); in testCtor() local 30 assertThat(p.translation.x).isEqualTo(1); in testCtor() 31 assertThat(p.translation.y).isEqualTo(2); in testCtor() 32 assertThat(p.translation.z).isEqualTo(3); in testCtor() 34 assertThat(p.rotation.x).isEqualTo(0); in testCtor() 35 assertThat(p.rotation.y).isEqualTo(0); in testCtor() 36 assertThat(p.rotation.z).isEqualTo(0); in testCtor() 37 assertThat(p.rotation.w).isEqualTo(1); in testCtor() 51 Pose p = Pose.fromMatrix(m); in testMatrix() local 53 assertThat(p.translation.x).isEqualTo(1); in testMatrix() [all …]
|
/packages/modules/Bluetooth/system/gd/hci/ |
D | uuid.cc | 68 uint8_t* p = ret.uu.data(); in FromString() local 79 &p[0], in FromString() 80 &p[1], in FromString() 81 &p[2], in FromString() 82 &p[3], in FromString() 83 &p[4], in FromString() 84 &p[5], in FromString() 85 &p[6], in FromString() 86 &p[7], in FromString() 87 &p[8], in FromString() [all …]
|
/packages/modules/Bluetooth/system/types/bluetooth/ |
D | uuid.cc | 71 uint8_t* p = ret.uu.data(); in FromString() local 83 &p[0], &p[1], &p[2], &p[3], &p[4], &p[5], &p[6], &p[7], &p[8], in FromString() 84 &p[9], &p[10], &p[11], &p[12], &p[13], &p[14], &p[15], &c); in FromString() 91 int rc = sscanf(uuid.c_str(), "%02hhx%02hhx%02hhx%02hhx%n", &p[0], &p[1], in FromString() 92 &p[2], &p[3], &c); in FromString() 99 int rc = sscanf(uuid.c_str(), "%02hhx%02hhx%n", &p[2], &p[3], &c); in FromString()
|