/system/chre/platform/linux/include/chre/target_platform/ |
H A D | condition_variable_impl.h | 34 inline bool ConditionVariable::wait_for(Mutex& mutex, Nanoseconds timeout) { argument 36 mutex, std::chrono::nanoseconds(timeout.toRawNanoseconds())); 37 return (result != std::cv_status::timeout);
|
/system/core/init/ |
H A D | watchdogd.cpp | 54 int timeout = interval + margin; local 55 int ret = ioctl(fd, WDIOC_SETTIMEOUT, &timeout); 57 PLOG(ERROR) << "Failed to set timeout to " << timeout; 58 ret = ioctl(fd, WDIOC_GETTIMEOUT, &timeout); 60 PLOG(ERROR) << "Failed to get timeout"; 62 if (timeout > margin) { 63 interval = timeout - margin; 67 LOG(WARNING) << "Adjusted interval to timeout returned by driver: " 68 << "timeout " << timeou [all...] |
/system/media/audio_utils/include/audio_utils/ |
H A D | futex.h | 35 int sys_futex(void *addr1, int op, int val1, const struct timespec *timeout, void *addr2, argument 39 return syscall(SYS_futex, addr1, op, val1, timeout, addr2, val3); 45 (void) timeout;
|
/system/netd/server/ |
H A D | IdletimerController.h | 31 int addInterfaceIdletimer(const char *iface, uint32_t timeout, 33 int removeInterfaceIdletimer(const char *iface, uint32_t timeout, 44 int modifyInterfaceIdletimer(IptOp op, const char *iface, uint32_t timeout,
|
H A D | IdletimerController.cpp | 42 * iptables -t raw -A idletimer_PREROUTING -i rmnet0 -j IDLETIMER --timeout 5 --label test-chain --send_nl_msg 1 43 * iptables -t mangle -A idletimer_POSTROUTING -o rmnet0 -j IDLETIMER --timeout 5 --label test-chain --send_nl_msg 1 53 * ndc idletimer add <iface> <timeout> <class label> 54 * ndc idletimer remove <iface> <timeout> <class label> 60 * Remember that the timeout value has to be same at the time of the 165 uint32_t timeout, 175 StringPrintf("%s %s -i %s -j IDLETIMER --timeout %u --label %s --send_nl_msg 1", 176 addRemove, LOCAL_RAW_PREROUTING, iface, timeout, classLabel), 179 StringPrintf("%s %s -o %s -j IDLETIMER --timeout %u --label %s --send_nl_msg 1", 180 addRemove, LOCAL_MANGLE_POSTROUTING, iface, timeout, classLabe 164 modifyInterfaceIdletimer(IptOp op, const char *iface, uint32_t timeout, const char *classLabel) argument 187 addInterfaceIdletimer(const char *iface, uint32_t timeout, const char *classLabel) argument 193 removeInterfaceIdletimer(const char *iface, uint32_t timeout, const char *classLabel) argument [all...] |
/system/bt/service/common/bluetooth/ |
H A D | advertise_settings.cc | 21 AdvertiseSettings::AdvertiseSettings(Mode mode, base::TimeDelta timeout, argument 25 timeout_(timeout),
|
H A D | advertise_settings.h | 64 AdvertiseSettings(Mode mode, base::TimeDelta timeout, 78 const base::TimeDelta& timeout() const { return timeout_; } function in class:bluetooth::AdvertiseSettings
|
/system/extras/boottime_tools/bootio/ |
H A D | bootio.cpp | 67 int timeout = 0; local 79 timeout = atoi(components.at(LOG_TIMEOUT_INDEX).c_str()); 86 if (timeout <= 0 || samples <= 0) { 91 if (samples > timeout || samples > LOG_MAX_SAMPLES || timeout > LOG_MAX_TIMEOUT) { 92 LOG(ERROR) << "Bad values for bootio. timeout=" << timeout << 93 " samples=" << samples << " Max timeout=" << LOG_MAX_TIMEOUT << 97 LOG(INFO) << "Boot I/O: collecting data. samples=" << samples << "timeout=" << timeout; local [all...] |
H A D | bootio_collector.h | 27 void StartDataCollection(int timeout, int samples);
|
/system/extras/slideshow/ |
H A D | slideshow.cpp | 81 LOGE("usage: slideshow [-t timeout] image.png [image2.png ...] last.png\n"); 90 long int timeout = NEXT_TIMEOUT_MS; local 96 timeout = strtol(optarg, NULL, 0); 98 if (timeout < 0 || timeout >= LONG_MAX) { 99 timeout = NEXT_TIMEOUT_MS; 100 LOGE("invalid timeout %s, defaulting to %ld\n", optarg, 101 timeout); 120 * timeout or user input */ 126 long int timeout_remaining = timeout; [all...] |
/system/chre/platform/include/chre/platform/ |
H A D | condition_variable.h | 63 * Same behavior as the wait function, but with a timeout to unblock the 64 * calling thread if not notified within the timeout period. 67 * @param timeout The timeout duration in nanoseconds. 71 bool wait_for(Mutex& mutex, Nanoseconds timeout);
|
/system/core/libusbhost/include/usbhost/ |
H A D | usbhost.h | 149 * timeout - in milliseconds (see Documentation/driver-api/usb/usb.rst) 157 int usb_device_get_string_ucs2(struct usb_device* device, int id, int timeout, void** ucs2_out, 172 char* usb_device_get_string(struct usb_device *device, int id, int timeout); 177 char* usb_device_get_manufacturer_name(struct usb_device *device, int timeout); 182 char* usb_device_get_product_name(struct usb_device *device, int timeout); 191 char* usb_device_get_serial(struct usb_device *device, int timeout); 236 unsigned int timeout); 245 unsigned int timeout);
|
/system/chre/platform/slpi/include/chre/platform/slpi/smgr/ |
H A D | smr_helper.h | 37 //! Default timeout for sendReqSync 40 //! Default timeout for waitForService. Have a longer timeout since there may be 54 * @param timeout How long to wait for the response before abandoning it 57 * the timeout was reached 60 Nanoseconds timeout = kDefaultSmrTimeout); 73 * @param timeout How long to wait for the response before abandoning it 76 * if the supplied timeout was reached 82 Nanoseconds timeout = kDefaultSmrTimeout) { 91 resp->get(), sizeof(RespStruct), timeout, [all...] |
/system/media/audio_utils/tests/ |
H A D | fifo_threads.cpp | 39 struct timespec timeout; local 40 timeout.tv_sec = 30; 41 timeout.tv_nsec = 0; 43 ssize_t actual = context->mInputReader->read(buffer, sizeof(buffer), &timeout); 50 ssize_t actual2 = context->mTransferWriter->write(buffer, actual, &timeout); 74 struct timespec timeout; local 75 timeout.tv_sec = 60; 76 timeout.tv_nsec = 0; 78 ssize_t actual = context->mTransferReader->read(buffer, sizeof(buffer), &timeout); 84 ssize_t actual2 = context->mOutputWriter->write(buffer, actual, NULL /*timeout*/); [all...] |
/system/bt/vendor_libs/linux/interface/ |
H A D | async_fd_watcher.cc | 52 const std::chrono::milliseconds timeout, 54 // Add timeout and callback 58 timeout_ms_ = timeout; 136 struct timeval timeout; local 139 timeout.tv_sec = timeout_ms_.count() / 1000; 140 timeout.tv_usec = (timeout_ms_.count() % 1000) * 1000; 141 timeout_ptr = &timeout; 153 // Allow the timeout callback to modify the timeout. 51 ConfigureTimeout( const std::chrono::milliseconds timeout, const TimeoutCallback& on_timeout_callback) argument
|
/system/bt/binder/android/bluetooth/le/ |
H A D | IPeriodicAdvertisingCallback.aidl | 28 in int skip, in int timeout, in int status);
|
/system/chre/platform/slpi/include/chre/target_platform/ |
H A D | condition_variable_impl.h | 45 inline bool ConditionVariable::wait_for(Mutex& mutex, Nanoseconds timeout) { argument 67 if (!mTimeoutTimer.set(callback, &callbackData, timeout)) {
|
/system/bt/stack/test/ |
H A D | stack_btu_test.cc | 41 struct timespec timeout; local 42 clock_gettime(CLOCK_REALTIME, &timeout); 43 timeout.tv_sec += seconds; 48 // Call the callback if timeout occured 49 if (sem_timedwait(&sem, &timeout) == -1 && !callback.is_null()) {
|
/system/core/libsync/include/android/ |
H A D | sync.h | 60 /* timeout in msecs */ 61 int sync_wait(int fd, int timeout);
|
/system/core/libsync/include/sync/ |
H A D | sync.h | 60 /* timeout in msecs */ 61 int sync_wait(int fd, int timeout);
|
/system/nfc/src/nfa/include/ |
H A D | nfa_sys_ptim.h | 78 uint16_t type, int32_t timeout);
|
/system/update_engine/update_manager/ |
H A D | evaluation_context.cc | 106 Time EvaluationContext::MonotonicDeadline(TimeDelta timeout) { argument 107 return (timeout.is_max() ? Time::Max() : 108 clock_->GetMonotonicTime() + timeout); 180 TimeDelta timeout = std::min( local 194 timeout = std::min(timeout, it.first->GetPollInterval()); 204 if (!waiting_for_value_change && timeout.is_max()) 207 // Ensure that we take into account the expiration timeout. 209 timeout_marks_expiration_ = expiration < timeout; 211 timeout [all...] |
/system/chre/platform/slpi/smgr/ |
H A D | smr_helper.cc | 30 Nanoseconds timeout) { 48 waitSuccess = mCond.wait_for(mMutex, timeout); 62 Microseconds timeout) { 68 timeout.getMicroseconds(), 96 Nanoseconds timeout, smr_err *result) { 97 // Set to false only in the event of timeout 133 waitSuccess = mCond.wait_for(mMutex, timeout); 140 msg_id, Milliseconds(timeout).getMilliseconds()); 29 releaseSync(smr_client_hndl clientHandle, Nanoseconds timeout) argument 61 waitForService(qmi_idl_service_object_type serviceObj, Microseconds timeout) argument 92 sendReqSyncUntyped( smr_client_hndl client_handle, unsigned int msg_id, void *req_c_struct, unsigned int req_c_struct_len, void *resp_c_struct, unsigned int resp_c_struct_len, Nanoseconds timeout, smr_err *result) argument
|
/system/gatekeeper/ |
H A D | gatekeeper.cpp | 52 uint32_t timeout = 0; local 69 timeout = ComputeRetryTimeout(&record); 74 if (throttle && timeout > 0) { 75 response->SetRetryTimeout(timeout); 126 uint32_t timeout = 0; local 143 timeout = ComputeRetryTimeout(&record); 160 // compute the new timeout given the incremented record 161 if (throttle && timeout > 0) { 162 response->SetRetryTimeout(timeout); 254 * Calculates the timeout i 288 uint32_t timeout = ComputeRetryTimeout(record); local [all...] |
/system/media/audio_utils/ |
H A D | fifo.cpp | 178 const struct timespec *timeout) 182 ssize_t availToWrite = obtain(iovec, count, timeout); 198 const struct timespec *timeout) 219 if (count == 0 || availToWrite > 0 || timeout == NULL || 220 (timeout->tv_sec == 0 && timeout->tv_nsec == 0)) { 230 err = audio_utils_clock_nanosleep(CLOCK_MONOTONIC, 0 /*flags*/, timeout, 243 if (timeout->tv_sec == LONG_MAX) { 244 timeout = NULL; 246 err = mFifo.mThrottleFront->wait(op, front, timeout); 177 write(const void *buffer, size_t count, const struct timespec *timeout) argument 197 obtain(audio_utils_iovec iovec[2], size_t count, const struct timespec *timeout) argument 434 read(void *buffer, size_t count, const struct timespec *timeout, size_t *lost) argument 453 obtain(audio_utils_iovec iovec[2], size_t count, const struct timespec *timeout) argument 513 obtain(audio_utils_iovec iovec[2], size_t count, const struct timespec *timeout, size_t *lost) argument [all...] |