/packages/apps/Bluetooth/jni/ |
D | com_android_bluetooth_sdp.cpp | 163 if (record->hdr.service_name_length > 0) { in sdp_search_callback() 164 ALOGD("%s, ServiceName: %s", __func__, record->mas.hdr.service_name); in sdp_search_callback() 166 (jstring)sCallbackEnv->NewStringUTF(record->mas.hdr.service_name)); in sdp_search_callback() 174 (jint)record->mas.hdr.l2cap_psm, in sdp_search_callback() 175 (jint)record->mas.hdr.rfcomm_channel_number, in sdp_search_callback() 176 (jint)record->mas.hdr.profile_version, in sdp_search_callback() 184 addr.get(), uuid.get(), (jint)record->mns.hdr.l2cap_psm, in sdp_search_callback() 185 (jint)record->mns.hdr.rfcomm_channel_number, in sdp_search_callback() 186 (jint)record->mns.hdr.profile_version, in sdp_search_callback() 193 addr.get(), uuid.get(), (jint)record->pse.hdr.l2cap_psm, in sdp_search_callback() [all …]
|
/packages/modules/NetworkStack/tests/unit/src/android/net/netlink/ |
D | RtNetlinkNeighborMessageTest.java | 90 final StructNlMsgHdr hdr = neighMsg.getHeader(); in testParseRtmDelNeigh() local 91 assertNotNull(hdr); in testParseRtmDelNeigh() 92 assertEquals(76, hdr.nlmsg_len); in testParseRtmDelNeigh() 93 assertEquals(NetlinkConstants.RTM_DELNEIGH, hdr.nlmsg_type); in testParseRtmDelNeigh() 94 assertEquals(0, hdr.nlmsg_flags); in testParseRtmDelNeigh() 95 assertEquals(0, hdr.nlmsg_seq); in testParseRtmDelNeigh() 96 assertEquals(0, hdr.nlmsg_pid); in testParseRtmDelNeigh() 117 final StructNlMsgHdr hdr = neighMsg.getHeader(); in testParseRtmNewNeigh() local 118 assertNotNull(hdr); in testParseRtmNewNeigh() 119 assertEquals(88, hdr.nlmsg_len); in testParseRtmNewNeigh() [all …]
|
D | ConntrackMessageTest.java | 156 final StructNlMsgHdr hdr = conntrackMessage.getHeader(); in testConntrackParseIPv4TcpTimeoutUpdate() local 157 assertNotNull(hdr); in testConntrackParseIPv4TcpTimeoutUpdate() 158 assertEquals(80, hdr.nlmsg_len); in testConntrackParseIPv4TcpTimeoutUpdate() 159 assertEquals(makeCtType(IPCTNL_MSG_CT_NEW), hdr.nlmsg_type); in testConntrackParseIPv4TcpTimeoutUpdate() 161 | StructNlMsgHdr.NLM_F_ACK), hdr.nlmsg_flags); in testConntrackParseIPv4TcpTimeoutUpdate() 162 assertEquals(1, hdr.nlmsg_seq); in testConntrackParseIPv4TcpTimeoutUpdate() 163 assertEquals(0, hdr.nlmsg_pid); in testConntrackParseIPv4TcpTimeoutUpdate() 205 final StructNlMsgHdr hdr = conntrackMessage.getHeader(); in testConntrackParseIPv4UdpTimeoutUpdate() local 206 assertNotNull(hdr); in testConntrackParseIPv4UdpTimeoutUpdate() 207 assertEquals(80, hdr.nlmsg_len); in testConntrackParseIPv4UdpTimeoutUpdate() [all …]
|
D | NetlinkErrorMessageTest.java | 77 final StructNlMsgHdr hdr = errorMsg.getHeader(); in testParseNlmErrorOk() local 78 assertNotNull(hdr); in testParseNlmErrorOk() 79 assertEquals(36, hdr.nlmsg_len); in testParseNlmErrorOk() 80 assertEquals(NetlinkConstants.NLMSG_ERROR, hdr.nlmsg_type); in testParseNlmErrorOk() 81 assertEquals(0, hdr.nlmsg_flags); in testParseNlmErrorOk() 82 assertEquals(13606, hdr.nlmsg_seq); in testParseNlmErrorOk() 83 assertEquals(4196, hdr.nlmsg_pid); in testParseNlmErrorOk()
|
D | NetlinkSocketTest.java | 82 final StructNlMsgHdr hdr = msg.getHeader(); in testBasicWorkingGetNeighborsQuery() local 83 assertNotNull(hdr); in testBasicWorkingGetNeighborsQuery() 85 if (hdr.nlmsg_type == NetlinkConstants.NLMSG_DONE) { in testBasicWorkingGetNeighborsQuery() 90 assertEquals(NetlinkConstants.RTM_NEWNEIGH, hdr.nlmsg_type); in testBasicWorkingGetNeighborsQuery() 92 assertTrue((hdr.nlmsg_flags & StructNlMsgHdr.NLM_F_MULTI) != 0); in testBasicWorkingGetNeighborsQuery() 93 assertEquals(TEST_SEQNO, hdr.nlmsg_seq); in testBasicWorkingGetNeighborsQuery() 94 assertEquals(localAddr.getPortId(), hdr.nlmsg_pid); in testBasicWorkingGetNeighborsQuery()
|
D | InetDiagSocketTest.java | 260 final StructNlMsgHdr hdr = inetDiagMsg.getHeader(); in testParseInetDiagResponse() local 261 assertNotNull(hdr); in testParseInetDiagResponse() 262 assertEquals(NetlinkConstants.SOCK_DIAG_BY_FAMILY, hdr.nlmsg_type); in testParseInetDiagResponse() 263 assertEquals(StructNlMsgHdr.NLM_F_MULTI, hdr.nlmsg_flags); in testParseInetDiagResponse() 264 assertEquals(0, hdr.nlmsg_seq); in testParseInetDiagResponse() 265 assertEquals(8949, hdr.nlmsg_pid); in testParseInetDiagResponse()
|
/packages/modules/StatsD/statsd/src/socket/ |
D | StatsSocketListener.cpp | 58 struct msghdr hdr = { in onDataAvailable() local 68 ssize_t n = recvmsg(socket, &hdr, 0); in onDataAvailable() 77 struct cmsghdr* cmsg = CMSG_FIRSTHDR(&hdr); in onDataAvailable() 83 cmsg = CMSG_NXTHDR(&hdr, cmsg); in onDataAvailable()
|
/packages/modules/adb/tools/ |
D | check_ms_os_desc.cpp | 124 ms_os_desc_v1_header hdr; in check_ms_os_desc_v1() local 125 memcpy(&hdr, data.data(), data.size()); in check_ms_os_desc_v1() 127 data.resize(hdr.dwLength); in check_ms_os_desc_v1() 142 if (sizeof(ms_os_desc_v1_header) + hdr.bCount * sizeof(ms_os_desc_v1_function) != data.size()) { in check_ms_os_desc_v1() 146 for (int i = 0; i < hdr.bCount; ++i) { in check_ms_os_desc_v1()
|
/packages/modules/adb/client/ |
D | file_sync_client.cpp | 830 auto* hdr = reinterpret_cast<sync_status*>(buf.data()); in ReadAcknowledgements() local 831 if (hdr->id == ID_OKAY) { in ReadAcknowledgements() 833 if (hdr->msglen != 0) { in ReadAcknowledgements() 834 Error("received ID_OKAY with msg_len (%" PRIu32 " != 0", hdr->msglen); in ReadAcknowledgements() 839 } else if (hdr->id != ID_FAIL) { in ReadAcknowledgements() 840 Error("unexpected response from daemon: id = %#" PRIx32, hdr->id); in ReadAcknowledgements() 842 } else if (hdr->msglen > SYNC_DATA_MAX) { in ReadAcknowledgements() 843 Error("too-long message length from daemon: msglen = %" PRIu32, hdr->msglen); in ReadAcknowledgements() 847 const ssize_t msg_bytes_left = hdr->msglen + sizeof(sync_status) - buf.size(); in ReadAcknowledgements()
|
/packages/modules/NetworkStack/common/netlinkclient/src/android/net/netlink/ |
D | InetDiagMessage.java | 124 final StructNlMsgHdr hdr = nlMsg.getHeader(); in lookupUidByFamily() local 125 if (hdr.nlmsg_type == NetlinkConstants.NLMSG_DONE) { in lookupUidByFamily()
|
/packages/modules/DnsResolver/ |
D | gethnamaddr.cpp | 98 HEADER hdr; member 168 hp = &answer->hdr; in getanswer()
|