Home
last modified time | relevance | path

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

12345678910>>...15

/system/bt/osi/src/
Dsocket.cc55 ret->fd = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); in socket_new()
86 void socket_free(socket_t* socket) { in socket_free() argument
87 if (!socket) return; in socket_free()
89 socket_unregister(socket); in socket_free()
90 close(socket->fd); in socket_free()
91 osi_free(socket); in socket_free()
94 bool socket_listen(const socket_t* socket, port_t port) { in socket_listen() argument
95 CHECK(socket != NULL); in socket_listen()
101 if (bind(socket->fd, (struct sockaddr*)&addr, sizeof(addr)) == -1) { in socket_listen()
107 if (listen(socket->fd, 10) == -1) { in socket_listen()
[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/reqd_mask/
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/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/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/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.cc45 socket_t* socket; member
53 static void accept_ready(socket_t* socket, void* context);
54 static void read_ready(socket_t* socket, void* context);
127 static void accept_ready(socket_t* socket, UNUSED_ATTR void* context) { in accept_ready() argument
128 CHECK(socket != NULL); in accept_ready()
129 CHECK(socket == listen_socket); in accept_ready()
131 socket = socket_accept(socket); in accept_ready()
132 if (!socket) return; in accept_ready()
136 client->socket = socket; in accept_ready()
144 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/adb/
Dtest_adb.py27 import socket
38 def fake_adbd(protocol=socket.AF_INET, port=0):
41 serversock = socket.socket(protocol, socket.SOCK_STREAM)
42 serversock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
43 if protocol == socket.AF_INET:
50 readsock, writesock = socket.socketpair()
81 ready.shutdown(socket.SHUT_RDWR)
295 sock.setsockopt(socket.SOL_SOCKET, socket.SO_LINGER,
298 linger = sock.getsockopt(socket.SOL_SOCKET, socket.SO_LINGER, 16)
308 socket.socket(socket.AF_INET, socket.SOCK_STREAM)) as listener:
[all …]
/system/core/rootdir/
Dinit.zygote32_64.rc1 … /system/bin/app_process32 -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
17 service zygote_secondary /system/bin/app_process64 -Xzygote /system/bin --zygote --socket-name=zygo…
22 socket zygote_secondary stream 660 root system
23 socket usap_pool_secondary stream 660 root system
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
17 service zygote_secondary /system/bin/app_process32 -Xzygote /system/bin --zygote --socket-name=zygo…
22 socket zygote_secondary stream 660 root system
23 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/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 = 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/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/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/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/adb/daemon/
Djdwp_service.cpp129 static void jdwp_process_event(int socket, unsigned events, void* _proc);
136 explicit JdwpProcess(int socket) { in JdwpProcess()
137 this->socket = socket; in JdwpProcess()
138 this->fde = fdevent_create(socket, jdwp_process_event, this); in JdwpProcess()
149 if (this->socket >= 0) { in ~JdwpProcess()
150 adb_shutdown(this->socket); in ~JdwpProcess()
151 this->socket = -1; in ~JdwpProcess()
174 int socket = -1; member
215 static void jdwp_process_event(int socket, unsigned events, void* _proc) { in jdwp_process_event() argument
217 CHECK_EQ(socket, proc->socket); in jdwp_process_event()
[all …]
/system/core/debuggerd/tombstoned/
Dtombstoned.rc8 socket tombstoned_crash seqpacket 0666 system system
9 socket tombstoned_intercept seqpacket 0666 system system
10 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
82 self._socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
180 except socket.error as e:
Dsend_simple_commands.py66 import socket
95 self._socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
208 except (socket.error, e):
/system/netd/resolv/
DDnsTlsSocketFactory.h38 auto socket = std::make_unique<DnsTlsSocket>(server, mark, observer, cache); in createDnsTlsSocket() local
39 if (!socket->initialize()) { in createDnsTlsSocket()
42 return std::move(socket); in createDnsTlsSocket()

12345678910>>...15