Home
last modified time | relevance | path

Searched full:timeout (Results 1 – 25 of 434) sorted by relevance

12345678910>>...18

/system/core/watchdogd/
Dwatchdogd.cpp45 int timeout = interval + margin; in main() local
46 int ret = ioctl(fd, WDIOC_SETTIMEOUT, &timeout); in main()
48 PLOG(ERROR) << "Failed to set timeout to " << timeout; in main()
49 ret = ioctl(fd, WDIOC_GETTIMEOUT, &timeout); in main()
51 PLOG(ERROR) << "Failed to get timeout"; in main()
53 if (timeout > margin) { in main()
54 interval = timeout - margin; in main()
58 LOG(WARNING) << "Adjusted interval to timeout returned by driver: " in main()
59 << "timeout " << timeout << ", interval " << interval << ", margin " in main()
/system/netd/server/
DIdletimerController.cpp42 …* iptables -t raw -A idletimer_PREROUTING -i rmnet0 -j IDLETIMER --timeout 5 --label test-chain -…
43 …* iptables -t mangle -A idletimer_POSTROUTING -o rmnet0 -j IDLETIMER --timeout 5 --label test-cha…
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
141 uint32_t timeout, in modifyInterfaceIdletimer() argument
151 StringPrintf("%s %s -i %s -j IDLETIMER --timeout %u --label %s --send_nl_msg", in modifyInterfaceIdletimer()
152 addRemove, LOCAL_RAW_PREROUTING, iface, timeout, classLabel), in modifyInterfaceIdletimer()
155 StringPrintf("%s %s -o %s -j IDLETIMER --timeout %u --label %s --send_nl_msg", in modifyInterfaceIdletimer()
156 addRemove, LOCAL_MANGLE_POSTROUTING, iface, timeout, classLabel), in modifyInterfaceIdletimer()
[all …]
/system/chre/java/test/utils/src/com/google/android/utils/chre/
DContextHubBroadcastReceiver.java61 * @param timeout the timeout to wait
62 * @param unit the unit of the timeout
69 long timeout, in pollIntentEvent() argument
76 event = sQueue.poll(timeout, unit); in pollIntentEvent()
112 * @param timeout the timeout to wait
113 * @param unit the unit of the timeout
115 public static void assertNoIntentEventReceived(long timeout, TimeUnit unit) { in assertNoIntentEventReceived() argument
118 event = sQueue.poll(timeout, unit); in assertNoIntentEventReceived()
DContextHubServiceTestHelper.java214 * @param timeout the timeout duration
215 * @param unit the timeout unit
217 public void assertTransactionSuccessSync(ContextHubTransaction<?> transaction, long timeout, in assertTransactionSuccessSync() argument
224 response = transaction.waitForResponse(timeout, unit); in assertTransactionSuccessSync()
237 * @param timeout the timeout duration
238 * @param unit the timeout unit
240 public void runConcurrentTasks(List<Runnable> tasks, long timeout, TimeUnit unit) in runConcurrentTasks() argument
247 boolean unused = executorService.awaitTermination(timeout, unit); in runConcurrentTasks()
/system/extras/slideshow/
Dslideshow.cpp81 LOGE("usage: slideshow [-t timeout] image.png [image2.png ...] last.png\n"); in usage()
90 long int timeout = NEXT_TIMEOUT_MS; in main() local
96 timeout = strtol(optarg, NULL, 0); in main()
98 if (timeout < 0 || timeout >= LONG_MAX) { in main()
99 timeout = NEXT_TIMEOUT_MS; in main()
100 LOGE("invalid timeout %s, defaulting to %ld\n", optarg, in main()
101 timeout); in main()
120 * timeout or user input */ in main()
126 long int timeout_remaining = timeout; in main()
150 if (ev_wait(timeout) == 0) { in main()
/system/core/gatekeeperd/include/gatekeeper/
DGateKeeperResponse.h34 GateKeeperResponse(ResponseCode response_code, int32_t timeout = 0,
37 timeout_(timeout), in response_code_()
48 static GateKeeperResponse retry(int32_t timeout) { in retry() argument
49 return GateKeeperResponse(ResponseCode::RETRY, timeout); in retry()
70 int32_t timeout() const { return timeout_; } in timeout() function
72 void timeout(int32_t timeout) { timeout_ = timeout; } in timeout() function
/system/extras/boottime_tools/bootio/
Dbootio.cpp67 int timeout = 0; in StartDataCollection() local
79 timeout = atoi(components.at(LOG_TIMEOUT_INDEX).c_str()); in StartDataCollection()
86 if (timeout <= 0 || samples <= 0) { in StartDataCollection()
91 if (samples > timeout || samples > LOG_MAX_SAMPLES || timeout > LOG_MAX_TIMEOUT) { in StartDataCollection()
92 LOG(ERROR) << "Bad values for bootio. timeout=" << timeout << in StartDataCollection()
93 " samples=" << samples << " Max timeout=" << LOG_MAX_TIMEOUT << in StartDataCollection()
97 LOG(INFO) << "Boot I/O: collecting data. samples=" << samples << "timeout=" << timeout; in StartDataCollection()
99 timeout, samples); in StartDataCollection()
105 collector->StartDataCollection(timeout, samples); in StartDataCollection()
/system/media/audio_utils/tests/
Dfifo_threads.cpp40 struct timespec timeout; in input_routine() local
41 timeout.tv_sec = 30; in input_routine()
42 timeout.tv_nsec = 0; in input_routine()
44 ssize_t actual = context->mInputReader->read(buffer, sizeof(buffer), &timeout); in input_routine()
51 ssize_t actual2 = context->mTransferWriter->write(buffer, actual, &timeout); in input_routine()
75 struct timespec timeout; in output_routine() local
76 timeout.tv_sec = 60; in output_routine()
77 timeout.tv_nsec = 0; in output_routine()
79 ssize_t actual = context->mTransferReader->read(buffer, sizeof(buffer), &timeout); in output_routine()
85 ssize_t actual2 = context->mOutputWriter->write(buffer, actual, NULL /*timeout*/); in output_routine()
[all …]
/system/gatekeeper/
Dgatekeeper.cpp65 uint32_t timeout = 0; in Enroll() local
82 timeout = ComputeRetryTimeout(&record); in Enroll()
87 if (throttle && timeout > 0) { in Enroll()
88 response->SetRetryTimeout(timeout); in Enroll()
137 uint32_t timeout = 0; in Verify() local
154 timeout = ComputeRetryTimeout(&record); in Verify()
170 // compute the new timeout given the incremented record in Verify()
171 if (throttle && timeout > 0) { in Verify()
172 response->SetRetryTimeout(timeout); in Verify()
296 * Calculates the timeout in milliseconds as a function of the failure
[all …]
/system/apex/apexd/
Dapexd_dm.cpp43 const std::chrono::milliseconds& timeout) { in CreateDmDeviceInternal() argument
45 if (!dm.CreateDevice(name, table, &dev_path, timeout)) { in CreateDmDeviceInternal()
56 auto timeout = std::chrono::milliseconds( in CreateDmDevice() local
63 return CreateDmDeviceInternal(dm, name, table, timeout); in CreateDmDevice()
70 return CreateDmDeviceInternal(dm, name, table, timeout); in CreateDmDevice()
77 if (!dm.WaitForDevice(name, timeout, &path)) { in CreateDmDevice()
87 return CreateDmDeviceInternal(dm, name, table, timeout); in CreateDmDevice()
102 auto timeout = std::chrono::milliseconds( in DeleteDmDevice() local
104 if (!dm.DeleteDevice(name, timeout)) { in DeleteDmDevice()
/system/extras/simpleperf/
DIOEventLoop.cpp29 timeval timeout; member
34 : loop(loop), e(nullptr), timeout({}), callback(callback), enabled(false) {} in IOEvent()
147 IOEventRef IOEventLoop::AddEvent(int fd_or_sig, int16_t events, timeval* timeout, in AddEvent() argument
159 if (event_add(e->e, timeout) != 0) { in AddEvent()
163 if (timeout != nullptr) { in AddEvent()
164 e->timeout = *timeout; in AddEvent()
208 timeval* timeout = in EnableEvent() local
209 (ref->timeout.tv_sec != 0 || ref->timeout.tv_usec != 0) ? &ref->timeout : nullptr; in EnableEvent()
210 if (event_add(ref->e, timeout) != 0) { in EnableEvent()
/system/media/audio_utils/
Dfifo.cpp181 const struct timespec *timeout) in write() argument
185 ssize_t availToWrite = obtain(iovec, count, timeout); in write()
201 const struct timespec *timeout) in obtain() argument
223 if (count == 0 || availToWrite > 0 || timeout == NULL || in obtain()
224 (timeout->tv_sec == 0 && timeout->tv_nsec == 0)) { in obtain()
237 err = audio_utils_clock_nanosleep(CLOCK_MONOTONIC, 0 /*flags*/, timeout, in obtain()
250 if (timeout->tv_sec == LONG_MAX) { in obtain()
251 timeout = NULL; in obtain()
253 err = mFifo.mThrottleFront->wait(op, front, timeout); in obtain()
261 // bypass the "timeout = NULL;" below in obtain()
[all …]
/system/media/audio_utils/include/audio_utils/
Dfifo.h258 * \param timeout Indicates the maximum time to block for at least one frame.
261 * As an optimization, if \p timeout->tv_sec is the maximum positive value for
262 * time_t (LONG_MAX), then the implementation treats it as infinite timeout.
274 * \retval -ETIMEDOUT count is greater than zero, timeout is non-NULL and not {0, 0},
275 * timeout expired, and no frames were available after the timeout.
276 * \retval -EINTR count is greater than zero, timeout is non-NULL and not {0, 0}, timeout
278 * \retval -EWOULDBLOCK count is greater than zero, timeout is non-NULL and not {0, 0},
287 const struct timespec *timeout = NULL) = 0;
373 * \param timeout Indicates the maximum time to block for at least one frame.
376 * As an optimization, if \p timeout->tv_sec is the maximum positive value for
[all …]
/system/security/keystore2/watchdog/src/
Dlib.rs92 /// `MIN_REPORT_TIMEOUT` sec then increment the timeout by 5 up
111 let timeout = r.deadline.saturating_duration_since(now); in overdue_and_next_timeout() localVariable
112 if timeout == Duration::new(0, 0) { in overdue_and_next_timeout()
113 // This timeout has passed. in overdue_and_next_timeout()
116 // This timeout is still to come; see if it's the closest one to now. in overdue_and_next_timeout()
118 Some(nt) if timeout < nt => Some(timeout), in overdue_and_next_timeout()
120 None => Some(timeout), in overdue_and_next_timeout()
281 timeout: Duration, in watch_with_optional()
283 let Some(deadline) = Instant::now().checked_add(timeout) else { in watch_with_optional()
292 /// Create a new watch point. If the WatchPoint is not dropped before the timeout
[all …]
/system/chre/chpp/test/
Dfake_link_client.h29 // The timeout at which the test client will trigger a timeout during init.
55 * Waits for a timeout timer to trigger.
57 * @param timeoutMs The timeout to wait for the trigger, in milliseconds.
58 * @return true if the timeout timer triggered, false otherwise.
Dfake_link.h45 // Our default timeout covers the retry timeout, plus some extra buffer to
60 * Wait up to the provided timeout for a packet to hit the TX queue, or return
63 * @return true if a packet is waiting, false on timeout
65 bool waitForTxPacket(std::chrono::milliseconds timeout = kDefaultTimeout);
71 bool waitForEmpty(std::chrono::milliseconds timeout = kDefaultTimeout);
/system/chre/util/include/chre/util/system/
Dtransaction_manager_impl.h56 setTimerAbsolute(mTransactions.back().timeout); in add()
134 transaction.timeout = SystemTime::getMonotonicTime() + kTimeout; in startTransaction()
149 if (transaction.timeout < nextTimeout) { in updateTimer()
150 nextTimeout = transaction.timeout; in updateTimer()
185 // - If a transaction has reached its timeout, try again in handleTimerExpiry()
188 // - Keep track of the transaction with the shortest timeout, use that to in handleTimerExpiry()
194 if (transaction.timeout <= now) { in handleTimerExpiry()
203 transaction.timeout = now + kTimeout; in handleTimerExpiry()
210 if (transaction.timeout < nextTimeout) { in handleTimerExpiry()
211 nextTimeout = transaction.timeout; in handleTimerExpiry()
/system/core/libcutils/
Dsocket_network_client_unix.cpp42 // 'timeout' is in seconds (0 for no timeout).
46 int socket_network_client_timeout(const char* host, int port, int type, int timeout, in socket_network_client_timeout() argument
83 ts.tv_sec = timeout; in socket_network_client_timeout()
85 if ((rc = select(s + 1, &r_set, &w_set, NULL, (timeout != 0) ? &ts : NULL)) == -1) { in socket_network_client_timeout()
89 if (rc == 0) { // we had a timeout in socket_network_client_timeout()
108 // TODO: Update the timeout. in socket_network_client_timeout()
/system/extras/tests/timetest/
Drtc_test.cpp105 int timeout; in rtc_rollover() local
106 for (timeout = timeout_num; timeout && (roll.tm_year == save.tm_year); --timeout) { in rtc_rollover()
143 for (timeout = timeout_num; timeout && (roll.tm_year == tm.tm_year); --timeout) { in rtc_rollover()
148 EXPECT_LT(timeout_num * 5 / 100, timeout); in rtc_rollover()
149 EXPECT_GT(timeout_num * 95 / 100, timeout); in rtc_rollover()
/system/chre/platform/include/chre/platform/
Dcondition_variable.h66 * Same behavior as the wait function, but with a timeout to unblock the
67 * calling thread if not notified within the timeout period.
70 * @param timeout The timeout duration in nanoseconds.
74 bool wait_for(Mutex &mutex, Nanoseconds timeout);
/system/core/fs_mgr/libfs_avb/
Drun_tests.sh7 # The tests need more time to finish, so increase the timeout to 5 mins.
8 # The default timeout is only 60 seconds.
10 com.android.tradefed.testtype.HostGTest:native-test-timeout:5m
/system/chre/util/include/chre/util/
Dduplicate_message_detector.h47 * for longer than the timeout specified in the constructor.
63 DuplicateMessageDetector(Nanoseconds timeout): in DuplicateMessageDetector() argument
64 kTimeout(timeout) {} in DuplicateMessageDetector()
84 //! timeout specified in the constructor.
88 //! The timeout specified in the constructor. This should be the reliable
89 //! message timeout.
/system/update_engine/scripts/
Dota_stress_test.py58 def PerformTest(otafile: Path, resumes: int, timeout: int):
85 ota_cmd, stderr=subprocess.STDOUT, timeout=timeout).decode()
109 parser.add_argument('-t', "--timeout", type=int, default=60*60,
111 help='Timeout, in seconds, when waiting for OTA to \
117 PerformTest(args.otafile, args.resumes, args.timeout)
/system/update_engine/common/
Dcpu_limiter.h38 // Sets the cpu shares to low and sets up timeout events to stop the limiter.
41 // Resets the cpu shares to normal and destroys any scheduled timeout sources.
49 // The cpu shares timeout source callback sets the current cpu shares to
56 // The cpu shares management timeout task id.
/system/chre/chpp/platform/linux/
Dnotifier.c73 struct timespec timeout; in chppPlatformNotifierTimedWait() local
81 timeout = absTime; in chppPlatformNotifierTimedWait()
82 timeout.tv_sec += timeoutS; in chppPlatformNotifierTimedWait()
83 timeout.tv_nsec += timeoutNs; in chppPlatformNotifierTimedWait()
86 (CHPP_TIMESPEC_TO_NS(absTime) < CHPP_TIMESPEC_TO_NS(timeout))) { in chppPlatformNotifierTimedWait()

12345678910>>...18