/system/extras/tests/icachetest/ |
H A D | icache_main.c | 11 struct timeval now, tm; local 19 gettimeofday(&now, 0); 22 t = (tm.tv_sec*1000000LL+tm.tv_usec) - (now.tv_sec*1000000LL+now.tv_usec); 26 gettimeofday(&now, 0); 29 t = (tm.tv_sec*1000000LL+tm.tv_usec) - (now.tv_sec*1000000LL+now.tv_usec);
|
/system/extras/tests/bionic/libc/other/ |
H A D | bench_locks.c | 7 static double now(void) function 23 t0 = now(); 28 t1 = now() - t0;
|
/system/extras/tests/bionic/libc/common/ |
H A D | test_tm_zone.c | 40 time_t now = time(NULL); 49 tm = localtime_r( &now, &tm0 );
|
H A D | test_strftime_2039.c | 11 time_t now = time(NULL); local 12 struct tm tm = *localtime(&now);
|
/system/core/charger/ |
H A D | charger.c | 463 /* only pick up the first battery for now */ 692 static void update_screen_state(struct charger *charger, int64_t now) argument 698 if (!batt_anim->run || now < charger->next_screen_transition) 706 LOGV("[%lld] animation done\n", now); 719 LOGV("[%lld] animation starting\n", now); 749 LOGV("[%lld] animation missing or unknown battery status\n", now); 750 charger->next_screen_transition = now + BATTERY_UNKNOWN_TIME; 756 charger->next_screen_transition = now + disp_time; 782 int64_t now = curr_time_ms(); local 795 charger->keys[code].timestamp = now; 829 process_key(struct charger *charger, int code, int64_t now) argument 858 handle_input_state(struct charger *charger, int64_t now) argument 866 handle_power_supply_state(struct charger *charger, int64_t now) argument 890 wait_next_event(struct charger *charger, int64_t now) argument 936 int64_t now = curr_time_ms(); local 955 int64_t now = curr_time_ms() - 1; local [all...] |
/system/core/init/ |
H A D | signal_handler.c | 50 time_t now; local 93 now = gettime(); 95 if (svc->time_crashed + CRITICAL_CRASH_WINDOW >= now) { 104 svc->time_crashed = now;
|
H A D | bootchart.c | 132 struct tm now = *localtime(&now_t); local 133 strftime(date, sizeof(date), "%x %X", &now);
|
/system/core/libutils/ |
H A D | Looper.cpp | 202 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); local 203 int messageTimeoutMillis = toMillisecondTimeoutDelay(now, mNextMessageUptime); 210 this, mNextMessageUptime - now, timeoutMillis); 284 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); local 286 if (messageEnvelope.uptime <= now) { 359 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); local 360 timeoutMillis = toMillisecondTimeoutDelay(now, endTime); 490 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); local 491 sendMessageAtTime(now, handler, message); 496 nsecs_t now local [all...] |
H A D | LinearAllocator.cpp | 65 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); local 66 if (now > s_nextLog) { 67 s_nextLog = now + milliseconds_to_nanoseconds(10);
|
H A D | BlobCache.cpp | 43 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); local 45 srand(now); 47 mRandState[0] = (now >> 0) & 0xFFFF; 48 mRandState[1] = (now >> 16) & 0xFFFF; 49 mRandState[2] = (now >> 32) & 0xFFFF; 51 ALOGV("initializing random seed using %lld", now);
|
/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/core/libcutils/tests/memset_mips/ |
H A D | test_memset.c | 30 struct timespec now; local 32 clock_gettime(CLOCK_REALTIME, &now); 33 res = (uint32_t)(now.tv_sec * 1000000000LL + now.tv_nsec); 34 // printf ("now=%d.%09d res=%d\n", (int)now.tv_sec, (int)now.tv_nsec, res); 220 memset(arena, 0xff, ARENASIZE); /* use 0xff now to avoid COW later */
|
H A D | memset_omips.S | 47 or a1, t0 # a1 is now pattern in full word 62 move a2, t0 # a2 is now # of bytes left after loop
|
/system/core/fastboot/ |
H A D | engine.c | 51 double now() function 184 double split = now(); 453 double split = now(); 465 double split = now(); 589 a->start = now(); 622 fprintf(stderr,"finished. total time: %.3fs\n", (now() - start));
|
/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/toolbox/ |
H A D | getevent.c | 652 int64_t now = event.time.tv_sec * 1000000LL + event.time.tv_usec; local 654 printf(" rate %lld", 1000000LL / (now - last_sync_time)); 655 last_sync_time = now;
|
H A D | newfs_msdos.c | 270 time_t now; local 618 now = tv.tv_sec; 619 tm = localtime(&now);
|
/system/core/adb/ |
H A D | adb.c | 961 struct tm now; local 974 localtime_r(&t, &now); 977 &now);
|