Home
last modified time | relevance | path

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

12

/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.cpp350 static void update_screen_state(struct charger *charger, int64_t now) in update_screen_state() argument
356 if (!batt_anim->run || now < charger->next_screen_transition) in update_screen_state()
363 LOGV("[%" PRId64 "] level %d, leave screen off\n", now, batt_cap); in update_screen_state()
385 LOGV("[%" PRId64 "] animation done\n", now); in update_screen_state()
398 LOGV("[%" PRId64 "] animation starting\n", now); in update_screen_state()
428 LOGV("[%" PRId64 "] animation missing or unknown battery status\n", now); in update_screen_state()
429 charger->next_screen_transition = now + BATTERY_UNKNOWN_TIME; in update_screen_state()
435 charger->next_screen_transition = now + disp_time; in update_screen_state()
470 int64_t now = curr_time_ms(); in set_key_callback() local
483 charger->keys[code].timestamp = now; in set_key_callback()
[all …]
/system/vold/
DCheckBattery.cpp47 time_t now = time(NULL); in is_battery_ok() local
48 if (now == -1 || difftime(now, last_checked) < 5) { in is_battery_ok()
51 last_checked = now; in is_battery_ok()
Dcryptfs.c2030 struct timespec now; in cryptfs_check_passwd() local
2031 clock_gettime(CLOCK_BOOTTIME, &now); in cryptfs_check_passwd()
2032 password_expiry_time = now.tv_sec + password_max_age_seconds; in cryptfs_check_passwd()
3497 struct timespec now; in cryptfs_get_password() local
3498 clock_gettime(CLOCK_MONOTONIC, &now); in cryptfs_get_password()
3499 if (now.tv_sec < password_expiry_time) { in cryptfs_get_password()
/system/core/init/
Dsignal_handler.c50 time_t now; in wait_for_one_process() local
101 now = gettime(); in wait_for_one_process()
103 if (svc->time_crashed + CRITICAL_CRASH_WINDOW >= now) { in wait_for_one_process()
112 svc->time_crashed = now; in wait_for_one_process()
Dbootchart.c132 struct tm now = *localtime(&now_t); in log_header() local
133 strftime(date, sizeof(date), "%x %X", &now); in log_header()
Dreadme.txt184 If the service is supposed to be running, it will be started now.
/system/core/libutils/
DLooper.cpp202 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in pollInner() local
203 int messageTimeoutMillis = toMillisecondTimeoutDelay(now, mNextMessageUptime); in pollInner()
210 this, mNextMessageUptime - now, timeoutMillis); in pollInner()
284 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in pollInner() local
286 if (messageEnvelope.uptime <= now) { in pollInner()
359 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in pollAll() local
360 timeoutMillis = toMillisecondTimeoutDelay(now, endTime); in pollAll()
490 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in sendMessage() local
491 sendMessageAtTime(now, handler, message); in sendMessage()
496 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in sendMessageDelayed() local
[all …]
DBlobCache.cpp44 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in BlobCache() local
46 srand(now); in BlobCache()
48 mRandState[0] = (now >> 0) & 0xFFFF; in BlobCache()
49 mRandState[1] = (now >> 16) & 0xFFFF; in BlobCache()
50 mRandState[2] = (now >> 32) & 0xFFFF; in BlobCache()
52 ALOGV("initializing random seed using %lld", (unsigned long long)now); in BlobCache()
DLinearAllocator.cpp65 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in _logUsageLocked() local
66 if (now > s_nextLog) { in _logUsageLocked()
67 s_nextLog = now + milliseconds_to_nanoseconds(10); in _logUsageLocked()
/system/core/logd/
DLogAudit.cpp92 log_time now; in logPrint() local
97 && ((cp = now.strptime(timeptr + sizeof(audit_str) - 1, "%s.%q"))) in logPrint()
102 now.strptime("", ""); // side effect of setting CLOCK_REALTIME in logPrint()
142 logbuf->log(LOG_ID_EVENTS, now, uid, pid, tid, newstr, in logPrint()
186 logbuf->log(LOG_ID_MAIN, now, uid, pid, tid, newstr, in logPrint()
DLogReader.cpp154 log_time now(CLOCK_MONOTONIC); in onDataAvailable() local
155 start = now; in onDataAvailable()
Devent.logtags5 # negative values alone for now.)
/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.h66 double now();
Dusb_linux.c476 double deadline = now() + WAIT_FOR_DISCONNECT_TIMEOUT; in usb_wait_for_disconnect()
477 while (now() < deadline) { in usb_wait_for_disconnect()
/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()
/system/core/toolbox/
Dgetevent.c657 int64_t now = event.time.tv_sec * 1000000LL + event.time.tv_usec; in getevent_main() local
659 printf(" rate %lld", 1000000LL / (now - last_sync_time)); in getevent_main()
660 last_sync_time = now; in getevent_main()
Dnewfs_msdos.c262 time_t now; in newfs_msdos_main() local
639 now = tv.tv_sec; in newfs_msdos_main()
640 tm = localtime(&now); in newfs_msdos_main()
/system/core/libbacktrace/
Dbacktrace_test.cpp68 int32_t* now; member
555 if (android_atomic_acquire_load(dump->now)) { in ThreadDump()
596 dumpers[i].now = &dump_now; in TEST()
639 dumpers[i].now = &dump_now; in TEST()
/system/core/logcat/
Devent.logtags5 # negative values alone for now.)
/system/core/adb/
Dadb.c1006 struct tm now; in start_device_log() local
1019 localtime_r(&t, &now); in start_device_log()
1022 &now); in start_device_log()

12