/frameworks/opt/net/voip/src/jni/rtp/ |
D | RtpStream.cpp | 48 int socket = ::socket(ss.ss_family, SOCK_DGRAM, 0); in create() local 50 if (socket == -1 || bind(socket, (sockaddr *)&ss, sizeof(ss)) != 0 || in create() 51 getsockname(socket, (sockaddr *)&ss, &len) != 0) { in create() 53 ::close(socket); in create() 61 env->SetIntField(thiz, gSocket, socket); in create() 64 ::close(socket); in create() 66 socket = ::socket(ss.ss_family, SOCK_DGRAM, 0); in create() 67 if (socket != -1) { in create() 77 if (bind(socket, (sockaddr *)&ss, sizeof(ss)) == 0) { in create() 78 env->SetIntField(thiz, gSocket, socket); in create() [all …]
|
/frameworks/base/tests/CompanionDeviceMultiDeviceTests/client/src/android/companion/multidevices/bluetooth/ |
D | BluetoothConnector.kt | 51 val socket = device.createRfcommSocketToServiceRecord(SERVICE_UUID) in attachClientSocket() constant 54 clientSockets[associationId] = socket in attachClientSocket() 56 clientSockets += associationId to socket in attachClientSocket() 59 socket.connect() in attachClientSocket() 60 Log.d(TAG, "Attaching client socket $socket.") in attachClientSocket() 63 socket.inputStream, in attachClientSocket() 64 socket.outputStream in attachClientSocket() 129 val socket = mServerSocket.accept() in run() constant 130 Log.d(TAG, "Attaching server socket $socket.") in run() 133 socket.inputStream, in run() [all …]
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | LmkdConnection.java | 128 final LocalSocket socket = openSocket(); in connect() local 130 if (socket == null) { in connect() 138 ostream = socket.getOutputStream(); in connect() 139 istream = socket.getInputStream(); in connect() 141 IoUtils.closeQuietly(socket); in connect() 147 IoUtils.closeQuietly(socket); in connect() 151 mLmkdSocket = socket; in connect() 250 final LocalSocket socket; in openSocket() local 253 socket = new LocalSocket(LocalSocket.SOCKET_SEQPACKET); in openSocket() 254 socket.connect( in openSocket() [all …]
|
/frameworks/base/core/java/android/net/ |
D | PrivateDnsConnectivityChecker.java | 49 try (SSLSocket socket = (SSLSocket) factory.createSocket()) { in canConnectToPrivateDnsServer() argument 50 socket.setSoTimeout(CONNECTION_TIMEOUT_MS); in canConnectToPrivateDnsServer() 51 socket.connect(new InetSocketAddress(hostname, PRIVATE_DNS_PORT)); in canConnectToPrivateDnsServer() 52 if (!socket.isConnected()) { in canConnectToPrivateDnsServer() 56 socket.startHandshake(); in canConnectToPrivateDnsServer()
|
D | SSLCertificateSocketFactory.java | 231 public static void verifyHostname(Socket socket, String hostname) throws IOException { in verifyHostname() argument 232 if (!(socket instanceof SSLSocket)) { in verifyHostname() 239 SSLSocket ssl = (SSLSocket) socket; in verifyHostname() 387 public byte[] getNpnSelectedProtocol(Socket socket) { in getNpnSelectedProtocol() argument 388 return castToOpenSSLSocket(socket).getNpnSelectedProtocol(); in getNpnSelectedProtocol() 402 public byte[] getAlpnSelectedProtocol(Socket socket) { in getAlpnSelectedProtocol() argument 403 return castToOpenSSLSocket(socket).getAlpnSelectedProtocol(); in getAlpnSelectedProtocol() 440 public void setUseSessionTickets(Socket socket, boolean useSessionTickets) { in setUseSessionTickets() argument 441 castToOpenSSLSocket(socket).setUseSessionTickets(useSessionTickets); in setUseSessionTickets() 452 public void setHostname(Socket socket, String hostName) { in setHostname() argument [all …]
|
D | SntpClient.java | 144 DatagramSocket socket = null; in requestTime() local 148 socket = new DatagramSocket(); in requestTime() 149 network.bindSocket(socket); in requestTime() 150 socket.setSoTimeout(timeout); in requestTime() 168 socket.send(request); in requestTime() 172 socket.receive(response); in requestTime() 218 if (socket != null) { in requestTime() 219 socket.close(); in requestTime()
|
/frameworks/base/core/java/android/security/net/config/ |
D | RootTrustManager.java | 62 public void checkClientTrusted(X509Certificate[] certs, String authType, Socket socket) in checkClientTrusted() argument 67 config.getTrustManager().checkClientTrusted(certs, authType, socket); in checkClientTrusted() 80 public void checkServerTrusted(X509Certificate[] certs, String authType, Socket socket) in checkServerTrusted() argument 82 if (socket instanceof SSLSocket) { in checkServerTrusted() 83 SSLSocket sslSocket = (SSLSocket) socket; in checkServerTrusted() 90 config.getTrustManager().checkServerTrusted(certs, authType, socket); in checkServerTrusted()
|
/frameworks/opt/net/wifi/libwifi_system_iface/ |
D | interface_tool.cpp | 63 base::unique_fd sock(socket(PF_INET, SOCK_DGRAM | SOCK_CLOEXEC, 0)); in GetUpState() 79 base::unique_fd sock(socket(PF_INET, SOCK_DGRAM | SOCK_CLOEXEC, 0)); in SetUpState() 121 base::unique_fd sock(socket(PF_INET, SOCK_DGRAM | SOCK_CLOEXEC, 0)); in SetMacAddress() 154 base::unique_fd sock(socket(PF_INET, SOCK_DGRAM | SOCK_CLOEXEC, 0)); in GetFactoryMacAddress() 179 base::unique_fd sock(socket(PF_INET, SOCK_DGRAM | SOCK_CLOEXEC, 0)); in createBridge() 191 base::unique_fd sock(socket(PF_INET, SOCK_DGRAM | SOCK_CLOEXEC, 0)); in deleteBridge() 212 base::unique_fd sock(socket(PF_INET, SOCK_DGRAM | SOCK_CLOEXEC, 0)); in addIfaceToBridge() 233 base::unique_fd sock(socket(PF_INET, SOCK_DGRAM | SOCK_CLOEXEC, 0)); in removeIfaceFromBridge()
|
/frameworks/base/ravenwood/runtime-helper-src/libcore-fake/libcore/io/ |
D | IoUtils.java | 39 public static void closeQuietly(Socket socket) { in closeQuietly() argument 40 if (socket != null) { in closeQuietly() 42 socket.close(); in closeQuietly()
|
/frameworks/native/libs/binder/ |
D | OS_unix_base.cpp | 72 ssize_t sendMessageOnSocket(const RpcTransportFd& socket, iovec* iovs, int niovs, in sendMessageOnSocket() argument 104 return TEMP_FAILURE_RETRY(sendmsg(socket.fd.get(), &msg, MSG_NOSIGNAL | MSG_CMSG_CLOEXEC)); in sendMessageOnSocket() 113 return TEMP_FAILURE_RETRY(sendmsg(socket.fd.get(), &msg, MSG_NOSIGNAL)); in sendMessageOnSocket() 116 ssize_t receiveMessageFromSocket(const RpcTransportFd& socket, iovec* iovs, int niovs, in receiveMessageFromSocket() argument 128 ssize_t processSize = TEMP_FAILURE_RETRY(recvmsg(socket.fd.get(), &msg, MSG_NOSIGNAL)); in receiveMessageFromSocket() 162 return TEMP_FAILURE_RETRY(recvmsg(socket.fd.get(), &msg, MSG_NOSIGNAL)); in receiveMessageFromSocket()
|
D | RpcTransportRaw.cpp | 40 explicit RpcTransportRaw(android::RpcTransportFd socket) : mSocket(std::move(socket)) {} in RpcTransportRaw() argument 95 std::unique_ptr<RpcTransport> newTransport(android::RpcTransportFd socket, in newTransport() argument 97 return std::make_unique<RpcTransportRaw>(std::move(socket)); in newTransport()
|
D | OS.h | 40 sendMessageOnSocket(const RpcTransportFd& socket, iovec* iovs, int niovs, 44 receiveMessageFromSocket(const RpcTransportFd& socket, iovec* iovs, int niovs,
|
/frameworks/native/services/surfaceflinger/ |
D | surfaceflinger.rc | 8 …socket pdx/system/vr/display/client stream 0666 system graphics u:object_r:pdx_display_client_… 9 …socket pdx/system/vr/display/manager stream 0666 system graphics u:object_r:pdx_display_manager… 10 …socket pdx/system/vr/display/vsync stream 0666 system graphics u:object_r:pdx_display_vsync_e…
|
/frameworks/base/core/java/com/android/internal/os/ |
D | AppZygoteInit.java | 45 protected ZygoteConnection createNewConnection(LocalSocket socket, String abiList) in createNewConnection() argument 47 return new AppZygoteConnection(socket, abiList); in createNewConnection() 52 AppZygoteConnection(LocalSocket socket, String abiList) throws IOException { in AppZygoteConnection() argument 53 super(socket, abiList); in AppZygoteConnection()
|
D | WebViewZygoteInit.java | 46 protected ZygoteConnection createNewConnection(LocalSocket socket, String abiList) in createNewConnection() argument 48 return new WebViewZygoteConnection(socket, abiList); in createNewConnection() 53 WebViewZygoteConnection(LocalSocket socket, String abiList) throws IOException { in WebViewZygoteConnection() argument 54 super(socket, abiList); in WebViewZygoteConnection()
|
D | ZygoteCommandBuffer.java | 59 ZygoteCommandBuffer(@Nullable LocalSocket socket) { in ZygoteCommandBuffer() argument 60 mSocket = socket; in ZygoteCommandBuffer() 61 if (socket == null) { in ZygoteCommandBuffer()
|
/frameworks/native/cmds/dumpstate/ |
D | dumpstate.rc | 8 socket dumpstate stream 0660 shell log 13 # dumpstatez generates a zipped bugreport but also uses a socket to print the file location once 16 socket dumpstate stream 0660 shell log
|
/frameworks/base/packages/services/Proxy/src/com/android/proxyhandler/ |
D | ProxyServer.java | 239 private void sendLine(Socket socket, String line) throws IOException { in sendLine() argument 240 OutputStream os = socket.getOutputStream(); in sendLine() 253 private void skipToRequestBody(Socket socket) throws IOException { in skipToRequestBody() argument 254 while (getLine(socket.getInputStream()).length() != 0); in skipToRequestBody() 336 Socket socket = serverSocket.accept(); in run() local 338 if (socket.getInetAddress().isLoopbackAddress()) { in run() 339 ProxyConnection parser = new ProxyConnection(socket); in run() 343 socket.close(); in run()
|
/frameworks/native/libs/vr/libpdx_uds/ |
D | client_channel_factory.cpp | 42 ClientChannelFactory::ClientChannelFactory(LocalHandle socket) in ClientChannelFactory() argument 43 : socket_{std::move(socket)} {} in ClientChannelFactory() 52 LocalHandle socket) { in Create() argument 54 new ClientChannelFactory{std::move(socket)}}; in Create() 63 socket_.Reset(socket(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0)); in Connect()
|
/frameworks/base/core/java/android/net/util/ |
D | SocketUtils.java | 49 public static void bindSocketToInterface(@NonNull FileDescriptor socket, @NonNull String iface) in bindSocketToInterface() argument 54 Os.setsockoptIfreq(socket, SOL_SOCKET, SO_BINDTODEVICE, iface); in bindSocketToInterface() 55 NetworkUtilsInternal.protectFromVpn(socket); in bindSocketToInterface()
|
/frameworks/base/tests/BandwidthTests/src/com/android/tests/bandwidthenforcement/ |
D | BandwidthEnforcementTestService.java | 161 final DatagramSocket socket = new DatagramSocket(); in testDns() local 163 socket.setSoTimeout(10000); in testDns() 168 socket.send(queryPacket); in testDns() 172 socket.receive(replyPacket); in testDns() 176 socket.close(); in testDns()
|
/frameworks/base/core/java/android/app/backup/ |
D | BackupTransport.java | 494 public int performFullBackup(PackageInfo targetPackage, ParcelFileDescriptor socket, in performFullBackup() argument 496 return performFullBackup(targetPackage, socket); in performFullBackup() 503 public int performFullBackup(PackageInfo targetPackage, ParcelFileDescriptor socket) { in performFullBackup() argument 628 public int getNextFullRestoreDataChunk(ParcelFileDescriptor socket) { in getNextFullRestoreDataChunk() argument 875 public void performFullBackup(PackageInfo targetPackage, ParcelFileDescriptor socket, in performFullBackup() argument 878 int result = BackupTransport.this.performFullBackup(targetPackage, socket, flags); in performFullBackup() 951 public void getNextFullRestoreDataChunk(ParcelFileDescriptor socket, in getNextFullRestoreDataChunk() argument 954 int result = BackupTransport.this.getNextFullRestoreDataChunk(socket); in getNextFullRestoreDataChunk()
|
/frameworks/base/core/jni/ |
D | com_android_internal_net_NetworkUtilsInternal.cpp | 29 static jboolean android_net_utils_protectFromVpn(JNIEnv *env, jclass clazz, jint socket) { in android_net_utils_protectFromVpn() argument 30 return (jboolean)!protectFromVpn(socket); in android_net_utils_protectFromVpn()
|
D | android_view_InputEventReceiver.md | 12 …nsume the batched input. It proactively tries to consume everything that has come in to the socket. 19 …socket becomes readable (e.g., it has unread events), the looper will execute `handleEvent`. At th… 21 …nce. Therefore, whenever the events are available, the app will try to completely drain the socket. 31 Before the batched events are consumed, the socket is drained once again. This is an optimization.
|
/frameworks/native/libs/vr/libpdx_uds/private/uds/ |
D | client_channel_factory.h | 16 static std::unique_ptr<pdx::ClientChannelFactory> Create(LocalHandle socket); 26 explicit ClientChannelFactory(LocalHandle socket);
|