/external/dbus/dbus/ |
D | dbus-timeout.c | 68 DBusTimeout *timeout; in _dbus_timeout_new() local 70 timeout = dbus_new0 (DBusTimeout, 1); in _dbus_timeout_new() 71 if (timeout == NULL) in _dbus_timeout_new() 74 timeout->refcount = 1; in _dbus_timeout_new() 75 timeout->interval = interval; in _dbus_timeout_new() 77 timeout->handler = handler; in _dbus_timeout_new() 78 timeout->handler_data = data; in _dbus_timeout_new() 79 timeout->free_handler_data_function = free_data_function; in _dbus_timeout_new() 81 timeout->enabled = TRUE; in _dbus_timeout_new() 83 return timeout; in _dbus_timeout_new() [all …]
|
D | dbus-mainloop.c | 92 DBusTimeout *timeout; member 125 timeout_callback_new (DBusTimeout *timeout, in timeout_callback_new() argument 136 cb->timeout = timeout; in timeout_callback_new() 318 DBusTimeout *timeout, in _dbus_loop_add_timeout() argument 325 tcb = timeout_callback_new (timeout, function, data, free_data_func); in _dbus_loop_add_timeout() 341 DBusTimeout *timeout, in _dbus_loop_remove_timeout() argument 354 TIMEOUT_CALLBACK (this)->timeout == timeout && in _dbus_loop_remove_timeout() 367 timeout, (void *)function, data); in _dbus_loop_remove_timeout() 377 int *timeout) in check_timeout() argument 389 interval = dbus_timeout_get_interval (tcb->timeout); in check_timeout() [all …]
|
D | dbus-timeout.h | 47 DBusTimeout* _dbus_timeout_ref (DBusTimeout *timeout); 48 void _dbus_timeout_unref (DBusTimeout *timeout); 49 void _dbus_timeout_set_interval (DBusTimeout *timeout, 51 void _dbus_timeout_set_enabled (DBusTimeout *timeout, 63 DBusTimeout *timeout); 65 DBusTimeout *timeout); 67 DBusTimeout *timeout,
|
/external/wpa_supplicant_8/src/utils/ |
D | eloop_none.c | 41 struct eloop_timeout *timeout; member 116 struct eloop_timeout *timeout, *tmp, *prev; in eloop_register_timeout() local 118 timeout = (struct eloop_timeout *) malloc(sizeof(*timeout)); in eloop_register_timeout() 119 if (timeout == NULL) in eloop_register_timeout() 121 os_get_time(&timeout->time); in eloop_register_timeout() 122 timeout->time.sec += secs; in eloop_register_timeout() 123 timeout->time.usec += usecs; in eloop_register_timeout() 124 while (timeout->time.usec >= 1000000) { in eloop_register_timeout() 125 timeout->time.sec++; in eloop_register_timeout() 126 timeout->time.usec -= 1000000; in eloop_register_timeout() [all …]
|
D | eloop_win.c | 54 struct eloop_timeout *timeout; member 239 struct eloop_timeout *timeout, *tmp, *prev; in eloop_register_timeout() local 242 timeout = os_malloc(sizeof(*timeout)); in eloop_register_timeout() 243 if (timeout == NULL) in eloop_register_timeout() 245 os_get_time(&timeout->time); in eloop_register_timeout() 246 now_sec = timeout->time.sec; in eloop_register_timeout() 247 timeout->time.sec += secs; in eloop_register_timeout() 248 if (timeout->time.sec < now_sec) { in eloop_register_timeout() 255 os_free(timeout); in eloop_register_timeout() 258 timeout->time.usec += usecs; in eloop_register_timeout() [all …]
|
D | eloop.c | 70 struct dl_list timeout; member 130 dl_list_init(&eloop.timeout); in eloop_init() 481 struct eloop_timeout *timeout, *tmp; in eloop_register_timeout() local 484 timeout = os_zalloc(sizeof(*timeout)); in eloop_register_timeout() 485 if (timeout == NULL) in eloop_register_timeout() 487 if (os_get_time(&timeout->time) < 0) { in eloop_register_timeout() 488 os_free(timeout); in eloop_register_timeout() 491 now_sec = timeout->time.sec; in eloop_register_timeout() 492 timeout->time.sec += secs; in eloop_register_timeout() 493 if (timeout->time.sec < now_sec) { in eloop_register_timeout() [all …]
|
/external/wpa_supplicant_6/wpa_supplicant/src/utils/ |
D | eloop_none.c | 49 struct eloop_timeout *timeout; member 125 struct eloop_timeout *timeout, *tmp, *prev; in eloop_register_timeout() local 127 timeout = (struct eloop_timeout *) malloc(sizeof(*timeout)); in eloop_register_timeout() 128 if (timeout == NULL) in eloop_register_timeout() 130 os_get_time(&timeout->time); in eloop_register_timeout() 131 timeout->time.sec += secs; in eloop_register_timeout() 132 timeout->time.usec += usecs; in eloop_register_timeout() 133 while (timeout->time.usec >= 1000000) { in eloop_register_timeout() 134 timeout->time.sec++; in eloop_register_timeout() 135 timeout->time.usec -= 1000000; in eloop_register_timeout() [all …]
|
D | eloop.c | 58 struct eloop_timeout *timeout; member 240 struct eloop_timeout *timeout, *tmp, *prev; in eloop_register_timeout() local 242 timeout = os_malloc(sizeof(*timeout)); in eloop_register_timeout() 243 if (timeout == NULL) in eloop_register_timeout() 245 if (os_get_time(&timeout->time) < 0) { in eloop_register_timeout() 246 os_free(timeout); in eloop_register_timeout() 249 timeout->time.sec += secs; in eloop_register_timeout() 250 timeout->time.usec += usecs; in eloop_register_timeout() 251 while (timeout->time.usec >= 1000000) { in eloop_register_timeout() 252 timeout->time.sec++; in eloop_register_timeout() [all …]
|
D | eloop_win.c | 62 struct eloop_timeout *timeout; member 248 struct eloop_timeout *timeout, *tmp, *prev; in eloop_register_timeout() local 250 timeout = os_malloc(sizeof(*timeout)); in eloop_register_timeout() 251 if (timeout == NULL) in eloop_register_timeout() 253 os_get_time(&timeout->time); in eloop_register_timeout() 254 timeout->time.sec += secs; in eloop_register_timeout() 255 timeout->time.usec += usecs; in eloop_register_timeout() 256 while (timeout->time.usec >= 1000000) { in eloop_register_timeout() 257 timeout->time.sec++; in eloop_register_timeout() 258 timeout->time.usec -= 1000000; in eloop_register_timeout() [all …]
|
/external/dbus/bus/ |
D | expirelist.c | 34 DBusTimeout *timeout; member 44 call_timeout_callback (DBusTimeout *timeout, in call_timeout_callback() argument 48 dbus_timeout_handle (timeout); in call_timeout_callback() 68 list->timeout = _dbus_timeout_new (100, /* irrelevant */ in bus_expire_list_new() 71 if (list->timeout == NULL) in bus_expire_list_new() 74 _dbus_timeout_set_enabled (list->timeout, FALSE); in bus_expire_list_new() 77 list->timeout, in bus_expire_list_new() 84 if (list->timeout) in bus_expire_list_new() 85 _dbus_timeout_unref (list->timeout); in bus_expire_list_new() 97 _dbus_loop_remove_timeout (list->loop, list->timeout, in bus_expire_list_free() [all …]
|
/external/mdnsresponder/mDNSPosix/ |
D | ExampleClientApp.c | 53 struct timeval timeout; in ExampleClientEventLoop() local 64 timeout.tv_sec = 0x3FFFFFFF; in ExampleClientEventLoop() 65 timeout.tv_usec = 0; in ExampleClientEventLoop() 68 mDNSPosixGetFDSet(m, &nfds, &readfds, &timeout); in ExampleClientEventLoop() 71 verbosedebugf("select(%d, %d.%06d)", nfds, timeout.tv_sec, timeout.tv_usec); in ExampleClientEventLoop() 72 result = select(nfds, &readfds, NULL, NULL, &timeout); in ExampleClientEventLoop()
|
/external/wpa_supplicant_8/wpa_supplicant/examples/p2p/ |
D | p2p_listen.py | 41 global timeout 50 def __init__(self,interface_name,wpas_dbus_interface,timeout): argument 52 self.timeout = int(timeout) 104 self.p2p_interface.Listen(int(self.timeout)) 115 timeout = 0 variable 141 timeout = value variable 160 p2p_listen_test = P2P_Listen(interface_name, wpas_dbus_interface, timeout) 172 if (int(p2p_listen_test.timeout) == 0): 177 time.sleep(int(p2p_listen_test.timeout))
|
D | p2p_find.py | 43 global timeout 53 def __init__(self,interface_name,wpas_dbus_interface,timeout): argument 55 self.timeout = int(timeout) 111 {'Timeout':int(self.timeout)}) 125 timeout = 0 variable 151 timeout = value variable 170 p2p_find_test = P2P_Find(interface_name, wpas_dbus_interface, timeout) 182 if (timeout == 0): 187 time.sleep(p2p_find_test.timeout)
|
D | p2p_flush.py | 40 global timeout 49 def __init__(self,interface_name,wpas_dbus_interface,timeout): argument 53 self.timeout = timeout 113 timeout = 5 variable 151 p2p_flush_test = P2P_Flush(interface_name, wpas_dbus_interface,timeout) 162 time.sleep(int(p2p_flush_test.timeout))
|
/external/wpa_supplicant_8/wpa_supplicant/dbus/ |
D | dbus_common.c | 159 DBusTimeout *timeout = sock_ctx; in process_timeout() local 160 dbus_timeout_handle(timeout); in process_timeout() 164 static dbus_bool_t add_timeout(DBusTimeout *timeout, void *data) in add_timeout() argument 167 if (!dbus_timeout_get_enabled(timeout)) in add_timeout() 170 eloop_register_timeout(0, dbus_timeout_get_interval(timeout) * 1000, in add_timeout() 171 process_timeout, priv, timeout); in add_timeout() 173 dbus_timeout_set_data(timeout, priv, NULL); in add_timeout() 179 static void remove_timeout(DBusTimeout *timeout, void *data) in remove_timeout() argument 182 eloop_cancel_timeout(process_timeout, priv, timeout); in remove_timeout() 183 dbus_timeout_set_data(timeout, NULL, NULL); in remove_timeout() [all …]
|
/external/chromium/third_party/libevent/sample/ |
D | time-test.c | 36 struct event *timeout = arg; in timeout_cb() local 45 event_add(timeout, &tv); in timeout_cb() 51 struct event timeout; in main() local 58 evtimer_set(&timeout, timeout_cb, &timeout); in main() 62 event_add(&timeout, &tv); in main()
|
/external/libusb/libusb/ |
D | io.c | 1062 unsigned int timeout = in calculate_timeout() local 1063 __USBI_TRANSFER_TO_LIBUSB_TRANSFER(transfer)->timeout; in calculate_timeout() 1065 if (!timeout) in calculate_timeout() 1075 current_time.tv_sec += timeout / 1000; in calculate_timeout() 1076 current_time.tv_nsec += (timeout % 1000) * 1000000; in calculate_timeout() 1083 TIMESPEC_TO_TIMEVAL(&transfer->timeout, ¤t_time); in calculate_timeout() 1093 struct timeval *timeout = &transfer->timeout; in add_to_flying_list() local 1103 if (timerisset(timeout)) in add_to_flying_list() 1109 if (!timerisset(timeout)) { in add_to_flying_list() 1117 struct timeval *cur_tv = &cur->timeout; in add_to_flying_list() [all …]
|
D | sync.c | 74 unsigned char *data, uint16_t wLength, unsigned int timeout) in libusb_control_transfer() argument 96 ctrl_transfer_cb, &completed, timeout); in libusb_control_transfer() 155 int *transferred, unsigned int timeout, unsigned char type) in do_sync_bulk_transfer() argument 165 bulk_transfer_cb, &completed, timeout); in do_sync_bulk_transfer() 257 unsigned int timeout) in libusb_bulk_transfer() argument 260 transferred, timeout, LIBUSB_TRANSFER_TYPE_BULK); in libusb_bulk_transfer() 306 unsigned char *data, int length, int *transferred, unsigned int timeout) in libusb_interrupt_transfer() argument 309 transferred, timeout, LIBUSB_TRANSFER_TYPE_INTERRUPT); in libusb_interrupt_transfer()
|
/external/valgrind/main/coregrind/m_mach/ |
D | mach_msg.c | 56 mach_msg_timeout_t timeout, 60 mach_msg(msg, option, send_size, rcv_size, rcv_name, timeout, notify) in mach_msg() argument 66 mach_msg_timeout_t timeout; 85 timeout, notify); 94 timeout, notify); 101 timeout, notify);
|
/external/libnfc-nxp/Linux_x86/ |
D | phDal4Nfc_uart.c | 267 static struct timeval timeval_remaining(struct timespec timeout) { in timeval_remaining() argument 272 delta.tv_sec = timeout.tv_sec - now.tv_sec; in timeval_remaining() 273 delta.tv_usec = (timeout.tv_nsec - now.tv_nsec) / (long)1000; in timeval_remaining() 302 struct timespec timeout; in phDal4Nfc_uart_read() local 315 clock_gettime(CLOCK_MONOTONIC, &timeout); in phDal4Nfc_uart_read() 316 timeout.tv_nsec += 100000000; in phDal4Nfc_uart_read() 317 if (timeout.tv_nsec > 1000000000) { in phDal4Nfc_uart_read() 318 timeout.tv_sec++; in phDal4Nfc_uart_read() 319 timeout.tv_nsec -= 1000000000; in phDal4Nfc_uart_read() 323 clock_gettime(CLOCK_MONOTONIC, &timeout); in phDal4Nfc_uart_read() [all …]
|
/external/dbus/test/ |
D | test-utils.c | 42 connection_timeout_callback (DBusTimeout *timeout, in connection_timeout_callback() argument 46 dbus_timeout_handle (timeout); in connection_timeout_callback() 50 add_timeout (DBusTimeout *timeout, in add_timeout() argument 56 timeout, connection_timeout_callback, cd, NULL); in add_timeout() 60 remove_timeout (DBusTimeout *timeout, in remove_timeout() argument 66 timeout, connection_timeout_callback, cd); in remove_timeout() 263 server_timeout_callback (DBusTimeout *timeout, in server_timeout_callback() argument 267 dbus_timeout_handle (timeout); in server_timeout_callback() 271 add_server_timeout (DBusTimeout *timeout, in add_server_timeout() argument 277 timeout, server_timeout_callback, context, NULL); in add_server_timeout() [all …]
|
/external/apache-harmony/support/src/test/java/tests/support/ |
D | Support_HttpServerSocket.java | 34 private int timeout = 8000; field in Support_HttpServerSocket 48 instance.setSoTimeout(timeout); in accept() 57 public void setTimeout(int timeout) { in setTimeout() argument 58 this.timeout = timeout; in setTimeout()
|
/external/webkit/Source/WebKit2/Platform/CoreIPC/ |
D | Connection.h | 143 … message, const typename T::Reply& reply, uint64_t destinationID, double timeout = DefaultTimeout); 144 template<typename T> bool waitForAndDispatchImmediately(uint64_t destinationID, double timeout); 153 …messageID, uint64_t destinationID, const T& arguments, const U& reply, double timeout = NoTimeout); 154 …PassOwnPtr<ArgumentDecoder> deprecatedWaitFor(E messageID, uint64_t destinationID, double timeout); 198 PassOwnPtr<ArgumentDecoder> waitForMessage(MessageID, uint64_t destinationID, double timeout); 200 …r> sendSyncMessage(MessageID, uint64_t syncRequestID, PassOwnPtr<ArgumentEncoder>, double timeout); 201 PassOwnPtr<ArgumentDecoder> waitForSyncReply(uint64_t syncRequestID, double timeout); 343 …:sendSync(const T& message, const typename T::Reply& reply, uint64_t destinationID, double timeout) in sendSync() argument 352 …oder = sendSyncMessage(MessageID(T::messageID), syncRequestID, argumentEncoder.release(), timeout); in sendSync() 360 …<typename T> bool Connection::waitForAndDispatchImmediately(uint64_t destinationID, double timeout) in waitForAndDispatchImmediately() argument [all …]
|
/external/ppp/pppd/plugins/radius/ |
D | buildreq.c | 64 int timeout, int retries) in rc_buildreq() argument 69 data->timeout = timeout; in rc_buildreq() 195 int timeout = rc_conf_int("radius_timeout"); in rc_auth_using_server() local 224 authserver->port[i], timeout, retries); in rc_auth_using_server() 253 int timeout = rc_conf_int("radius_timeout"); in rc_auth_proxy() local 268 authserver->port[i], timeout, retries); in rc_auth_proxy() 299 int timeout = rc_conf_int("radius_timeout"); in rc_acct_using_server() local 337 acctserver->port[i], timeout, retries); in rc_acct_using_server() 382 int timeout = rc_conf_int("radius_timeout"); in rc_acct_proxy() local 397 acctserver->port[i], timeout, retries); in rc_acct_proxy() [all …]
|
/external/webkit/Source/WebKit/qt/tests/ |
D | util.h | 37 static bool waitForSignal(QObject* obj, const char* signal, int timeout = 10000) 42 QSignalSpy timeoutSpy(&timer, SIGNAL(timeout())); 43 if (timeout > 0) { 44 QObject::connect(&timer, SIGNAL(timeout()), &loop, SLOT(quit())); 46 timer.start(timeout);
|