/device/google/contexthub/firmware/os/drivers/window_orientation/ |
D | window_orientation.c | 218 static bool isPredictedRotationAcceptable(uint64_t now, int8_t tilt_angle) in isPredictedRotationAcceptable() argument 235 settle_time_needed >> 10, (now - mTask.predicted_rotation_time) >> 10); in isPredictedRotationAcceptable() 238 if (now < mTask.predicted_rotation_time + settle_time_needed) { in isPredictedRotationAcceptable() 245 if (now < mTask.flat_time + PROPOSAL_MIN_TIME_SINCE_FLAT_ENDED) { in isPredictedRotationAcceptable() 252 if (now < mTask.swinging_time + PROPOSAL_MIN_TIME_SINCE_SWING_ENDED) { in isPredictedRotationAcceptable() 258 if (now < mTask.accelerating_time in isPredictedRotationAcceptable() 301 static void updatePredictedRotation(uint64_t now, int rotation) in updatePredictedRotation() argument 305 mTask.predicted_rotation_time = now; in updatePredictedRotation() 315 static void addTiltHistoryEntry(uint64_t now, int8_t tilt) in addTiltHistoryEntry() argument 324 mTask.tilt_reference_time = now - 1; in addTiltHistoryEntry() [all …]
|
/device/generic/goldfish/radio/librilutils/ |
D | librilutils.c | 21 struct timespec now; in ril_nano_time() local 22 clock_gettime(CLOCK_MONOTONIC, &now); in ril_nano_time() 23 return now.tv_sec * 1000000000LL + now.tv_nsec; in ril_nano_time()
|
/device/generic/goldfish/network/wifi_forwarder/ |
D | poller.cpp | 34 Pollable::Timestamp now = Pollable::Clock::now(); in calculateTimeout() local 36 if (deadline <= now) { in calculateTimeout() 42 auto timeout = deadline - now; in calculateTimeout() 144 Pollable::Timestamp now = Pollable::Clock::now(); in run() local 146 if (pollable->getTimeout() <= now) { in run() 148 if (!pollable->onTimeout(now, &status)) { in run()
|
D | wifi_forwarder.cpp | 46 auto now = Pollable::Clock::now(); in init() local 54 mInitDeadline = now + std::chrono::minutes(1); in init() 58 mAliases.setCurrentTime(now); in init() 59 res = mLocalConnection.init(now); in init() 63 mDeadline = now + std::chrono::seconds(1); in init() 101 bool WifiForwarder::onTimeout(Timestamp now, int* /*status*/) { in onTimeout() argument 103 if (now >= mInitDeadline) { in onTimeout() 108 mInitDeadline = now + std::chrono::minutes(1); in onTimeout() 111 mLocalConnection.onTimeout(now); in onTimeout() 112 if (now >= mDeadline) { in onTimeout() [all …]
|
D | local_connection.cpp | 61 Result LocalConnection::init(std::chrono::steady_clock::time_point now) { in init() argument 86 mPendingFrames.setCurrentTime(now); in init() 87 mSequenceNumberCookies.setCurrentTime(now); in init() 89 mLastCacheTimeUpdate = now; in init() 90 mLastCacheExpiration = now; in init() 194 void LocalConnection::onTimeout(std::chrono::steady_clock::time_point now) { in onTimeout() argument 196 if (now - mLastCacheTimeUpdate > std::chrono::seconds(1)) { in onTimeout() 200 mPendingFrames.setCurrentTime(now); in onTimeout() 201 mSequenceNumberCookies.setCurrentTime(now); in onTimeout() 202 mLastCacheTimeUpdate = now; in onTimeout() [all …]
|
D | local_connection.h | 42 Result init(std::chrono::steady_clock::time_point now); 52 void onTimeout(std::chrono::steady_clock::time_point now);
|
/device/generic/goldfish/radio/libril/ |
D | ril_event.cpp | 162 struct timeval now; in processTimeouts() local 166 getNow(&now); in processTimeouts() 169 dlog("~~~~ Looking for timers <= %ds + %dus ~~~~", (int)now.tv_sec, (int)now.tv_usec); in processTimeouts() 170 while ((tev != &timer_list) && (timercmp(&now, &tev->timeout, >))) { in processTimeouts() 218 struct timeval now; in calcNextTimeout() local 220 getNow(&now); in calcNextTimeout() 228 dlog("~~~~ now = %ds + %dus ~~~~", (int)now.tv_sec, (int)now.tv_usec); in calcNextTimeout() 231 if (timercmp(&tev->timeout, &now, >)) { in calcNextTimeout() 232 timersub(&tev->timeout, &now, tv); in calcNextTimeout() 297 struct timeval now; in ril_timer_add() local [all …]
|
/device/google/cuttlefish/guest/hals/ril/libril/ |
D | ril_event.cpp | 162 struct timeval now; in processTimeouts() local 166 getNow(&now); in processTimeouts() 169 dlog("~~~~ Looking for timers <= %ds + %dus ~~~~", (int)now.tv_sec, (int)now.tv_usec); in processTimeouts() 170 while ((tev != &timer_list) && (timercmp(&now, &tev->timeout, >))) { in processTimeouts() 218 struct timeval now; in calcNextTimeout() local 220 getNow(&now); in calcNextTimeout() 228 dlog("~~~~ now = %ds + %dus ~~~~", (int)now.tv_sec, (int)now.tv_usec); in calcNextTimeout() 231 if (timercmp(&tev->timeout, &now, >)) { in calcNextTimeout() 232 timersub(&tev->timeout, &now, tv); in calcNextTimeout() 297 struct timeval now; in ril_timer_add() local [all …]
|
/device/google/cuttlefish/guest/hals/ril/reference-libril/ |
D | ril_event.cpp | 162 struct timeval now; in processTimeouts() local 166 getNow(&now); in processTimeouts() 169 dlog("~~~~ Looking for timers <= %ds + %dus ~~~~", (int)now.tv_sec, (int)now.tv_usec); in processTimeouts() 170 while ((tev != &timer_list) && (timercmp(&now, &tev->timeout, >))) { in processTimeouts() 218 struct timeval now; in calcNextTimeout() local 220 getNow(&now); in calcNextTimeout() 228 dlog("~~~~ now = %ds + %dus ~~~~", (int)now.tv_sec, (int)now.tv_usec); in calcNextTimeout() 231 if (timercmp(&tev->timeout, &now, >)) { in calcNextTimeout() 232 timersub(&tev->timeout, &now, tv); in calcNextTimeout() 297 struct timeval now; in ril_timer_add() local [all …]
|
/device/generic/goldfish/dhcp/client/ |
D | timer.cpp | 21 uint64_t now() { in now() function 32 mExpires = now() + seconds * 1000u; in expireSeconds() 36 return now() >= mExpires; in expired() 40 uint64_t current = now(); in remainingMillis()
|
D | timer.h | 22 uint64_t now();
|
/device/generic/goldfish/network/netmgr/ |
D | poller.cpp | 34 Pollable::Timestamp now = Pollable::Clock::now(); in calculateTimeout() local 36 if (deadline <= now) { in calculateTimeout() 43 auto timeout = deadline - now; in calculateTimeout() 145 Pollable::Timestamp now = Pollable::Clock::now(); in run() local 147 if (pollable->getTimeout() <= now) { in run()
|
/device/google/cuttlefish/host/commands/fetcher/ |
D | credential_source.cc | 32 expiration = std::chrono::steady_clock::now(); in GceMetadataCredentialSource() 36 if (expiration - std::chrono::steady_clock::now() < REFRESH_WINDOW) { in Credential() 55 expiration = std::chrono::steady_clock::now() in RefreshCredential()
|
/device/linaro/dragonboard/qcom/qrtr/src/ |
D | waiter.c | 192 uint64_t now; in waiter_wait() local 216 now = time_ms(); in waiter_wait() 217 if (now >= term_time) { /* already past timeout, skip poll */ in waiter_wait() 222 delta = term_time - now; in waiter_wait() 232 now = time_ms(); in waiter_wait() 239 if (now >= ticket->start + ticket->interval) { in waiter_wait() 240 ticket->start = now; in waiter_wait()
|
/device/google/coral/json-c/ |
D | check.log | 1 HEAD is now at 6442a2f... json-c: Add libjson to the vendor image 2 HEAD is now at 6442a2f... json-c: Add libjson to the vendor image
|
/device/google/crosshatch/json-c/ |
D | check.log | 1 HEAD is now at 6442a2f... json-c: Add libjson to the vendor image 2 HEAD is now at 6442a2f... json-c: Add libjson to the vendor image
|
/device/google/bonito/json-c/ |
D | check.log | 1 HEAD is now at 6442a2f... json-c: Add libjson to the vendor image 2 HEAD is now at 6442a2f... json-c: Add libjson to the vendor image
|
/device/linaro/hikey/power/ |
D | power_hikey.c | 278 long long now, sleeptime = 0; in schedtune_deboost_thread() local 281 now = gettime_ns(); in schedtune_deboost_thread() 282 if (hikey->deboost_time > now) { in schedtune_deboost_thread() 283 sleeptime = hikey->deboost_time - now; in schedtune_deboost_thread() 301 long long now; in schedtune_boost() local 306 now = gettime_ns(); in schedtune_boost() 312 hikey->deboost_time = now + schedtune_boost_time_ns; in schedtune_boost()
|
/device/google/cuttlefish/common/libs/utils/ |
D | tee_logging.cpp | 116 static std::string StderrOutputGenerator(const struct tm& now, int pid, uint64_t tid, in StderrOutputGenerator() argument 120 strftime(timestamp, sizeof(timestamp), "%m-%d %H:%M:%S", &now); in StderrOutputGenerator() 159 struct tm now; in operator ()() local 161 localtime_r(&t, &now); in operator ()() 164 now, getpid(), GetThreadId(), severity, tag, file, line, message); in operator ()()
|
/device/google/cuttlefish/host/commands/modem_simulator/ |
D | thread_looper.cpp | 40 Insert({ std::chrono::steady_clock::now(), cb, serial }); in Post() 50 Insert({ std::chrono::steady_clock::now() + delay, cb, serial }); in PostWithDelay() 99 auto time_to_wait = queue_.front().when - std::chrono::steady_clock::now(); in ThreadLoop()
|
D | misc_service.cpp | 109 auto now = std::time(0); in TimeUpdate() local 111 auto local_time = *std::localtime(&now); in TimeUpdate() 112 auto gm_time = *std::gmtime(&now); in TimeUpdate()
|
D | pdu_parser.cpp | 263 auto now = std::time(0); in GetCurrentTimeStamp() local 265 auto local_time = *std::localtime(&now); in GetCurrentTimeStamp() 266 auto gm_time = *std::gmtime(&now); in GetCurrentTimeStamp()
|
/device/google/wahoo/folio_daemon/ |
D | main.cpp | 106 time_t now = time(NULL); in main() local 117 } else if (now > lastWarn + WARN_PERIOD) { in main() 119 lastWarn = now; in main()
|
/device/generic/goldfish/gnss/ |
D | data_sink.cpp | 63 warmedUpTime = std::chrono::steady_clock::now() + std::chrono::seconds(5); in start() 67 return std::chrono::steady_clock::now() >= warmedUpTime; in isWarmedUd()
|
/device/generic/goldfish/camera/ |
D | EmulatedFakeCameraDevice.cpp | 236 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in drawCheckerboard() local 237 nsecs_t elapsed = now - mLastRedrawn; in drawCheckerboard() 333 if (now - mLastColorChange > kSquareColorChangeIntervalNs) { in drawCheckerboard() 334 mLastColorChange = now; in drawCheckerboard() 339 mLastRedrawn = now; in drawCheckerboard()
|