Home
last modified time | relevance | path

Searched refs:skt_fd (Results 1 – 3 of 3) sorted by relevance

/packages/modules/Bluetooth/system/stack/mmc/daemon/
Dservice.cc220 int skt_fd = socket(AF_UNIX, SOCK_SEQPACKET, 0); in CodecInit() local
221 if (skt_fd < 0) { in CodecInit()
234 if (bind(skt_fd, (struct sockaddr*)&addr, sizeof(struct sockaddr_un)) == -1) { in CodecInit()
250 if (listen(skt_fd, kClientMaximum) == -1) { in CodecInit()
258 if (!StartWorkerThread(skt_fd, std::move(addr), std::move(codec_server))) { in CodecInit()
/packages/modules/Bluetooth/system/audio_hearing_aid_hw/src/
Daudio_hearing_aid_hw.cc255 int skt_fd; in skt_connect() local
260 skt_fd = socket(AF_LOCAL, SOCK_STREAM, 0); in skt_connect()
263 skt_fd, path, ANDROID_SOCKET_NAMESPACE_ABSTRACT, SOCK_STREAM) < 0) { in skt_connect()
265 close(skt_fd); in skt_connect()
271 setsockopt(skt_fd, SOL_SOCKET, SO_SNDBUF, (char*)&len, (int)sizeof(len)); in skt_connect()
275 setsockopt(skt_fd, SOL_SOCKET, SO_RCVBUF, (char*)&len, (int)sizeof(len)); in skt_connect()
283 ret = setsockopt(skt_fd, SOL_SOCKET, SO_SNDTIMEO, &tv, sizeof(tv)); in skt_connect()
289 ret = setsockopt(skt_fd, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv)); in skt_connect()
292 INFO("connected to stack fd = %d", skt_fd); in skt_connect()
294 return skt_fd; in skt_connect()
/packages/modules/Bluetooth/system/audio_a2dp_hw/src/
Daudio_a2dp_hw.cc249 int skt_fd; in skt_connect() local
254 skt_fd = socket(AF_LOCAL, SOCK_STREAM, 0); in skt_connect()
257 skt_fd, path, ANDROID_SOCKET_NAMESPACE_ABSTRACT, SOCK_STREAM) < 0) { in skt_connect()
259 close(skt_fd); in skt_connect()
265 setsockopt(skt_fd, SOL_SOCKET, SO_SNDBUF, (char*)&len, (int)sizeof(len)); in skt_connect()
269 setsockopt(skt_fd, SOL_SOCKET, SO_RCVBUF, (char*)&len, (int)sizeof(len)); in skt_connect()
277 ret = setsockopt(skt_fd, SOL_SOCKET, SO_SNDTIMEO, &tv, sizeof(tv)); in skt_connect()
283 ret = setsockopt(skt_fd, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv)); in skt_connect()
286 INFO("connected to stack fd = %d", skt_fd); in skt_connect()
288 return skt_fd; in skt_connect()