/system/core/fastboot/ |
H A D | util.cpp | 38 double now() function
|
/system/security/keystore/ |
H A D | keystore_keymaster_enforcement.h | 42 time_t now = time(NULL); variable 43 if (now == static_cast<time_t>(-1)) { 46 } else if (now < 0) { 55 uint64_t now_date = static_cast<uint64_t>(now) * 1000 + 999; 60 time_t now = time(NULL); variable 61 if (now == static_cast<time_t>(-1)) { 64 } else if (now < 0) { 72 uint64_t now_date = static_cast<uint64_t>(now) * 1000;
|
H A D | auth_token_table.cpp | 155 time_t now = clock_function_(); local 156 if (static_cast<int64_t>(newest_match->time_received()) + timeout < static_cast<int64_t>(now)) 166 newest_match->UpdateLastUse(now);
|
/system/update_engine/update_manager/ |
H A D | real_time_provider_unittest.cc | 62 const Time now = CurrTime(); local 64 now.LocalExplode(&exploded); 71 fake_clock_.SetWallclockTime(now); 76 const Time now = CurrTime(); local 78 now.LocalExplode(&expected); 79 fake_clock_.SetWallclockTime(now);
|
/system/core/liblog/ |
H A D | log_ratelimit.cpp | 76 time_t now = time(NULL); local 77 if ((now == (time_t)-1) || ((*last + seconds) > now)) { 82 *last = now;
|
H A D | log_time.cpp | 32 time_t now; local 35 now = tv_sec; 37 time(&now); 38 tv_sec = now; 45 ptm = localtime_r(&now, &tmBuf); 47 ptm = localtime(&now); 81 now = tv_sec; 83 ptm = localtime_r(&now, &tmBuf); 85 ptm = localtime(&now); 130 time(&now); [all...] |
/system/netd/include/ |
H A D | Stopwatch.h | 24 Stopwatch() : mStart(clock::now()) {} 29 return getElapsed(clock::now()); 33 const auto& now = clock::now(); local 34 float elapsed = getElapsed(now); 35 mStart = now; 44 float getElapsed(const time_point& now) const { 46 return (std::chrono::duration_cast<ms>(now - mStart)).count();
|
/system/update_engine/ |
H A D | metrics_utils.cc | 156 // For now just map that to kDownloading. See http://crbug.com/355745 271 Time now = system_state->clock()->GetWallclockTime(); local 275 if (stored_time > now) { 279 *out_duration = now - stored_time; 285 now.ToInternalValue())) { 297 Time now = system_state->clock()->GetMonotonicTime(); local 300 *out_duration = now - stored_time; 303 *storage = now.ToInternalValue();
|
/system/extras/tests/framebuffer/ |
H A D | refresh.c | 131 // at least for now, always clear the fb 159 int64_t now = systemTime(); local 160 time = now - time; 163 time = now;
|
/system/extras/tests/icachetest/ |
H A D | icache_main.cpp | 107 auto now = std::chrono::steady_clock::now(); local 111 auto duration = std::chrono::steady_clock::now() - now;
|
/system/core/adb/ |
H A D | adb_trace.cpp | 52 struct tm now; local 56 localtime_r(&t, &now); 59 strftime(timestamp, sizeof(timestamp), "%Y-%m-%d-%H-%M-%S", &now);
|
/system/core/base/ |
H A D | properties.cpp | 115 auto now = std::chrono::steady_clock::now(); local 116 auto remaining_timeout = std::chrono::duration_cast<std::chrono::nanoseconds>(timeout - now); 132 auto now = std::chrono::steady_clock::now(); local 133 absolute_timeout = now + relative_timeout;
|
H A D | logging.cpp | 190 struct tm now; local 194 localtime_s(&now, &t); 196 localtime_r(&t, &now); 200 strftime(timestamp, sizeof(timestamp), "%m-%d %H:%M:%S", &now);
|
/system/core/init/ |
H A D | bootchart.cpp | 68 struct tm now = *localtime(&now_t); local 69 strftime(date, sizeof(date), "%F %T", &now);
|
H A D | util.cpp | 202 boot_clock::time_point boot_clock::now() { function in class:boot_clock 265 boot_clock::time_point timeout_time = boot_clock::now() + timeout; 266 while (boot_clock::now() < timeout_time) {
|
/system/keymaster/ |
H A D | android_keymaster_messages_test.cpp | 653 time_t now = time(NULL); local 654 std::cout << "Seeding rand() with " << now << " for fuzz test." << std::endl; 655 srand(now);
|
H A D | key_blob_test.cpp | 293 time_t now = time(NULL); local 294 std::cout << "Seeding rand() with " << now << " for fuzz test." << std::endl; 295 srand(now); 324 << "Somehow sucessfully parsed a blob with seed " << now << " at offset " << i;
|
/system/netd/server/ |
H A D | ResolverController.cpp | 206 time_t now = time(nullptr); local 223 int time_delta = (s.last_sample_time > 0) ? now - s.last_sample_time : -1;
|
/system/bt/osi/src/ |
H A D | wakelock.cc | 227 static period_ms_t now(void) { function 254 wakelock_stats.last_reset_timestamp_ms = now(); 266 const period_ms_t now_ms = now(); 296 const period_ms_t now_ms = now(); 330 const period_ms_t now_ms = now();
|
H A D | alarm.cc | 123 static period_ms_t now(void); 180 period_ms_t just_now = now(); 209 alarm->creation_time = now(); 359 static period_ms_t now(void) { function 391 period_ms_t just_now = now(); 436 next_expiration = next->deadline - now(); 548 // If the alarm is not periodic, we've fully serviced it now, and can reset 569 period_ms_t t0 = now(); 571 period_ms_t t1 = now(); 600 (alarm = static_cast<alarm_t*>(list_front(alarms)))->deadline > now()) { [all...] |
/system/core/libutils/tests/ |
H A D | Looper_test.cpp | 561 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); local 563 mLooper->sendMessageAtTime(now + ms2ns(100), handler, Message(MSG_TEST1)); 598 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); local 600 mLooper->sendMessageAtTime(now - ms2ns(1000), handler, Message(MSG_TEST1)); 617 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); local 619 mLooper->sendMessageAtTime(now, handler, Message(MSG_TEST1));
|
/system/core/logd/ |
H A D | LogAudit.cpp | 246 log_time now; local 251 ((cp = now.strptime(timeptr + sizeof(audit_str) - 1, "%s.%q"))) && 256 if (android::isMonotonic(now)) { 257 LogKlog::convertMonotonicToReal(now); 260 if (!android::isMonotonic(now)) { 261 LogKlog::convertRealToMonotonic(now); 265 now = log_time(CLOCK_MONOTONIC); 267 now = log_time(CLOCK_REALTIME); 303 rc = logbuf->log(LOG_ID_EVENTS, now, uid, pid, tid, 356 rc = logbuf->log(LOG_ID_MAIN, now, ui [all...] |
H A D | LogKlog.cpp | 279 time_t now = real.tv_sec; local 283 localtime_r(&now, &tm); 296 void LogKlog::sniffTime(log_time& now, const char*& buf, ssize_t len, argument 302 cp = now.strptime(buf, "[ %s.%q]"); // can index beyond buffer bounds 319 calculateCorrection(now, b, len); 323 calculateCorrection(now, b, len); 358 convertMonotonicToReal(now); 361 now = log_time(CLOCK_MONOTONIC); 363 now = log_time(CLOCK_REALTIME); 454 log_time now; local 555 log_time now; local [all...] |
/system/core/adb/client/ |
H A D | usb_linux.cpp | 258 // we have a match. now we just need to figure out which is in and which is out. 322 auto now = std::chrono::system_clock::now(); local 323 if (h->cv.wait_until(lock, now + 5s) == std::cv_status::timeout || h->dead) {
|
/system/core/trusty/keymaster/ |
H A D | trusty_keymaster_device.cpp | 522 uint64_t now = java_time(time(NULL)); local 523 auth_set->push_back(TAG_CREATION_DATETIME, now); 524 auth_set->push_back(TAG_ORIGINATION_EXPIRE_DATETIME, now + HUNDRED_YEARS);
|