Home
last modified time | relevance | path

Searched refs:sockFd (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/tests/net/java/com/android/server/
DIpSecServiceTest.java576 FileDescriptor sockFd = Os.socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP);
582 mIpSecService.mUidFdTagger.tag(sockFd, Process.LAST_APPLICATION_UID);
583 verify(mockSocketTagger).tag(eq(sockFd));
618 FileDescriptor sockFd = udpEncapResp.fileDescriptor.getFileDescriptor();
621 return fileDescriptorsEqual(sockFd, argFd);
634 FileDescriptor sockFd = udpEncapResp.fileDescriptor.getFileDescriptor(); in testOpenUdpEncapsulationSocketCallsSetEncapSocketOwner() local
637 StructStat sockStat = Os.fstat(sockFd); in testOpenUdpEncapsulationSocketCallsSetEncapSocketOwner()
/frameworks/base/services/core/java/com/android/server/
DIpSecService.java1178 private int bindToRandomPort(FileDescriptor sockFd) throws IOException { in bindToRandomPort() argument
1186 Os.bind(sockFd, INADDR_ANY, port); in bindToRandomPort()
1237 FileDescriptor sockFd = null; in openUdpEncapsulationSocket() local
1243 sockFd = Os.socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); in openUdpEncapsulationSocket()
1244 mUidFdTagger.tag(sockFd, callingUid); in openUdpEncapsulationSocket()
1248 sockFd, in openUdpEncapsulationSocket()
1254 new ParcelFileDescriptor(sockFd), callingUid); in openUdpEncapsulationSocket()
1257 Os.bind(sockFd, INADDR_ANY, port); in openUdpEncapsulationSocket()
1259 port = bindToRandomPort(sockFd); in openUdpEncapsulationSocket()
1265 new EncapSocketRecord(resourceId, sockFd, port), binder)); in openUdpEncapsulationSocket()
[all …]