/system/extras/tests/icachetest/ |
D | icache_main.c | 11 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/ |
D | log_time.cpp | 31 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/ |
D | healthd_mode_charger.cpp | 350 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/ |
D | CheckBattery.cpp | 47 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()
|
D | cryptfs.c | 2030 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/ |
D | signal_handler.c | 50 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()
|
D | bootchart.c | 132 struct tm now = *localtime(&now_t); in log_header() local 133 strftime(date, sizeof(date), "%x %X", &now); in log_header()
|
D | readme.txt | 184 If the service is supposed to be running, it will be started now.
|
/system/core/libutils/ |
D | Looper.cpp | 202 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 …]
|
D | BlobCache.cpp | 44 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()
|
D | LinearAllocator.cpp | 65 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/ |
D | LogAudit.cpp | 92 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()
|
D | LogReader.cpp | 154 log_time now(CLOCK_MONOTONIC); in onDataAvailable() local 155 start = now; in onDataAvailable()
|
D | event.logtags | 5 # negative values alone for now.)
|
/system/extras/tests/framebuffer/ |
D | refresh.c | 159 int64_t now = systemTime(); in main() local 160 time = now - time; in main() 163 time = now; in main()
|
/system/core/fastboot/ |
D | engine.c | 129 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()
|
D | util.c | 38 double now() in now() function
|
D | fastboot.h | 66 double now();
|
D | usb_linux.c | 476 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/ |
D | Looper_test.cpp | 561 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/ |
D | getevent.c | 657 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()
|
D | newfs_msdos.c | 262 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/ |
D | backtrace_test.cpp | 68 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/ |
D | event.logtags | 5 # negative values alone for now.)
|
/system/core/adb/ |
D | adb.c | 1006 struct tm now; in start_device_log() local 1019 localtime_r(&t, &now); in start_device_log() 1022 &now); in start_device_log()
|