Home
last modified time | relevance | path

Searched refs:socket (Results 1 – 25 of 427) sorted by relevance

12345678910>>...18

/system/bt/osi/src/
Dsocket.cc55 ret->fd = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); in socket_new()
84 void socket_free(socket_t* socket) { in socket_free() argument
85 if (!socket) return; in socket_free()
87 socket_unregister(socket); in socket_free()
88 close(socket->fd); in socket_free()
89 osi_free(socket); in socket_free()
92 bool socket_listen(const socket_t* socket, port_t port) { in socket_listen() argument
93 CHECK(socket != NULL); in socket_listen()
99 if (bind(socket->fd, (struct sockaddr*)&addr, sizeof(addr)) == -1) { in socket_listen()
105 if (listen(socket->fd, 10) == -1) { in socket_listen()
[all …]
/system/sepolicy/private/
Daccess_vectors42 # Define a common prefix for socket access vectors.
45 common socket
59 # socket-specific
214 class socket
215 inherits socket
218 inherits socket
225 inherits socket
231 inherits socket
249 inherits socket
252 inherits socket
[all …]
/system/sepolicy/reqd_mask/
Daccess_vectors42 # Define a common prefix for socket access vectors.
45 common socket
59 # socket-specific
214 class socket
215 inherits socket
218 inherits socket
225 inherits socket
231 inherits socket
249 inherits socket
252 inherits socket
[all …]
/system/sepolicy/prebuilts/api/29.0/private/
Daccess_vectors34 # Define a common prefix for socket access vectors.
37 common socket
51 # socket-specific
233 class socket
234 inherits socket
237 inherits socket
244 inherits socket
250 inherits socket
268 inherits socket
271 inherits socket
[all …]
/system/sepolicy/prebuilts/api/30.0/private/
Daccess_vectors42 # Define a common prefix for socket access vectors.
45 common socket
59 # socket-specific
213 class socket
214 inherits socket
217 inherits socket
224 inherits socket
230 inherits socket
248 inherits socket
251 inherits socket
[all …]
/system/sepolicy/prebuilts/api/28.0/private/
Daccess_vectors34 # Define a common prefix for socket access vectors.
37 common socket
51 # socket-specific
233 class socket
234 inherits socket
237 inherits socket
244 inherits socket
250 inherits socket
268 inherits socket
271 inherits socket
[all …]
/system/sepolicy/prebuilts/api/27.0/private/
Daccess_vectors34 # Define a common prefix for socket access vectors.
37 common socket
51 # socket-specific
233 class socket
234 inherits socket
237 inherits socket
244 inherits socket
250 inherits socket
268 inherits socket
271 inherits socket
[all …]
/system/sepolicy/prebuilts/api/26.0/private/
Daccess_vectors33 # Define a common prefix for socket access vectors.
36 common socket
49 # socket-specific
231 class socket
232 inherits socket
235 inherits socket
242 inherits socket
248 inherits socket
266 inherits socket
269 inherits socket
[all …]
/system/bt/osi/include/
Dsocket.h30 typedef void (*socket_cb)(socket_t* socket, void* context);
46 void socket_free(socket_t* socket);
51 bool socket_listen(const socket_t* socket, port_t port);
56 socket_t* socket_accept(const socket_t* socket);
68 ssize_t socket_read(const socket_t* socket, void* buf, size_t count);
80 ssize_t socket_write(const socket_t* socket, const void* buf, size_t count);
87 ssize_t socket_write_and_transfer_fd(const socket_t* socket, const void* buf,
97 ssize_t socket_bytes_available(const socket_t* socket);
104 void socket_register(socket_t* socket, reactor_t* reactor, void* context,
109 void socket_unregister(socket_t* socket);
/system/bt/hci/src/
Dhci_inject.cc46 socket_t* socket; member
54 static void accept_ready(socket_t* socket, void* context);
55 static void read_ready(socket_t* socket, void* context);
130 static void accept_ready(socket_t* socket, UNUSED_ATTR void* context) { in accept_ready() argument
131 CHECK(socket != NULL); in accept_ready()
132 CHECK(socket == listen_socket); in accept_ready()
134 socket = socket_accept(socket); in accept_ready()
135 if (!socket) return; in accept_ready()
139 client->socket = socket; in accept_ready()
147 socket_register(socket, thread_get_reactor(thread), client, read_ready, NULL); in accept_ready()
[all …]
/system/core/libsysutils/src/
DNetlinkListener.cpp36 NetlinkListener::NetlinkListener(int socket) : in NetlinkListener() argument
37 SocketListener(socket, false) { in NetlinkListener()
42 NetlinkListener::NetlinkListener(int socket, int format) : in NetlinkListener() argument
43 SocketListener(socket, false), mFormat(format) { in NetlinkListener()
48 int socket = cli->getSocket(); in onDataAvailable() local
57 count = TEMP_FAILURE_RETRY(uevent_kernel_recv(socket, in onDataAvailable()
/system/core/rootdir/
Dinit.zygote64_32.rc1 … /system/bin/app_process64 -Xzygote /system/bin --zygote --start-system-server --socket-name=zygote
6 socket zygote stream 660 root system
7 socket usap_pool_primary stream 660 root system
16 service zygote_secondary /system/bin/app_process32 -Xzygote /system/bin --zygote --socket-name=zygo…
21 socket zygote_secondary stream 660 root system
22 socket usap_pool_secondary stream 660 root system
/system/bt/btif/src/
Dbtif_sock_sco.cc63 socket_t* socket; member
71 static void sco_socket_free_locked(sco_socket_t* socket);
77 static void socket_read_ready_cb(socket_t* socket, void* context);
137 socket_t* socket = NULL; in sco_socket_establish_locked() local
161 socket = socket_new_from_fd(pair[1]); in sco_socket_establish_locked()
162 if (!socket) { in sco_socket_establish_locked()
169 sco_socket->socket = socket; // Hang on to the other end. in sco_socket_establish_locked()
172 socket_register(socket, thread_get_reactor(thread), sco_socket, in sco_socket_establish_locked()
198 socket_free(sco_socket->socket); in sco_socket_free_locked()
259 if (socket_write_and_transfer_fd(sco_socket->socket, &connect_signal, in connection_request_cb()
[all …]
/system/netd/tests/
Dnetd_client_test.cpp41 android::base::unique_fd sock(socket(AF_INET6, SOCK_DGRAM | SOCK_CLOEXEC, IPPROTO_UDP)); in checkNetworkConnectivity()
49 sock.reset(socket(AF_INET, SOCK_DGRAM | SOCK_CLOEXEC, IPPROTO_UDP)); in checkNetworkConnectivity()
61 android::base::unique_fd ipv4(socket(AF_INET, SOCK_STREAM | SOCK_CLOEXEC, 0)), in expectHasNetworking()
62 ipv6(socket(AF_INET6, SOCK_STREAM | SOCK_CLOEXEC, 0)); in expectHasNetworking()
80 android::base::unique_fd unixSocket(socket(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0)); in expectNoNetworking()
82 android::base::unique_fd ipv4(socket(AF_INET, SOCK_STREAM | SOCK_CLOEXEC, 0)); in expectNoNetworking()
85 android::base::unique_fd ipv6(socket(AF_INET6, SOCK_STREAM | SOCK_CLOEXEC, 0)); in expectNoNetworking()
/system/core/libcutils/
Duevent.cpp35 ssize_t uevent_kernel_multicast_recv(int socket, void* buffer, size_t length) { in uevent_kernel_multicast_recv() argument
37 return uevent_kernel_multicast_uid_recv(socket, buffer, length, &uid); in uevent_kernel_multicast_recv()
49 ssize_t uevent_kernel_multicast_uid_recv(int socket, void* buffer, size_t length, uid_t* uid) { in uevent_kernel_multicast_uid_recv() argument
50 return uevent_kernel_recv(socket, buffer, length, true, uid); in uevent_kernel_multicast_uid_recv()
53 ssize_t uevent_kernel_recv(int socket, void* buffer, size_t length, bool require_group, uid_t* uid)… in uevent_kernel_recv() argument
63 ssize_t n = TEMP_FAILURE_RETRY(recvmsg(socket, &hdr, 0)); in uevent_kernel_recv()
107 s = socket(PF_NETLINK, SOCK_DGRAM | SOCK_CLOEXEC, NETLINK_KOBJECT_UEVENT); in uevent_open_socket()
/system/core/adb/
Dtest_adb.py27 import socket
40 with socket.socket() as s:
45 def fake_adbd(protocol=socket.AF_INET, port=0):
48 serversock = socket.socket(protocol, socket.SOCK_STREAM)
49 serversock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
50 if protocol == socket.AF_INET:
57 readsock, writesock = socket.socketpair()
88 ready.shutdown(socket.SHUT_RDWR)
323 sock.setsockopt(socket.SOL_SOCKET, socket.SO_LINGER,
326 linger = sock.getsockopt(socket.SOL_SOCKET, socket.SO_LINGER, 16)
[all …]
DSOCKET-ACTIVATION.txt1 adb can be configured to work with systemd-style socket activation,
12 After=adb.socket
13 Requires=adb.socket
20 --- START adb.socket CUT HERE ---
29 --- END adb.socket CUT HERE ---
42 serve socket, not the accepted connection socket.
/system/core/init/
Dproto_utils.h31 inline Result<std::string> ReadMessage(int socket) { in ReadMessage() argument
33 auto result = TEMP_FAILURE_RETRY(recv(socket, buffer, sizeof(buffer), 0)); in ReadMessage()
43 Result<void> SendMessage(int socket, const T& message) { in SendMessage() argument
54 TEMP_FAILURE_RETRY(send(socket, message_string.c_str(), message_string.size(), 0)); in SendMessage()
/system/core/libcutils/include/cutils/
Duevent.h28 ssize_t uevent_kernel_multicast_recv(int socket, void *buffer, size_t length);
29 ssize_t uevent_kernel_multicast_uid_recv(int socket, void *buffer, size_t length, uid_t *uid);
30 ssize_t uevent_kernel_recv(int socket, void *buffer, size_t length, bool require_group, uid_t *uid);
/system/core/libcutils/include_vndk/cutils/
Duevent.h28 ssize_t uevent_kernel_multicast_recv(int socket, void *buffer, size_t length);
29 ssize_t uevent_kernel_multicast_uid_recv(int socket, void *buffer, size_t length, uid_t *uid);
30 ssize_t uevent_kernel_recv(int socket, void *buffer, size_t length, bool require_group, uid_t *uid);
/system/core/libsysutils/include/sysutils/
DNetlinkListener.h37 NetlinkListener(int socket);
38 NetlinkListener(int socket, int format);
40 NetlinkListener(int socket, int format = NETLINK_FORMAT_ASCII);
/system/core/debuggerd/tombstoned/
Dtombstoned.rc5 socket tombstoned_crash seqpacket 0666 system system
6 socket tombstoned_intercept seqpacket 0666 system system
7 socket tombstoned_java_trace seqpacket 0666 system system
/system/bt/vendor_libs/test_vendor_lib/scripts/
Dsimple_stack.py66 import socket
115 self._socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
226 except (socket.error, e):
Dsimple_link_layer_socket.py53 import socket
81 self._socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
185 except (socket.error, e):
Dlink_layer_socket.py67 import socket
83 self._socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
183 except socket.error as e:

12345678910>>...18