Home
last modified time | relevance | path

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

12

/frameworks/base/core/java/android/bluetooth/
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()
DBluetoothServerSocket.java68 /*package*/ final BluetoothSocket mSocket; field in BluetoothServerSocket
85 mSocket = new BluetoothSocket(type, -1, auth, encrypt, null, port, null); in BluetoothServerSocket()
113 return mSocket.accept(timeout); in accept()
129 mSocket.close(); in close()
DBluetoothAdapter.java893 int errno = socket.mSocket.bindListen(); in listenUsingRfcommOn()
898 socket.mSocket.throwErrnoNative(errno); in listenUsingRfcommOn()
1015 errno = socket.mSocket.bindListen(); in createNewRfcommSocketAndRecord()
1029 socket.mSocket.throwErrnoNative(errno); // Exception as a result of bindListen() in createNewRfcommSocketAndRecord()
1074 int errno = socket.mSocket.bindListen(); in listenUsingInsecureRfcommOn()
1079 socket.mSocket.throwErrnoNative(errno); in listenUsingInsecureRfcommOn()
1096 int errno = socket.mSocket.bindListen(); in listenUsingEncryptedRfcommOn()
1101 socket.mSocket.throwErrnoNative(errno); in listenUsingEncryptedRfcommOn()
1117 int errno = socket.mSocket.bindListen(); in listenUsingScoOn()
1122 socket.mSocket.throwErrnoNative(errno); 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.cpp49 mSocket(-1), in ARTSPConnection()
57 if (mSocket >= 0) { in ~ARTSPConnection()
60 HTTPBase::UnRegisterSocketUserTag(mSocket); in ~ARTSPConnection()
62 close(mSocket); in ~ARTSPConnection()
63 mSocket = -1; in ~ARTSPConnection()
214 HTTPBase::UnRegisterSocketUserTag(mSocket); in onConnect()
216 close(mSocket); in onConnect()
217 mSocket = -1; in onConnect()
262 mSocket = socket(AF_INET, SOCK_STREAM, 0); in onConnect()
265 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.h83 int mSocket; member
/frameworks/base/services/common_time/
Dcommon_time_server.cpp105 , mSocket(-1) in CommonTimeServer()
217 if (mSocket >= 0) { in runStateMachine_l()
218 pfds[eventCnt].fd = mSocket; in runStateMachine_l()
252 if (mBindIfaceDirty || ((mSocket >= 0) && shouldAutoDisable())) { in runStateMachine_l()
260 if ((mSocket < 0) && mBindIfaceValid && !shouldAutoDisable()) { in runStateMachine_l()
350 if ((mSocket >= 0) && (eventCnt > 1) && (pfds[1].revents)) { in runStateMachine_l()
372 if (mSocket >= 0) { in cleanupSocket_l()
373 close(mSocket); in cleanupSocket_l()
374 mSocket = -1; in cleanupSocket_l()
421 mSocket = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); in setupSocket_l()
[all …]
Dcommon_time_server.h211 int mSocket; variable
Dcommon_time_server_api.cpp257 if (mSocket >= 0) in forceNetworklessMasterMode()
/frameworks/base/voip/jni/rtp/
DAudioGroup.cpp117 int mSocket; member in __anonef51c7ef0111::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/java/android/net/arp/
DArpPeer.java42 private final RawSocket mSocket; field in ArpPeer
69 mSocket = new RawSocket(mInterfaceName, RawSocket.ETH_P_ARP); in ArpPeer()
96 mSocket.write(L2_BROADCAST, buf.array(), 0, buf.limit()); in doArp()
102 int readLen = mSocket.read(recvBuf, 0, recvBuf.length, -1, in doArp()
128 mSocket.close(); in close()
/frameworks/av/media/libaah_rtp/
Daah_tx_sender.cpp48 AAH_TXSender::AAH_TXSender() : mSocket(-1) { in AAH_TXSender()
73 sender->mSocket = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); in GetInstance()
74 if (sender->mSocket == -1) { in GetInstance()
82 if (bind(sender->mSocket, in GetInstance()
125 if (mSocket != -1) { in ~AAH_TXSender()
126 close(mSocket); in ~AAH_TXSender()
248 ssize_t result = sendto(mSocket, in doSendPacket_l()
363 pollFds[0].fd = mSender->mSocket; in threadLoop()
395 ssize_t result = recvfrom(mSender->mSocket, &request, sizeof(request), 0, in handleRetryRequest()
426 result = sendto(mSender->mSocket, &nak, sizeof(nak), 0, in handleRetryRequest()
[all …]
Daah_tx_sender.h118 int mSocket; variable
/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/com/android/internal/os/
DZygoteConnection.java72 private final LocalSocket mSocket; field in ZygoteConnection
96 mSocket = socket; in ZygoteConnection()
104 mSocket.setSoTimeout(CONNECTION_TIMEOUT_MILLIS); in ZygoteConnection()
107 peer = mSocket.getPeerCredentials(); in ZygoteConnection()
120 return mSocket.getFileDescriptor(); in getFileDesciptor()
182 descriptors = mSocket.getAncillaryFileDescriptors(); in runOnce()
271 mSocket.close(); in closeSocket()
805 ZygoteInit.setCloseOnExec(mSocket.getFileDescriptor(), true); in handleChildProc()
806 sPeerWaitSocket = mSocket; in handleChildProc()
951 mSocket.close(); in handleParentProc()
/frameworks/base/voip/java/android/net/rtp/
DRtpStream.java57 private int mSocket = -1; field in RtpStream
169 return mSocket; in getSocket()
/frameworks/base/services/java/com/android/server/
DNativeDaemonConnector.java49 private String mSocket; field in NativeDaemonConnector
71 mSocket = socket; in NativeDaemonConnector()
112 LocalSocketAddress address = new LocalSocketAddress(mSocket, in listenToSocket()
183 loge("closing stream for " + mSocket); in listenToSocket()
/frameworks/base/telephony/java/com/android/internal/telephony/
DRIL.java216 LocalSocket mSocket; field in RIL
308 s = mSocket; in handleMessage()
549 mSocket = s; in run()
554 InputStream is = mSocket.getInputStream(); in run()
589 mSocket.close(); in run()
593 mSocket = null; in run()
2107 if (mSocket == null) { in send()
3841 pw.println(" mSocket=" + mSocket); in dump()
/frameworks/base/docs/html/tools/adk/
Dadk2.jd458 mSocket = device.createInsecureRfcommSocketToServiceRecord(ADK_UUID);
459 mSocket.connect();
469 mInStream = mSocket.getInputStream();
470 mOutStream = mSocket.getOutputStream();

12