HomeSort by relevance Sort by last modified time
    Searched refs:mSocket (Results 1 - 25 of 98) sorted by null

1 2 3 4

  /frameworks/base/core/java/android/bluetooth/
BluetoothInputStream.java 30 private BluetoothSocket mSocket;
33 mSocket = s;
40 return mSocket.available();
44 mSocket.close();
59 int ret = mSocket.read(b, 0, 1);
88 return mSocket.read(b, offset, length);
BluetoothOutputStream.java 30 private BluetoothSocket mSocket;
33 mSocket = s;
40 mSocket.close();
54 mSocket.write(b, 0, 1);
76 mSocket.write(b, offset, count);
88 mSocket.flush();
BluetoothServerSocket.java 72 /*package*/ final BluetoothSocket mSocket;
90 mSocket = new BluetoothSocket(type, -1, auth, encrypt, null, port, null);
92 mSocket.setExcludeSdp(true);
112 mSocket = new BluetoothSocket(type, -1, auth, encrypt, null, port, null, mitm,
115 mSocket.setExcludeSdp(true);
131 mSocket = new BluetoothSocket(type, -1, auth, encrypt, null, -1, uuid);
133 mChannel = mSocket.getPort();
162 return mSocket.accept(timeout);
179 mSocket.close();
189 mSocket.setServiceName(serviceName)
    [all...]
  /external/parameter-framework/upstream/remote-processor/
Socket.h 41 Socket(asio::ip::tcp::socket &socket) : mSocket(socket) {}
43 asio::ip::tcp::socket &get() { return mSocket; }
46 asio::ip::tcp::socket &mSocket;
  /packages/apps/Bluetooth/src/com/android/bluetooth/
BluetoothObexTransport.java 33 private BluetoothSocket mSocket = null;
36 this.mSocket = socket;
41 mSocket.close();
56 return mSocket.getInputStream();
61 return mSocket.getOutputStream();
86 if (mSocket.getConnectionType() != BluetoothSocket.TYPE_L2CAP) {
89 return mSocket.getMaxTransmitPacketSize();
94 if (mSocket.getConnectionType() != BluetoothSocket.TYPE_L2CAP) {
97 return mSocket.getMaxReceivePacketSize();
101 if (mSocket == null)
    [all...]
  /cts/suite/audio_quality/lib/src/
ClientSocket.cpp 29 : mSocket(-1),
43 mSocket = socket(AF_INET, SOCK_STREAM, 0);
44 if (mSocket < 0) {
49 if (setsockopt(mSocket, SOL_SOCKET, SO_REUSEADDR, &reuse, sizeof(reuse)) == -1) {
64 if (connect(mSocket, (struct sockaddr *)&serverAddr, sizeof(serverAddr)) < 0) {
83 flOriginal = fcntl(mSocket, F_GETFL,0);
88 if (fcntl(mSocket, F_SETFL, flOriginal | O_NONBLOCK) == -1) {
105 FD_SET(mSocket, &rfds);
106 if (select(mSocket + 1, &rfds, NULL, NULL, &tv) == -1) {
111 if (!FD_ISSET(mSocket, &rfds))
    [all...]
ClientImpl.h 35 return mSocket;
43 ClientSocket mSocket;
ClientImpl.cpp 24 : mAudio(new RemoteAudio(mSocket))
  /packages/services/Car/obd2-lib/src/com/android/car/obd2/connections/
BluetoothConnection.java 38 private BluetoothSocket mSocket = null;
68 mSocket = mDevice.createRfcommSocketToServiceRecord(SERIAL_PORT_PROFILE);
69 mSocket.connect();
72 mSocket = null;
75 return mSocket.isConnected();
80 return mSocket != null && mSocket.isConnected();
86 mSocket.close();
91 mSocket = null;
106 return mSocket.getInputStream()
    [all...]
  /cts/suite/audio_quality/lib/include/
ClientSocket.h 32 return mSocket;
36 int mSocket;
  /external/sl4a/Common/src/com/googlecode/android_scripting/facade/bluetooth/
BluetoothConnection.java 39 private BluetoothSocket mSocket;
47 BluetoothConnection(BluetoothSocket mSocket) throws IOException {
48 this(mSocket, null);
51 BluetoothConnection(BluetoothSocket mSocket, BluetoothServerSocket mServerSocket)
53 this.mSocket = mSocket;
54 mOutputStream = mSocket.getOutputStream();
55 mInputStream = mSocket.getInputStream();
56 mDevice = mSocket.getRemoteDevice();
94 if (mSocket == null)
    [all...]
  /packages/apps/Bluetooth/src/com/android/bluetooth/pbapclient/
BluetoothPbapObexTransport.java 31 private BluetoothSocket mSocket = null;
35 mSocket = rfs;
40 mSocket.close();
55 return mSocket.getInputStream();
60 return mSocket.getOutputStream();
81 return mSocket.isConnected();
  /packages/apps/Email/provider_src/com/android/email/mail/transport/
MailTransport.java 61 private Socket mSocket;
115 mSocket = SSLUtils.getSSLSocketFactory(
118 mSocket = new Socket();
120 mSocket.connect(socketAddress, SOCKET_CONNECT_TIMEOUT);
123 verifyHostname(mSocket, getHost());
127 if (mSocket instanceof SSLSocket) {
128 final SSLSocket sslSocket = (SSLSocket) mSocket;
135 mIn = new BufferedInputStream(mSocket.getInputStream(), 1024);
136 mOut = new BufferedOutputStream(mSocket.getOutputStream(), 512);
137 mSocket.setSoTimeout(SOCKET_READ_TIMEOUT)
    [all...]
  /tools/tradefederation/core/tests/src/com/android/tradefed/util/sl4a/
FakeSocketServerHelper.java 31 private ServerSocket mSocket;
36 mSocket = new ServerSocket(0);
40 return mSocket.getLocalPort();
45 if (mSocket != null) {
46 mSocket.close();
56 client = mSocket.accept();
  /system/core/libsysutils/src/
FrameworkClient.cpp 28 mSocket = socket;
34 if (mSocket < 0) {
40 ret = TEMP_FAILURE_RETRY(write(mSocket, msg, strlen(msg) +1));
  /device/generic/goldfish/wifi/ipv6proxy/
socket.cpp 32 Socket::Socket() : mState(State::New), mSocket(-1) {
35 Socket::Socket(Socket&& other) : mState(other.mState), mSocket(other.mSocket) {
36 other.mSocket = -1;
41 if (mSocket != -1) {
42 close(mSocket);
43 mSocket = -1;
49 if (mSocket != -1) {
50 close(mSocket);
52 mSocket = other.mSocket
    [all...]
router.h 50 Socket mSocket;
  /sdk/apps/SdkController/src/com/android/tools/sdkcontroller/lib/
Socket.java 32 private LocalSocket mSocket = null;
51 mSocket = socket;
63 return mSocket != null;
97 // Same technique is used everywhere in this class where mSocket member
99 LocalSocket socket = mSocket;
116 LocalSocket socket = mSocket;
153 LocalSocket socket = mSocket;
184 socket = mSocket;
185 mSocket = null;
  /packages/apps/Nfc/src/com/android/nfc/snep/
SnepMessenger.java 37 final LlcpSocket mSocket;
42 mSocket = socket;
61 mSocket.send(tmpBuffer);
70 mSocket.receive(responseBytes);
89 mSocket.send(tmpBuffer);
92 mSocket.receive(responseBytes);
112 mSocket.send(tmpBuffer);
116 mSocket.receive(responseBytes);
153 size = mSocket.receive(partial);
157 mSocket.send(SnepMessage.getMessage(fieldReject).toByteArray())
    [all...]
  /system/core/libsysutils/include/sysutils/
FrameworkClient.h 9 int mSocket;
  /device/generic/goldfish/wifi/wifi_hal/
netlink.cpp 42 , mSocket(-1) {
48 closeIfOpen(&mSocket);
54 if (mSocket != -1) {
65 mSocket = ::socket(AF_NETLINK, SOCK_DGRAM | SOCK_CLOEXEC, NETLINK_ROUTE);
66 if (mSocket == -1) {
74 status = ::bind(mSocket,
100 fds[0].fd = mSocket;
122 if (fd.fd == mSocket) {
165 int bytesSent = ::send(mSocket, message.data(), message.size(), 0);
  /packages/apps/Nfc/src/com/android/nfc/handover/
HandoverClient.java 42 LlcpSocket mSocket;
80 mSocket = sock;
87 if (mSocket != null) {
89 mSocket.close();
93 mSocket = null;
106 sock = mSocket;
  /packages/apps/Nfc/src/com/android/nfc/ndefpush/
NdefPushClient.java 45 private LlcpSocket mSocket;
83 mSocket = sock;
95 sock = mSocket;
132 if (mSocket != null) {
135 mSocket.close();
139 mSocket = null;
  /frameworks/av/media/libstagefright/rtsp/
UDPPusher.h 43 int mSocket;
  /frameworks/base/services/backup/java/com/android/server/backup/restore/
RestoreFileRunnable.java 36 private final ParcelFileDescriptor mSocket;
51 mSocket = ParcelFileDescriptor.dup(socket.getFileDescriptor());
58 mAgent.doRestoreFile(mSocket, mInfo.size, mInfo.type,

Completed in 821 milliseconds

1 2 3 4