Home
last modified time | relevance | path

Searched refs:hdr (Results 1 – 7 of 7) sorted by relevance

/packages/apps/Bluetooth/jni/
Dcom_android_bluetooth_sdp.cpp158 if (record->hdr.service_name_length > 0) { in sdp_search_callback()
159 ALOGD("%s, ServiceName: %s", __func__, record->mas.hdr.service_name); in sdp_search_callback()
161 (jstring)sCallbackEnv->NewStringUTF(record->mas.hdr.service_name)); in sdp_search_callback()
169 (jint)record->mas.hdr.l2cap_psm, in sdp_search_callback()
170 (jint)record->mas.hdr.rfcomm_channel_number, in sdp_search_callback()
171 (jint)record->mas.hdr.profile_version, in sdp_search_callback()
179 addr.get(), uuid.get(), (jint)record->mns.hdr.l2cap_psm, in sdp_search_callback()
180 (jint)record->mns.hdr.rfcomm_channel_number, in sdp_search_callback()
181 (jint)record->mns.hdr.profile_version, in sdp_search_callback()
188 addr.get(), uuid.get(), (jint)record->pse.hdr.l2cap_psm, in sdp_search_callback()
[all …]
/packages/modules/NetworkStack/tests/unit/src/android/net/netlink/
DRtNetlinkNeighborMessageTest.java89 final StructNlMsgHdr hdr = neighMsg.getHeader(); in testParseRtmDelNeigh() local
90 assertNotNull(hdr); in testParseRtmDelNeigh()
91 assertEquals(76, hdr.nlmsg_len); in testParseRtmDelNeigh()
92 assertEquals(NetlinkConstants.RTM_DELNEIGH, hdr.nlmsg_type); in testParseRtmDelNeigh()
93 assertEquals(0, hdr.nlmsg_flags); in testParseRtmDelNeigh()
94 assertEquals(0, hdr.nlmsg_seq); in testParseRtmDelNeigh()
95 assertEquals(0, hdr.nlmsg_pid); in testParseRtmDelNeigh()
116 final StructNlMsgHdr hdr = neighMsg.getHeader(); in testParseRtmNewNeigh() local
117 assertNotNull(hdr); in testParseRtmNewNeigh()
118 assertEquals(88, hdr.nlmsg_len); in testParseRtmNewNeigh()
[all …]
DNetlinkErrorMessageTest.java76 final StructNlMsgHdr hdr = errorMsg.getHeader(); in testParseNlmErrorOk() local
77 assertNotNull(hdr); in testParseNlmErrorOk()
78 assertEquals(36, hdr.nlmsg_len); in testParseNlmErrorOk()
79 assertEquals(NetlinkConstants.NLMSG_ERROR, hdr.nlmsg_type); in testParseNlmErrorOk()
80 assertEquals(0, hdr.nlmsg_flags); in testParseNlmErrorOk()
81 assertEquals(13606, hdr.nlmsg_seq); in testParseNlmErrorOk()
82 assertEquals(4196, hdr.nlmsg_pid); in testParseNlmErrorOk()
DNetlinkSocketTest.java82 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()
DInetDiagSocketTest.java259 final StructNlMsgHdr hdr = inetDiagMsg.getHeader(); in testParseInetDiagResponse() local
260 assertNotNull(hdr); in testParseInetDiagResponse()
261 assertEquals(NetlinkConstants.SOCK_DIAG_BY_FAMILY, hdr.nlmsg_type); in testParseInetDiagResponse()
262 assertEquals(StructNlMsgHdr.NLM_F_MULTI, hdr.nlmsg_flags); in testParseInetDiagResponse()
263 assertEquals(0, hdr.nlmsg_seq); in testParseInetDiagResponse()
264 assertEquals(8949, hdr.nlmsg_pid); in testParseInetDiagResponse()
/packages/modules/NetworkStack/common/netlinkclient/src/android/net/netlink/
DInetDiagMessage.java124 final StructNlMsgHdr hdr = nlMsg.getHeader(); in lookupUidByFamily() local
125 if (hdr.nlmsg_type == NetlinkConstants.NLMSG_DONE) { in lookupUidByFamily()
/packages/modules/DnsResolver/
Dgethnamaddr.cpp98 HEADER hdr; member
168 hp = &answer->hdr; in getanswer()