Home
last modified time | relevance | path

Searched refs:now (Results 1 – 25 of 40) sorted by relevance

12

/system/security/keystore/
Dkeystore_keymaster_enforcement.h41 time_t now = time(NULL); in activation_date_valid() local
42 if (now == static_cast<time_t>(-1)) { in activation_date_valid()
45 } else if (now < 0) { in activation_date_valid()
54 uint64_t now_date = static_cast<uint64_t>(now) * 1000 + 999; in activation_date_valid()
59 time_t now = time(NULL); in expiration_date_passed() local
60 if (now == static_cast<time_t>(-1)) { in expiration_date_passed()
63 } else if (now < 0) { in expiration_date_passed()
71 uint64_t now_date = static_cast<uint64_t>(now) * 1000; in expiration_date_passed()
Dauth_token_table.cpp137 time_t now = clock_function_(); in FindTimedAuthorization() local
138 if (static_cast<int64_t>(newest_match->time_received()) + timeout < static_cast<int64_t>(now)) in FindTimedAuthorization()
141 newest_match->UpdateLastUse(now); in FindTimedAuthorization()
/system/extras/tests/icachetest/
Dicache_main.c11 struct timeval now, tm; in main() local
19 gettimeofday(&now, 0); in main()
22 t = (tm.tv_sec*1000000LL+tm.tv_usec) - (now.tv_sec*1000000LL+now.tv_usec); in main()
26 gettimeofday(&now, 0); in main()
29 t = (tm.tv_sec*1000000LL+tm.tv_usec) - (now.tv_sec*1000000LL+now.tv_usec); in main()
/system/core/liblog/
Dlog_time.cpp31 time_t now; in strptime() local
34 now = tv_sec; in strptime()
36 time(&now); in strptime()
37 tv_sec = now; in strptime()
44 ptm = localtime_r(&now, &tmBuf); in strptime()
46 ptm = localtime(&now); in strptime()
80 now = tv_sec; in strptime()
82 ptm = localtime_r(&now, &tmBuf); in strptime()
84 ptm = localtime(&now); in strptime()
129 time(&now); in strptime()
[all …]
/system/core/healthd/
Dhealthd_mode_charger.cpp345 static void update_screen_state(struct charger *charger, int64_t now) in update_screen_state() argument
350 if (!batt_anim->run || now < charger->next_screen_transition) in update_screen_state()
357 LOGV("[%" PRId64 "] leave screen off\n", now); in update_screen_state()
380 LOGV("[%" PRId64 "] animation done\n", now); in update_screen_state()
391 LOGV("[%" PRId64 "] animation starting\n", now); in update_screen_state()
420 LOGV("[%" PRId64 "] animation missing or unknown battery status\n", now); in update_screen_state()
421 charger->next_screen_transition = now + BATTERY_UNKNOWN_TIME; in update_screen_state()
427 charger->next_screen_transition = now + disp_time; in update_screen_state()
462 int64_t now = curr_time_ms(); in set_key_callback() local
475 charger->keys[code].timestamp = now; in set_key_callback()
[all …]
/system/core/logd/
DLogKlog.cpp245 time_t now = real.tv_sec; in calculateCorrection() local
249 localtime_r(&now, &tm); in calculateCorrection()
254 void LogKlog::sniffTime(log_time &now, const char **buf, bool reverse) { in sniffTime() argument
256 if ((cp = now.strptime(*buf, "[ %s.%q]"))) { in sniffTime()
266 calculateCorrection(now, cp + sizeof(suspend) - 1); in sniffTime()
268 calculateCorrection(now, cp + sizeof(resume) - 1); in sniffTime()
274 calculateCorrection(now, tp + 1); in sniffTime()
292 convertMonotonicToReal(now); in sniffTime()
295 now = log_time(CLOCK_REALTIME); in sniffTime()
327 log_time now; in synchronize() local
[all …]
DLogAudit.cpp116 log_time now; in logPrint() local
121 && ((cp = now.strptime(timeptr + sizeof(audit_str) - 1, "%s.%q"))) in logPrint()
131 if (now.tv_sec < EPOCH_PLUS_10_YEARS) { in logPrint()
132 LogKlog::convertMonotonicToReal(now); in logPrint()
135 now.strptime("", ""); // side effect of setting CLOCK_REALTIME in logPrint()
170 rc = logbuf->log(LOG_ID_EVENTS, now, uid, pid, tid, in logPrint()
220 rc = logbuf->log(LOG_ID_MAIN, now, uid, pid, tid, newstr, in logPrint()
DLogKlog.h51 void sniffTime(log_time &now, const char **buf, bool reverse);
/system/extras/simpleperf/
Dworkload_test.cpp30 auto start_time = steady_clock::now(); in TEST()
35 auto end_time = steady_clock::now(); in TEST()
Dcmd_stat.cpp95 auto start_time = std::chrono::steady_clock::now(); in Run()
107 auto end_time = std::chrono::steady_clock::now(); in Run()
/system/core/libutils/
DLooper.cpp227 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in pollInner() local
228 int messageTimeoutMillis = toMillisecondTimeoutDelay(now, mNextMessageUptime); in pollInner()
235 this, mNextMessageUptime - now, timeoutMillis); in pollInner()
316 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in pollInner() local
318 if (messageEnvelope.uptime <= now) { in pollInner()
395 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in pollAll() local
396 timeoutMillis = toMillisecondTimeoutDelay(now, endTime); in pollAll()
584 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in sendMessage() local
585 sendMessageAtTime(now, handler, message); in sendMessage()
590 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in sendMessageDelayed() local
[all …]
DBlobCache.cpp46 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in BlobCache() local
48 srand(now); in BlobCache()
50 mRandState[0] = (now >> 0) & 0xFFFF; in BlobCache()
51 mRandState[1] = (now >> 16) & 0xFFFF; in BlobCache()
52 mRandState[2] = (now >> 32) & 0xFFFF; in BlobCache()
54 ALOGV("initializing random seed using %lld", (unsigned long long)now); in BlobCache()
/system/bt/osi/src/
Dalarm.c84 static period_ms_t now(void);
143 remaining_ms = alarm->deadline - now(); in alarm_get_remaining_ms()
165 alarm->created = now(); in alarm_set_internal()
256 static period_ms_t now(void) { in now() function
277 period_ms_t just_now = now(); in schedule_next_instance()
311 int64_t next_expiration = next->deadline - now(); in reschedule_root_alarm()
376 if (list_is_empty(alarms) || (alarm = list_front(alarms))->deadline > now()) { in callback_dispatch()
/system/core/init/
Dutil.cpp264 timespec now; in gettime() local
265 clock_gettime(CLOCK_MONOTONIC, &now); in gettime()
266 return now.tv_sec; in gettime()
270 timespec now; in gettime_ns() local
271 clock_gettime(CLOCK_MONOTONIC, &now); in gettime_ns()
272 return static_cast<uint64_t>(now.tv_sec) * UINT64_C(1000000000) + now.tv_nsec; in gettime_ns()
Dsignal_handler.cpp116 time_t now = gettime(); in wait_for_one_process() local
118 if (svc->time_crashed + CRITICAL_CRASH_WINDOW >= now) { in wait_for_one_process()
127 svc->time_crashed = now; in wait_for_one_process()
/system/bt/btif/src/
Dbtif_debug_btsnoop.c57 const uint64_t now = btif_debug_ts(); in btsnoop_cb() local
61 header.delta_time_ms = last_timestamp_ms ? now - last_timestamp_ms : 0; in btsnoop_cb()
62 last_timestamp_ms = now; in btsnoop_cb()
/system/extras/tests/framebuffer/
Drefresh.c159 int64_t now = systemTime(); in main() local
160 time = now - time; in main()
163 time = now; in main()
/system/core/fastboot/
Dengine.c129 double split = now(); in cb_default()
239 double split = now(); in cb_check()
251 double split = now(); in cb_check()
380 a->start = now(); in fb_execute_queue()
411 fprintf(stderr,"finished. total time: %.3fs\n", (now() - start)); in fb_execute_queue()
Dutil.c38 double now() in now() function
Dfastboot.h70 double now();
/system/vold/
DExt4Crypt.cpp339 struct timespec now; in e4crypt_check_passwd() local
340 clock_gettime(CLOCK_BOOTTIME, &now); in e4crypt_check_passwd()
342 now.tv_sec + password_max_age_seconds}; in e4crypt_check_passwd()
464 struct timespec now; in e4crypt_get_password() local
465 clock_gettime(CLOCK_BOOTTIME, &now); in e4crypt_get_password()
466 if (i->second.expiry_time < now.tv_sec) { in e4crypt_get_password()
/system/bt/embdrv/sbc/decoder/include/
Doi_osinterface.h89 void OI_Time_Now(OI_TIME *now);
/system/bt/audio_a2dp_hw/
Daudio_a2dp_hw.c159 struct timespec now; in ts_log() local
166 clock_gettime(CLOCK_MONOTONIC, &now); in ts_log()
168 now_us = now.tv_sec*USEC_PER_SEC + now.tv_nsec/1000; in ts_log()
172 diff_us = (now.tv_sec - prev.tv_sec) * USEC_PER_SEC + (now.tv_nsec - prev.tv_nsec)/1000; in ts_log()
173 *pprev_opt = now; in ts_log()
178 diff_us = (now.tv_sec - prev.tv_sec) * USEC_PER_SEC + (now.tv_nsec - prev.tv_nsec)/1000; in ts_log()
179 prev = now; in ts_log()
/system/keymaster/
Dkey_blob_test.cpp293 time_t now = time(NULL); in TEST_F() local
294 std::cout << "Seeding rand() with " << now << " for fuzz test." << std::endl; in TEST_F()
295 srand(now); in TEST_F()
324 << "Somehow sucessfully parsed a blob with seed " << now << " at offset " << i; in TEST_F()
/system/core/libutils/tests/
DLooper_test.cpp561 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in TEST_F() local
563 mLooper->sendMessageAtTime(now + ms2ns(100), handler, Message(MSG_TEST1)); in TEST_F()
598 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in TEST_F() local
600 mLooper->sendMessageAtTime(now - ms2ns(1000), handler, Message(MSG_TEST1)); in TEST_F()
617 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in TEST_F() local
619 mLooper->sendMessageAtTime(now, handler, Message(MSG_TEST1)); in TEST_F()

12