Home
last modified time | relevance | path

Searched refs:mSocket (Results 1 – 25 of 27) sorted by relevance

12

/frameworks/base/core/java/android/bluetooth/
DBluetoothServerSocket.java70 /*package*/ final BluetoothSocket mSocket; field in BluetoothServerSocket
87 mSocket = new BluetoothSocket(type, -1, auth, encrypt, null, port, null); in BluetoothServerSocket()
101 mSocket = new BluetoothSocket(type, -1, auth, encrypt, null, -1, uuid); in BluetoothServerSocket()
102 mChannel = mSocket.getPort(); in BluetoothServerSocket()
131 return mSocket.accept(timeout); in accept()
147 mSocket.close(); in close()
155 mSocket.setServiceName(ServiceName); in setServiceName()
DBluetoothOutputStream.java30 private BluetoothSocket mSocket; field in BluetoothOutputStream
33 mSocket = s; in BluetoothOutputStream()
40 mSocket.close(); in close()
56 mSocket.write(b, 0, 1); in write()
85 mSocket.write(b, offset, count); in write()
96 mSocket.flush(); in flush()
DBluetoothInputStream.java30 private BluetoothSocket mSocket; field in BluetoothInputStream
33 mSocket = s; in BluetoothInputStream()
40 return mSocket.available(); in available()
44 mSocket.close(); in close()
60 int ret = mSocket.read(b, 0, 1); in read()
96 return mSocket.read(b, offset, length); in read()
DBluetoothSocket.java114 private LocalSocket mSocket; field in BluetoothSocket
191 FileDescriptor[] fds = mSocket.getAncillaryFileDescriptors(); in acceptSocket()
198 as.mSocket = new LocalSocket(fds[0]); in acceptSocket()
199 as.mSocketIS = as.mSocket.getInputStream(); in acceptSocket()
200 as.mSocketOS = as.mSocket.getOutputStream(); in acceptSocket()
315 mSocket = new LocalSocket(fd); in connect()
316 mSocketIS = mSocket.getInputStream(); in connect()
317 mSocketOS = mSocket.getOutputStream(); in connect()
364 mSocket = new LocalSocket(fd); in bindListen()
366 mSocketIS = mSocket.getInputStream(); in bindListen()
[all …]
DBluetoothAdapter.java923 int errno = socket.mSocket.bindListen(); in listenUsingRfcommOn()
1036 int errno = socket.mSocket.bindListen(); in createNewRfcommSocketAndRecord()
1057 int errno = socket.mSocket.bindListen(); in listenUsingInsecureRfcommOn()
1079 int errno = socket.mSocket.bindListen(); in listenUsingEncryptedRfcommOn()
1100 int errno = socket.mSocket.bindListen(); in listenUsingScoOn()
/frameworks/native/opengl/libs/GLES_trace/src/
Dgltrace_transport.cpp95 mSocket = socket; in TCPStream()
104 if (mSocket > 0) { in closeStream()
105 close(mSocket); in closeStream()
106 mSocket = 0; in closeStream()
111 if (mSocket <= 0) { in send()
116 int n = write(mSocket, buf, len); in send()
123 if (mSocket <= 0) { in receive()
129 int n = read(mSocket, (uint8_t*)data + totalRead, len - totalRead); in receive()
Dgltrace_transport.h32 int mSocket; variable
/frameworks/av/media/libstagefright/rtsp/
DARTSPConnection.cpp52 mSocket(-1), in ARTSPConnection()
59 if (mSocket >= 0) { in ~ARTSPConnection()
62 HTTPBase::UnRegisterSocketUserTag(mSocket); in ~ARTSPConnection()
64 close(mSocket); in ~ARTSPConnection()
65 mSocket = -1; in ~ARTSPConnection()
216 HTTPBase::UnRegisterSocketUserTag(mSocket); in onConnect()
218 close(mSocket); in onConnect()
219 mSocket = -1; in onConnect()
264 mSocket = socket(AF_INET, SOCK_STREAM, 0); in onConnect()
267 HTTPBase::RegisterSocketUserTag(mSocket, mUID, in onConnect()
[all …]
DUDPPusher.cpp38 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()
DUDPPusher.h43 int mSocket; member
DARTPWriter.cpp58 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()
DARTPWriter.h79 int mSocket; member
DARTSPConnection.h85 int mSocket; member
/frameworks/opt/net/voip/src/jni/rtp/
DAudioGroup.cpp117 int mSocket; member in __anona8fbd2760111::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/services/common_time/
Dcommon_time_server.cpp105 , mSocket(-1) in CommonTimeServer()
222 if (mSocket >= 0) { in runStateMachine_l()
223 pfds[eventCnt].fd = mSocket; in runStateMachine_l()
264 if (mBindIfaceDirty || ((mSocket >= 0) && shouldAutoDisable())) { in runStateMachine_l()
272 if ((mSocket < 0) && mBindIfaceValid && !shouldAutoDisable()) { in runStateMachine_l()
362 if ((mSocket >= 0) && (eventCnt > 1) && (pfds[1].revents)) { in runStateMachine_l()
384 if (mSocket >= 0) { in cleanupSocket_l()
385 close(mSocket); in cleanupSocket_l()
386 mSocket = -1; in cleanupSocket_l()
435 mSocket = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); in setupSocket_l()
[all …]
Dcommon_time_server.h200 int mSocket; variable
Dcommon_time_server_api.cpp257 if (mSocket >= 0) in forceNetworklessMasterMode()
/frameworks/base/services/java/com/android/server/pm/
DInstaller.java37 LocalSocket mSocket; field in Installer
44 if (mSocket != null) { in connect()
49 mSocket = new LocalSocket(); in connect()
54 mSocket.connect(address); in connect()
56 mIn = mSocket.getInputStream(); in connect()
57 mOut = mSocket.getOutputStream(); in connect()
68 if (mSocket != null) in disconnect()
69 mSocket.close(); in disconnect()
82 mSocket = null; in disconnect()
/frameworks/base/core/java/android/net/arp/
DArpPeer.java48 private final RawSocket mSocket; field in ArpPeer
76 mSocket = new RawSocket(mInterfaceName, RawSocket.ETH_P_ARP); in ArpPeer()
103 mSocket.write(L2_BROADCAST, buf.array(), 0, buf.limit()); in doArp()
109 int readLen = mSocket.read(recvBuf, 0, recvBuf.length, -1, in doArp()
170 mSocket.close(); in close()
/frameworks/base/services/java/com/android/server/usb/
DUsbDebuggingManager.java61 private LocalSocket mSocket = null; field in UsbDebuggingManager
78 mSocket = new LocalSocket(); in listenToSocket()
79 mSocket.connect(address); in listenToSocket()
81 mOutputStream = mSocket.getOutputStream(); in listenToSocket()
82 inputStream = mSocket.getInputStream(); in listenToSocket()
131 mSocket.close(); in closeSocket()
187 mSocket = null; in handleMessage()
/frameworks/opt/net/voip/src/java/android/net/rtp/
DRtpStream.java57 private int mSocket = -1; field in RtpStream
169 return mSocket; in getSocket()
/frameworks/av/media/libstagefright/wifi-display/
DANetworkSession.cpp106 int mSocket; member
149 mSocket(s), in Session()
160 mSocket, (struct sockaddr *)&localAddr, &localAddrLen); in Session()
167 mSocket, (struct sockaddr *)&remoteAddr, &remoteAddrLen); in Session()
200 close(mSocket); in ~Session()
201 mSocket = -1; in ~Session()
209 return mSocket; in socket()
251 mSocket, buf->data(), buf->capacity(), 0, in readMore()
311 n = recv(mSocket, tmp, sizeof(tmp), 0); in readMore()
468 n = send(mSocket, datagram->data(), datagram->size(), 0); in writeMore()
[all …]
/frameworks/base/core/java/com/android/internal/os/
DZygoteConnection.java72 private final LocalSocket mSocket; field in ZygoteConnection
85 mSocket = socket; in ZygoteConnection()
93 mSocket.setSoTimeout(CONNECTION_TIMEOUT_MILLIS); in ZygoteConnection()
96 peer = mSocket.getPeerCredentials(); in ZygoteConnection()
102 peerSecurityContext = SELinux.getPeerContext(mSocket.getFileDescriptor()); in ZygoteConnection()
111 return mSocket.getFileDescriptor(); in getFileDesciptor()
173 descriptors = mSocket.getAncillaryFileDescriptors(); in runOnce()
264 mSocket.close(); in closeSocket()
/frameworks/base/services/java/com/android/server/
DNativeDaemonConnector.java53 private String mSocket; field in NativeDaemonConnector
75 mSocket = socket; in NativeDaemonConnector()
116 LocalSocketAddress address = new LocalSocketAddress(mSocket, in listenToSocket()
187 loge("closing stream for " + mSocket); in listenToSocket()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DRIL.java224 LocalSocket mSocket; field in RIL
317 s = mSocket; in handleMessage()
559 mSocket = s; in run()
564 InputStream is = mSocket.getInputStream(); in run()
599 mSocket.close(); in run()
603 mSocket = null; in run()
2203 if (mSocket == null) { in send()
4051 pw.println(" mSocket=" + mSocket); in dump()

12