Home
last modified time | relevance | path

Searched refs:mSocket (Results 1 – 25 of 28) 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()
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()
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()
DBluetoothSocket.java115 private LocalSocket mSocket; field in BluetoothSocket
192 FileDescriptor[] fds = mSocket.getAncillaryFileDescriptors(); in acceptSocket()
199 as.mSocket = new LocalSocket(fds[0]); in acceptSocket()
200 as.mSocketIS = as.mSocket.getInputStream(); in acceptSocket()
201 as.mSocketOS = as.mSocket.getOutputStream(); in acceptSocket()
316 mSocket = new LocalSocket(fd); in connect()
317 mSocketIS = mSocket.getInputStream(); in connect()
318 mSocketOS = mSocket.getOutputStream(); in connect()
365 mSocket = new LocalSocket(fd); in bindListen()
367 mSocketIS = mSocket.getInputStream(); in bindListen()
[all …]
DBluetoothAdapter.java1122 int errno = socket.mSocket.bindListen(); in listenUsingRfcommOn()
1235 int errno = socket.mSocket.bindListen(); in createNewRfcommSocketAndRecord()
1256 int errno = socket.mSocket.bindListen(); in listenUsingInsecureRfcommOn()
1278 int errno = socket.mSocket.bindListen(); in listenUsingEncryptedRfcommOn()
1299 int errno = socket.mSocket.bindListen(); in listenUsingScoOn()
/frameworks/av/media/libstagefright/rtsp/
DARTSPConnection.cpp52 mSocket(-1), in ARTSPConnection()
59 if (mSocket >= 0) { in ~ARTSPConnection()
62 HTTPBase::UnRegisterSocketUserTag(mSocket); in ~ARTSPConnection()
63 HTTPBase::UnRegisterSocketUserMark(mSocket); in ~ARTSPConnection()
65 close(mSocket); in ~ARTSPConnection()
66 mSocket = -1; in ~ARTSPConnection()
217 HTTPBase::UnRegisterSocketUserTag(mSocket); in onConnect()
218 HTTPBase::UnRegisterSocketUserMark(mSocket); in onConnect()
220 close(mSocket); in onConnect()
221 mSocket = -1; 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/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/opt/net/voip/src/jni/rtp/
DAudioGroup.cpp117 int mSocket; member in __anon556074da0111::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/tests/servicestests/src/com/android/server/
DNetworkManagementServiceTest.java46 private LocalSocket mSocket; field in NetworkManagementServiceTest
61 mSocket = mServerSocket.accept(); in setUp()
62 mOutputStream = mSocket.getOutputStream(); in setUp()
67 if (mSocket != null) mSocket.close(); in tearDown()
/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.java59 private LocalSocket mSocket = null; field in UsbDebuggingManager
74 mSocket = new LocalSocket(); in listenToSocket()
75 mSocket.connect(address); in listenToSocket()
77 mOutputStream = mSocket.getOutputStream(); in listenToSocket()
78 inputStream = mSocket.getInputStream(); in listenToSocket()
127 mSocket.close(); in closeSocket()
183 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/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()
114 if (mSocket.startsWith("__test__") && Build.IS_DEBUGGABLE) { in determineSocketAddress()
115 return new LocalSocketAddress(mSocket); in determineSocketAddress()
117 return new LocalSocketAddress(mSocket, LocalSocketAddress.Namespace.RESERVED); in determineSocketAddress()
196 loge("closing stream for " + mSocket); in listenToSocket()
/frameworks/av/media/libstagefright/foundation/
DANetworkSession.cpp125 int mSocket; member
168 mSocket(s), in Session()
179 mSocket, (struct sockaddr *)&localAddr, &localAddrLen); in Session()
186 mSocket, (struct sockaddr *)&remoteAddr, &remoteAddrLen); in Session()
219 close(mSocket); in ~Session()
220 mSocket = -1; in ~Session()
228 return mSocket; in socket()
282 mSocket, buf->data(), buf->capacity(), 0, in readMore()
342 n = recv(mSocket, tmp, sizeof(tmp), 0); in readMore()
562 n = send(mSocket, datagram->data(), datagram->size(), 0); in writeMore()
[all …]

12