/frameworks/base/core/java/android/bluetooth/ |
D | BluetoothServerSocket.java | 82 /*package*/ final BluetoothSocket mSocket; field in BluetoothServerSocket 100 mSocket = new BluetoothSocket(type, -1, auth, encrypt, null, port, null); in BluetoothServerSocket() 102 mSocket.setExcludeSdp(true); in BluetoothServerSocket() 122 mSocket = new BluetoothSocket(type, -1, auth, encrypt, null, port, null, mitm, in BluetoothServerSocket() 125 mSocket.setExcludeSdp(true); in BluetoothServerSocket() 141 mSocket = new BluetoothSocket(type, -1, auth, encrypt, null, -1, uuid); in BluetoothServerSocket() 143 mChannel = mSocket.getPort(); in BluetoothServerSocket() 172 return mSocket.accept(timeout); in accept() 189 mSocket.close(); in close() 199 mSocket.setServiceName(serviceName); in setServiceName() [all …]
|
D | BluetoothInputStream.java | 30 private BluetoothSocket mSocket; field in BluetoothInputStream 33 mSocket = s; in BluetoothInputStream() 40 return mSocket.available(); in available() 44 mSocket.close(); in close() 59 int ret = mSocket.read(b, 0, 1); in read() 88 return mSocket.read(b, offset, length); in read()
|
D | BluetoothOutputStream.java | 30 private BluetoothSocket mSocket; field in BluetoothOutputStream 33 mSocket = s; in BluetoothOutputStream() 40 mSocket.close(); in close() 54 mSocket.write(b, 0, 1); in write() 76 mSocket.write(b, offset, count); in write()
|
D | BluetoothSocket.java | 137 private LocalSocket mSocket; field in BluetoothSocket 256 FileDescriptor[] fds = mSocket.getAncillaryFileDescriptors(); in acceptSocket() 265 as.mSocket = LocalSocket.createConnectedLocalSocket(fds[0]); in acceptSocket() 266 as.mSocketIS = as.mSocket.getInputStream(); in acceptSocket() 267 as.mSocketOS = as.mSocket.getOutputStream(); in acceptSocket() 400 mSocket = LocalSocket.createConnectedLocalSocket(fd); in connect() 401 mSocketIS = mSocket.getInputStream(); in connect() 402 mSocketOS = mSocket.getOutputStream(); in connect() 458 mSocket = LocalSocket.createConnectedLocalSocket(fd); in bindListen() 460 mSocketIS = mSocket.getInputStream(); in bindListen() [all …]
|
D | BluetoothAdapter.java | 2483 int errno = socket.mSocket.bindListen(); in listenUsingRfcommOn() 2485 socket.setChannel(socket.mSocket.getPort()); in listenUsingRfcommOn() 2603 int errno = socket.mSocket.bindListen(); in createNewRfcommSocketAndRecord() 2625 int errno = socket.mSocket.bindListen(); in listenUsingInsecureRfcommOn() 2627 socket.setChannel(socket.mSocket.getPort()); in listenUsingInsecureRfcommOn() 2650 int errno = socket.mSocket.bindListen(); in listenUsingEncryptedRfcommOn() 2652 socket.setChannel(socket.mSocket.getPort()); in listenUsingEncryptedRfcommOn() 2675 int errno = socket.mSocket.bindListen(); in listenUsingScoOn() 2704 int errno = socket.mSocket.bindListen(); in listenUsingL2capOn() 2706 int assignedChannel = socket.mSocket.getPort(); in listenUsingL2capOn() [all …]
|
/frameworks/av/media/libstagefright/rtsp/ |
D | ARTSPConnection.cpp | 54 mSocket(-1), in ARTSPConnection() 61 if (mSocket >= 0) { in ~ARTSPConnection() 64 NetworkUtils::UnRegisterSocketUserTag(mSocket); in ~ARTSPConnection() 65 NetworkUtils::UnRegisterSocketUserMark(mSocket); in ~ARTSPConnection() 67 close(mSocket); in ~ARTSPConnection() 68 mSocket = -1; in ~ARTSPConnection() 219 NetworkUtils::UnRegisterSocketUserTag(mSocket); in onConnect() 220 NetworkUtils::UnRegisterSocketUserMark(mSocket); in onConnect() 222 close(mSocket); in onConnect() 223 mSocket = -1; in onConnect() [all …]
|
D | UDPPusher.cpp | 38 mSocket = socket(AF_INET, SOCK_DGRAM, 0); in UDPPusher() 46 CHECK_EQ(0, bind(mSocket, (const struct sockaddr *)&addr, sizeof(addr))); in UDPPusher() 55 close(mSocket); in ~UDPPusher() 56 mSocket = -1; in ~UDPPusher() 89 mSocket, buffer->data(), buffer->size(), 0, in onPush() 134 mSocket, buffer->data(), buffer->size(), 0, in onMessageReceived()
|
D | ARTSPConnection.h | 49 int getSocket() { return mSocket; } in getSocket() 87 int mSocket; member
|
D | UDPPusher.h | 43 int mSocket; member
|
D | ARTPWriter.cpp | 58 mSocket = socket(AF_INET, SOCK_DGRAM, 0); in ARTPWriter() 59 CHECK_GE(mSocket, 0); in ARTPWriter() 100 close(mSocket); in ~ARTPWriter() 101 mSocket = -1; in ~ARTPWriter() 313 mSocket, buffer->data(), buffer->size(), 0, in send()
|
D | ARTPWriter.h | 79 int mSocket; member
|
/frameworks/opt/net/voip/src/jni/rtp/ |
D | AudioGroup.cpp | 117 int mSocket; member in __anon5fc701100111::AudioStream 151 mSocket = -1; in AudioStream() 159 close(mSocket); in ~AudioStream() 162 ALOGD("stream[%d] is dead", mSocket); in ~AudioStream() 201 mSocket = socket; in set() 221 ALOGD("stream[%d] is configured as %s %dkHz %dms mode %d", mSocket, in set() 272 ALOGV("stream[%d] skips %d packets", mSocket, skipped); in encode() 296 sendto(mSocket, buffer, sizeof(buffer), MSG_DONTWAIT, in encode() 337 ALOGV("stream[%d] no data", mSocket); in encode() 343 send(mSocket, samples, sizeof(samples), MSG_DONTWAIT); in encode() [all …]
|
/frameworks/base/core/tests/coretests/src/android/net/ |
D | SntpClientTest.java | 172 private final DatagramSocket mSocket; field in SntpClientTest.SntpTestServer 181 mSocket = makeSocket(); in SntpTestServer() 182 mAddress = mSocket.getLocalAddress(); in SntpTestServer() 183 mPort = mSocket.getLocalPort(); in SntpTestServer() 192 mSocket.receive(ntpMsg); in SntpTestServer() 207 mSocket.send(ntpMsg); in SntpTestServer() 215 mSocket.close(); in SntpTestServer()
|
/frameworks/base/services/backup/java/com/android/server/backup/restore/ |
D | RestoreFileRunnable.java | 36 private final ParcelFileDescriptor mSocket; field in RestoreFileRunnable 51 mSocket = ParcelFileDescriptor.dup(socket.getFileDescriptor()); in RestoreFileRunnable() 58 mAgent.doRestoreFile(mSocket, mInfo.size, mInfo.type, in run()
|
/frameworks/base/packages/Tethering/src/android/net/ip/ |
D | RouterAdvertisementDaemon.java | 116 private volatile FileDescriptor mSocket; field in RouterAdvertisementDaemon 608 mSocket = Os.socket(AF_INET6, SOCK_RAW, IPPROTO_ICMPV6); 611 mSocket, SOL_SOCKET, SO_SNDTIMEO, StructTimeval.fromMillis(send_timout_ms)); 612 SocketUtils.bindSocketToInterface(mSocket, mInterface.name); 613 TetheringUtils.setupRaSocket(mSocket, mInterface.index); 625 if (mSocket != null) { 627 SocketUtils.closeSocket(mSocket); 630 mSocket = null; 634 final FileDescriptor s = mSocket; 660 Os.sendto(mSocket, mRA, 0, mRaLength, 0, dest); [all …]
|
/frameworks/base/core/java/com/android/internal/os/ |
D | ZygoteConnection.java | 67 private final LocalSocket mSocket; field in ZygoteConnection 84 mSocket = socket; in ZygoteConnection() 92 mSocket.setSoTimeout(CONNECTION_TIMEOUT_MILLIS); in ZygoteConnection() 95 peer = mSocket.getPeerCredentials(); in ZygoteConnection() 110 return mSocket.getFileDescriptor(); in getFileDescriptor() 245 FileDescriptor fd = mSocket.getFileDescriptor(); in processOneCommand() 351 new int[]{mSocket.getFileDescriptor().getInt$()}, false); in stateChangeWithUsapPoolReset() 390 Runnable fpResult = zygoteServer.setUsapPoolStatus(newStatus, mSocket); in handleUsapPoolStatusChange() 460 mSocket.close(); in closeSocket()
|
/frameworks/opt/net/voip/src/java/android/net/rtp/ |
D | RtpStream.java | 57 private int mSocket = -1; field in RtpStream 169 return mSocket; in getSocket()
|
/frameworks/base/packages/LocalTransport/src/com/android/localtransport/ |
D | LocalTransport.java | 92 private ParcelFileDescriptor mSocket; field in LocalTransport 447 if (mSocket != null) { in tearDownFullBackup() 455 mSocket.close(); in tearDownFullBackup() 462 mSocket = null; in tearDownFullBackup() 497 if (mSocket != null) { in performFullBackup() 511 mSocket = ParcelFileDescriptor.dup(socket.getFileDescriptor()); in performFullBackup() 512 mSocketInputStream = new FileInputStream(mSocket.getFileDescriptor()); in performFullBackup() 526 if (mSocket == null) { in sendBackupData()
|
/frameworks/base/services/core/java/com/android/server/ |
D | NativeDaemonConnector.java | 60 private String mSocket; field in NativeDaemonConnector 96 mSocket = socket; in NativeDaemonConnector() 186 if (mSocket.startsWith("__test__") && Build.IS_DEBUGGABLE) { in determineSocketAddress() 187 return new LocalSocketAddress(mSocket); in determineSocketAddress() 189 return new LocalSocketAddress(mSocket, LocalSocketAddress.Namespace.RESERVED); in determineSocketAddress() 287 loge("closing stream for " + mSocket); in listenToSocket()
|
D | IpSecService.java | 598 private final EncapSocketRecord mSocket; field in IpSecService.TransformRecord 605 mSocket = socket; in TransformRecord() 619 return mSocket; in getSocketRecord() 661 .append(mSocket) in toString() 943 private FileDescriptor mSocket; field in IpSecService.EncapSocketRecord 948 mSocket = socket; in EncapSocketRecord() 956 IoUtils.closeQuietly(mSocket); in freeUnderlyingResources() 957 mSocket = null; in freeUnderlyingResources() 967 return mSocket; in getFileDescriptor() 986 .append(mSocket) in toString()
|
/frameworks/base/services/core/java/com/android/server/adb/ |
D | AdbDebuggingManager.java | 351 private LocalSocket mSocket; field in AdbDebuggingManager.AdbDebuggingThread 391 mSocket = new LocalSocket(LocalSocket.SOCKET_SEQPACKET); in openSocketLocked() 392 mSocket.connect(address); in openSocketLocked() 394 mOutputStream = mSocket.getOutputStream(); in openSocketLocked() 395 mInputStream = mSocket.getInputStream(); in openSocketLocked() 502 if (mSocket != null) { in closeSocketLocked() 503 mSocket.close(); in closeSocketLocked() 504 mSocket = null; in closeSocketLocked()
|