Home
last modified time | relevance | path

Searched refs:cmsg (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/cmds/statsd/src/socket/
DStatsSocketListener.cpp83 struct cmsghdr* cmsg = CMSG_FIRSTHDR(&hdr); in onDataAvailable() local
84 while (cmsg != NULL) { in onDataAvailable()
85 if (cmsg->cmsg_level == SOL_SOCKET && cmsg->cmsg_type == SCM_CREDENTIALS) { in onDataAvailable()
86 cred = (struct ucred*)CMSG_DATA(cmsg); in onDataAvailable()
89 cmsg = CMSG_NXTHDR(&hdr, cmsg); in onDataAvailable()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/python/google/protobuf/pyext/
Drepeated_composite_container.cc110 CMessage* cmsg = cmessage::NewEmptyMessage(self->child_message_class); in UpdateChildMessages() local
111 ScopedPyObjectPtr py_cmsg(reinterpret_cast<PyObject*>(cmsg)); in UpdateChildMessages()
112 if (cmsg == NULL) { in UpdateChildMessages()
115 cmsg->owner = self->owner; in UpdateChildMessages()
116 cmsg->message = const_cast<Message*>(&sub_message); in UpdateChildMessages()
117 cmsg->parent = self->parent; in UpdateChildMessages()
142 CMessage* cmsg = cmessage::NewEmptyMessage(self->child_message_class); in AddToAttached() local
143 if (cmsg == NULL) in AddToAttached()
146 cmsg->owner = self->owner; in AddToAttached()
147 cmsg->message = sub_message; in AddToAttached()
[all …]
Dmessage.cc464 CMessage* cmsg = reinterpret_cast<CMessage*>(child); in VisitCompositeField() local
465 if (visitor.VisitCMessage(cmsg, descriptor) == -1) in VisitCompositeField()
2319 CMessage* cmsg = cmessage::NewEmptyMessage(message_class); in CheckAndGetInteger() local
2320 if (cmsg == NULL) { in CheckAndGetInteger()
2324 cmsg->owner = self->owner; in CheckAndGetInteger()
2325 cmsg->parent = self; in CheckAndGetInteger()
2326 cmsg->parent_field_descriptor = field_descriptor; in CheckAndGetInteger()
2327 cmsg->read_only = !reflection->HasField(*self->message, field_descriptor); in CheckAndGetInteger()
2328 cmsg->message = const_cast<Message*>(&sub_message); in CheckAndGetInteger()
2330 return reinterpret_cast<PyObject*>(cmsg); in CheckAndGetInteger()
[all …]
Dmap_container.cc618 CMessage* cmsg = cmessage::NewEmptyMessage(self->message_class); in GetCMessage() local
619 ret = reinterpret_cast<PyObject*>(cmsg); in GetCMessage()
621 if (cmsg == NULL) { in GetCMessage()
624 cmsg->owner = self->owner; in GetCMessage()
625 cmsg->message = message; in GetCMessage()
626 cmsg->parent = self->parent; in GetCMessage()
Drepeated_scalar_container.cc270 CMessage* cmsg = reinterpret_cast<CMessage*>(py_cmsg); in Item() local
273 cmsg->owner = self->owner; in Item()
274 cmsg->parent = self->parent; in Item()
275 cmsg->message = const_cast<Message*>(&msg); in Item()
276 cmsg->read_only = false; in Item()
Ddescriptor.cc234 CMessage* cmsg = reinterpret_cast<CMessage*>(value.get()); in GetOrBuildOptions() local
239 cmsg->message->CopyFrom(options); in GetOrBuildOptions()
247 bool success = cmsg->message->MergePartialFromCodedStream(&input); in GetOrBuildOptions()
/frameworks/native/libs/vr/libpdx_uds/
Dipc_helper.cpp311 cmsghdr* cmsg = CMSG_FIRSTHDR(&msg); in Receive() local
312 while (cmsg) { in Receive()
313 if (cmsg->cmsg_level == SOL_SOCKET && cmsg->cmsg_type == SCM_CREDENTIALS && in Receive()
314 cred && cmsg->cmsg_len == CMSG_LEN(sizeof(ucred))) { in Receive()
316 memcpy(cred, CMSG_DATA(cmsg), sizeof(ucred)); in Receive()
317 } else if (cmsg->cmsg_level == SOL_SOCKET && in Receive()
318 cmsg->cmsg_type == SCM_RIGHTS) { in Receive()
319 socklen_t payload_len = cmsg->cmsg_len - CMSG_LEN(0); in Receive()
320 const int* fds = reinterpret_cast<const int*>(CMSG_DATA(cmsg)); in Receive()
325 cmsg = CMSG_NXTHDR(&msg, cmsg); in Receive()
/frameworks/native/libs/nativewindow/
DAHardwareBuffer.cpp275 struct cmsghdr* cmsg = CMSG_FIRSTHDR(&msg); in AHardwareBuffer_sendHandleToUnixSocket() local
276 cmsg->cmsg_level = SOL_SOCKET; in AHardwareBuffer_sendHandleToUnixSocket()
277 cmsg->cmsg_type = SCM_RIGHTS; in AHardwareBuffer_sendHandleToUnixSocket()
278 cmsg->cmsg_len = CMSG_LEN(sizeof(int) * fdCount); in AHardwareBuffer_sendHandleToUnixSocket()
279 int* fdData = reinterpret_cast<int*>(CMSG_DATA(cmsg)); in AHardwareBuffer_sendHandleToUnixSocket()
281 msg.msg_controllen = cmsg->cmsg_len; in AHardwareBuffer_sendHandleToUnixSocket()
343 struct cmsghdr* cmsg = CMSG_FIRSTHDR(&msg); in AHardwareBuffer_recvHandleFromUnixSocket() local
344 if (!cmsg) { in AHardwareBuffer_recvHandleFromUnixSocket()
350 const int* fdData = reinterpret_cast<const int*>(CMSG_DATA(cmsg)); in AHardwareBuffer_recvHandleFromUnixSocket()