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.java573 FileDescriptor sockFd = Os.socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP);
579 mIpSecService.mUidFdTagger.tag(sockFd, Process.LAST_APPLICATION_UID);
580 verify(mockSocketTagger).tag(eq(sockFd));
615 FileDescriptor sockFd = udpEncapResp.fileDescriptor.getFileDescriptor();
618 return fileDescriptorsEqual(sockFd, argFd);
631 FileDescriptor sockFd = udpEncapResp.fileDescriptor.getFileDescriptor(); in testOpenUdpEncapsulationSocketCallsSetEncapSocketOwner() local
634 StructStat sockStat = Os.fstat(sockFd); in testOpenUdpEncapsulationSocketCallsSetEncapSocketOwner()
/frameworks/base/services/core/java/com/android/server/
DIpSecService.java1167 private int bindToRandomPort(FileDescriptor sockFd) throws IOException { in bindToRandomPort() argument
1175 Os.bind(sockFd, INADDR_ANY, port); in bindToRandomPort()
1226 FileDescriptor sockFd = null; in openUdpEncapsulationSocket() local
1232 sockFd = Os.socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); in openUdpEncapsulationSocket()
1233 mUidFdTagger.tag(sockFd, callingUid); in openUdpEncapsulationSocket()
1237 sockFd, in openUdpEncapsulationSocket()
1243 new ParcelFileDescriptor(sockFd), callingUid); in openUdpEncapsulationSocket()
1246 Os.bind(sockFd, INADDR_ANY, port); in openUdpEncapsulationSocket()
1248 port = bindToRandomPort(sockFd); in openUdpEncapsulationSocket()
1254 new EncapSocketRecord(resourceId, sockFd, port), binder)); in openUdpEncapsulationSocket()
[all …]