Home
last modified time | relevance | path

Searched refs:INVALID_FD (Results 1 – 19 of 19) sorted by relevance

/packages/modules/Bluetooth/system/gd/hal/
Dhci_hal_host_rootcanal.cc39 constexpr int INVALID_FD = -1; variable
62 return INVALID_FD; in ConnectToSocket()
69 return INVALID_FD; in ConnectToSocket()
81 return INVALID_FD; in ConnectToSocket()
91 return INVALID_FD; in ConnectToSocket()
127 log::assert_that(sock_fd_ != INVALID_FD, "assert failed: sock_fd_ != INVALID_FD"); in sendHciCommand()
136 log::assert_that(sock_fd_ != INVALID_FD, "assert failed: sock_fd_ != INVALID_FD"); in sendAclData()
145 log::assert_that(sock_fd_ != INVALID_FD, "assert failed: sock_fd_ != INVALID_FD"); in sendScoData()
154 log::assert_that(sock_fd_ != INVALID_FD, "assert failed: sock_fd_ != INVALID_FD"); in sendIsoData()
169 log::assert_that(sock_fd_ == INVALID_FD, "assert failed: sock_fd_ == INVALID_FD"); in Start()
[all …]
Dsnoop_logger_socket.cc47 static constexpr int INVALID_FD = -1; variable
109 if (listen_socket_ == INVALID_FD) { in InitializeCommunications()
205 return client_socket_ != INVALID_FD; in IsClientSocketConnected()
216 return INVALID_FD; in CreateSocket()
230 return INVALID_FD; in CreateSocket()
243 return INVALID_FD; in CreateSocket()
251 return INVALID_FD; in CreateSocket()
Dhci_hal_host.cc43 constexpr int INVALID_FD = -1; variable
194 return INVALID_FD; in ConnectToSocket()
202 return INVALID_FD; in ConnectToSocket()
215 return INVALID_FD; in ConnectToSocket()
252 log::assert_that(sock_fd_ != INVALID_FD, "assert failed: sock_fd_ != INVALID_FD"); in sendHciCommand()
261 log::assert_that(sock_fd_ != INVALID_FD, "assert failed: sock_fd_ != INVALID_FD"); in sendAclData()
270 log::assert_that(sock_fd_ != INVALID_FD, "assert failed: sock_fd_ != INVALID_FD"); in sendScoData()
279 log::assert_that(sock_fd_ != INVALID_FD, "assert failed: sock_fd_ != INVALID_FD"); in sendIsoData()
299 log::assert_that(sock_fd_ == INVALID_FD, "assert failed: sock_fd_ == INVALID_FD"); in Start()
303 if (sock_fd_ == INVALID_FD) { in Start()
[all …]
Dsnoop_logger_socket_thread_test.cc38 static constexpr int INVALID_FD = -1; variable
102 ASSERT_TRUE(socket_fd != INVALID_FD); in TEST_F()
129 ASSERT_TRUE(socket_fd != INVALID_FD); in TEST_F()
174 ASSERT_TRUE(socket_fd != INVALID_FD); in TEST_F()
211 ASSERT_TRUE(socket_fd != INVALID_FD); in TEST_F()
249 ASSERT_TRUE(socket_fd != INVALID_FD); in TEST_F()
Dsnoop_logger_socket_test.cc38 static constexpr int INVALID_FD = -1; variable
100 ASSERT_EQ(sls.CreateSocket(), INVALID_FD); in TEST_F()
113 ASSERT_EQ(sls.CreateSocket(), INVALID_FD); in TEST_F()
128 ASSERT_EQ(sls.CreateSocket(), INVALID_FD); in TEST_F()
145 ASSERT_EQ(sls.CreateSocket(), INVALID_FD); in TEST_F()
163 fd = INVALID_FD; in TEST_F()
284 ON_CALL(mock, Accept(Eq(fd), _, _, _)).WillByDefault(Return(INVALID_FD)); in TEST_F()
295 ON_CALL(mock, Accept(Eq(fd), _, _, _)).WillByDefault(Return(INVALID_FD)); in TEST_F()
329 ON_CALL(mock, Accept(Eq(fd), _, _, _)).WillByDefault(Return(INVALID_FD)); in TEST_F()
447 ON_CALL(mock, Accept(fd, _, _, _)).WillByDefault(Return(INVALID_FD)); in TEST_F()
[all …]
Dsnoop_logger_test.cc1381 static constexpr int INVALID_FD = -1; variable
1395 ASSERT_TRUE(socket_fd != INVALID_FD); in TEST_F()
1425 ASSERT_TRUE(socket_fd != INVALID_FD); in TEST_F()
1484 ASSERT_TRUE(socket_fd != INVALID_FD); in TEST_F()
1655 ASSERT_TRUE(socket_fd != INVALID_FD); in TEST_F()
/packages/modules/Bluetooth/system/osi/src/internal/
Dsemaphore.cc47 if (ret->fd == INVALID_FD) { in semaphore_new()
58 if (semaphore->fd != INVALID_FD) close(semaphore->fd); in semaphore_free()
64 log::assert_that(semaphore->fd != INVALID_FD, in semaphore_wait()
74 log::assert_that(semaphore->fd != INVALID_FD, in semaphore_try_wait()
99 log::assert_that(semaphore->fd != INVALID_FD, in semaphore_post()
108 log::assert_that(semaphore->fd != INVALID_FD, in semaphore_get_fd()
/packages/modules/Bluetooth/system/osi/src/
Dwakelock.cc54 static int wake_lock_fd = INVALID_FD;
55 static int wake_unlock_fd = INVALID_FD;
121 if (wake_lock_fd == INVALID_FD) { in wakelock_acquire_native()
126 if (wake_unlock_fd == INVALID_FD) { in wakelock_acquire_native()
164 if (wake_unlock_fd == INVALID_FD) { in wakelock_release_native()
190 if (wake_lock_fd == INVALID_FD) { in wakelock_initialize_native()
197 if (wake_unlock_fd == INVALID_FD) { in wakelock_initialize_native()
Dreactor.cc73 ret->epoll_fd = INVALID_FD; in reactor_new()
74 ret->event_fd = INVALID_FD; in reactor_new()
77 if (ret->epoll_fd == INVALID_FD) { in reactor_new()
83 if (ret->event_fd == INVALID_FD) { in reactor_new()
142 log::assert_that(fd != INVALID_FD, "assert failed: fd != INVALID_FD"); in reactor_register()
Dsocket.cc57 if (ret->fd == INVALID_FD) { in socket_new()
77 log::assert_that(fd != INVALID_FD, "assert failed: fd != INVALID_FD"); in socket_new_from_fd()
118 if (fd == INVALID_FD) { in socket_accept()
154 if (fd == INVALID_FD) return socket_write(socket, buf, count); in socket_write_and_transfer_fd()
/packages/modules/Bluetooth/system/btif/src/
Dbtif_sock_sco.cc138 int pair[2] = {INVALID_FD, INVALID_FD}; in sco_socket_establish_locked()
178 if (pair[0] != INVALID_FD) close(pair[0]); in sco_socket_establish_locked()
179 if (pair[1] != INVALID_FD) close(pair[1]); in sco_socket_establish_locked()
228 int client_fd = INVALID_FD; in connection_request_cb()
279 if (client_fd != INVALID_FD) close(client_fd); in connection_request_cb()
Dbtif_pan.cc120 btpan_cb.tap_fd = INVALID_FD; in btif_pan_init()
143 if (btpan_cb.tap_fd != INVALID_FD) { in pan_disable()
145 btpan_cb.tap_fd = INVALID_FD; in pan_disable()
393 return INVALID_FD; in btpan_tap_open()
399 if (tap_fd != INVALID_FD) { in btpan_tap_send()
482 if (btpan_cb.tap_fd != INVALID_FD) { in btpan_close_conn()
484 btpan_cb.tap_fd = INVALID_FD; in btpan_close_conn()
650 if (fd == INVALID_FD || fd != btpan_cb.tap_fd) return; in btu_exec_tap_fd_read()
740 btpan_cb.tap_fd == INVALID_FD || btpan_cb.tap_fd == fd, in btpan_tap_fd_signaled()
749 btpan_cb.tap_fd = INVALID_FD; in btpan_tap_fd_signaled()
Dbtif_sock_rfc.cc118 rfc_slots[i].fd = INVALID_FD; in btsock_rfc_init()
119 rfc_slots[i].app_fd = INVALID_FD; in btsock_rfc_init()
149 if (rfc_slots[i].fd == INVALID_FD) return &rfc_slots[i]; in find_free_slot()
203 int fds[2] = {INVALID_FD, INVALID_FD}; in alloc_rfc_slot()
304 *sock_fd = INVALID_FD; in btsock_rfc_listen()
348 slot->app_fd = INVALID_FD; // Drop our reference to the fd. in btsock_rfc_listen()
365 *sock_fd = INVALID_FD; in btsock_rfc_connect()
415 slot->app_fd = INVALID_FD; // Drop our reference to the fd. in btsock_rfc_connect()
445 if (slot->fd != INVALID_FD) { in cleanup_rfc_slot()
460 slot->fd = INVALID_FD; in cleanup_rfc_slot()
[all …]
Dbtif_bqr.cc587 if (LmpLlMessageTraceLogFd != INVALID_FD && in ConfigureBqrCmpl()
591 LmpLlMessageTraceLogFd = INVALID_FD; in ConfigureBqrCmpl()
593 if (BtSchedulingTraceLogFd != INVALID_FD && in ConfigureBqrCmpl()
597 BtSchedulingTraceLogFd = INVALID_FD; in ConfigureBqrCmpl()
735 if (LmpLlMessageTraceLogFd == INVALID_FD || in DumpLmpLlMessage()
739 if (LmpLlMessageTraceLogFd != INVALID_FD) { in DumpLmpLlMessage()
760 if (logfile_fd == INVALID_FD) { in OpenLmpLlTraceLogFile()
781 if (BtSchedulingTraceLogFd == INVALID_FD || in DumpBtScheduling()
785 if (BtSchedulingTraceLogFd != INVALID_FD) { in DumpBtScheduling()
807 if (logfile_fd == INVALID_FD) { in OpenBtSchedulingTraceLogFile()
Dbtif_sock.cc161 *sock_fd = INVALID_FD; in btsock_listen()
216 *sock_fd = INVALID_FD; in btsock_connect()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/
DBluetoothSocketManagerBinder.java34 private static final int INVALID_FD = -1; field in BluetoothSocketManagerBinder
171 if (fd == INVALID_FD) { in marshalFd()
/packages/modules/Bluetooth/system/btif/include/
Dbtif_bqr.h178 static int LmpLlMessageTraceLogFd = INVALID_FD;
180 static int BtSchedulingTraceLogFd = INVALID_FD;
/packages/modules/Bluetooth/system/osi/include/
Dosi.h26 #define INVALID_FD (-1) macro
/packages/modules/Bluetooth/android/app/jni/
Dcom_android_bluetooth_btservice_AdapterService.cpp67 const jint INVALID_FD = -1; variable
1744 int socket_fd = INVALID_FD; in connectSocketNative()
1763 socket_fd = INVALID_FD; in connectSocketNative()
1775 int socket_fd = INVALID_FD; in createSocketChannelNative()
1796 socket_fd = INVALID_FD; in createSocketChannelNative()