Home
last modified time | relevance | path

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

/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.java62 /*package*/ final BluetoothSocket mSocket; field in BluetoothServerSocket
79 mSocket = new BluetoothSocket(type, -1, auth, encrypt, null, port, null); in BluetoothServerSocket()
107 return mSocket.accept(timeout); in accept()
123 mSocket.close(); in close()
DBluetoothAdapter.java867 int errno = socket.mSocket.bindListen(); in listenUsingRfcommOn()
872 socket.mSocket.throwErrnoNative(errno); in listenUsingRfcommOn()
989 errno = socket.mSocket.bindListen(); in createNewRfcommSocketAndRecord()
1003 socket.mSocket.throwErrnoNative(errno); // Exception as a result of bindListen() in createNewRfcommSocketAndRecord()
1048 int errno = socket.mSocket.bindListen(); in listenUsingInsecureRfcommOn()
1053 socket.mSocket.throwErrnoNative(errno); in listenUsingInsecureRfcommOn()
1070 int errno = socket.mSocket.bindListen(); in listenUsingEncryptedRfcommOn()
1075 socket.mSocket.throwErrnoNative(errno); in listenUsingEncryptedRfcommOn()
1091 int errno = socket.mSocket.bindListen(); in listenUsingScoOn()
1096 socket.mSocket.throwErrnoNative(errno); in listenUsingScoOn()
/frameworks/base/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()
209 HTTPBase::UnRegisterSocketUserTag(mSocket); in onConnect()
211 close(mSocket); in onConnect()
212 mSocket = -1; in onConnect()
257 mSocket = socket(AF_INET, SOCK_STREAM, 0); in onConnect()
260 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/voip/jni/rtp/
DAudioGroup.cpp117 int mSocket; member in __anon890361ce0111::AudioStream
151 mSocket = -1; in AudioStream()
159 close(mSocket); in ~AudioStream()
162 LOGD("stream[%d] is dead", mSocket); in ~AudioStream()
201 mSocket = socket; in set()
221 LOGD("stream[%d] is configured as %s %dkHz %dms mode %d", mSocket, in set()
272 LOGV("stream[%d] skips %d packets", mSocket, skipped); in encode()
296 sendto(mSocket, buffer, sizeof(buffer), MSG_DONTWAIT, in encode()
337 LOGV("stream[%d] no data", mSocket); in encode()
343 send(mSocket, samples, sizeof(samples), MSG_DONTWAIT); in encode()
[all …]
/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/services/java/com/android/server/
DNativeDaemonConnector.java45 private String mSocket; field in NativeDaemonConnector
76 mSocket = socket; in NativeDaemonConnector()
116 LocalSocketAddress address = new LocalSocketAddress(mSocket, in listenToSocket()
DBackupManagerService.java2862 ParcelFileDescriptor mSocket; field in BackupManagerService.PerformFullRestoreTask.RestoreFileRunnable
2876 mSocket = ParcelFileDescriptor.dup(socket.getFileDescriptor()); in RestoreFileRunnable()
2882 mAgent.doRestoreFile(mSocket, mInfo.size, mInfo.type, in run()
/frameworks/base/telephony/java/com/android/internal/telephony/
DRIL.java212 LocalSocket mSocket; field in RIL
301 s = mSocket; in handleMessage()
542 mSocket = s; in run()
547 InputStream is = mSocket.getInputStream(); in run()
582 mSocket.close(); in run()
586 mSocket = null; in run()
2041 if (mSocket == null) { in send()