Home
last modified time | relevance | path

Searched refs:sock (Results 1 – 15 of 15) sorted by relevance

/packages/apps/Nfc/src/com/android/nfc/handover/
DHandoverClient.java53 LlcpSocket sock = null; in connect() local
55 sock = service.createLlcpSocket(0, MIU, 1, 1024); in connect()
65 sock.connectToService(HandoverServer.HANDOVER_SERVICE_NAME); in connect()
67 if (sock != null) { in connect()
69 sock.close(); in connect()
80 mSocket = sock; in connect()
101 LlcpSocket sock = null; in sendHandoverRequest()
106 sock = mSocket; in sendHandoverRequest()
113 int remoteMiu = sock.getRemoteMiu(); in sendHandoverRequest()
119 sock.send(tmpBuffer); in sendHandoverRequest()
[all …]
/packages/apps/Nfc/src/com/android/nfc/ndefpush/
DNdefPushClient.java55 LlcpSocket sock = null; in connect() local
58 sock = service.createLlcpSocket(0, MIU, 1, 1024); in connect()
67 sock.connectToService(NdefPushServer.SERVICE_NAME); in connect()
69 if (sock != null) { in connect()
71 sock.close(); in connect()
83 mSocket = sock; in connect()
89 LlcpSocket sock = null; in push() local
95 sock = mSocket; in push()
104 remoteMiu = sock.getRemoteMiu(); in push()
110 sock.send(tmpBuffer); in push()
[all …]
DNdefPushServer.java66 ConnectionThread(LlcpSocket sock) { in ConnectionThread() argument
68 mSock = sock; in ConnectionThread()
/packages/modules/DnsResolver/
Dres_send.cpp159 static int connect_with_timeout(int sock, const struct sockaddr* nsap, socklen_t salen,
161 static int retrying_poll(const int sock, short events, const struct timespec* finish);
869 static int connect_with_timeout(int sock, const sockaddr* nsap, socklen_t salen, in connect_with_timeout() argument
873 origflags = fcntl(sock, F_GETFL, 0); in connect_with_timeout()
874 fcntl(sock, F_SETFL, origflags | O_NONBLOCK); in connect_with_timeout()
876 res = connect(sock, nsap, salen); in connect_with_timeout()
884 LOG(INFO) << __func__ << ": " << sock << " send_vc"; in connect_with_timeout()
885 res = retrying_poll(sock, POLLIN | POLLOUT, &finish); in connect_with_timeout()
891 fcntl(sock, F_SETFL, origflags); in connect_with_timeout()
892 LOG(INFO) << __func__ << ": " << sock << " connect_with_const timeout returning " << res; in connect_with_timeout()
[all …]
Dresolv_private.h93 for (auto& sock : nssocks) { in closeSockets()
94 sock.reset(); in closeSockets()
171 inline void resolv_tag_socket(int sock, uid_t uid, pid_t pid) { in resolv_tag_socket() argument
174 if (int err = android::net::gResNetdCallbacks.tagSocket(sock, TAG_SYSTEM_DNS, uid, pid)) { in resolv_tag_socket()
181 if (fchown(sock, uid, -1) == -1) { in resolv_tag_socket()
Dres_init.cpp103 for (auto& sock : statp->nssocks) { in res_init() local
104 sock.reset(); in res_init()
123 for (auto& sock : resOutput.nssocks) { in fromResState() local
124 sock.reset(); in fromResState()
Dgetaddrinfo.cpp1294 int sock; in _find_src_addr() local
1310 sock = socket(addr->sa_family, SOCK_DGRAM | SOCK_CLOEXEC, IPPROTO_UDP); in _find_src_addr()
1311 if (sock == -1) { in _find_src_addr()
1318 if (mark != MARK_UNSET && setsockopt(sock, SOL_SOCKET, SO_MARK, &mark, sizeof(mark)) < 0) { in _find_src_addr()
1319 close(sock); in _find_src_addr()
1322 if (uid > 0 && uid != NET_CONTEXT_INVALID_UID && fchown(sock, uid, (gid_t) -1) < 0) { in _find_src_addr()
1323 close(sock); in _find_src_addr()
1327 ret = connect(sock, addr, len); in _find_src_addr()
1331 close(sock); in _find_src_addr()
1335 if (src_addr && getsockname(sock, src_addr, &len) == -1) { in _find_src_addr()
[all …]
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/
DIkeUdp6Socket.java80 FileDescriptor sock = Os.socket(AF_INET6, SOCK_DGRAM, IPPROTO_UDP); in getInstance() local
81 Os.bind(sock, INADDR_ANY, 0); in getInstance()
84 Os.fcntlInt(sock, F_SETFL, SOCK_DGRAM | SOCK_NONBLOCK); in getInstance()
85 network.bindSocket(sock); in getInstance()
87 ikeSocket = new IkeUdp6Socket(sock, network, handler); in getInstance()
DIkeUdp4Socket.java80 FileDescriptor sock = Os.socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); in getInstance() local
81 Os.bind(sock, INADDR_ANY, 0); in getInstance()
84 Os.fcntlInt(sock, F_SETFL, SOCK_DGRAM | SOCK_NONBLOCK); in getInstance()
85 network.bindSocket(sock); in getInstance()
87 ikeSocket = new IkeUdp4Socket(sock, network, handler); in getInstance()
DIkeSessionStateMachine.java1051 FileDescriptor sock = in enterState() local
1056 network.bindSocket(sock); in enterState()
1057 Os.connect(sock, mRemoteAddress, mIkeSocket.getIkeServerPort()); in enterState()
1058 InetSocketAddress localAddr = (InetSocketAddress) Os.getsockname(sock); in enterState()
1061 Os.close(sock); in enterState()
/packages/services/Car/tools/emulator/
Dvhal_emulator.py121 self.sock.sendall(msgHdr)
123 self.sock.sendall(msgStr)
146 self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
147 self.sock.connect(('localhost', localPortNumber))
156 b = self.sock.recv(4)
161 b = self.sock.recv(msgLen)
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/
DIkeSocketTestBase.java103 FileDescriptor sock = in getBoundUdpSocket() local
105 Os.bind(sock, address, IkeSocket.SERVER_PORT_UDP_ENCAPSULATED); in getBoundUdpSocket()
106 return sock; in getBoundUdpSocket()
/packages/inputmethods/LatinIME/dictionaries/
Den_GB_wordlist.combined.gz1dictionary=main:en_gb,locale=en_GB,description=English (UK),date ...
Den_US_wordlist.combined.gz1dictionary=main:en_us,locale=en_US,description=English (US),date ...
Den_wordlist.combined.gz1dictionary=main:en,locale=en,description=English,date=1414726273, ...